Dieser Commit ist enthalten in:
Ursprung
bfb394c609
Commit
2baacdb00f
@ -12,12 +12,11 @@ import org.bukkit.event.block.BlockFadeEvent;
|
|||||||
public class BlockFadeListener implements Listener {
|
public class BlockFadeListener implements Listener {
|
||||||
|
|
||||||
public BlockFadeListener() {
|
public BlockFadeListener() {
|
||||||
new StateDependentListener(ArenaMode.All, FightState.All, this);
|
new StateDependentListener(Config.DisableSnowMelt, FightState.All, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void onBlockFade(BlockFadeEvent event) {
|
public void onBlockFade(BlockFadeEvent event) {
|
||||||
if(!Config.DisableSnowMelt) return;
|
|
||||||
if (event.getBlock().getType() == Material.SNOW_BLOCK || event.getBlock().getType() == Material.SNOW || event.getBlock().getType() == Material.ICE) {
|
if (event.getBlock().getType() == Material.SNOW_BLOCK || event.getBlock().getType() == Material.SNOW || event.getBlock().getType() == Material.ICE) {
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren