forked from SteamWar/SteamWar
Fix WhoisCommand.whois
This commit is contained in:
@@ -50,7 +50,7 @@ public class WhoisCommand extends SWCommand {
|
|||||||
|
|
||||||
@Register(description = "WHOIS_USAGE")
|
@Register(description = "WHOIS_USAGE")
|
||||||
public void whois(Chatter sender, long id, WhoisParameterTypes... parameters) {
|
public void whois(Chatter sender, long id, WhoisParameterTypes... parameters) {
|
||||||
if(!sender.user().hasPerm(UserPerm.ADMINISTRATION)) {
|
if(!sender.user().hasPerm(UserPerm.ADMINISTRATION) && !sender.user().hasPerm(UserPerm.PREFIX_DEVELOPER)) {
|
||||||
sender.system("UNKNOWN_PLAYER");
|
sender.system("UNKNOWN_PLAYER");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user