Guest User

Untitled

a guest
Oct 22nd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. private void ChangeCurrentStatus(Presence.Type Status, String StatusMsg)
  2. {
  3. // Create the presence object with default availability
  4. Presence presence = new Presence(Status);
  5.  
  6. // Set the status message
  7. presence.setStatus(StatusMsg);
  8.  
  9. // Set the highest priority
  10. presence.setPriority(24);
  11.  
  12. // Set available presence mode
  13. presence.setMode(Presence.Mode.available);
  14.  
  15. // Send the presence packet through the connection
  16. Connection.sendPacket(presence);
  17.  
  18. }
Add Comment
Please, Sign In to add comment