Dieser Commit ist enthalten in:
Ursprung
c1493be6c1
Commit
9774b28d57
@ -11,14 +11,11 @@ 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;
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren