Wrong locale string for ban cmds

This commit is contained in:
Vortrex
2022-12-18 15:53:00 -06:00
parent 8b94a4160b
commit 2496d569da

View File

@@ -62,7 +62,7 @@ function accountBanCommand(command, params, client) {
// Prevent banning admins with really high permissions
if (doesPlayerHaveStaffPermission(targetClient, "ManageServer") || doesPlayerHaveStaffPermission(targetClient, "Developer")) {
messagePlayerError(client, getLocaleString(client, "CantBanPlayer"));
messagePlayerError(client, getLocaleString(client, "CantBanClient"));
return false;
}
@@ -94,7 +94,7 @@ function subAccountBanCommand(command, params, client, fromDiscord) {
// Prevent banning admins with really high permissions
if (doesPlayerHaveStaffPermission(targetClient, "ManageServer") || doesPlayerHaveStaffPermission(targetClient, "Developer")) {
messagePlayerError(client, getLocaleString(client, "CantBanPlayer"));
messagePlayerError(client, getLocaleString(client, "CantBanClient"));
return false;
}
@@ -126,7 +126,7 @@ function ipBanCommand(command, params, client, fromDiscord) {
// Prevent banning admins with really high permissions
if (doesPlayerHaveStaffPermission(targetClient, "ManageServer") || doesPlayerHaveStaffPermission(targetClient, "Developer")) {
messagePlayerError(client, getLocaleString(client, "CantBanPlayer"));
messagePlayerError(client, getLocaleString(client, "CantBanClient"));
return false;
}
@@ -158,7 +158,7 @@ function subNetBanCommand(command, params, client, fromDiscord) {
// Prevent banning admins with really high permissions
if (doesPlayerHaveStaffPermission(targetClient, "ManageServer") || doesPlayerHaveStaffPermission(targetClient, "Developer")) {
messagePlayerError(client, getLocaleString(client, "CantBanPlayer"));
messagePlayerError(client, getLocaleString(client, "CantBanClient"));
return false;
}