Dragonegg Teleport #356
@ -10,15 +10,12 @@ import org.bukkit.event.block.BlockFromToEvent;
|
||||
|
||||
public class BlockFromToListener implements Listener {
|
||||
|
||||
public BlockFromToListener(){
|
||||
|
||||
public BlockFromToListener(){
|
||||
new StateDependentListener(ArenaMode.All, FightState.All, this);
|
||||
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void onBlockFromTo(BlockFromToEvent event) {
|
||||
|
||||
public void onBlockFromTo(BlockFromToEvent event) {
|
||||
if (Fight.getBlueTeam().getSchemRegion().inRegion(event.getBlock())
|
||||
&& Fight.getBlueTeam().getSchemRegion().inRegion(event.getToBlock())) {
|
||||
return;
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren