Fix Freeze in 1.12 #182
@ -54,16 +54,14 @@ public class CommandFreeze extends RegionToggleCommand {
|
||||
|
||||
@EventHandler
|
||||
public void onEntitySpawn(EntitySpawnEvent e) {
|
||||
if (Region.getRegion(e.getLocation()).isFreeze()) {
|
||||
if (!Region.getRegion(e.getLocation()).isFreeze()) return;
|
||||
e.setCancelled(true);
|
||||
if (Core.getVersion() == 15) return;
|
||||
if (e.getEntityType() == EntityType.PRIMED_TNT) {
|
||||
if (Core.getVersion() == 12 && e.getEntityType() == EntityType.PRIMED_TNT) {
|
||||
Bukkit.getScheduler().runTaskLater(BauSystem.getPlugin(), () -> {
|
||||
e.getLocation().getBlock().setType(Material.TNT, false);
|
||||
}, 1L);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void onBlockCanBuild(BlockCanBuildEvent e) {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren