CommandsForSale is an extremely lightweight plugin that allows you to sell commands to your players from a shop GUI. Each command is set up in the configuration file with the price and all other aliases of the command.
What Makes CommandsForSale different than other command buying plugins?
Does a command have an alias? You can block that too and it unlocks when the command is bought!
Want players to be able to buy a single use pass? You can do that!
Want full control over the look of your GUI? You have that!
Video Tutorial!
Commands
/buycmd- Opens the command shopping GUI.
/buycmd [Command Name]- Initiates the purchase of a command. Once the purchase has begun, it must be confirmed by /confirm or /deny if the user does not want to continue. Purchases cannot be made if it leaves the player with a negative balance
/buyonce <CommandName> [price]- buys a one time use pass for the command named. Adding the price argument will state the price of that command. There is no confirmation for these purchases.The pass will allow the next attempted use of the command and can stack.
/confirm- Confirms the purchase initiated by /buycmd or if the GUI was closed without finishing
/deny- Denies the purchase initiated by /buycmd or if the GUI was closed without finishing
/boughtcmds [Player Name]- Lists all the commands that the user has purchased. To see other players, the sender must have the cmdsforsale.moderator permission. (Console exempt)
/cmdstobuy- Lists the command that the sender can purchase (Not including commands already purchased)
/cmdsforsale <reload || addcmd || addalias || updatestatus>- Note: This command requires the permission node cmdsforsale.moderator (Console exempt). /cfs is an alias of this command
Subcommands of /cmdsforsale
reload- Refreshes the configuration file including any edits made to be auto-generated.
addcmd <Command Name>- Adds a command to the config and creates the settings necessary to configure the command
addalias <Command Name> <Alias Name>- Adds the specified alias to the command given
updatestatus- Gives the status from the last update attempt
Dependencies
Vault (For an economy)
Permissions
cmdsforsale.moderator - Gives the player access to all subcommands of /cmdsforsale and can view other player's purchases. Players are also exempt from buying commands with this node.
cmdsforsale.buyexempt - Exempt the player from the purchase of commands without giving them moderator abilites. Moderators do not need to be given this permission.
cmdsforsale.use - Gives the player access to commands in commandsforsale. This is on by default.
This plugin uses PluginMetrics, a service that allows plugin developers to see how their plugin is being used. The following data is read from the server in some way or another:
File Contents of plugins/Plugin Metrics/config.yml (created if not existent)
Players currently online (not max player count)
Server version string (the same version string you see in /version)
Plugin version of the metrics-supported plugin
Mineshafter status - it does not properly propagate Metrics requests however it is a very simple check and does not read the file system
This plugin uses Updater. This service will automatically update the plugin without any work from a server owner. It can be disabled in the CommandsForSale config, and is explained in the config PDF file.