File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/main/java/com/gmail/goosius/siegewar/utils Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 88import com .gmail .goosius .siegewar .objects .BattleSession ;
99import com .gmail .goosius .siegewar .objects .Siege ;
1010import com .gmail .goosius .siegewar .settings .SiegeWarSettings ;
11- import com .palmergames .bukkit .towny .TownyAPI ;
1211import com .palmergames .bukkit .towny .TownySettings ;
1312import com .palmergames .bukkit .towny .TownyUniverse ;
1413import com .palmergames .bukkit .towny .object .Resident ;
1514import com .palmergames .bukkit .towny .object .Translatable ;
1615import com .palmergames .util .TimeTools ;
1716
1817import org .bukkit .Bukkit ;
18+ import org .bukkit .GameMode ;
1919import org .bukkit .Location ;
2020import org .bukkit .entity .Player ;
2121import org .bukkit .potion .PotionEffect ;
@@ -43,7 +43,9 @@ public static void evaluateWarSickness() {
4343 Location location = player .getLocation ();
4444
4545 // Players immune to war nausea won't be punished
46- if (player .isOp () || player .hasPermission (SiegeWarPermissionNodes .SIEGEWAR_IMMUNE_TO_WAR_NAUSEA .getNode ()))
46+ if (player .isOp () ||
47+ player .hasPermission (SiegeWarPermissionNodes .SIEGEWAR_IMMUNE_TO_WAR_NAUSEA .getNode ()) ||
48+ player .getGameMode ().equals (GameMode .SPECTATOR ))
4749 continue ;
4850
4951 // Check if in a siege zone
You can’t perform that action at this time.
0 commit comments