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 BlockFadeListener() {
|
||||
new StateDependentListener(ArenaMode.All, FightState.All, this);
|
||||
new StateDependentListener(Config.DisableSnowMelt, FightState.All, this);
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
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) {
|
||||
event.setCancelled(true);
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren