Skip to content
Permalink
Browse files
Restrict /whois and /whereis to permanent admins
  • Loading branch information
RussellLVP committed Jul 31, 2020
1 parent bfb0561 commit 8c9dc15eb4707673600cc50f5948fa7f1eba6b50
Showing 1 changed file with 2 additions and 2 deletions.
@@ -50,14 +50,14 @@ export class AccountCommands {
// /whereis [player]
server.commandManager.buildCommand('whereis')
.description(`Displays information about a player's whereabouts.`)
.restrict(Player.LEVEL_ADMINISTRATOR)
.restrict(Player.LEVEL_ADMINISTRATOR, /* restrictTemporary= */ true)
.parameters([ { name: 'player', type: CommandBuilder.kTypePlayer } ])
.build(AccountCommands.prototype.onWhereisCommand.bind(this));

// /whois [player]
server.commandManager.buildCommand('whois')
.description(`Displays information about a player's identity.`)
.restrict(Player.LEVEL_ADMINISTRATOR)
.restrict(Player.LEVEL_ADMINISTRATOR, /* restrictTemporary= */ true)
.parameters([ { name: 'player', type: CommandBuilder.kTypePlayer } ])
.build(AccountCommands.prototype.onWhoisCommand.bind(this));
}

0 comments on commit 8c9dc15

Please sign in to comment.