Add locales/translations (unfinished)

This commit is contained in:
Vortrex
2021-11-16 02:02:18 -06:00
parent 7cf858801b
commit df920ef046
5 changed files with 70 additions and 12 deletions

View File

@@ -24,7 +24,7 @@ function accountBanCommand(command, params, client) {
// Prevent banning admins with really high permissions
if(doesPlayerHaveStaffPermission(targetClient, "ManageServer") || doesPlayerHaveStaffPermission(targetClient, "Developer")) {
messagePlayerError(client, "You cannot ban this person!");
messagePlayerError(client, getLocaleString(client, "CantBanPlayer"));
return false;
}
@@ -49,7 +49,7 @@ function subAccountBanCommand(command, params, client, fromDiscord) {
// Prevent banning admins with really high permissions
if(doesPlayerHaveStaffPermission(targetClient, "ManageServer") || doesPlayerHaveStaffPermission(targetClient, "Developer")) {
messagePlayerError(client, "You cannot ban this person!");
messagePlayerError(client, getLocaleString(client, "CantBanPlayer"));
return false;
}
@@ -74,7 +74,7 @@ function ipBanCommand(command, params, client, fromDiscord) {
// Prevent banning admins with really high permissions
if(doesPlayerHaveStaffPermission(targetClient, "ManageServer") || doesPlayerHaveStaffPermission(targetClient, "Developer")) {
messagePlayerError(client, "You cannot ban this person!");
messagePlayerError(client, getLocaleString(client, "CantBanPlayer"));
return false;
}
@@ -98,7 +98,7 @@ function subNetBanCommand(command, params, client, fromDiscord) {
// Prevent banning admins with really high permissions
if(doesPlayerHaveStaffPermission(targetClient, "ManageServer") || doesPlayerHaveStaffPermission(targetClient, "Developer")) {
messagePlayerError(client, "You cannot ban this person!");
messagePlayerError(client, getLocaleString(client, "CantBanPlayer"));
return false;
}