Commands - AustereTony-MCMods/Oxygen-Market GitHub Wiki
Oxygen: Market Commands
Module commands are registered as arguments to the Core commands: "/oxygenc", "/oxygens" and "/oxygenop".
Server - Operators
Open the trade menu: "/oxygenop market -open-menu {target}"
As the target can be used the username or selector (only players, except @a).
Cancel the offer: "/oxygenop market -cancel-offer {offer id} {flag}"
The command is used implicitly when using contextual options in the trading menu in the "Buy" section (available to operators, with the privilege "market:marketMenuOperatorOptions" [id - 1003] with the value "true"). Context menu option "Cancel" will remove the offer with the return of the item to the owner, the option "Remove" will remove the offer and the item.
Clear global sales history: "/oxygenop market-clear-history {mode} {args}"
The command allows you to clear the global sales history completely for a specified period. History clear available for a specific item.
As a mode, the pointers "global" (the whole history) and "item" (only the history of the item) can be used. In the case of clearing the history of a specific item, the command must be performed by the player with the item in the main hand.
The cleaning period is indicated in hours. A value of "-1" means deleting the entire story.
Examples:
Clearing the whole story: "/oxygenop market -clear-history global 10"
Clear history for item (performed by player with item in main hand): "/oxygenop market -clear-history item -1"
Client
Open market menu: "/oxygenc market"
Open the global sales history menu: "/oxygenc market -sales-history"
Reset client data: "/oxygenc market -reset-data"