Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void ChangeCurrentStatus(Presence.Type Status, String StatusMsg)
- {
- // Create the presence object with default availability
- Presence presence = new Presence(Status);
- // Set the status message
- presence.setStatus(StatusMsg);
- // Set the highest priority
- presence.setPriority(24);
- // Set available presence mode
- presence.setMode(Presence.Mode.available);
- // Send the presence packet through the connection
- Connection.sendPacket(presence);
- }
Add Comment
Please, Sign In to add comment