CostOnCommand
This is my first plugin, so bear with me.
Overview
This Minecraft plugin adds costs to commands that can differ by a player's group, i.e. is configurable with permissions. /back from essentials could default cost 100$, $50 for vip1, and $25 for vip2.
You can reach me on Teamspeak with the address goreacraft.com
This plugin is for 1.8 & 1.7.10 and requires Vault to use.
Usage
To work with permissions, after you add a name to the config, you must add in the permission costoncommand.name to the group that you want the cost to apply to
For Example-
If I have this in config.yml-
Then in the group management plug-in (PermissionsEx, Group Manager, etc.), you have to add costoncommand.vip1 to the VIP group and costoncommand.verteran to the Veteran group.:
Note: The group does not need to match the name that you put in the config, only the permission ending
Commands
/coc reload - reloads the config files
Know Bugs/Issues
- This Plugin is not configurable for multiple commands having the same starting name. If you use warp:, this will effect ALL warps, you can not be specific.. I will fix this.
ChangeLog
7/19/2015 - Added support for multiple languages. To add a language, copy EN.yml in the lang folder and place in the lang folder renamed to the new language. Then translate the messages into the language. To load that to the server, head to config.yml and next to lang, replace EN with what you named the new language file. /coc reload will switch the languages.
Source
Source Code: https://github.com/Tannerq/CostOnCommand
This plugin uses Metrics so that I can see how many servers use my plugin. You may opt out of this in the PluginMetrics config file.
@shadoking75
I do not know why, but CostOnCommandv1.1 began to work as needed.
Thanks.
@u7uu7u7
Hey, I just added a fix towards that message. Tell me if it works! It's CostOnCommandv1.1f
@shadoking75 economy plugin you are using and if this decimal problem is happening everytime
http://dev.bukkit.org/bukkit-plugins/essentials/Essentials-2.13.1
home page:
http://wiki.mc-ess.net/wiki/Main_Page
http://wiki.mc-ess.net/wiki/Essentials_Economy
/plugins/CostOnCommand/config.yml
http://dev.bukkit.org/paste/12794/
@shadoking75 and is the base number right, but with added decimals?
I do not understand. My Eng - Bad.
@shadoking75 Finally, did the user start with a decimal or a full number?
full
screenshots
@u7uu7u7 I have a few questions if you don't mind answering them, Can I ask what economy plugin you are using and if this decimal problem is happening everytime? and is the base number right, but with added decimals? Finally, did the user start with a decimal or a full number?
@shadoking75
1) Lang - OK
2) Decemical:
File: /plugins/CostOnCommand/config.yml
http://dev.bukkit.org/paste/12776/
@Snackers102
Sorry for seeing this too late, I might not have email notifications set up properly.. If you still need help, I'd be more than happy to find a time to help you. Either message me through bukkit.org or try to catch me on teamspeak with the address goreacraft.com (I'm there most days)
@u7uu7u7
I'll look into how to do the language file and get it up asap, going to bed for the night though, I will defiantly work on it tomorrow.
With the new balance, can you provide any background info that I could use to see what caused it? I'll do a temporary fix like force the users new balance to round down, but some people may like decimals like 111.11 (dunno who...)
Thanks for the feedback :D
Edit: Added support for languages. if you make a new language file and want to share it with me, please do! The changelog will show you how to do/make the new folder.
I also made the temp fix to the trailing decimals.
@shadoking75 If possible:
1) Add a separate language file for translation plugin posts to another language.
2) Fix it: New Balance 641.7725190044615
Can you help me set it up? I am s major noob.
@u7uu7u7
Updating the plugin for 1.8, I'll give you a heads up when it's done and working
Edit: The 1.8 version is up and works
@chaosworlds
Yes! The list is expandable and will work as long as you keep the format and spacing correct.
Is it possible to add more groups in the config?
update to 1.8 please
Congratulations, you make me proud