From bb3f409be58adda5a4df95be6993b2ef30e1c3d0 Mon Sep 17 00:00:00 2001 From: Joey Hines Date: Wed, 24 Oct 2018 08:55:24 -0500 Subject: [PATCH] Changed the hasReadRules list to be a set to avoid duplicate entries. --- .../minecraftmanager/listeners/CommandPreprocessListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/xyz/etztech/minecraftmanager/listeners/CommandPreprocessListener.java b/src/main/java/xyz/etztech/minecraftmanager/listeners/CommandPreprocessListener.java index 736d6bc..e74a388 100644 --- a/src/main/java/xyz/etztech/minecraftmanager/listeners/CommandPreprocessListener.java +++ b/src/main/java/xyz/etztech/minecraftmanager/listeners/CommandPreprocessListener.java @@ -15,7 +15,7 @@ import xyz.etztech.minecraftmanager.MCMUtil; import xyz.etztech.minecraftmanager.MinecraftManager; import java.util.Arrays; -import java.util.ArrayList; +import java.util.LinkedHashSet; import java.util.List; import java.util.Map; @@ -23,7 +23,7 @@ public class CommandPreprocessListener implements Listener { MinecraftManager plugin; - private ArrayList hasReadRules = new ArrayList<>(); + private LinkedHashSet hasReadRules = new LinkedHashSet<>(); public CommandPreprocessListener(MinecraftManager plugin) {