Skip to content

Commit

Permalink
Restrict /whois and /whereis to permanent admins
Browse files Browse the repository at this point in the history
  • Loading branch information
RussellLVP committed Jul 31, 2020
1 parent bfb0561 commit 8c9dc15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions javascript/features/account/account_commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 8c9dc15

Please sign in to comment.