Taxes
This plugin comes from the lack of a decent plugin for taxes. It was created to deal with an unbalanced economy where you need to level things out a bit. It utilizes a basic tax bracket idea when charging taxes and has an easy to follow command list / configuration file.
This plugin offers three tax brackets. You can modify what qualifies each player to be in a tax bracket. From the start, the tax brackets are set up like so:
- Low: Users in the lower tax bracket have anywhere from $0 to $10,000. They are taxed 5% whenever you choose to collect taxes.
- Middle: Users in the middle tax bracket have anywhere from $0 to $50,000. They are taxed 10% whenever you choose to collect taxes.
- High: Users in the high tax bracket have more than $50,000. They are taxed 20% when taxes are collected.
You can configure the money required for each tax bracket and the tax percentage.
Installation Instructions
- Before you install Taxes, you must have Vault.
- You must also have a Vault Compatible Economy plugin.
- Drop the plugin into your plugins folder.
- Run and let the config generate.
- Modify the Config to your liking, reload the server.
Configuration
general: #Account all taxes go into. account: ServerAccount # Should the plugin automatically charge accounts daily? If not, taxes can still be collected with /tax collect AutoChargeDaily: false taxbrackets: # Tax rates for each tax bracket. (Percentage / 100) high: 0.20 middle: 0.10 low: 0.05 requirements: # Minimum amount of currency to be considered inside of a tax bracket. high: 50000 middle: 10000 low: 0 maxtaxes: # The maximum amount each bracket can be taxed. high: 25000 middle: 5000 low: 2000
Commands
This plugin offers three commands. The first one is:
- /tax
- Without any arguments, this is usable by every player. This will tell them their balance, tax bracket, tax percent, tax amount due, tax status. The status can be changed with permission nodes.
- /tax collect
- Anyone with the taxes.collect permission node will be able to use this. This will collect all taxes from players who have the 'Applicable' status. Taxes are only collected when this command is used. If you want an automated system, find a plugin that automatically runs commands from console. This will only collect taxes from online players.
- /tax reload
- Reloads the taxes configuration.
Permission Nodes
- taxes.exempt: This will make the player exempt from paying taxes.
- taxes.collect: This allows the player to use the /tax collect command.
- taxes.reload: Allows the player to use /tax reload.
Suggestions
I am always open for suggestions toward improving the plugin. I have more things planned for the plugin. You may use the comments / tickets to make a suggestion. :)
How about having access to the ServerAccount? Can I just change it to my name instead?
If you set the auto tax to true so it takes the tax off people everyday, will it happen at the same time every day or is it random?
So .. command / collect tax works or not? I'm using this command, but nothing happens, I have currently, money is not received.
@MGbeenieboy
By default the plugin will charge each player once per day when they sign on. /tax collect just collects from the online players.
I've been meaning to update this plugin, but I ran into a nasty error when doing so. I've been working on other things and plugin developing hasn't been at the top of my list. An update will hopefully come on a day where I get bored enough to make one.
Ok, looks like it works, a player told me that he lost money :D But... if every player would left the game at 3 'o clock, and came back 5 minutes later, they wouldn't pay taxes? Only players who are online at exactly this moment would must pay taxes? :(
it doesn't work for me :( when i type /tax collect, nothing happens. I even don't got a message!
high: 0.20 middle: 0.10 low: 0.05
do it means, 20% oder 0.2%?
Update!
@Alienware777
You aren't using Java 1.7.
I've been meaning to update this. I started rewriting it completely but I keep running into errors. Additionally, final exams have been piling up.
@MistPhizzle:
I'm getting a Unsupported Class Version Error everytime I try to run this plugin. Any way to fix it or does the plugin just need to be updated for 1.5.2?
2013-05-25 22:20:20 [SEVERE] Could not load 'plugins/Taxes.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: com/mistphizzle/taxes/Taxes : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:307) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:231) at org.bukkit.craftbukkit.v1_5_R3.CraftServer.loadPlugins(CraftServer.java:263) at org.bukkit.craftbukkit.v1_5_R3.CraftServer.<init>(CraftServer.java:241) at net.minecraft.server.v1_5_R3.PlayerList.<init>(PlayerList.java:55) at net.minecraft.server.v1_5_R3.DedicatedPlayerList.<init>(SourceFile:11) at net.minecraft.server.v1_5_R3.DedicatedServer.init(DedicatedServer.java:95) at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:388) at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573) Caused by: java.lang.UnsupportedClassVersionError: com/mistphizzle/taxes/Taxes : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(Unknown Source) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$000(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:87) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173) ... 9 more
Hi, I have an idea to improve the plugin : put a threshold for each brackets and if someone can't pay the tax, he's downgraded. That could be cool if we can disable that.
Thanks !
We want the update! :D
can you add the possibility to translate the plugin? tanhks :)
I beg of you to update this, really need a decent tax plugin.
@MistPhizzle
Okay! Thanks, can't wait!
@Raward
I'll probably end up rewriting the entire plugin to include a lot of requested features. New update coming over the next week or so.
It works for 1.5 but you should probably remove the exempt permission or else most people who use permission ex (like myself) will have some troubles such as Having to re-write the whole entire permissions again. I just use the '*' star for owner of my server and it wont tax me or my co-owners, which we want to be taxed. Unless there's a way to subtract a permission from the permissions file. Any help?
This seems like a great plugin for my server! Though I do have one quick question.
Is it possible to disable the max tax?
Working on 1.5?