geforkt von SteamWar/BungeeCore
Update WhoisCommand
Dieser Commit ist enthalten in:
Ursprung
e2f2968813
Commit
abf4224788
@ -44,7 +44,7 @@ public class WhoisCommand extends SWCommand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Register(description = "WHOIS_USAGE")
|
@Register(description = "WHOIS_USAGE")
|
||||||
public void genericCommand(ProxiedPlayer player, @Mapper("player") String target, @OptionalValue("") @StaticValue({"-all", "-a", ""}) String displayAll) {
|
public void genericCommand(ProxiedPlayer player, @Mapper("player") String target, @OptionalValue("") @StaticValue(value = {"", "-all", "-a"}, allowISE = true) boolean all) {
|
||||||
SteamwarUser user = SteamwarUser.get(target);
|
SteamwarUser user = SteamwarUser.get(target);
|
||||||
if (user == null) {
|
if (user == null) {
|
||||||
try {
|
try {
|
||||||
@ -64,11 +64,9 @@ public class WhoisCommand extends SWCommand {
|
|||||||
|
|
||||||
if (user == null) {
|
if (user == null) {
|
||||||
Message.send("UNKNOWN_PLAYER", player);
|
Message.send("UNKNOWN_PLAYER", player);
|
||||||
return;
|
} else {
|
||||||
|
sendUserinfo(player, user, all);
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean all = displayAll.contains("-");
|
|
||||||
sendUserinfo(player, user, all);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Mapper(value = "player", local = true)
|
@Mapper(value = "player", local = true)
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren