1
0
mirror of https://e.coding.net/circlecloud/SimpleProtect.git synced 2024-12-27 07:39:03 +00:00

增强防爆功能...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092 2016-01-05 21:22:49 +08:00
parent 0f3f81f575
commit eca70c088a

View File

@ -2,12 +2,17 @@ package cn.citycraft.SimpleProtect.listen;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.block.BlockExplodeEvent;
import org.bukkit.event.entity.EntityExplodeEvent;
public class Explosion implements Listener {
@EventHandler
public void onExplosion(final BlockExplodeEvent event) {
event.blockList().clear();
}
@EventHandler
public void onExplosion(EntityExplodeEvent event) {
event.blockList().clear();
}
@EventHandler
public void onExplosion(final EntityExplodeEvent event) {
event.blockList().clear();
}
}