Add speed info to whois (#2952)

This commit is contained in:
Joel Otero 2020-03-13 09:10:44 +01:00 committed by GitHub
parent 2124cce603
commit f20572b30c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -57,6 +57,7 @@ public class Commandwhois extends EssentialsCommand {
sender.sendMessage(tl("whoisGod", (user.isGodModeEnabled() ? tl("true") : tl("false"))));
sender.sendMessage(tl("whoisOp", (user.getBase().isOp() ? tl("true") : tl("false"))));
sender.sendMessage(tl("whoisFly", user.getBase().getAllowFlight() ? tl("true") : tl("false"), user.getBase().isFlying() ? tl("flying") : tl("notFlying")));
sender.sendMessage(tl("whoisSpeed", user.getBase().isFlying() ? user.getBase().getFlySpeed() : user.getBase().getWalkSpeed()));
if (user.isAfk()) {
sender.sendMessage(tl("whoisAFKSince", tl("true"), DateUtil.formatDateDiff(user.getAfkSince())));
} else {

View File

@ -617,6 +617,7 @@ whoisAFKSince=\u00a76 - AFK\:\u00a7r {0} (Since {1})
whoisBanned=\u00a76 - Banned\:\u00a7r {0}
whoisExp=\u00a76 - Exp\:\u00a7r {0} (Level {1})
whoisFly=\u00a76 - Fly mode\:\u00a7r {0} ({1})
whoisSpeed=\u00a76 - Speed\:\u00a7r {0}
whoisGamemode=\u00a76 - Gamemode\:\u00a7r {0}
whoisGeoLocation=\u00a76 - Location\:\u00a7r {0}
whoisGod=\u00a76 - God mode\:\u00a7r {0}