CommandsForSale
This is completely compatible with 1.12, 1.13!
To my knowledge, 1.14 should also pose no issue. Submit a bug report if you find otherwise and I'll fix it up. (10/16/19)
Logo by xDizasterCYx Thank you!
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.
Configuration File
While the video tutorial is better, here's a text form of the config instructions. https://sites.google.com/site/tecnowizardplugindevelopment/published-plugins/commandsforsale/commandsforsale-config
Comming Soon
Nothing at the moment, but please give me ideas!
External Resources
Plugin Metrics
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
The following data is sent to http://mcstats.org:
- Metrics revision of the implementing class
- Server's GUID (I can't see this)
- 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
ALL data that I receive has been posted here.
Updater
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.
Source Code
Known Issues With v1.2.5
- The material list for GUIs is outdated. Just be careful and things should be okay.
Support
Have an error? Submit a ticket! Have a suggestion? I'd love to hear your opinions!: https://drive.google.com/open?id=1dZ3xsv-5I957cLb018qhp60ZtkUzynIyGWzr09NUhZY&authuser=0
-
View User Profile
-
Send Message
Posted Apr 8, 2019Hey ive just started running this plugin on my new server and i cand for the life of me figure out a way to remove a command out of the shop, can you help with this? thanks!
-
View User Profile
-
Send Message
Posted Oct 16, 2019In reply to Kleptopolis:
Kinda old, but still have this problem? I've been a little busy, to say the least. Please use the support request link to continue further, as comments aren't a good place for this.
-
View User Profile
-
Send Message
Posted May 24, 2018Try everything by wanting the / home command to only use it once they have purchased it, but when they buy the / home command they can use it infinitely.
I tried to put in true: canBeOneTimeUsed: true
also try to put any number other than 0: oneTimeUsePrice: 20
my config:
UpdaterOn: false
AutomaticallyUpdate: false
TimeBetweenUpdateChecksInMins: 360
CurrencyPlural: Sol
Messages:
hasNotBoughtCmd: '&4You have not bought &e/{COMMANDNAME}&4. &e/buycmd &4to buy,
if permissible.'
PluginPrefix: CommandsForSale
GUIEnabled: true
MainCommands:
- home
CommandOptions:
home:
price: 20
canBeOneTimeUsed: true
oneTimeUsePrice: 20
permission: void
GUIIcon: GRASS
Aliases:
home: []
AllCommands:
- home
-
View User Profile
-
Send Message
Posted May 24, 2018In reply to giiitzan:
-
View User Profile
-
Send Message
Posted Feb 3, 2018My players buy a command and cannot use it. how to fix. This should have been automatic.
-
View User Profile
-
Send Message
Posted Feb 7, 2018In reply to frobosama84183:
-
View User Profile
-
Send Message
Posted Nov 9, 2017hey is this compatible with 1.12?
-
View User Profile
-
Send Message
Posted Nov 11, 2017-
View User Profile
-
Send Message
Posted Nov 14, 2017In reply to tecno_wizard:
-
View User Profile
-
Send Message
Posted Nov 20, 2016This should be 100% compatible with 1.11, everyone.
-
View User Profile
-
Send Message
Posted Apr 11, 2016@ncsgeek
Please refer to the PM chat I opened. I'll work more with you there.
-
View User Profile
-
Send Message
Posted Apr 11, 2016I know i will always use it! Cheers man!
Also, do you know what might be causing: http://pastebin.com/MKzXKYGU ?
-
View User Profile
-
Send Message
Posted Apr 11, 2016@ncsgeek
Thank you so much! I've put a lot of time into it and as Ek continues to improve it I'm sure it will stay a very useful tool. I've done a few compatibility updates myself since he took over and I'm looking forward to seeing his additions.
-
View User Profile
-
Send Message
Posted Apr 11, 2016Thank. You. Sir. xD
Best Plugin, so useful
-
View User Profile
-
Send Message
Posted Sep 16, 2015You know, this seems like such an easy, simplistic idea, that anyone could ever possibly do. WHY DIDN'T ANYONE THINK OF THIS!? Honestly, it looks very useful to many many servers. I can see Factions, Towny, RPG, and many many other genres of servers using this. Creative and unique idea, and you executed it so brilliantly. Keep up the amazing work, Techno_wizard
-
View User Profile
-
Send Message
Posted Jul 3, 2015On 7/4/15, all old or unnecessary comments were deleted in an effort to make comments on the project appear, not bug tickets.
-
View User Profile
-
Send Message
Posted Jan 15, 2015I'm really looking forward to the 1 time use commands, can't wait for the update.
-
View User Profile
-
Send Message
Posted Nov 13, 2014Amazing plugin does everything i could ever hope for it to do. Thank you so much!