Advertisement
Guest User

Untitled

a guest
Feb 3rd, 2015
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. public void update() {
  2. Session session = null;
  3. for(Session s : Bootloader.getSessionManager().getSessions()) {
  4. if(s.getPlayerInstance().getInformation().getId() == id) {
  5. if(this.badges != null) {
  6. session.writeMessage(new BadgeUpdateWriter(badges, this.count()));
  7. }
  8. }
  9. }
  10.  
  11. if(session == null) {
  12. logger.error("!!! BadgeComponents Session Was Null In Update() Method!!!");
  13. }
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement