Fix walking to enemy
Dieser Commit ist enthalten in:
Ursprung
efdfbaef43
Commit
7fac01c8ab
@ -2,6 +2,7 @@ package de.steamwar.misslewars.listener;
|
||||
|
||||
import de.steamwar.misslewars.Config;
|
||||
import de.steamwar.misslewars.FightState;
|
||||
import de.steamwar.misslewars.MissileWars;
|
||||
import org.bukkit.GameMode;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.entity.Player;
|
||||
@ -26,7 +27,7 @@ public class ArenaListener extends BasicListener {
|
||||
|
||||
assert location != null;
|
||||
if(location.getY() < Config.ArenaMinY){
|
||||
if(p.getGameMode() == GameMode.SPECTATOR)
|
||||
if(p.getGameMode() == GameMode.SPECTATOR || MissileWars.getFightState() == FightState.WAITING)
|
||||
p.teleport(e.getFrom());
|
||||
else
|
||||
p.damage(20.0f);
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren