diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 09b50a577..8eef9a449 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -11,7 +11,6 @@ - @@ -70,8 +69,8 @@ - - + + @@ -120,8 +119,8 @@ - - + + @@ -134,8 +133,8 @@ - - + + @@ -765,7 +764,7 @@ - + 1411382351159 @@ -935,11 +934,15 @@ 1413627152131 1413627152131 - - @@ -1037,7 +1040,6 @@ - @@ -1062,7 +1064,8 @@ - @@ -1438,8 +1441,8 @@ - - + + @@ -1462,8 +1465,8 @@ - - + + @@ -1490,8 +1493,8 @@ - - + + diff --git a/PlotSquared/src/com/intellectualcrafters/plot/listeners/PlayerEvents.java b/PlotSquared/src/com/intellectualcrafters/plot/listeners/PlayerEvents.java index 41f482a0f..bd5090d50 100644 --- a/PlotSquared/src/com/intellectualcrafters/plot/listeners/PlayerEvents.java +++ b/PlotSquared/src/com/intellectualcrafters/plot/listeners/PlayerEvents.java @@ -140,11 +140,11 @@ public class PlayerEvents implements Listener { List creative = Arrays.asList("creative" , "cr", "1"); List survival = Arrays.asList("survival" , "su", "0"); List adventure = Arrays.asList("adventure", "ad", "2"); - if (creative.equals(str)) { + if (creative.contains(str)) { return GameMode.CREATIVE; - } else if (survival.equals(str)) { + } else if (survival.contains(str)) { return GameMode.SURVIVAL; - } else if (adventure.equals(str)) { + } else if (adventure.contains(str)) { return GameMode.ADVENTURE; } else { return GameMode.SURVIVAL;