Changed the hasReadRules list to be a set to avoid duplicate entries.

master
Joey Hines 2018-10-24 08:55:24 -05:00
parent efb8545e56
commit bb3f409be5
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ import xyz.etztech.minecraftmanager.MCMUtil;
import xyz.etztech.minecraftmanager.MinecraftManager; import xyz.etztech.minecraftmanager.MinecraftManager;
import java.util.Arrays; import java.util.Arrays;
import java.util.ArrayList; import java.util.LinkedHashSet;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -23,7 +23,7 @@ public class CommandPreprocessListener implements Listener {
MinecraftManager plugin; MinecraftManager plugin;
private ArrayList<String> hasReadRules = new ArrayList<>(); private LinkedHashSet<String> hasReadRules = new LinkedHashSet<>();
public CommandPreprocessListener(MinecraftManager plugin) { public CommandPreprocessListener(MinecraftManager plugin) {