Update src/com/garbagemule/MobArena/ArenaListener.java
Fix players being able to issue commands when spectating
This commit is contained in:
@@ -931,7 +931,7 @@ public class ArenaListener
|
|||||||
public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event) {
|
public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event) {
|
||||||
Player p = event.getPlayer();
|
Player p = event.getPlayer();
|
||||||
|
|
||||||
if (event.isCancelled() || (!arena.inArena(p) && !arena.inLobby(p))) {
|
if (event.isCancelled() || (!arena.inArena(p) && !arena.inSpec(p) && !arena.inLobby(p))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user