Anti_Ice_Melt #284
@ -92,6 +92,7 @@ public class FightSystem extends JavaPlugin {
|
|||||||
new EnterHandler();
|
new EnterHandler();
|
||||||
new TechHider();
|
new TechHider();
|
||||||
new FightWorld();
|
new FightWorld();
|
||||||
|
new BlockFade();
|
||||||
|
|
||||||
new WinconditionAllDead();
|
new WinconditionAllDead();
|
||||||
new WinconditionCaptainDead();
|
new WinconditionCaptainDead();
|
||||||
|
23
FightSystem_Main/src/de/steamwar/fightsystem/listener/BlockFade.java
Normale Datei
23
FightSystem_Main/src/de/steamwar/fightsystem/listener/BlockFade.java
Normale Datei
@ -0,0 +1,23 @@
|
|||||||
|
package de.steamwar.fightsystem.listener;
|
||||||
|
|
||||||
|
import de.steamwar.fightsystem.ArenaMode;
|
||||||
|
import de.steamwar.fightsystem.states.FightState;
|
||||||
|
import de.steamwar.fightsystem.states.StateDependentListener;
|
||||||
|
import org.bukkit.Material;
|
||||||
|
import org.bukkit.event.EventHandler;
|
||||||
|
import org.bukkit.event.Listener;
|
||||||
|
import org.bukkit.event.block.BlockFadeEvent;
|
||||||
|
|
||||||
|
public class BlockFade implements Listener {
|
||||||
|
|
||||||
|
public BlockFade() {
|
||||||
|
new StateDependentListener(ArenaMode.All, FightState.All, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@EventHandler
|
||||||
|
public void blockFade(BlockFadeEvent event) {
|
||||||
|
if(event.getBlock().getType() == Material.ICE) {
|
||||||
|
event.setCancelled(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
In neuem Issue referenzieren
Einen Benutzer sperren