GenerousMobs
GenerousMobs v1.3
Lightweight plugin so mobs drop economy money and more!
This plugin makes it so all mobs can drop a configurable amount of money when killed. All mobs have a separate configuration which allows a minimum and maximum value to be entered, as well as whether or not it's a reward or fine. On top of that it's possible to add custom item drops to mobs. There's also per-mob permissions, localization and more.
Usage
Simply place the GenerousMobs.jar file into your /plugins directory and start/reload your server. You can make changes to the configuration file while the server is online and use the reload command to refresh the changes.
Current Features
- Mobs drop economy money
- Configurable drop amounts
- Rewards, fines, or nothing can be given
- Minimum and maximum drop amounts
- Drop amounts will be randomly chosen between those the values
- Mobs drop custom items
- Custom item drops allow for in-depth editing including display name, lore, enchantments and more
- Per-mob permissions
- Localization
- Option to stop mobs spawned by monster spawners from dropping money
- Reload command
- Reset command
Planned Features
- Kill-streaks
- Suggest below
Plugin Spotlight
Due to DevBukkit's page encoding constraints it is not possible to embed a video. You can check the video out here. The video was made by LeProDude, thanks!
Dependencies
This plugin requires Vault and a Vault supported Economy plugin.
Configuration Snippet
Pig: 0.5#5#gain
Cat: 5#50#loss
IronGolem: 0#0#gain
- Pig/Cat/IronGolem is the name of the mob.
- 0.5/5/0 is the minimum amount the mob will drop.
- 5/50/0 is the maximum amount of the mob will drop.
- gain/loss is whether or not the player should be rewarded or fined.
Other configuration options:
- SpawnerRewards.Enabled - Whether or not players should receive money for defeating mobs that came from monster spawners.
- PreventKillIfBroke.Enabled - Whether or not players should not be able to kill a mob if they can't afford the fine.
The localization settings are pretty self-explanatory. You can use all chat formatting codes. Use %amount% to show the reward/fine and %name% to show the mob name set below.
The CustomDrops section is again, rather self-explanatory. The template is id;data;amount;enchantments;name;lore;dye=chance and you just replace it with the values. An example would be 397;0;1;DURABILITY:10;&6Skeleton_Skull;&dThe_power_of_the_Skeleton,Amazing;null=10 which drops a Skeleton Skull (id 397, damage value 0) of amount 1, with the enchantment Unbreaking X, the name Skeleton Skull in gold font, and the lore The power of the Skeleton and Amazing in pink font, with a chance of 10% to drop. The id, data and amount is necessary, but the rest can be replaced with null if you do not want to have those options. For example 276;0;1;null;null;null;null=100 would drop a diamond sword 100% of the time. The colour option is in RGB, so for example 50,255,50 would be green. All enchantments can be found here.
The default configuration can be found here.
Commands & Permissions
In the column 'Default,' OP means all opped players get the permission, TRUE means everyone gets the permission, and FALSE means no one gets the permission, by default.
Permission Node |
Description |
Default |
GenerousMobs.Mob.* | Inherits all GenerousMobs.Mob.<MobName> permissions. | TRUE |
GenerousMobs.Mob.<MobName> | Loot money from the specific mob. A list of mobs is available here. | N/A |
GenerousMobs.Reload | Access to /GMobs reload - Reloads the configuration file. | OP |
GenerousMobs.Reset | Access to /GMobs reset - Resets the configuration file. | OP |
Change Log
Click here for the change log.
Statistics
Support the Development
If you find this plugin useful then please support the development of it by donating.
Donations so far:
- None
@YoFuzzy3
Don't add killstreaks lol, he wants like double money if you kill them fast. All it does is spam and players exploit it, keep it as it as. ^_^
You should add custom drops instead lol.
@Clinot
Can you please expand on this? Like how exactly would it work and what configuration options would you like with it?
Great plugin.
I think oct0f1sh's idea is is excellent, and It would be perfect if drop will be also disabled.
Could you add killstreaks?
@oct0f1sh
Sure, I can add that.
@XD_3VIL_M0NKEY
I've never used iConomy before, and I don't recall seeing any API in Vault specifically for this feature in iConomy; so I don't know how I'd do it. If you like you can do my research on it. :)
Can we have a feature to be able to change the currency? So it supports what iConomy sets? My economy is in Silver and Copper.
If it's possible it would be great to have an option to make no money from camping at spawners.
Sweet, very lightweight!