Problem with MobSpawner
Mundo-Minecraft opened this issue · 16 comments
I've had a problem with the mobspawners. The mobs do not give experience or objects. Out of towns with towny.
If I turn off compatibility with towny, it does not work in cities with towny either.
Greetings.
Okay, I'll try that Although if I remove the plugin is solved. And if enabled towny support in cities works properly. If I disable it, mobspawners in cities behave like outside, they do not give xp or objects.
[22:04:43] [Server thread/INFO]: [MobHunting][Debug] Permission 'mobhunting.mobs.*' or 'mobhunting.mobs.CAVE_SPIDER' not set, defaulting to True.�[m
[22:04:43] [Server thread/INFO]: [MobHunting][Debug] KillBlocked CAVE_SPIDER(2745142): Mob has MH:blocked meta (probably spawned from a mob spawner, an egg or a egg-dispenser )�[m
[22:04:43] [Server thread/INFO]: [MobHunting][Debug] Trying to remove natural drops�[m
[22:04:43] [Server thread/INFO]: [MobHunting][Debug] Trying to remove XP drops�[m
Permission 'mobhunting.mobs.*??
Okay its Mobhunting.
How is your settings for
Try-to-cancel-natarally-drops and try-to-cancel-xp-drops? If true the drops will be cancelled.
And are you on the SNAPSHOT version i published for you? Type /mh vertion and give the build no.
Please install SNAPSHOT 328 or newer
http://jenkins.lindegaard.one:8180/job/MobHunting/
I have done a lot of improvements and changed the config.yml to give you more settings to let you control when items and xp if removed and when not.
Please help me testing
I just upgraded to the latest b330 version I have reviewed the config and disabled everything that can block the drop xp and drop item. In the mobspawners continues without drop anything.
If a moderator is in god mode then drop items and xp from the mobspawners
Killing mobs in a mobspawner without god mode
[11:17:25] [Server thread/INFO]: [MobHunting][Debug] ======================== New kill ==========================�[m
[11:17:25] [Server thread/INFO]: [MobHunting][Debug] MarcosStar killed a Skeleton (Minecraft)�[m
[11:17:25] [Server thread/INFO]: [MobHunting][Debug] Permission 'mobhunting.mobs.*' or 'mobhunting.mobs.SKELETON' not set, defaulting to True.�[m
[11:17:25] [Server thread/INFO]: [MobHunting][Debug] KillBlocked SKELETON(11820): Mob has MH:blocked meta (probably spawned from a mob spawner, an egg or a egg-dispenser )�[m
[11:17:25] [Server thread/INFO]: [MobHunting][Debug] Removing naturally dropped items�[m
[11:17:25] [Server thread/INFO]: [MobHunting][Debug] Removing naturally dropped XP�[m
[11:17:25] [Server thread/INFO]: [MobHunting][Debug] ======================= kill ended =========================�[m
Killing mobs in a mobspawner with god mode
[11:19:17] [Server thread/INFO]: [MobHunting][Debug] ======================== New kill ==========================�[m
[11:19:17] [Server thread/INFO]: [MobHunting][Debug] MarcosStar killed a Skeleton (Minecraft)�[m
[11:19:17] [Server thread/INFO]: [MobHunting][Debug] KillBlocked: MarcosStar is in God mode�[m
[11:19:17] [Server thread/INFO]: [MobHunting][Debug] ======================= kill ended =========================�[m
Thx.
I understand the confusion I have changed the settings and the code:
Install Build 332 and check these
- XP and Item drops will be disabled when the player is in god mode. (Check disable-natural-item-drops and disable-natural-xp-drops)
- New settings to disable money, normal item drops and normal xp drops from mob spawners (disabled_money-rewards_from_mobspawners_and_eggs, disable_naturally_dropped_items_from_mobspawners_and_eggs, disable_naturally_dropped_xp_from_mobspawners_and_egg)
Already give xp and items, but even having this option as well
Can the players earn money on mobspawners, eggs and eggs from Dispensers?
Allow_mobspawners_and_eggs: false
Gives money and achievements in mobspawners
And once penalized by grinding no longer gives xp, but if items in mobspawners
There is no "Allow_mobspawners_and_eggs" in latest snapshot are you on latest snapshot????
But if you set "disabled_money-rewards_from_mobspawners_and_eggs: false" you should be able to get money rewards, unless you have blacklisted the area.
The problem is that even with the "disabled_money-rewards_from_mobspawners_and_eggs: true" line the mobspawners give rewards until it detects grinding and blocks it.
I use the build 333
I found the bug. When I changed from "allow" ... to "disable" i for got to change
if (!MobHunting.getConfigManager().disableMoneyRewardsFromMobSpawnersEggsAndDispensers) event.getEntity().setMetadata("MH:blocked", new FixedMetadataValue(MobHunting.getInstance(), true));
to
if (MobHunting.getConfigManager().disableMoneyRewardsFromMobSpawnersEggsAndDispensers) event.getEntity().setMetadata("MH:blocked", new FixedMetadataValue(MobHunting.getInstance(), true));
Which make a big difference :-)
Also I have changed the "disabled_money-rewards_from_mobspawners_and_eggs" to "disable_money_rewards_from_mobspawners_and_eggs" in build 334, so you might need to change the setting once more.