mirror of
https://e.coding.net/circlecloud/SimpleProtect.git
synced 2024-11-22 01:49:03 +00:00
增强防爆功能...
Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
parent
0f3f81f575
commit
eca70c088a
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user