Fix the damageToLevel bug
This commit is contained in:
parent
71964b7bca
commit
43524465c7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user