SimpleMoney
SimpleMoney v0.4.2 [#1.1-R5]
Note:
The current version will only work when Bukkit 1.1-R5 comes out!
I renamed the JAR and made the config files different so delete MoneyPlugin.jar and MainConfig.properties!
After wanting a plain and simple money system for my server, I created this. SimpleMoney will give your server a simple money system so you can pay players for items or do whatever you want. After thinking that people could go bankrupt by paying one player all of the money, I integrated a MobMoney-type plugin into this. Once you kill an Enderman, Pigman, Blaze, CaveSpider, Creeper, Ghast, MagmaCube, SilverFish, Skeleton, Slime, Spider, or Zombie you will be rewarded with money.
Features
- Economy system that keeps track of players money.
- Assigns new players that join a certain amount of money.
- Config file and player database(flat-file).
- Different config files for main options and mob reward amounts.
- Players can pay eachother money.
- People can give money (it is recomended that only admins use this as the money does not come out of an account).
- People can set players money.
- Players can reload the config.
- MobMoney-type plugin built in which can be turned on or off and the rewards can be configured.
- No MySQL or SQLite needed.
- Almost all permissions supported.
- Vault.
Installation
- Download Vault and put it in the plugin folder. (Vault: click me)
- Give all of the group a permission from the permission list below.
- Put the JAR inside the plugin folder.
- Reload the server.
- Open MainConfig.properties and edit the currency and starting money amount to what you want. MobMoney is turned off by default. If you turn it on in the config, the server needs to be reloaded with /reload.
- Reload your permission plugin.
- Type /money reload
Permissions
MoneyPlugin.user : Players can use "/money" and "/money help."
MoneyPlugin.pay : Players can use "/money pay."
MoneyPlugin.give : Players can use "/money give."
MoneyPlugin.set : Players can use "/money set."
MoneyPlugin.reload : Players can use "/money reload."
Commands
Note: You do not have to enter the players full name but you should.
/money pay (user) (amount) : Lets players pay (user) (amount).
/money give (user) (amount) : Lets players give someone else money(this money does not come out of an account).
/money set (user) (amount) : Lets players set someones account balance.
/money reload : Lets players reload the money config.
/money help : Lets players see helpful info.
/money : Lets players check their balance.
MobMoney Rewards
All mob rewards are set to 0 by default. If a reward is set to 0, no message will appear when someone kills a mob. You can configure a positive or negative reward in the config.
Changelog
(A) = Added
(F) = Fixed
(R) = Removed
(I) = Info
v0.4.1 [#1.1-R5]
(I) - Please delete the main config file! I have split the mob rewards and main config into two different config files.
(F) - Updated to Bukkit's new event system
(F) - Using EntityType instead of CreatureType because CretureType is deprecated.
(A) - Two seperate config files for mob rewards and main config.
(A) - Singular and Plural currency.
(F) - Made the code a bit more cleaner and efficient.
(F) - Fixed a spacing issue in the messages players get while sending money.
v0.4.1 [#1.1-R3]
(A) - Configurable rewards in the config for killing a mob.
(R) - Removed fixed rewards.
(I) - The config is a little messy so just bear with me for a while.
v0.3.0 [#1.1-R3]
(F) - Fixed the structure of the command checking so it takes up lees lines of code and runs faster.
(F) - When you kill a mob, t now states the correct currency.
(A) - Added a helpful "/money help" command.
(A) - Incorporated a decimal money system.
(I) - Added info to the config file.
(I) - The jar was renamed so MoneyPlugin.jar needs to be deleted, alo since the config was changed, MainConfig.properties needs to be deleted.
v0.2.1 [#1.1-R3]
(F) - Fixed the wrong usage message not including the new commands.
v0.2.0 [#1.1-R3]
(A) - /set command for setting a players balance.
(A) - MobMoney can be turned off in the config. It is off by default.
v0.1.1 [#1.1-R3]
(F) - Made the command calling a bit more efficient and it is easier for me to read the code.
v0.1.0 [#1.1-R3]
(A) - Plugin released.
Future Additions
Crossed out means it was added. If I do not add something, it will just be removed from the list.
Configurable mob prices in a config file.Decimal Currency.Option to turn mob rewards on and off.Singular and Plural money types.- Edit config using in-game commands.
Known Issues
When you kill a mob, it says you earned "x Dollars" ignoring your set currency name.
-
View User Profile
-
Send Message
Posted Mar 5, 2012@ezbik
Well that is just weird. Try making the values in mobmoney have decimal points. Also, try reloading the server because it might be an issue with the reload command.
-
View User Profile
-
Send Message
Posted Mar 5, 2012@DurzoBlint15
No errors in the console, running the latest beta build of bukkit. Its strange, I edit the properties file for the mobs to set their values, start it up, and it doesn't take the values. I go kill a few mobs, no money is added. I reopen the file with the mobs cash values, and its reverted back to 0's. I re-input the values, and then reload, sure enough, its back to 0's again. It wouldn't have bothered me so much if the file wasn't set to read only the 3rd time, and it still managed to change it back.
I have Vault installed, and turned on MobMoney in the config, still no dice.
-
View User Profile
-
Send Message
Posted Mar 5, 2012@ezbik
I don't know what could be causing that. I'm running the same version right now and it is not resetting anything. Do any errors come up in the console?
-
View User Profile
-
Send Message
Posted Mar 4, 2012I'd love to try out this plugin, however it keeps resetting the values for the money back to zero every single time. I even made the file read only, yet, it still managed to reset this? Any ideas?
-
View User Profile
-
Send Message
Posted Mar 2, 2012@blackmcg
I'm glad it's working for you! I'm working on an update that will fix a lot of bugs.
-
View User Profile
-
Send Message
Posted Mar 2, 2012Hey, hey! I have installed Java 7. But same problem again. But I have Java 6 too, should I remove the Java 6? [I'm using Windows 7.]
-After writing this post (Edit) -
Yes! Buddy, I have solve the problem. I have removed Java 6 and edit RUN.bat. Just like that:
[ .... JRE7 \bin\java.... ]
-
View User Profile
-
Send Message
Posted Mar 2, 2012@blackmcg
You are running a version of Java lower than 7. Please go to java.sun.com and download Java 7.
-
View User Profile
-
Send Message
Posted Mar 2, 2012Hi, i have download this plugin's last version and reload or run my server: I have problem on that:
[SEVERE] Could not load 'plugins\SimpleMoney.jar' in folder 'plugins': java.lang.UnsupportedClassVersionError: me/kenneth/sc/money/MoneyPlugin : Unsupported major.minor version 51.0
What should I do? :/...
-
View User Profile
-
Send Message
Posted Mar 1, 2012Do you guys see any bugs I need to fix?
-
View User Profile
-
Send Message
Posted Feb 27, 2012fgh
-
View User Profile
-
Send Message
Posted Feb 20, 2012Sorry that I have not updated this in a while. I will work on an update today.
-
View User Profile
-
Send Message
Posted Feb 4, 2012I will fix this issue in the next update: When you kill a mob, it says you earned x Dollars no matter what you set the currency name to.
-
View User Profile
-
Send Message
Posted Feb 4, 2012@fisherman77
Thanks for your interest! I'll add a configurable amount of money for every single mob and player in a config file. If you set the amount to 0, it will not say anything when you kill the entity. I will also make the option to turn the MobMoney thing off.
-
View User Profile
-
Send Message
Posted Feb 4, 2012This plugin is great! Next feature should be a configurable amount of $ for killing a player! But, please don't make it to where they steal it from the player - make it just appear in their balance