Fix the damageToLevel bug

This commit is contained in:
Sam 2017-02-24 20:51:40 +00:00
parent 71964b7bca
commit 43524465c7

View File

@ -34,6 +34,7 @@ import org.bukkit.inventory.BrewerInventory;
import org.bukkit.plugin.java.JavaPlugin;
import mineplex.core.common.util.UtilWorld;
import mineplex.minecraft.game.core.damage.CustomDamageEvent;
public class WorldListeners implements Listener
{
@ -57,6 +58,12 @@ public class WorldListeners implements Listener
new File(world.getWorldFolder().getPath() + File.separator + "stats" + File.separator + uuid + ".json").delete();
}, 20);
}
@EventHandler
public void customDamage(CustomDamageEvent event)
{
event.SetDamageToLevel(false);
}
@EventHandler(priority = EventPriority.LOWEST)
public void blockBreak(BlockBreakEvent event)