From 18e1265afd100ca92ff2efa04767aef87fcfe5bf Mon Sep 17 00:00:00 2001 From: Shaun Bennett Date: Sat, 16 Aug 2014 15:55:29 -0500 Subject: [PATCH] Remove join list, adjust intellij import style to be more like eclipse --- Plugins/.idea/codeStyleSettings.xml | 14 ++++++++++++++ .../src/mineplex/mapparser/MapData.java | 16 +--------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Plugins/.idea/codeStyleSettings.xml b/Plugins/.idea/codeStyleSettings.xml index 7f6b2dd59..0814d2387 100644 --- a/Plugins/.idea/codeStyleSettings.xml +++ b/Plugins/.idea/codeStyleSettings.xml @@ -6,6 +6,20 @@ diff --git a/Plugins/Mineplex.MapParser/src/mineplex/mapparser/MapData.java b/Plugins/Mineplex.MapParser/src/mineplex/mapparser/MapData.java index 1217b9f39..db49e836e 100644 --- a/Plugins/Mineplex.MapParser/src/mineplex/mapparser/MapData.java +++ b/Plugins/Mineplex.MapParser/src/mineplex/mapparser/MapData.java @@ -19,14 +19,12 @@ public class MapData public String MapName = "null"; public String MapCreator = "null"; - public HashSet WhiteList; public HashSet BuildList; public MapData(String mapFolder) { MapFolder = mapFolder; - WhiteList = new HashSet(); BuildList = new HashSet(); if ((new File(MapFolder + File.separator + "Map.dat")).exists()) @@ -68,11 +66,6 @@ public class MapData { GameType = GameType.valueOf(tokens[1] == null ? "Null" : tokens[1]); } - else if (tokens[0].equalsIgnoreCase("WHITE_LIST")) - { - for (String cur : tokens[1].split(",")) - WhiteList.add(cur); - } else if (tokens[0].equalsIgnoreCase("BUILD_LIST")) { for (String cur : tokens[1].split(",")) @@ -103,13 +96,6 @@ public class MapData out.write("\n"); out.write("GAME_TYPE:"+GameType); - String whiteList = ""; - for (String cur : WhiteList) - whiteList += cur + ","; - - out.write("\n"); - out.write("WHITE_LIST:"+whiteList); - String buildList = ""; for (String cur : BuildList) buildList += cur + ","; @@ -132,7 +118,7 @@ public class MapData public boolean CanJoin(Player player) { - return BuildList.contains(player.getName()) || WhiteList.contains(player.getName()) || player.isOp(); + return true; } public boolean CanRename(Player player)