Advertisement
ipwxy

deleteIgnore

Jul 5th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.55 KB | None | 0 0
  1. public void deleteIgnore(Long username) {
  2.     String name = Misc.formatName(Misc.longToString(username));
  3.  
  4.     if(name.equals(player.getUsername())) {
  5.         return;
  6.     }
  7.  
  8.     if (ignoreList.contains(username)) {
  9.         ignoreList.remove(username);
  10.         sendDeleteIgnore(username);
  11.         updateLists(true);
  12.        
  13.         if (status.equals(PrivateChatStatus.ON)) {
  14.             Player ignored = World.getPlayerByName(name);
  15.             if (ignored != null)
  16.                 ignored.getRelations().updateLists(true);
  17.         }
  18.     } else {
  19.         player.getPacketSender().sendMessage("This player is not on your ignore list!");
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement