Mob Rewards
Mob Rewards allows you to give money to players when they kill mobs. Optionally, you can decrease the amount of money and experience points they receive for subsequent kills.
Commands
There is only one command provided by Mob Rewards: /mr reload, which reloads the configuration file.
Permissions
mobrewards.reward- reward players for killing mobsmobrewards.admin.reload- reload the configuration file
Configuration
log: false
global:
money_decrease: true
exp_decrease: true
kill_limit: 5
kill_reset: 30
creative_earnings: false
spawner_earnings: true
worlds:
- world
- world_nether
- world_the_end
messages:
reward: "You have earned [REWARD] for [KILL_REASON] this [MOB_TYPE]!"
limit: "Kill a different type of mob to continue receiving rewards"
kill_reasons:
- killing
- smiting
mobs:
BABY_ZOMBIE:
names:
- "mini zombie"
money: 10.0
BLAZE:
money: 10.0
CAVE_SPIDER:
money: 10.0
The configuration is pretty straightforward - you specify a list of mobs that you want to set rewards for. Any that aren't listed will silently be ignored.
You can globally set whether money and experience decreases for each kill, as well as a kill limit. When a mob is killed, the player receives the amount of money (and Minecraft's default experience) for that mob, with a decrease for each subsequent kill. When the kill limit is reached (or the amount of money reaches zero), the player will see a message indicating that they should kill another type of mob to reset the kill limit. The default configuration doesn't set a kill limit (-1 is considered "infinite"), but it's recommended that you set a limit around 5 or so (depending on how much money you pay per mob kill).
You can globally set kill_reset, which is used to reset the kill counter for each mob type. For example, you can kill 2 zombies, wait 6 hours and kill a third, and then not receive any money - with the kill reset, if you set this to 30 (seconds), it will set zombie kills to zero if 30 seconds or more has elapsed since the last zombie kill.
You can also set whether players in creative mode should earn money or experience. This defaults to false if not specified in your configuration. Optionally, you can also restrict earnings to specific worlds.
It is also possible to toggle earnings for mobs that originated from a mob spawner. This will only track mobs that were spawned since the server restarted, as the list is wiped on every restart. Note that stopping earnings from mob spawners may lead to players creating dark area spawners instead, which could lead to performance issues.
If you'd like to set different options for specific mobs, you can add the kill limit, money decrease and experience decrease options to the mob's section.
-
View User Profile
-
Send Message
Posted Aug 5, 2013v0.2.0 has been uploaded and should fix the problems you were both having :)
This version adds `kill_reset` which is used to reset kill counts to zero after a delay. This defaults to 30 seconds if not specified in your config.
-
View User Profile
-
Send Message
Posted Aug 5, 2013@ircopdd
The issue you're having is probably due to `kill_limit` being set to `-1` in your config. If that's the case, set it to something high for the moment. It's already fixed in the latest release which will be uploaded within an hour or so :)
It's recommended to set a kill limit anyway, otherwise the money reward gets progressively smaller without ever really reaching zero.
-
View User Profile
-
Send Message
Posted Aug 5, 2013@Steven_0630
Sounds like you have removed [REWARD] from the messages.reward message. If that's the case, add it back in for now and I'll make sure that's fixed for the next release in a day or two :)This is actually caused by your messages having regular expression characters in them - if you make sure your messages are plain text for the time being, the next release will fix that :)
Thanks
-
View User Profile
-
Send Message
Posted Aug 4, 2013Here's what I get:
2013-08-04 22:24:28 [SEVERE] Could not pass event EntityDeathEvent to MobRewards v0.1.0 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.callEntityDeathEvent(CraftEventFactory.java:329) at net.minecraft.server.v1_6_R2.EntityInsentient.dropDeathLoot(EntityInsentient.java:199) at net.minecraft.server.v1_6_R2.EntityLiving.die(EntityLiving.java:735) at net.minecraft.server.v1_6_R2.EntityLiving.damageEntity(EntityLiving.java:687) at net.minecraft.server.v1_6_R2.EntityMonster.damageEntity(EntityMonster.java:39) at net.minecraft.server.v1_6_R2.EntityZombie.damageEntity(EntityZombie.java:127) at net.minecraft.server.v1_6_R2.EntityHuman.attack(EntityHuman.java:884) at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java:1115) at net.minecraft.server.v1_6_R2.Packet7UseEntity.handle(SourceFile:36) at net.minecraft.server.v1_6_R2.NetworkManager.b(NetworkManager.java:296) at net.minecraft.server.v1_6_R2.PlayerConnection.e(PlayerConnection.java:118) at net.minecraft.server.v1_6_R2.ServerConnection.b(SourceFile:37) at net.minecraft.server.v1_6_R2.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:590) at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:226) at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486) at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419) at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582) Caused by: java.lang.IndexOutOfBoundsException: No group 1 at java.util.regex.Matcher.start(Unknown Source) at java.util.regex.Matcher.appendReplacement(Unknown Source) at java.util.regex.Matcher.replaceAll(Unknown Source) at java.lang.String.replaceAll(Unknown Source) at com.vxnick.mobrewards.MobRewards.onMobDeath(MobRewards.java:125) at sun.reflect.GeneratedMethodAccessor300.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 21 more
-
View User Profile
-
Send Message
Posted Aug 4, 2013@ircopdd
Please upload your config somewhere and link it here. This plugin requires Vault if you don't already have that installed. Also, check the server log to see if there are any errors.
-
View User Profile
-
Send Message
Posted Aug 4, 2013no work......
no money
no messages