public Thought getThought(String thoughtName) { for (Thought t : thoughts) if (t.getName().equalsIgnoreCase(thoughtName)) { return t; } return null; }
public void removeThought(String name) { for (Thought t : thoughts) if (t.getName().equalsIgnoreCase(name)) { thoughts.remove(t); plugin.getConfiguration().removeDreamPlayerThought(playerName, t.getName()); break; } }