Exp not dropping
zzkanezz2 opened this issue ยท 17 comments
CraftBukkit version: #2455 1.4.2 Beta Build
Plugin list: http://i48.tinypic.com/168izc1.png
BattleKits version: Latest R: BattleKits 1.3.3 (Security update) for CB 1.4.2-R0.2 1 day ago
Config file link (pastebin.com): http://pastebin.com/08URGpZn
Server log link (pastebin.com): http://pastebin.com/yM51MnWd
When does the error occur? When I installed battlekits
Steps to reproduce error: Just have exp drops set to true and disabled..
Any other relevant info: Exp just isn't dropping when it should be in the config, I've tried toggling some of the other plugins and removing but I think it's actually just the battlekits plugin. Hopefully it can get sorted thanks!
I can't confirm this with the latest dev build. Try installing this build: http://www.filedropper.com/battlekits
Your config looks ok. If you modify it, make sure you do /bk reload otherwise it will simply get overwritten when you next do a /reload or restart the server.
How are you testing it?
I'll make you a build with the xp functionality entirely disabled: http://www.filedropper.com/battlekitsxpforced
If that build doesn't work, nothing will.
The thing that could be preventing it would be essentials but I've disabled all flags and what not to see if anything was causing it, and also took out a few plugins like no drops ect. to see if that would fix the issue. Tried opposite of false to try. I'll give that a try.
When I install that one and the previous one, players can select any kit, such as the VIP only kits. Seems to allow them to use them all.
Damn, just found the bug. Thanks for telling me. Fixed.
New build: http://www.filedropper.com/battlekitsxpforced_1
Okay permissions fix, back to default BattleKits.use. very nice. Testing experience now.
Yes, all xp should be available in the build I sent you, regardless of whether you've disabled it in the config or not.
I commented all the xp code out:
@EventHandler
public void death(PlayerDeathEvent e) {
if (plugin.getConfig().getBoolean("settings.disable-player-xp-drop"))
//e.setDroppedExp(0);
if (plugin.getConfig().getBoolean("settings.disable-player-drops-on-death"))
e.getDrops().clear();
if (plugin.getConfig().getBoolean("settings.hide-death-messages"))
e.setDeathMessage(null);
}
@EventHandler
public void mobDeath(EntityDeathEvent e) {
if (!(e.getEntity() instanceof Player)) {
if (plugin.getConfig().getBoolean("settings.disable-mob-xp-drop")) {
//e.setDroppedExp(0);
}
}
}
@EventHandler
public void blockBreak(BlockBreakEvent e) {
if (plugin.getConfig().getBoolean("settings.disable-block-xp"))
//e.setExpToDrop(0);
if (plugin.getConfig().getBoolean("settings.disable-block-break"))
e.setCancelled(true);
}