Skip to content

Commit 8c9dc15

Browse files
committed
Restrict /whois and /whereis to permanent admins
1 parent bfb0561 commit 8c9dc15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript/features/account/account_commands.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ export class AccountCommands {
5050
// /whereis [player]
5151
server.commandManager.buildCommand('whereis')
5252
.description(`Displays information about a player's whereabouts.`)
53-
.restrict(Player.LEVEL_ADMINISTRATOR)
53+
.restrict(Player.LEVEL_ADMINISTRATOR, /* restrictTemporary= */ true)
5454
.parameters([ { name: 'player', type: CommandBuilder.kTypePlayer } ])
5555
.build(AccountCommands.prototype.onWhereisCommand.bind(this));
5656

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

0 commit comments

Comments
 (0)