SteamWar/FightSystem
Archiviert
13
1

Added Format
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
MoBrot 2022-07-03 14:50:25 +02:00
Ursprung c1493be6c1
Commit 9774b28d57

Datei anzeigen

@ -10,15 +10,12 @@ import org.bukkit.event.block.BlockFromToEvent;
public class BlockFromToListener implements Listener { public class BlockFromToListener implements Listener {
public BlockFromToListener(){ public BlockFromToListener(){
new StateDependentListener(ArenaMode.All, FightState.All, this); new StateDependentListener(ArenaMode.All, FightState.All, this);
} }
@EventHandler @EventHandler
public void onBlockFromTo(BlockFromToEvent event) { public void onBlockFromTo(BlockFromToEvent event) {
if (Fight.getBlueTeam().getSchemRegion().inRegion(event.getBlock()) if (Fight.getBlueTeam().getSchemRegion().inRegion(event.getBlock())
&& Fight.getBlueTeam().getSchemRegion().inRegion(event.getToBlock())) { && Fight.getBlueTeam().getSchemRegion().inRegion(event.getToBlock())) {
return; return;