Advertisement
Guest User

Untitled

a guest
Jan 21st, 2018
206
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 onDisable() {
  2. getLogger().info("AfkSaved is disabled");
  3. for(UUID player: oldlocation.keySet())
  4. {
  5. UUID id = player;
  6. Location l = oldlocation.get(id);
  7.  
  8. if(!(locations.contains(id.toString())))
  9. {
  10. locations.set("Locations."+id.toString() + ".World", l.getWorld().toString());
  11. locations.set("Locations."+id.toString() + ".X", l.getX());
  12. locations.set("Locations."+id.toString() + ".Y", l.getY());
  13. locations.set("Locations."+id.toString() + ".Z", l.getZ());
  14. }
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement