Changed the hasReadRules list to be a set to avoid duplicate entries.
parent
efb8545e56
commit
bb3f409be5
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue