Guest User

Untitled

a guest
Oct 20th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.46 KB | None | 0 0
  1. for (MailDB myDB : maillist){
  2.     if(myDB.getReceiver().equals(player.getName())) {
  3.         mmo.sendMessage(player, "&aFrom: &c%1$s &a- &c%2$s", myDB.getSender(), myDB.getMessage());
  4.         myDB.setRead(true);
  5.         maillist.remove(myDB);
  6.     }
  7. }
  8.  
  9. Error:
  10.  
  11. 20:29:50 [SEVERE] java.util.ConcurrentModificationException
  12. 20:29:50 [SEVERE]       at java.util.ArrayList$Itr.checkForComodification(Unknown Source)
  13. 20:29:50 [SEVERE]       at java.util.ArrayList$Itr.next(Unknown Source)
Add Comment
Please, Sign In to add comment