sendData(caller, "XP Total: ", subject.getExperience());
Location l = subject.getLocation();
sendData(caller, "Position: ", String.format("X: %.2f Y: %.2f Z: %.2f Pitch: %.2f Yawn: %.2f", l.getX(), l.getY(), l.getZ(), l.getRotation(), l.getPitch()));
sendData(caller, "World: ", subject.getWorld().getFqName());
Warp home = Canary.warps().getHome(subject.getName());
if (home != null) {
l = home.getLocation();
sendData(caller, "Home: ", String.format("X: %.2f Y: %.2f Z: %.2f", l.getX(), l.getY(), l.getZ()));
}
else {
sendData(caller, "Home: ", "Not set");
}
}
else if (args.length == 2) {
OfflinePlayer oSubject = Canary.getServer().getOfflinePlayer(args[1]);
if (oSubject != null) {
caller.message(TextFormat.GREEN + oSubject.getName() + "'s Offline info:");
sendData(caller, "First Joined: ", oSubject.getFirstJoined());
sendData(caller, "Time Played: ", ToolBox.getTimeUntil(oSubject.getTimePlayed()));
sendData(caller, "Muted: ", oSubject.isMuted());
sendData(caller, "Prefix: ", oSubject.getPrefix());
sendData(caller, "Primary Group: ", oSubject.getGroup().getName());
sendData(caller, "Other Groups: ", oSubject.getPlayerGroups());
Position l = oSubject.getPosition();
sendData(caller, "Position: ", String.format("X: %.2f Y: %.2f Z: %.2f", l.getX(), l.getY(), l.getZ()));
sendData(caller, "World: ", oSubject.getWorld().getFqName());
Warp home = Canary.warps().getHome(oSubject.getName());
if (home != null) {
l = home.getLocation();
sendData(caller, "Home: ", String.format("X: %.2f Y: %.2f Z: %.2f", l.getX(), l.getY(), l.getZ()));
}
else {
sendData(caller, "Home: ", "Not set");
}