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