Use locale for command help and arguments

This commit is contained in:
Risto Lahtela 2020-08-31 18:49:47 +03:00
parent d820bcf804
commit d12297494c
22 changed files with 356 additions and 291 deletions

View File

@ -23,7 +23,10 @@ import com.djrapitops.plan.commands.use.CommandWithSubcommands;
import com.djrapitops.plan.commands.use.Subcommand;
import com.djrapitops.plan.gathering.importing.ImportSystem;
import com.djrapitops.plan.identification.Server;
import com.djrapitops.plan.settings.Permissions;
import com.djrapitops.plan.settings.locale.Locale;
import com.djrapitops.plan.settings.locale.lang.DeepHelpLang;
import com.djrapitops.plan.settings.locale.lang.HelpLang;
import com.djrapitops.plan.storage.database.DBSystem;
import com.djrapitops.plan.storage.database.queries.objects.ServerQueries;
import com.djrapitops.plan.storage.database.queries.objects.UserIdentifierQueries;
@ -143,10 +146,10 @@ public class PlanCommand {
private Subcommand serverCommand() {
return Subcommand.builder()
.aliases("server", "analyze", "a", "analyse", "analysis")
.optionalArgument("server", "Name, ID or UUID of a server")
.requirePermission("plan.server")
.description("View a server page")
.inDepthDescription("Obtain a link to the /server page of a specific server, or the current server if no arguments are given.")
.optionalArgument(locale.getString(HelpLang.ARG_SERVER), locale.getString(HelpLang.DESC_ARG_SERVER_IDENTIFIER))
.requirePermission(Permissions.SERVER)
.description(locale.getString(HelpLang.SERVER))
.inDepthDescription(locale.getString(DeepHelpLang.SERVER))
.onTabComplete(this::serverNames)
.onCommand(linkCommands::onServerCommand)
.build();
@ -155,9 +158,9 @@ public class PlanCommand {
private Subcommand serversCommand() {
return Subcommand.builder()
.aliases("servers", "serverlist", "listservers", "sl", "ls")
.requirePermission("plan.servers")
.description("List servers")
.inDepthDescription("List ids, names and uuids of servers in the database.")
.requirePermission(Permissions.SERVERS)
.description(locale.getString(HelpLang.SERVERS))
.inDepthDescription(locale.getString(DeepHelpLang.SERVERS))
.onCommand(linkCommands::onServersCommand)
.build();
}
@ -165,9 +168,9 @@ public class PlanCommand {
private Subcommand networkCommand() {
return Subcommand.builder()
.aliases("network", "netw")
.requirePermission("plan.network")
.description("View network page")
.inDepthDescription("Obtain a link to the /network page, only does so on networks.")
.requirePermission(Permissions.NETWORK)
.description(locale.getString(HelpLang.NETWORK))
.inDepthDescription(locale.getString(DeepHelpLang.NETWORK))
.onCommand(linkCommands::onNetworkCommand)
.build();
}
@ -175,10 +178,10 @@ public class PlanCommand {
private Subcommand playerCommand() {
return Subcommand.builder()
.aliases("player", "inspect")
.optionalArgument("name/uuid", "Name or UUID of a player")
.requirePermission("plan.player.self")
.description("View a player page")
.inDepthDescription("Obtain a link to the /player page of a specific player, or the current player.")
.optionalArgument(locale.getString(HelpLang.ARG_NAME_UUID), locale.getString(HelpLang.DESC_ARG_PLAYER_IDENTIFIER))
.requirePermission(Permissions.PLAYER_SELF)
.description(locale.getString(HelpLang.PLAYER))
.inDepthDescription(locale.getString(DeepHelpLang.PLAYER))
.onTabComplete(this::playerNames)
.onCommand(linkCommands::onPlayerCommand)
.build();
@ -187,9 +190,9 @@ public class PlanCommand {
private Subcommand playersCommand() {
return Subcommand.builder()
.aliases("players", "pl", "playerlist", "list")
.requirePermission("plan.player.other")
.description("View players page")
.inDepthDescription("Obtain a link to the /players page to see a list of players.")
.requirePermission(Permissions.PLAYER_OTHER)
.description(locale.getString(HelpLang.PLAYERS))
.inDepthDescription(locale.getString(DeepHelpLang.PLAYERS))
.onCommand(linkCommands::onPlayersCommand)
.build();
}
@ -197,10 +200,10 @@ public class PlanCommand {
private Subcommand searchCommand() {
return Subcommand.builder()
.aliases("search")
.requiredArgument("name/uuid", "Name or UUID of a player")
.requirePermission("plan.search")
.description("Search for a player name")
.inDepthDescription("List all matching player names to given part of a name.")
.requiredArgument(locale.getString(HelpLang.ARG_NAME_UUID), locale.getString(HelpLang.DESC_ARG_PLAYER_IDENTIFIER))
.requirePermission(Permissions.SEARCH)
.description(locale.getString(HelpLang.SEARCH))
.inDepthDescription(locale.getString(DeepHelpLang.SEARCH))
.onCommand(dataUtilityCommands::onSearch)
.build();
}
@ -208,10 +211,10 @@ public class PlanCommand {
private Subcommand inGameCommand() {
return Subcommand.builder()
.aliases("ingame", "qinspect")
.optionalArgument("name/uuid", "Name or UUID of a player")
.requirePermission("plan.ingame.self")
.description("View player info in game")
.inDepthDescription("Give information about a single player in game.")
.optionalArgument(locale.getString(HelpLang.ARG_NAME_UUID), locale.getString(HelpLang.DESC_ARG_PLAYER_IDENTIFIER))
.requirePermission(Permissions.INGAME_SELF)
.description(locale.getString(HelpLang.INGAME))
.inDepthDescription(locale.getString(DeepHelpLang.INGAME))
.onCommand(dataUtilityCommands::onInGame)
.build();
}
@ -219,10 +222,10 @@ public class PlanCommand {
private Subcommand registerCommand() {
return Subcommand.builder()
.aliases("register")
.requirePermission("plan.register.self")
.optionalArgument("--code ${code}", "Code used to finalize registration.")
.description("Register a user for Plan website")
.inDepthDescription("Use without arguments to get link to register page. Use --code [code] after registration to get a user.")
.requirePermission(Permissions.REGISTER_SELF)
.optionalArgument("--code " + locale.getString(HelpLang.ARG_CODE), locale.getString(HelpLang.DESC_ARG_CODE))
.description(locale.getString(HelpLang.REGISTER))
.inDepthDescription(locale.getString(DeepHelpLang.REGISTER))
.onCommand(registrationCommands::onRegister)
.onTabComplete((sender, arguments) -> arguments.isEmpty() ? Collections.singletonList("--code") : Collections.emptyList())
.build();
@ -231,10 +234,10 @@ public class PlanCommand {
private Subcommand unregisterCommand() {
return Subcommand.builder()
.aliases("unregister")
.requirePermission("plan.unregister.self")
.optionalArgument("username", "Username of another user. If not specified linked user is used.")
.description("Unregister user of Plan website")
.inDepthDescription("Use without arguments to unregister linked user, or with username argument to unregister another user.")
.requirePermission(Permissions.UNREGISTER_SELF)
.optionalArgument(locale.getString(HelpLang.ARG_USERNAME), locale.getString(HelpLang.DESC_ARG_USERNAME))
.description(locale.getString(HelpLang.UNREGISTER))
.inDepthDescription(locale.getString(DeepHelpLang.UNREGISTER))
.onCommand((sender, arguments) -> registrationCommands.onUnregister(commandName, sender, arguments))
.build();
}
@ -256,9 +259,9 @@ public class PlanCommand {
private Subcommand infoCommand() {
return Subcommand.builder()
.aliases("info")
.requirePermission("plan.info")
.description("Information about the plugin")
.inDepthDescription("Display the current status of the plugin.")
.requirePermission(Permissions.INFO)
.description(locale.getString(HelpLang.INFO))
.inDepthDescription(locale.getString(DeepHelpLang.INFO))
.onCommand(statusCommands::onInfo)
.build();
}
@ -266,9 +269,9 @@ public class PlanCommand {
private Subcommand reloadCommand() {
return Subcommand.builder()
.aliases("reload")
.requirePermission("plan.reload")
.description("Reload the plugin")
.inDepthDescription("Disable and enable the plugin to reload any changes in config.")
.requirePermission(Permissions.RELOAD)
.description(locale.getString(HelpLang.RELOAD))
.inDepthDescription(locale.getString(DeepHelpLang.RELOAD))
.onCommand(statusCommands::onReload)
.build();
}
@ -276,20 +279,20 @@ public class PlanCommand {
private Subcommand disableCommand() {
return Subcommand.builder()
.aliases("disable")
.requirePermission("plan.disable")
.optionalArgument("feature", "Name of the feature to disable: kickcount")
.description("Disable the plugin or part of it")
.inDepthDescription("Disable the plugin or part of it until next reload/restart.")
.requirePermission(Permissions.DISABLE)
.optionalArgument(locale.getString(HelpLang.ARG_FEATURE), locale.getString(HelpLang.DESC_ARG_FEATURE, "kickcount"))
.description(locale.getString(HelpLang.DISABLE))
.inDepthDescription(locale.getString(DeepHelpLang.DISABLE))
.onCommand(statusCommands::onDisable)
.build();
}
private Subcommand webUsersCommand() {
return Subcommand.builder()
.aliases("webusers", "users")
.requirePermission("plan.register.other")
.description("List all web users")
.inDepthDescription("Lists web users as a table.")
.aliases("users", "webusers")
.requirePermission(Permissions.USERS)
.description(locale.getString(HelpLang.USERS))
.inDepthDescription(locale.getString(DeepHelpLang.USERS))
.onCommand(linkCommands::onWebUsersCommand)
.build();
}
@ -297,9 +300,7 @@ public class PlanCommand {
private Subcommand databaseCommand() {
return CommandWithSubcommands.builder()
.aliases("db", "database")
.requirePermission("plan.data.base")
.optionalArgument("subcommand", "Use the command without subcommand to see help.")
.description("Manage Plan database")
.optionalArgument(locale.getString(HelpLang.ARG_SUBCOMMAND), locale.getString(HelpLang.DESC_ARG_SUBCOMMAND))
.colorScheme(colors)
.subcommand(backupCommand())
.subcommand(restoreCommand())
@ -308,17 +309,19 @@ public class PlanCommand {
.subcommand(clearCommand())
.subcommand(removeCommand())
.subcommand(uninstalledCommand())
.inDepthDescription("Use different database subcommands to change the data in some way")
.requirePermission(Permissions.DATA_BASE)
.description(locale.getString(HelpLang.DB))
.inDepthDescription(locale.getString(DeepHelpLang.DB))
.build();
}
private Subcommand backupCommand() {
return Subcommand.builder()
.aliases("backup")
.requirePermission("plan.data.backup")
.optionalArgument("MySQL/SQlite/H2", "Type of the database to backup. Current database is used if not specified.")
.description("Backup data of a database to a file")
.inDepthDescription("Uses SQLite to backup one of the usable databases to a file.")
.requirePermission(Permissions.DATA_BACKUP)
.optionalArgument("MySQL/SQlite/H2", locale.getString(HelpLang.DESC_ARG_DB_BACKUP))
.description(locale.getString(HelpLang.DB_BACKUP))
.inDepthDescription(locale.getString(DeepHelpLang.DB_BACKUP))
.onCommand(databaseCommands::onBackup)
.build();
}
@ -326,11 +329,11 @@ public class PlanCommand {
private Subcommand restoreCommand() {
return Subcommand.builder()
.aliases("restore")
.requirePermission("plan.data.restore")
.requiredArgument("backup-file", "Name of the backup file (case sensitive)")
.optionalArgument("MySQL/SQlite/H2", "Type of the database to restore to. Current database is used if not specified.")
.description("Restore data from a file to a database")
.inDepthDescription("Uses SQLite to backup file and overwrites contents of the target database.")
.requirePermission(Permissions.DATA_RESTORE)
.requiredArgument(locale.getString(HelpLang.ARG_BACKUP_FILE), locale.getString(HelpLang.DESC_ARG_BACKUP_FILE))
.optionalArgument("MySQL/SQlite/H2", locale.getString(HelpLang.DESC_ARG_DB_RESTORE))
.description(locale.getString(HelpLang.DB_RESTORE))
.inDepthDescription(locale.getString(DeepHelpLang.DB_RESTORE))
.onCommand((sender, arguments) -> databaseCommands.onRestore(commandName, sender, arguments))
.build();
}
@ -338,11 +341,11 @@ public class PlanCommand {
private Subcommand moveCommand() {
return Subcommand.builder()
.aliases("move")
.requirePermission("plan.data.move")
.requiredArgument("MySQL/SQlite/H2", "Type of the database to move data from.")
.requiredArgument("MySQL/SQlite/H2", "Type of the database to move data to. Can not be same as previous.")
.description("Move data between databases")
.inDepthDescription("Overwrites contents in the other database with the contents in another.")
.requirePermission(Permissions.DATA_MOVE)
.requiredArgument("MySQL/SQlite/H2", locale.getString(HelpLang.DESC_ARG_DB_MOVE_FROM))
.requiredArgument("MySQL/SQlite/H2", locale.getString(HelpLang.DESC_ARG_DB_MOVE_TO))
.description(locale.getString(HelpLang.DB_MOVE))
.inDepthDescription(locale.getString(DeepHelpLang.DB_MOVE))
.onCommand((sender, arguments) -> databaseCommands.onMove(commandName, sender, arguments))
.build();
}
@ -350,10 +353,10 @@ public class PlanCommand {
private Subcommand hotswapCommand() {
return Subcommand.builder()
.aliases("hotswap")
.requirePermission("plan.data.hotswap")
.requiredArgument("MySQL/SQlite/H2", "Type of the database to start using.")
.description("Move data between databases")
.inDepthDescription("Reloads the plugin with the other database and changes the config to match.")
.requirePermission(Permissions.DATA_HOTSWAP)
.requiredArgument("MySQL/SQlite/H2", locale.getString(HelpLang.DESC_ARG_DB_HOTSWAP))
.description(locale.getString(HelpLang.DB_HOTSWAP))
.inDepthDescription(locale.getString(DeepHelpLang.DB_HOTSWAP))
.onCommand(databaseCommands::onHotswap)
.build();
}
@ -361,10 +364,10 @@ public class PlanCommand {
private Subcommand clearCommand() {
return Subcommand.builder()
.aliases("clear")
.requirePermission("plan.data.clear")
.requiredArgument("MySQL/SQlite/H2", "Type of the database to remove data from.")
.description("Remove ALL Plan data from a database")
.inDepthDescription("Clears all Plan tables, removing all Plan-data in the process.")
.requirePermission(Permissions.DATA_CLEAR)
.requiredArgument("MySQL/SQlite/H2", locale.getString(HelpLang.DESC_ARG_DB_REMOVE))
.description(locale.getString(HelpLang.DB_CLEAR))
.inDepthDescription(locale.getString(DeepHelpLang.DB_CLEAR))
.onCommand((sender, arguments) -> databaseCommands.onClear(commandName, sender, arguments))
.build();
}
@ -372,10 +375,10 @@ public class PlanCommand {
private Subcommand removeCommand() {
return Subcommand.builder()
.aliases("remove")
.requirePermission("plan.data.remove")
.requiredArgument("name/uuid", "Identifier for a player that will be removed from current database.")
.description("Remove player's data from Current database.")
.inDepthDescription("Removes all data linked to a player from the Current database.")
.requirePermission(Permissions.DATA_REMOVE_PLAYER)
.requiredArgument(locale.getString(HelpLang.ARG_NAME_UUID), locale.getString(HelpLang.DESC_ARG_PLAYER_IDENTIFIER_REMOVE))
.description(locale.getString(HelpLang.DB_REMOVE))
.inDepthDescription(locale.getString(DeepHelpLang.DB_REMOVE))
.onCommand((sender, arguments) -> databaseCommands.onRemove(commandName, sender, arguments))
.build();
}
@ -383,10 +386,10 @@ public class PlanCommand {
private Subcommand uninstalledCommand() {
return Subcommand.builder()
.aliases("uninstalled")
.requirePermission("plan.data.uninstalled")
.requiredArgument("server", "Name, ID or UUID of a server")
.description("Set a server as uninstalled in the database.")
.inDepthDescription("Marks a server in Plan database as uninstalled so that it will not show up in server queries.")
.requirePermission(Permissions.DATA_REMOVE_SERVER)
.requiredArgument(locale.getString(HelpLang.ARG_SERVER), locale.getString(HelpLang.DESC_ARG_SERVER_IDENTIFIER))
.description(locale.getString(HelpLang.DB_UNINSTALLED))
.inDepthDescription(locale.getString(DeepHelpLang.DB_UNINSTALLED))
.onCommand(databaseCommands::onUninstalled)
.build();
}
@ -394,10 +397,10 @@ public class PlanCommand {
private Subcommand exportCommand() {
return Subcommand.builder()
.aliases("export")
.requirePermission("plan.data.export")
.optionalArgument("export kind", "players/server_json")
.description("Export html or json files manually.")
.inDepthDescription("Performs an export to export location defined in the config.")
.requirePermission(Permissions.DATA_EXPORT)
.optionalArgument(locale.getString(HelpLang.ARG_EXPORT_KIND), "players/server_json")
.description(locale.getString(HelpLang.EXPORT))
.inDepthDescription(locale.getString(DeepHelpLang.EXPORT))
.onCommand(dataUtilityCommands::onExport)
.build();
}
@ -407,21 +410,21 @@ public class PlanCommand {
if (importerNames.isEmpty()) return null;
return Subcommand.builder()
.aliases("import")
.requirePermission("plan.data.import")
.optionalArgument("import kind", importerNames.toString())
.description("Import data.")
.inDepthDescription("Performs an import to load data into the database.")
.requirePermission(Permissions.DATA_IMPORT)
.optionalArgument(locale.getString(HelpLang.ARG_IMPORT_KIND), importerNames.toString())
.description(locale.getString(HelpLang.IMPORT))
.inDepthDescription(locale.getString(DeepHelpLang.IMPORT))
.onCommand(dataUtilityCommands::onImport)
.build();
}
private Subcommand jsonCommand() {
return Subcommand.builder()
.aliases("json")
.requirePermission("plan.json.self")
.requiredArgument("name/uuid", "Name or UUID of a player")
.description("View json of Player's raw data.")
.inDepthDescription("Allows you to download a player's data in json format. All of it.")
.aliases("json", "raw")
.requirePermission(Permissions.JSON_SELF)
.optionalArgument(locale.getString(HelpLang.ARG_NAME_UUID), locale.getString(HelpLang.DESC_ARG_PLAYER_IDENTIFIER))
.description(locale.getString(HelpLang.JSON))
.inDepthDescription(locale.getString(DeepHelpLang.JSON))
.onCommand(linkCommands::onJson)
.build();
}

View File

@ -24,6 +24,7 @@ import com.djrapitops.plan.delivery.webserver.Addresses;
import com.djrapitops.plan.identification.Identifiers;
import com.djrapitops.plan.identification.Server;
import com.djrapitops.plan.identification.ServerInfo;
import com.djrapitops.plan.settings.Permissions;
import com.djrapitops.plan.settings.locale.Locale;
import com.djrapitops.plan.settings.locale.lang.CommandLang;
import com.djrapitops.plan.storage.database.DBSystem;
@ -235,7 +236,7 @@ public class LinkCommands {
String playerName = dbSystem.getDatabase().query(UserIdentifierQueries.fetchPlayerNameOf(playerUUID))
.orElseThrow(() -> new IllegalArgumentException("Player '" + identifier + "' was not found in the database."));
if (sender.hasPermission("plan.json.other") || playerUUID.equals(senderUUID)) {
if (sender.hasPermission(Permissions.JSON_OTHER) || playerUUID.equals(senderUUID)) {
String address = getAddress(sender) + "/player/" + Html.encodeToURL(playerName) + "/raw";
sender.buildMessage()
.addPart(colors.getMainColor() + "Player json: ")

View File

@ -25,6 +25,7 @@ import com.djrapitops.plan.exceptions.database.DBOpException;
import com.djrapitops.plan.settings.Permissions;
import com.djrapitops.plan.settings.locale.Locale;
import com.djrapitops.plan.settings.locale.lang.CommandLang;
import com.djrapitops.plan.settings.locale.lang.HelpLang;
import com.djrapitops.plan.settings.locale.lang.ManageLang;
import com.djrapitops.plan.storage.database.DBSystem;
import com.djrapitops.plan.storage.database.Database;
@ -133,16 +134,13 @@ public class RegistrationCommands {
}
private int getPermissionLevel(CMDSender sender) {
final String permAnalyze = "plan.server";
final String permInspectOther = "plan.player.other";
final String permInspect = "plan.player.self";
if (sender.hasPermission(permAnalyze)) {
if (sender.hasPermission(Permissions.SERVER)) {
return 0;
}
if (sender.hasPermission(permInspectOther)) {
if (sender.hasPermission(Permissions.PLAYER_OTHER)) {
return 1;
}
if (sender.hasPermission(permInspect)) {
if (sender.hasPermission(Permissions.PLAYER_SELF)) {
return 2;
}
return 100;
@ -169,7 +167,7 @@ public class RegistrationCommands {
}
public void onUnregister(String mainCommand, CMDSender sender, Arguments arguments) {
Optional<String> givenUsername = arguments.get(0).filter(arg -> sender.hasPermission("plan.unregister.other"));
Optional<String> givenUsername = arguments.get(0).filter(arg -> sender.hasPermission(Permissions.UNREGISTER_OTHER));
Database database = dbSystem.getDatabase();
UUID playerUUID = sender.getUUID().orElse(null);
@ -182,7 +180,7 @@ public class RegistrationCommands {
}
username = found.get().getUsername();
} else if (!givenUsername.isPresent()) {
throw new IllegalArgumentException(locale.getString(CommandLang.FAIL_REQ_ONE_ARG, "<username>"));
throw new IllegalArgumentException(locale.getString(CommandLang.FAIL_REQ_ONE_ARG, "<" + locale.getString(HelpLang.ARG_USERNAME) + ">"));
} else {
username = givenUsername.get();
}

View File

@ -16,6 +16,8 @@
*/
package com.djrapitops.plan.commands.use;
import com.djrapitops.plan.settings.Permissions;
import java.util.Optional;
import java.util.UUID;
@ -27,6 +29,10 @@ public interface CMDSender {
boolean hasPermission(String permission);
default boolean hasPermission(Permissions permission) {
return hasPermission(permission.get());
}
default boolean hasAllPermissionsFor(Subcommand subcommand) {
return !isMissingPermissionsFor(subcommand);
}

View File

@ -16,6 +16,7 @@
*/
package com.djrapitops.plan.commands.use;
import com.djrapitops.plan.settings.Permissions;
import org.apache.commons.lang3.StringUtils;
import java.util.List;
@ -30,6 +31,10 @@ public interface SubcommandBuilder {
SubcommandBuilder requirePermission(String permission);
default SubcommandBuilder requirePermission(Permissions permission) {
return requirePermission(permission.get());
}
SubcommandBuilder description(String description);
default SubcommandBuilder inDepthDescription(String inDepthDescription) {

View File

@ -22,6 +22,36 @@ package com.djrapitops.plan.settings;
* @author Rsl1122
*/
public enum Permissions {
SERVER("plan.server"),
SERVERS("plan.servers"),
NETWORK("plan.network"),
PLAYER_SELF("plan.player.self"),
PLAYER_OTHER("plan.player.other"),
SEARCH("plan.search"),
INGAME_SELF("plan.ingame.self"),
INGAME_OTHER("plan.ingame.other"),
REGISTER_SELF("plan.register.self"),
REGISTER_OTHER("plan.register.other"),
UNREGISTER_SELF("plan.unregister.self"),
UNREGISTER_OTHER("plan.unregister.other"),
INFO("plan.info"),
RELOAD("plan.reload"),
DISABLE("plan.disable"),
USERS("plan.users"),
DATA_BASE("plan.data.base"),
DATA_BACKUP("plan.data.backup"),
DATA_RESTORE("plan.data.restore"),
DATA_MOVE("plan.data.move"),
DATA_HOTSWAP("plan.data.hotswap"),
DATA_CLEAR("plan.data.clear"),
DATA_REMOVE_PLAYER("plan.data.remove.player"),
DATA_REMOVE_SERVER("plan.data.remove.server"),
DATA_EXPORT("plan.data.export"),
DATA_IMPORT("plan.data.import"),
JSON_SELF("plan.json.self"),
JSON_OTHER("plan.json.other"),
HELP("plan.?"),
@ -32,10 +62,6 @@ public enum Permissions {
ANALYZE("plan.analyze"),
SEARCH("plan.search"),
RELOAD("plan.reload"),
INFO("plan.info"),
MANAGE("plan.manage"),
MANAGE_WEB("plan.webmanage"),
@ -63,6 +89,15 @@ public enum Permissions {
* @return permission node eg. plan.inspect.base
*/
public String getPerm() {
return getPermission();
return permission;
}
/**
* Returns the permission node in plugin.yml.
*
* @return permission node eg. plan.inspect.base
*/
public String get() {
return permission;
}
}

View File

@ -69,7 +69,7 @@ public class LocaleSystem implements SubSystem {
public static Map<String, Lang> getIdentifiers() {
Lang[][] lang = new Lang[][]{
CommandLang.values(),
CmdHelpLang.values(),
HelpLang.values(),
DeepHelpLang.values(),
PluginLang.values(),
ManageLang.values(),

View File

@ -1,74 +0,0 @@
/*
* This file is part of Player Analytics (Plan).
*
* Plan is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License v3 as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Plan is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Plan. If not, see <https://www.gnu.org/licenses/>.
*/
package com.djrapitops.plan.settings.locale.lang;
/**
* Lang for short help messages in Commands.
*
* @author Rsl1122
*/
public enum CmdHelpLang implements Lang {
ANALYZE("Command Help - /plan analyze", "View the Server Page"),
HELP("Command Help - /plan help", "Show command list"),
INFO("Command Help - /plan info", "Check the version of Plan"),
INSPECT("Command Help - /plan inspect", "View a Player Page"),
QINSPECT("Command Help - /plan qinspect", "View Player info in game"),
SEARCH("Command Help - /plan search", "Search for a player name"),
PLAYERS("Command Help - /plan players", "View the Players Page"),
SERVERS("Command Help - /plan servers", "List servers in Database"),
NETWORK("Command Help - /plan network", "View the Network Page"),
RELOAD("Command Help - /plan reload", "Restart Plan"),
MANAGE("Command Help - /plan manage", "Manage Plan Database"),
WEB_REGISTER("Command Help - /plan register", "Register a Web User"),
WEB("Command Help - /plan webuser", "Manage Web Users"),
DEV("Command Help - /plan dev", "Development mode command"),
DISABLE("Command Help - /planbungee disable", "Disable the plugin temporarily"),
MANAGE_MOVE("Command Help - /plan manage move", "Move data between Databases"),
MANAGE_BACKUP("Command Help - /plan manage backup", "Backup a Database"),
MANAGE_RESTORE("Command Help - /plan manage restore", "Restore a previous Backup"),
MANAGE_REMOVE("Command Help - /plan manage remove", "Remove Player's data"),
MANAGE_HOTSWAP("Command Help - /plan manage hotswap", "Change Database quickly"),
MANAGE_CLEAR("Command Help - /plan manage clear", "Clear a Database"),
MANAGE_IMPORT("Command Help - /plan manage import", "Import data from elsewhere"),
MANAGE_EXPORT("Command Help - /plan manage export", "Trigger export manually"),
MANAGE_DISABLE("Command Help - /plan manage disable", "Disable a feature temporarily"),
WEB_LEVEL("Command Help - /plan web level", "Information about permission levels"),
WEB_LIST("Command Help - /plan web list", "List Web Users"),
WEB_CHECK("Command Help - /plan web check", "Inspect a Web User"),
WEB_DELETE("Command Help - /plan web delete", "Unregister a Web User"),
MANAGE_RAW_DATA("Command Help - /plan manage raw", "View raw JSON of player data"),
MANAGE_UNINSTALLED("Command Help - /plan manage uninstalled", "Mark a server as uninstalled in the database.");
private final String identifier;
private final String defaultValue;
CmdHelpLang(String identifier, String defaultValue) {
this.identifier = identifier;
this.defaultValue = defaultValue;
}
@Override
public String getIdentifier() {
return identifier;
}
@Override
public String getDefault() {
return defaultValue;
}
}

View File

@ -22,30 +22,30 @@ package com.djrapitops.plan.settings.locale.lang;
* @author Rsl1122
*/
public enum DeepHelpLang implements Lang {
PLAN("In Depth Help - /plan ?", "> §2Main Command\\ Access to subcommands and help\\ §2/plan §fList subcommands\\ §2/plan <subcommand> ? §fIn depth help"),
ANALYZE("In Depth Help - /plan analyze ?", "> §2Analysis Command\\ Refreshes server page and displays link to the web page."),
DISABLE("In Depth Help - /planbungee disable ?", "> §2Disable Command\\ Runs Plan onDisable on Proxy.\\ Plugin can be enabled with /planbungee reload afterwards.\\ §bDoes not support swapping jar on the fly"),
INSPECT("In Depth Help - /plan inspect ?", "> §2Inspect Command\\ Refreshes player page and displays link to the web page."),
PLAYERS("In Depth Help - /plan players ?", "> §2Players Command\\ Displays link to the players page."),
SERVERS("In Depth Help - /plan servers ?", "> §2Servers Command\\ Displays list of Plan servers in the Database.\\ Can be used to debug issues with database registration on a network."),
MANAGE("In Depth Help - /plan manage ?", "> §2Manage Command\\ Manage MySQL and SQLite database of Plan.\\ §2/plan m §fList subcommands\\ §2/plan m <subcommand> ? §fIn depth help"),
NETWORK("In Depth Help - /plan network ?", "> §2Network Command\\ Displays link to the network page.\\ If not on a network, this page displays the server page."),
QINSPECT("In Depth Help - /plan qinspect ?", "> §2Quick Inspect Command\\ Displays some information about the player in game."),
RELOAD("In Depth Help - /plan reload ?", "> §2Reload Command\\ Restarts the plugin using onDisable and onEnable.\\ §bDoes not support swapping jar on the fly"),
SEARCH("In Depth Help - /plan search ?", "> §2Search Command\\ Get a list of Player names that match the given argument.\\§7 Example: /plan search 123 - Finds all users with 123 in their name."),
WEB("In Depth Help - /plan web ?", "< §2Web User Manage Command.\\ §2/plan web §fList subcommands\\ §2/plan web <subcommand> ? §fIn Depth help"),
MANAGE_BACKUP("In Depth Help - /plan manage backup ?", "> §2Backup Subcommand\\ Creates a new SQLite database (.db file) with contents of currently active database in the Plan plugin folder."),
MANAGE_CLEAR("In Depth Help - /plan manage clear ?", "> §2Clear Subcommand\\ Removes everything in the active database. Use with caution."),
MANAGE_DISABLE("In Depth Help - /plan manage disable ?", "> §2Disable Subcommand\\ Can disable parts of the plugin until next reload.\\ Accepted arguments:\\ §2kickcount §fDisables kick counts in case /kickall is used on shutdown macro."),
MANAGE_IMPORT("In Depth Help - /plan manage import ?", "> §2Import Subcommand\\ Import data from other sources.\\ Accepted Arguments:\\ §2offline §fBukkit player data, only register date and name."),
MANAGE_EXPORT("In Depth Help - /plan manage export ?", "> §2Export Subcommand\\ Trigger export to result folders.\\ Accepted Arguments:\\ §2list §fList possible arguments.\\ §2players §fExport /players, /player pages + /player/raw json depending on config values.\\ §2server_json §fExport /server/raw JSON if enabled in config."),
MANAGE_MOVE("In Depth Help - /plan manage move ?", "> §2Move Subcommand\\ Move data from SQLite to MySQL or other way around.\\ Target database is cleared before transfer."),
MANAGE_REMOVE("In Depth Help - /plan manage remove ?", "> §2Remove Subcommand\\ Remove player's data from the active database."),
MANAGE_RESTORE("In Depth Help - /plan manage restore ?", "> §2Restore Subcommand\\ Restore a previous backup SQLite database (.db file)\\ You can also restore database.db from another server to MySQL.\\ Target database is cleared before transfer."),
WEB_REGISTER("In Depth Help - /plan web register ?", "> §2Register Subcommand\\ Registers a new Web User.\\ Registering a user for another player requires plan.webmanage permission.\\ Passwords are hashed with PBKDF2 (64,000 iterations of SHA1) using a cryptographically-random salt."),
MANAGE_RAW_DATA("In Depth Help - /plan manage raw ?", "> §2Raw Data Subcommand\\ Displays link to raw JSON data page.\\ Not available if Plan webserver is not enabled."),
MANAGE_UNINSTALLED("In Depth Help - /plan manage uninstalled ?", "> §2Uninstalled Server Subcommand\\ Marks a server as uninstalled in the database.\\ Can not mark the server the command is being used on as uninstalled.\\ Will affect ConnectionSystem.");
SERVER("In Depth Help - /plan server", "Obtain a link to the /server page of a specific server, or the current server if no arguments are given."),
SERVERS("In Depth Help - /plan servers", "List ids, names and uuids of servers in the database."),
NETWORK("In Depth Help - /plan network", "Obtain a link to the /network page, only does so on networks."),
PLAYER("In Depth Help - /plan player", "Obtain a link to the /player page of a specific player, or the current player."),
PLAYERS("In Depth Help - /plan players", "Obtain a link to the /players page to see a list of players."),
SEARCH("In Depth Help - /plan search", "List all matching player names to given part of a name."),
INGAME("In Depth Help - /plan ingame", "Displays some information about the player in game."),
REGISTER("In Depth Help - /plan register", "Use without arguments to get link to register page. Use --code [code] after registration to get a user."),
UNREGISTER("In Depth Help - /plan unregister", "Use without arguments to unregister player linked user, or with username argument to unregister another user."),
INFO("In Depth Help - /plan info", "Display the current status of the plugin."),
RELOAD("In Depth Help - /plan reload", "Disable and enable the plugin to reload any changes in config."),
DISABLE("In Depth Help - /plan disable", "Disable the plugin or part of it until next reload/restart."),
USERS("In Depth Help - /plan users", "Lists web users as a table."),
DB("In Depth Help - /plan db", "Use different database subcommands to change the data in some way"),
DB_BACKUP("In Depth Help - /plan db backup", "Uses SQLite to backup the target database to a file."),
DB_RESTORE("In Depth Help - /plan db restore", "Uses SQLite backup file and overwrites contents of the target database."),
DB_MOVE("In Depth Help - /plan db move", "Overwrites contents in the other database with the contents in another."),
DB_HOTSWAP("In Depth Help - /plan db hotswap", "Reloads the plugin with the other database and changes the config to match."),
DB_CLEAR("In Depth Help - /plan db clear", "Clears all Plan tables, removing all Plan-data in the process."),
DB_REMOVE("In Depth Help - /plan db remove", "Removes all data linked to a player from the Current database."),
DB_UNINSTALLED("In Depth Help - /plan db uninstalled", "Marks a server in Plan database as uninstalled so that it will not show up in server queries."),
EXPORT("In Depth Help - /plan export", "Performs an export to export location defined in the config."),
IMPORT("In Depth Help - /plan import", "Performs an import to load data into the database."),
JSON("In Depth Help - /plan json", "Allows you to download a player's data in json format. All of it.");
private final String identifier;
private final String defaultValue;

View File

@ -0,0 +1,91 @@
/*
* This file is part of Player Analytics (Plan).
*
* Plan is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License v3 as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Plan is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Plan. If not, see <https://www.gnu.org/licenses/>.
*/
package com.djrapitops.plan.settings.locale.lang;
/**
* Lang for short help messages in Commands.
*
* @author Rsl1122
*/
public enum HelpLang implements Lang {
ARG_SERVER("CMD Arg Name - server", "server"),
ARG_NAME_UUID("CMD Arg Name - name or uuid", "name/uuid"),
ARG_CODE("CMD Arg Name - code", "${code}"),
ARG_USERNAME("CMD Arg Name - username", "username"),
ARG_FEATURE("CMD Arg Name - feature", "feature"),
ARG_SUBCOMMAND("CMD Arg Name - subcommand", "subcommand"),
ARG_BACKUP_FILE("CMD Arg Name - backup-file", "backup-file"),
ARG_EXPORT_KIND("CMD Arg Name - export kind", "export kind"),
ARG_IMPORT_KIND("CMD Arg Name - import kind", "import kind"),
DESC_ARG_SERVER_IDENTIFIER("CMD Arg - server identifier", "Name, ID or UUID of a server"),
DESC_ARG_PLAYER_IDENTIFIER("CMD Arg - player identifier", "Name or UUID of a player"),
DESC_ARG_PLAYER_IDENTIFIER_REMOVE("CMD Arg - player identifier remove", "Identifier for a player that will be removed from current database."),
DESC_ARG_CODE("CMD Arg - code", "Code used to finalize registration."),
DESC_ARG_USERNAME("CMD Arg - username", "Username of another user. If not specified player linked user is used."),
DESC_ARG_FEATURE("CMD Arg - feature", "Name of the feature to disable: ${0}"),
DESC_ARG_SUBCOMMAND("CMD Arg - subcommand", "Use the command without subcommand to see help."),
DESC_ARG_BACKUP_FILE("CMD Arg - backup-file", "Name of the backup file (case sensitive)"),
DESC_ARG_DB_BACKUP("CMD Arg - db type backup", "Type of the database to backup. Current database is used if not specified."),
DESC_ARG_DB_RESTORE("CMD Arg - db type restore", "Type of the database to restore to. Current database is used if not specified."),
DESC_ARG_DB_MOVE_FROM("CMD Arg - db type move from", "Type of the database to move data from."),
DESC_ARG_DB_MOVE_TO("CMD Arg - db type move to", "Type of the database to move data to. Can not be same as previous."),
DESC_ARG_DB_HOTSWAP("CMD Arg - db type hotswap", "Type of the database to start using."),
DESC_ARG_DB_REMOVE("CMD Arg - db type clear", "Type of the database to remove all data from."),
SERVER("Command Help - /plan server", "View the Server Page"),
SERVERS("Command Help - /plan servers", "List servers in Database"),
NETWORK("Command Help - /plan network", "View the Network Page"),
PLAYER("Command Help - /plan player", "View a Player Page"),
PLAYERS("Command Help - /plan players", "View the Players Page"),
SEARCH("Command Help - /plan search", "Search for a player name"),
INGAME("Command Help - /plan ingame", "View Player info in game"),
REGISTER("Command Help - /plan register", "Register a user for Plan website"),
UNREGISTER("Command Help - /plan unregister", "Unregister a user of Plan website"),
INFO("Command Help - /plan info", "Information about the plugin"),
RELOAD("Command Help - /plan reload", "Restart Plan"),
DISABLE("Command Help - /plan disable", "Disable the plugin or part of it"),
USERS("Command Help - /plan users", "List all web users"),
DB("Command Help - /plan db", "Manage Plan database"),
DB_BACKUP("Command Help - /plan db backup", "Backup data of a database to a file"),
DB_RESTORE("Command Help - /plan db restore", "Restore data from a file to a database"),
DB_MOVE("Command Help - /plan db move", "Move data between databases"),
DB_HOTSWAP("Command Help - /plan db hotswap", "Change Database quickly"),
DB_CLEAR("Command Help - /plan db clear", "Remove ALL Plan data from a database"),
DB_REMOVE("Command Help - /plan db remove", "Remove player's data from Current database"),
DB_UNINSTALLED("Command Help - /plan db uninstalled", "Set a server as uninstalled in the database."),
EXPORT("Command Help - /plan export", "Export html or json files manually"),
IMPORT("Command Help - /plan import", "Import data"),
JSON("Command Help - /plan json", "View json of Player's raw data.");
private final String identifier;
private final String defaultValue;
HelpLang(String identifier, String defaultValue) {
this.identifier = identifier;
this.defaultValue = defaultValue;
}
@Override
public String getIdentifier() {
return identifier;
}
@Override
public String getDefault() {
return defaultValue;
}
}

View File

@ -46,26 +46,26 @@ Cmd SUCCESS - Feature disabled || §a已在下次插件重载
Cmd SUCCESS - WebUser register || §a已成功添加新用户${0}
Cmd WARN - Database not open || §e数据库状态为 ${0} - 可能需要花费更多的时间..
Cmd Web - Permission Levels || >\§70访问所有页面\§71访问 '/players' 及所有玩家页\§72访问用户名与网页用户名一致的玩家页\§73+:无权限
Command Help - /plan analyze || 查看服务器分析
Command Help - /plan server || 查看服务器分析
Command Help - /plan dev || 开发模式命令
Command Help - /plan help || 查看命令列表。
Command Help - /plan info || 查看计划版本
Command Help - /plan inspect || 检视玩家数据
Command Help - /plan info || Information about the plugin
Command Help - /plan player || 检视玩家数据
Command Help - /plan manage || 数据库管理命令
Command Help - /plan manage backup || 备份数据库至 .db 文件
Command Help - /plan manage clear || 从数据库中清空所有数据
Command Help - /plan manage disable || 暂时禁用功能
Command Help - /plan manage export || 手动导出
Command Help - /plan manage hotswap || 热插拔数据库并重启插件
Command Help - /plan db hotswap || 热插拔数据库并重启插件
Command Help - /plan manage import || 从插件中导入数据
Command Help - /plan manage move || 在数据库间移动数据
Command Help - /plan db move || 在数据库间移动数据
Command Help - /plan manage raw || 查看玩家数据的raw JSON
Command Help - /plan manage remove || 从活跃数据库中移除玩家数据
Command Help - /plan manage restore || 恢复数据库
Command Help - /plan manage uninstalled || 在数据库中将一个服务器标记为未安装.
Command Help - /plan network || 查看全服网络页面
Command Help - /plan players || 列出所有已缓存玩家名单
Command Help - /plan qinspect || 在游戏内检视玩家数据
Command Help - /plan ingame || 在游戏内检视玩家数据
Command Help - /plan register || 注册网页用户
Command Help - /plan reload || 重新启动插件(重载配置)
Command Help - /plan search || 搜索玩家
@ -325,7 +325,7 @@ In Depth Help - /plan manage restore ? || > §2恢复命令\ 从先前
In Depth Help - /plan manage uninstalled ? || > §2卸载服务器的子命令\ 在数据库中将一个服务器视为未安装。\ Can not mark the server the command is being used on as uninstalled.\ 将会影响连接系统。
In Depth Help - /plan network ? || > §2全服网络命令\ 显示到全服网络页的链接。\ 若不在群组全服网络上,此页面将显示为服务器页面。
In Depth Help - /plan players ? || > §2玩家命令\ 显示到玩家页的链接。
In Depth Help - /plan qinspect ? || §2快速检视命令\§f 用于获取游戏内关于检视的信息。\§7 相比检视网页有着更少的信息。\§7 别名:/plan qi
In Depth Help - /plan ingame || 相比检视网页有着更少的信息。
In Depth Help - /plan reload ? || > §2重载命令\ 使用 onDisable 与 onEnable 重新载入插件。\ §b不支持运行时热切换插件
In Depth Help - /plan search ? || §2搜索命令\§f 用于获取匹配特定参数的玩家名列表。\§7 示例:/plan search 123 - 搜索名称中包含 123 的所有玩家。
In Depth Help - /plan servers ? || > §2服务器命令\ 显示数据库中的计划服务器列表。\ 可用于调试在全服网络上数据库注册的问题。

View File

@ -40,26 +40,26 @@ Cmd SUCCESS - Feature disabled || §a'${0}' wurde bis zum näch
Cmd SUCCESS - WebUser register || §aNeuer Account (${0}) erfolgreich hinzugefügt!
Cmd WARN - Database not open || §eDatenbank ist ${0} - Dies könnte länger als erwartet dauern..
Cmd Web - Permission Levels || >\§70: Zugriff auf alle Seiten\§71: Zugriff auf '/players' Und alle Spielerseiten\§72: Zugriff auf alle Spielerseiten mit dem gleichen Username wie der Web-Account\§73+: Keine Berechtigung
Command Help - /plan analyze || Server-Übersicht
Command Help - /plan server || Server-Übersicht
Command Help - /plan dev || Entwicklungsmodus-Befehl
Command Help - /plan help || Zeigt eine Befehlsliste an
Command Help - /plan info || Zeigt die Version von Plan an
Command Help - /plan inspect || Zeigt eine Spielerseite an
Command Help - /plan info || Information about the plugin
Command Help - /plan player || Zeigt eine Spielerseite an
Command Help - /plan manage || Verwaltet die Plan-Datenbank
Command Help - /plan manage backup || Erstellt ein Backup der Datenbank
Command Help - /plan manage clear || Datenbank leeren
Command Help - /plan manage disable || Schalte eine Funktion temporär aus
Command Help - /plan manage export || Trigger export manually
Command Help - /plan manage hotswap || Ändere die Datenbank schnell
Command Help - /plan db hotswap || Ändere die Datenbank schnell
Command Help - /plan manage import || Daten importieren
Command Help - /plan manage move || Bewege die Daten zwischen den Datenbanken
Command Help - /plan db move || Bewege die Daten zwischen den Datenbanken
Command Help - /plan manage raw || View raw JSON of player data
Command Help - /plan manage remove || Entferne die Daten eines Spielers
Command Help - /plan manage restore || Spiele ein Backup ein
Command Help - /plan manage uninstalled || Mark a server as uninstalled in the database.
Command Help - /plan network || Netzwerk-Seite
Command Help - /plan players || Spieler-Seite
Command Help - /plan qinspect || Zeigt die Spielerinfo im Spiel
Command Help - /plan ingame || Zeigt die Spielerinfo im Spiel
Command Help - /plan register || Registriere einen Account
Command Help - /plan reload || Plan neuladen
Command Help - /plan search || Nach einem Spieler suchen
@ -316,7 +316,7 @@ In Depth Help - /plan manage restore ? || > §2Restore-Unterbefehl\ St
In Depth Help - /plan manage uninstalled ? || > §2Uninstalled Server Subcommand\ Marks a server as uninstalled in the database.\ Can not mark the server the command is being used on as uninstalled.\ Will affect ConnectionSystem.
In Depth Help - /plan network ? || > §2Netzwerk-Befehl\ Erstellt einen Link zur Netzwerkseite. Wenn du in einem Netzwerk bist, wird die Serverseite angezeigt.
In Depth Help - /plan players ? || > §2Spieler-Befehl\ Erstellt einen Link zur Spielerseite.
In Depth Help - /plan qinspect ? || > §2Schnell-Untersuchungs-Befehl\ Zeigt einige Informationen zu einem Spieler im Spiel.
In Depth Help - /plan ingame || Zeigt einige Informationen zu einem Spieler im Spiel.
In Depth Help - /plan reload ? || > §2Reload-Befehl\ Restartet das plugin mit onDisable and onEnable.\ §bDamit kann NICHT die jar getauscht werden
In Depth Help - /plan search ? || > §2Such-Befehl\ Erstellt eine Liste mit Spielernamen, die mit der Suche übereinstimmen.\§7 Beispiel: /plan search 123 - Gibt alle Spieler mit 123 im Namen aus.
In Depth Help - /plan servers ? || > §2Server-Command\ Zeigt eine Liste mit allen Servern in der datenbank.\ Kann verwendet werden, um Probleme mit Registrierungen in der Datenbank in einem Netzwerk zu beheben.

View File

@ -40,26 +40,26 @@ Cmd SUCCESS - Feature disabled || §aDisabled '${0}' temporaril
Cmd SUCCESS - WebUser register || §aAdded a new user (${0}) successfully!
Cmd WARN - Database not open || §eDatabase is ${0} - This might take longer than expected..
Cmd Web - Permission Levels || >\§70: Access all pages\§71: Access '/players' and all player pages\§72: Access player page with the same username as the webuser\§73+: No permissions
Command Help - /plan analyze || View the Server Page
Command Help - /plan server || View the Server Page
Command Help - /plan dev || Development mode command
Command Help - /plan help || Show command list
Command Help - /plan info || Check the version of Plan
Command Help - /plan inspect || View a Player Page
Command Help - /plan info || Information about the plugin
Command Help - /plan player || View a Player Page
Command Help - /plan manage || Manage Plan Database
Command Help - /plan manage backup || Backup a Database
Command Help - /plan manage clear || Clear a Database
Command Help - /plan manage disable || Disable a feature temporarily
Command Help - /plan manage export || Trigger export manually
Command Help - /plan manage hotswap || Change Database quickly
Command Help - /plan db hotswap || Change Database quickly
Command Help - /plan manage import || Import data from elsewhere
Command Help - /plan manage move || Move data between Databases
Command Help - /plan db move || Move data between Databases
Command Help - /plan manage raw || View raw JSON of player data
Command Help - /plan manage remove || Remove Player's data
Command Help - /plan manage restore || Restore a previous Backup
Command Help - /plan manage uninstalled || Mark a server as uninstalled in the database.
Command Help - /plan network || View the Network Page
Command Help - /plan players || View the Players Page
Command Help - /plan qinspect || View Player info in game
Command Help - /plan ingame || View Player info in game
Command Help - /plan register || Register a Web User
Command Help - /plan reload || Restart Plan
Command Help - /plan search || Search for a player name
@ -316,7 +316,7 @@ In Depth Help - /plan manage restore ? || > §2Restore Subcommand\ Res
In Depth Help - /plan manage uninstalled ? || > §2Uninstalled Server Subcommand\ Marks a server as uninstalled in the database.\ Can not mark the server the command is being used on as uninstalled.\ Will affect ConnectionSystem.
In Depth Help - /plan network ? || > §2Network Command\ Displays link to the network page.\ If not on a network, this page displays the server page.
In Depth Help - /plan players ? || > §2Players Command\ Displays link to the players page.
In Depth Help - /plan qinspect ? || > §2Quick Inspect Command\ Displays some information about the player in game.
In Depth Help - /plan ingame || Displays some information about the player in game.
In Depth Help - /plan reload ? || > §2Reload Command\ Restarts the plugin using onDisable and onEnable.\ §bDoes not support swapping jar on the fly
In Depth Help - /plan search ? || > §2Search Command\ Get a list of Player names that match the given argument.\§7 Example: /plan search 123 - Finds all users with 123 in their name.
In Depth Help - /plan servers ? || > §2Servers Command\ Displays list of Plan servers in the Database.\ Can be used to debug issues with database registration on a network.

View File

@ -40,26 +40,26 @@ Cmd SUCCESS - Feature disabled || §aDeshabilitado '${0}' tempo
Cmd SUCCESS - WebUser register || §a¡Se ha añadido al nuevo usuario (${0}) exitosamente!
Cmd WARN - Database not open || §eLa base de datos es ${0} - Esto puede durar más de lo esperado..
Cmd Web - Permission Levels || >\§70: Acceso a todas las páginas\§71: Acceso '/players' y a todas las páginas de los jugadores\§72: Acceso a la pagina del jugador con el mismo nombre de usuario que el usuario web\§73+: Sin permisos
Command Help - /plan analyze || Mira la página del servidor
Command Help - /plan server || Mira la página del servidor
Command Help - /plan dev || Comando para el modo desarrollador
Command Help - /plan help || Mostrar la lista de comandos
Command Help - /plan info || Muestra la version de Plan
Command Help - /plan inspect || Ver la página de un jugador
Command Help - /plan info || Information about the plugin
Command Help - /plan player || Ver la página de un jugador
Command Help - /plan manage || Gestiona la base de datos de un jugador
Command Help - /plan manage backup || Recupera una base de datos
Command Help - /plan manage clear || Borra una base de datos
Command Help - /plan manage disable || Deshabilita una característica temporalmente
Command Help - /plan manage export || Provoca la exportación manualmente
Command Help - /plan manage hotswap || Cambia la base de datos rápidamente
Command Help - /plan db hotswap || Cambia la base de datos rápidamente
Command Help - /plan manage import || Importa los datos en otra parte
Command Help - /plan manage move || Mueve los datos entre base de datos
Command Help - /plan db move || Mueve los datos entre base de datos
Command Help - /plan manage raw || Ver los datos JSON frescos de un jugador
Command Help - /plan manage remove || Borra los datos de un jugador
Command Help - /plan manage restore || Restaura un anterior Backup
Command Help - /plan manage uninstalled || Marca como desinstalado un servidor en la base de datos
Command Help - /plan network || Ver la página de la red
Command Help - /plan players || Ver la página de los jugadores
Command Help - /plan qinspect || Ver información de los jugadores en el juego
Command Help - /plan ingame || Ver información de los jugadores en el juego
Command Help - /plan register || Registrar un usuario web
Command Help - /plan reload || Resetear Plan
Command Help - /plan search || Buscar el nombre de un jugador
@ -317,7 +317,7 @@ In Depth Help - /plan manage restore ? || > §2Subcomando restaurar\ R
In Depth Help - /plan manage uninstalled ? || > §2Subcomando servidor desinstalado\ Marca un servidor como desinstalado en la base de datos.\ No se puede usar el comando para aquel servidor que ya este marcado como desinstalado.\ Afecta a ConnectionSystem.
In Depth Help - /plan network ? || > §2Comando red\ Proporciona un link a la red.\ Si no es a una red, proporciona uno a la pagina del servidor.
In Depth Help - /plan players ? || > §2Comando jugadores\ Proporciona un link a la página del jugador.
In Depth Help - /plan qinspect ? || > §2Comando inspeccion rapida\ Proporciona información sobre un jugador en el juego.
In Depth Help - /plan ingame || Proporciona información sobre un jugador en el juego.
In Depth Help - /plan reload ? || > §2Comando recargar\ Resetea el plugin usando onDisable y onEnable.\ §bNo soporta el intercambio del jar sobre la marcha
In Depth Help - /plan search ? || > §2Comando buscar\ Da una lista con los nombres de los jugadores que coinciden con los argumentos dados.\§7 Ejemplo: /plan search 123 - Encuentra todos los jugadores con un 123 en su nombre.
In Depth Help - /plan servers ? || > §2Comando servidores\ Proporciona una lista de los servidores de Plan.\ Puede ser usado para advertir errores con un registro en la base de datos de la red.

View File

@ -40,26 +40,26 @@ Cmd SUCCESS - Feature disabled || §aSammutettiin '${0}' toista
Cmd SUCCESS - WebUser register || §aLisättiin uusi Web Käyttäjä (${0})!
Cmd WARN - Database not open || §eTietokanta: ${0} - Tämä voi viedä hiukan aikaa..
Cmd Web - Permission Levels || >\§70: Pääsy kaikille sivuille\§71: Pääsy '/players' ja pelaajien sivuille\§72: Pääsy pelaajan sivulle, jolla on sama nimi kuin Web Käyttäjällä\§73+: Ei pääsyä
Command Help - /plan analyze || Katso Palvelimen sivua
Command Help - /plan server || Katso Palvelimen sivua
Command Help - /plan dev || Kehitys komento
Command Help - /plan help || Komentojen lista
Command Help - /plan info || Tarkista Plan versio
Command Help - /plan inspect || Katso Pelaajan sivua
Command Help - /plan info || Information about the plugin
Command Help - /plan player || Katso Pelaajan sivua
Command Help - /plan manage || Hallitse Plan tietokantaa
Command Help - /plan manage backup || Varmuuskopioi tietokanta
Command Help - /plan manage clear || Tyhjennä tietokanta
Command Help - /plan manage disable || Sammuta osa toistaiseksi
Command Help - /plan manage export || Vie manuaalisesti
Command Help - /plan manage hotswap || Vaihda tietokantaa lennosta
Command Help - /plan db hotswap || Vaihda tietokantaa lennosta
Command Help - /plan manage import || Tuo tietoa muualta
Command Help - /plan manage move || Siirrä tietoa tietokantojen välillä
Command Help - /plan db move || Siirrä tietoa tietokantojen välillä
Command Help - /plan manage raw || Tarkastele pelaajan tietoja JSON:na
Command Help - /plan manage remove || Poista pelaajan tiedot
Command Help - /plan manage restore || Palauta teitokannan varmuuskopio
Command Help - /plan manage uninstalled || Merkkaa palvelin poistetuksi tietokantaan.
Command Help - /plan network || Katso Verkoston sivua
Command Help - /plan players || Katso Pelaajat sivua
Command Help - /plan qinspect || Katso pelaajan tietoja pelissä
Command Help - /plan ingame || Katso pelaajan tietoja pelissä
Command Help - /plan register || Rekisteröi Web Käyttäjä
Command Help - /plan reload || Käynnistä Plan uudelleen
Command Help - /plan search || Etsi pelaajan nimeä
@ -316,7 +316,7 @@ In Depth Help - /plan manage restore ? || > §2Palautus Alikomento\ Pa
In Depth Help - /plan manage uninstalled ? || > §2Uninstalled Server Subcommand\ Marks a server as uninstalled in the database.\ Can not mark the server the command is being used on as uninstalled.\ Will affect ConnectionSystem.
In Depth Help - /plan network ? || > §2Verkosto Komento\ Näyttää linkin verkosto sivulle.\ Jos palvelin ei ole verkostossa, näyttää tämä sivu palvelimen sivun.
In Depth Help - /plan players ? || > §2Pelaajat Komento\ Näyttää linkin pelaajan sivulle.
In Depth Help - /plan qinspect ? || > §2Pika-tutkimus Komento\ Näyttää tietoja pelaajasta pelin sisällä.
In Depth Help - /plan ingame || Näyttää tietoja pelaajasta pelin sisällä.
In Depth Help - /plan reload ? || > §2Uudelleenlataus Komento\ Käynnistää Plan:in uudelleen.\ §bEi tue jar:in vaihtoa lennosta
In Depth Help - /plan search ? || > §2Haku Komento\ Hae pelaajannimiä jollain hakusanalla.\§7 Esim: /plan search 123 - Etsii kaikki pelaajat joilla on 123 nimessään.
In Depth Help - /plan servers ? || > §2Palvelimet Komento\ Näyttää tietokannassa olevat Plan palvelimet.\ Voidaan käyttää yhteys ongelmien tutkimiseen.

View File

@ -40,26 +40,26 @@ Cmd SUCCESS - Feature disabled || §aFontionnalité '${0}' temp
Cmd SUCCESS - WebUser register || §aAjout d'un nouvel utilisateur (${0}) avec succès !
Cmd WARN - Database not open || §eLa base de données est : ${0} - Cela pourrait prendre plus de temps que prévu...
Cmd Web - Permission Levels || >\§70: Accéder à toutes les pages.\§71: Accéder au '/players' et à toutes les pages des joueurs.\§72: Accéder à la page du joueur avec le même nom d'utilisateur que l'utilisateur Web.\§73+: Pas de permission.
Command Help - /plan analyze || Voir la page du serveur.
Command Help - /plan server || Voir la page du serveur.
Command Help - /plan dev || Commande du mode de développement.
Command Help - /plan help || Visualiser la liste des commandes.
Command Help - /plan info || Visualiser la version de Plan.
Command Help - /plan inspect || Visualiser la page d'un joueur.
Command Help - /plan info || Information about the plugin
Command Help - /plan player || Visualiser la page d'un joueur.
Command Help - /plan manage || Gérer la base de données de Plan.
Command Help - /plan manage backup || Sauvegarder une base de données.
Command Help - /plan manage clear || Effacer une base de données.
Command Help - /plan manage disable || Désactiver temporairement une fonctionnalité.
Command Help - /plan manage export || Déclencher l'exportation manuelle.
Command Help - /plan manage hotswap || Changer rapidement de base de données.
Command Help - /plan db hotswap || Changer rapidement de base de données.
Command Help - /plan manage import || Importer des données externes.
Command Help - /plan manage move || Déplacer des données entre des bases de données.
Command Help - /plan db move || Déplacer des données entre des bases de données.
Command Help - /plan manage raw || Visualiser le JSON brut des données du joueur.
Command Help - /plan manage remove || Supprimer les données d'un joueur.
Command Help - /plan manage restore || Restaurer une sauvegarde précédente.
Command Help - /plan manage uninstalled || Mark a server as uninstalled in the database.
Command Help - /plan network || Visualiser la page du réseau.
Command Help - /plan players || Visualiser la page des joueurs.
Command Help - /plan qinspect || Visualiser les informations d'un joueur (en jeu).
Command Help - /plan ingame || Visualiser les informations d'un joueur (en jeu).
Command Help - /plan register || Enregistrer un utilisateur Web.
Command Help - /plan reload || Recharger Plan.
Command Help - /plan search || Rechercher un joueur.
@ -317,7 +317,7 @@ In Depth Help - /plan manage restore ? || > §2Sous-commande de restaur
In Depth Help - /plan manage uninstalled ? || > §2Sous-commande de serveur désinstallé\ Marque un serveur comme désinstallé dans la base de données.\ Impossible de marquer le serveur sur lequel la commande est utilisée comme désinstallé.\ Influencera le ConnectionSystem.
In Depth Help - /plan network ? || > §2Sous-commande du réseau\ Affiche le lien vers la page du réseau.\ S'il ne s'agit pas d'un réseau, elle affiche la page du serveur.
In Depth Help - /plan players ? || > §2Commande des joueurs\ Affiche un lien vers la page des joueurs.
In Depth Help - /plan qinspect ? || > §2Commande d'inspection rapide\ Affiche des informations sur un joueur en jeu.
In Depth Help - /plan ingame || Affiche des informations sur un joueur en jeu.
In Depth Help - /plan reload ? || > §2Commande de rechargement\ Redémarre le plugin en utilisant onDisable et onEnable.\ §bNe supporte pas l'échange de .jar à la volée (sans redémarrage complet)
In Depth Help - /plan search ? || > §2Commande de recherches\ Obtient une liste des joueurs correspondant à l'argument donné.\§7 Exemple: /plan search 123 - Recherche tous les utilisateurs dont le nom comporte '123'.
In Depth Help - /plan servers ? || > §2Commande des serveurs\ Affiche la liste des serveurs de Plan présents dans la base de données.\ Peut être utilisé pour résoudre les problèmes d'enregistrement de base de données sur un réseau.

View File

@ -40,26 +40,26 @@ Cmd SUCCESS - Feature disabled || §aDisabilitato temporaneamen
Cmd SUCCESS - WebUser register || §aAggiunto il nuovo utente (${0})!
Cmd WARN - Database not open || §eDatabase è ${0} - Potrebbe volerci un pò di più tempo..
Cmd Web - Permission Levels || >\§70: Accesso a tutte le pagine\§71: Accesso '/players' e tutti i dati dei giocatori\§72: Accedi alle pagine dei giocatori con lo stesso username dell'Utente Web.\§73+: Nessun permesso
Command Help - /plan analyze || Mostra la pagina del server
Command Help - /plan server || Mostra la pagina del server
Command Help - /plan dev || Commando Modalità Sviluppo
Command Help - /plan help || Mostra i commandi disponibili
Command Help - /plan info || Controlla la versione di Plan
Command Help - /plan inspect || Mostra la pagina di un giocatore
Command Help - /plan info || Information about the plugin
Command Help - /plan player || Mostra la pagina di un giocatore
Command Help - /plan manage || Gestisci il database di Plan
Command Help - /plan manage backup || Backup del Database
Command Help - /plan manage clear || Pulisci il Database
Command Help - /plan manage disable || Disabilita una feature temporaneamente
Command Help - /plan manage export || Attiva l'esportazione manualmente
Command Help - /plan manage hotswap || Cambia il database rapidamente
Command Help - /plan db hotswap || Cambia il database rapidamente
Command Help - /plan manage import || Importa i dati da un'altra parte
Command Help - /plan manage move || Sposta i dati tra i database
Command Help - /plan db move || Sposta i dati tra i database
Command Help - /plan manage raw || Mostra il raw JSON dei dati di un giocatore
Command Help - /plan manage remove || Rimuove i dati del giocatore
Command Help - /plan manage restore || Ripristina un backup
Command Help - /plan manage uninstalled || Segna il server come rimosso dal database.
Command Help - /plan network || Mostra la pagina del network
Command Help - /plan players || Mostra la pagina dei giocatori
Command Help - /plan qinspect || Mostra info dei giocatori in gioco
Command Help - /plan ingame || Mostra info dei giocatori in gioco
Command Help - /plan register || Registra un nuovo utente web
Command Help - /plan reload || Ricarica Plan
Command Help - /plan search || Cerca il nome di un giocatore
@ -316,7 +316,7 @@ In Depth Help - /plan manage restore ? || > §2Sottocomando Restore\ R
In Depth Help - /plan manage uninstalled ? || > §2Sottocomando server Uninstalled\ Contrassegna un server come disinstallato nel database. \ Impossibile contrassegnare il server su cui il comando viene utilizzato come disinstallato. \ Interesserà a ConnectionSystem.
In Depth Help - /plan network ? || > §2Comando Network\ Visualizza il collegamento alla pagina di rete. \ Se non su una rete, questa pagina visualizza la pagina del server.
In Depth Help - /plan players ? || > §2Comando Players\ Visualizza il collegamento alla pagina dei giocatori.
In Depth Help - /plan qinspect ? || > §2Comando Quick Inspect\ Visualizza alcune informazioni sul giocatore in gioco.
In Depth Help - /plan ingame || Visualizza alcune informazioni sul giocatore in gioco.
In Depth Help - /plan reload ? || > §2Comando Reload\ Riavvia il plug-in usando onDisable e onEnable. \ §bNon supporta lo scambio di jar al volo
In Depth Help - /plan search ? || > §2SComando Search\ Ottieni un elenco di nomi dei giocatori che corrispondono all'argomento dato. \ §7 Esempio: / plan search 123 - Trova tutti gli utenti con 123 nel loro nome.
In Depth Help - /plan servers ? || > §2Comando Servers\ Visualizza l'elenco dei server Plan nel database. \ Può essere utilizzato per eseguire il debug di problemi con la registrazione del database su una rete.

View File

@ -40,26 +40,26 @@ Cmd SUCCESS - Feature disabled || §a次にプラグインが
Cmd SUCCESS - WebUser register || §a新規ユーザー「(${0})」の登録に成功しました!
Cmd WARN - Database not open || §eデータベースは${0}です - 予想以上に時間がかかるかもしれません
Cmd Web - Permission Levels || >\§70: 全てのページにアクセスできます\§71:「/players」と全てのプレイヤーページにアクセスできます\§72: ウェブユーザーと同じユーザー名でプレイヤーページにアクセスできます\§73+:権限を保持していません
Command Help - /plan analyze || サーバーページのURLを表示します
Command Help - /plan server || サーバーページのURLを表示します
Command Help - /plan dev || 開発モードコマンド
Command Help - /plan help || コマンドリストを表示します
Command Help - /plan info || 「Plan」のバージョンを表示します
Command Help - /plan inspect || 「プレイヤー」のURLを表示します
Command Help - /plan info || Information about the plugin
Command Help - /plan player || 「プレイヤー」のURLを表示します
Command Help - /plan manage || 「Plan」のデータベースを管理します
Command Help - /plan manage backup || データベースをバックアップします
Command Help - /plan manage clear || データベースを消去します
Command Help - /plan manage disable || 機能を一時的に無効にします
Command Help - /plan manage export || 手動でデータのエクスポートを行います
Command Help - /plan manage hotswap || データベースを高速で変更します
Command Help - /plan db hotswap || データベースを高速で変更します
Command Help - /plan manage import || 他の場所からデータをインポートします
Command Help - /plan manage move || データベース間でデータを移動します
Command Help - /plan db move || データベース間でデータを移動します
Command Help - /plan manage raw || プレイヤーデータのJSONファイルを直接表示ます
Command Help - /plan manage remove || プレイヤーのデータを削除します
Command Help - /plan manage restore || 以前のバックアップから復元します
Command Help - /plan manage uninstalled || 指定されたサーバーをデータベースからアンインストールします
Command Help - /plan network || 「ネットワーク」のページのURLを表示します
Command Help - /plan players || 「プレイヤー」のページのURLを表示します
Command Help - /plan qinspect || プレイヤー情報をゲーム内で表示します
Command Help - /plan ingame || プレイヤー情報をゲーム内で表示します
Command Help - /plan register || ウェブユーザーを登録します
Command Help - /plan reload || 「Plan」を再起動します
Command Help - /plan search || プレイヤー名を検索します
@ -316,7 +316,7 @@ In Depth Help - /plan manage restore ? || > §2復元補助コマンド
In Depth Help - /plan manage uninstalled ? || > §2サーバーアンインストール補助コマンド\ 指定されたサーバーをデータベースからアンインストールします\ コマンドが実行されているサーバーをアンインストールするサーバーとしてマークすることはできません\ サーバーの接続システムに影響します
In Depth Help - /plan network ? || > §2ネットワークコマンド\ 「ネットワーク」のページのURLを表示します\ BungeeCordのネットワーク上にない場合は、このページにサーバーページが表示されます。
In Depth Help - /plan players ? || > §2プレイヤーコマンド\ 「プレイヤー」のページのURLを表示します
In Depth Help - /plan qinspect ? || > §2クイック検査コマンド\ ゲーム内にいるプレイヤーに関する情報を表示します。
In Depth Help - /plan ingame || ゲーム内にいるプレイヤーに関する情報を表示します。
In Depth Help - /plan reload ? || > §2リロードコマンド\ 「onDisable」と「onEnable」を使ってプラグインを再起動します。\ §bその状態で「Swapping jar」は対応していません
In Depth Help - /plan search ? || > §2検索コマンド\ 与えられた引数に一致するプレイヤー名のリストを取得します\§7 例: /plan search 123 - 名前に「123」を含むすべてのユーザーを検索します
In Depth Help - /plan servers ? || > §2サーバーコマンド\ データベース内の「Plan」サーバーのリストを表示します\ BungeeCordネットワークのデータベースにサーバーを登録する際の問題をデバッグするために使用できます

View File

@ -40,26 +40,26 @@ Cmd SUCCESS - Feature disabled || §aDesativado '${0}' temporar
Cmd SUCCESS - WebUser register || §aFoi adicionado um novo usuário (${0})!
Cmd WARN - Database not open || §eDatabase is ${0} - This might take longer than expected..
Cmd Web - Permission Levels || >\§70: Acesse todas as páginas\§71: Acesse '/players' e todas as páginas de jogadores\§72: Acesse a página de jogado com o mesmo usuário do login\§73+: Sem permissões
Command Help - /plan analyze || Visualizar a página do servidor
Command Help - /plan server || Visualizar a página do servidor
Command Help - /plan dev || Comando do modo de desenvolvimento
Command Help - /plan help || Mostrar a lista de comandos
Command Help - /plan info || Verificar a versão do Plan
Command Help - /plan inspect || Visualizar a página do jogador
Command Help - /plan info || Information about the plugin
Command Help - /plan player || Visualizar a página do jogador
Command Help - /plan manage || Gerenciar o banco de dados do Plan
Command Help - /plan manage backup || Fazer backup do banco de dados
Command Help - /plan manage clear || Limpar o banco de dados
Command Help - /plan manage disable || Desativar um recurso temporariamente
Command Help - /plan manage export || Trigger export manually
Command Help - /plan manage hotswap || Alterar o banco de dados rapidamente
Command Help - /plan db hotswap || Alterar o banco de dados rapidamente
Command Help - /plan manage import || Importar dados de outro lugar
Command Help - /plan manage move || Mover dados entre banco de dados
Command Help - /plan db move || Mover dados entre banco de dados
Command Help - /plan manage raw || View raw JSON of player data
Command Help - /plan manage remove || Remvoer dados de jogadores
Command Help - /plan manage restore || Restaurar último backup realizado
Command Help - /plan manage uninstalled || Mark a server as uninstalled in the database.
Command Help - /plan network || Visualizar a página da Network
Command Help - /plan players || Visualizar a página de Jogadores
Command Help - /plan qinspect || Visualziar informações do Jogador in-game
Command Help - /plan ingame || Visualziar informações do Jogador in-game
Command Help - /plan register || Registrar um usuário web
Command Help - /plan reload || Reiniciar Plan
Command Help - /plan search || Buscar por um nome de jogador
@ -316,7 +316,7 @@ In Depth Help - /plan manage restore ? || > §2Restore Subcommand\ Res
In Depth Help - /plan manage uninstalled ? || > §2Uninstalled Server Subcommand\ Marks a server as uninstalled in the database.\ Can not mark the server the command is being used on as uninstalled.\ Will affect ConnectionSystem.
In Depth Help - /plan network ? || > §2Comando Network\ Mostra o link para a página da network.\ Se não for uma network, essa página mostra a página do servidor.
In Depth Help - /plan players ? || > §2Comando Players\ Mostra o link para a página de jogadores.
In Depth Help - /plan qinspect ? || > §2Comando Quick Inspect\ Mostra algumas informações sobre o jogador in-game.
In Depth Help - /plan ingame || Mostra algumas informações sobre o jogador in-game.
In Depth Help - /plan reload ? || > §2Comando Reload\ Reinicia o plugin usando onDisable e onEnable.\ §bIsso não suporta a troca de JAR (caso seja isso, precisa reiniciar o servidor)
In Depth Help - /plan search ? || > §2Comando Search\ Pega uma lista de jogadores em que o nome coincida com o argumento dado.\§7 Exemplo: /plan search 123 - Encontra todos os jogadores com 123 no nome.
In Depth Help - /plan servers ? || > §2Comando Servers\ Mostra uma lista de servidores do banco de dados.\ Podem ser usados para depurar problemas com registros no banco de dados da network.

View File

@ -46,26 +46,26 @@ Cmd SUCCESS - Feature disabled || §aВременно откл
Cmd SUCCESS - WebUser register || §aНовый пользователь (${0}) успешно добавлен!
Cmd WARN - Database not open || §eБаза данных ${0} - Это может занять больше времени, чем ожидалось.
Cmd Web - Permission Levels || >\§70: Доступ ко всем страницам\§71: Доступ к '/players' и всем страницам игроков\§72: Доступ к странице игрока с тем же именем пользователя, что и для веб-пользователя\§73+: Нет прав
Command Help - /plan analyze || Просмотр страницы сервера
Command Help - /plan server || Просмотр страницы сервера
Command Help - /plan dev || Команда режима разработки
Command Help - /plan help || Показать список команд
Command Help - /plan info || Проверка версии Plan
Command Help - /plan inspect || Просмотр страницы игрока
Command Help - /plan info || Information about the plugin
Command Help - /plan player || Просмотр страницы игрока
Command Help - /plan manage || Управление базой данных Plan
Command Help - /plan manage backup || Резервное копирование базы данных
Command Help - /plan manage clear || Очистить базу данных
Command Help - /plan manage disable || Временно отключить функцию
Command Help - /plan manage export || Запуск экспорта вручную
Command Help - /plan manage hotswap || Быстрое изменение базы данных
Command Help - /plan db hotswap || Быстрое изменение базы данных
Command Help - /plan manage import || Импортирование данных из других мест
Command Help - /plan manage move || Перемещение данных между базами данных
Command Help - /plan db move || Перемещение данных между базами данных
Command Help - /plan manage raw || Просмотр необработанных JSON данных игрока
Command Help - /plan manage remove || Удалить данные игрока
Command Help - /plan manage restore || Восстановить предыдущую резервную копию
Command Help - /plan manage uninstalled || Отметить сервер как удаленный в базе данных
Command Help - /plan network || Просмотр веб-страницы
Command Help - /plan players || Посмотреть страницу с игроками
Command Help - /plan qinspect || Просмотр информации об игроке в игре
Command Help - /plan ingame || Просмотр информации об игроке в игре
Command Help - /plan register || Зарегистрировать веб-пользователя
Command Help - /plan reload || Перезапустить Plan
Command Help - /plan search || Поиск по имени игрока
@ -325,7 +325,7 @@ In Depth Help - /plan manage restore ? || > §2Подкоманда в
In Depth Help - /plan manage uninstalled ? || > §2Подкоманда удаления сервера\ Помечает сервер как удаленный из базы данных.\ Невозможно использовать команду для сервера, который уже помечен как удаленный.\ Будет влиять на ConnectionSystem.
In Depth Help - /plan network ? || > §2Сетевая команда\ Отображает ссылку на сетевую страницу.\ Если нет сетевой, то эта страница отображает страницу сервера.
In Depth Help - /plan players ? || > §2Команда для отображения списка игроков\ Отображает ссылку на страницу игроков.
In Depth Help - /plan qinspect ? || > §2Команда быстрого осмотра\ Отображает некоторую информацию о игроке в игре.
In Depth Help - /plan ingame || Отображает некоторую информацию о игроке в игре.
In Depth Help - /plan reload ? || > §2Команда перезагрузки\ Перезапускает плагин, используя onDisable и onEnable.\ §bНе поддерживает обмен .jar файлов на лету
In Depth Help - /plan search ? || > §2Команда поиска\ Получение списка имен игроков, которые соответствуют заданному аргументу.\§7 Например: /plan search 123 - Находит всех пользователей с 123 в их имени.
In Depth Help - /plan servers ? || > §2Команда для отображения списка серверов\ Отображает список серверов Plan в базе данных.\ Может использоваться для устранения проблем с регистрацией базы данных в сети.

View File

@ -40,26 +40,26 @@ Cmd SUCCESS - Feature disabled || §aKapatıldı '${0}' Plugin
Cmd SUCCESS - WebUser register || §aYeni kullanıcı (${0}) başarıyla eklendi!
Cmd WARN - Database not open || §eDatabase is ${0} - This might take longer than expected..
Cmd Web - Permission Levels || >\§70: Access all pages\§71: Access '/players' and all player pages\§72: Access player page with the same username as the webuser\§73+: No permissions
Command Help - /plan analyze || Sunucu Sayfasını gösterir
Command Help - /plan server || Sunucu Sayfasını gösterir
Command Help - /plan dev || Geliştirme modu komutu
Command Help - /plan help || Komut listesini gösterir
Command Help - /plan info || Pluginin sürümünü gösterir
Command Help - /plan inspect || Oyunucunun sayfasını gösterir
Command Help - /plan info || Information about the plugin
Command Help - /plan player || Oyunucunun sayfasını gösterir
Command Help - /plan manage || Plan Veritabanını Yönet
Command Help - /plan manage backup || Veritabanını yedekler
Command Help - /plan manage clear || Veritabanını temizler
Command Help - /plan manage disable || Bir özelliği geçici olarak devre dışı bırakır
Command Help - /plan manage export || Trigger export manually
Command Help - /plan manage hotswap || Veritabının hızlıca değiştirir
Command Help - /plan db hotswap || Veritabının hızlıca değiştirir
Command Help - /plan manage import || Başka bir yerden veri alır
Command Help - /plan manage move || Veriyi Veritabanları arasında taşır
Command Help - /plan db move || Veriyi Veritabanları arasında taşır
Command Help - /plan manage raw || View raw JSON of player data
Command Help - /plan manage remove || Oyuncu bilgilerini siler
Command Help - /plan manage restore || Önceki bir Yedeği geri yükler
Command Help - /plan manage uninstalled || Mark a server as uninstalled in the database.
Command Help - /plan network || Network sayfasını görüntüler
Command Help - /plan players || Oyuncu sayfasını görüntüler
Command Help - /plan qinspect || Oyuncu bilgilerini oyun içi gösterir
Command Help - /plan ingame || Oyuncu bilgilerini oyun içi gösterir
Command Help - /plan register || Web kullanıcısna kayıt yapar
Command Help - /plan reload || Plugini yeniden başlatır
Command Help - /plan search || Bir oyuncu adı arar
@ -316,7 +316,7 @@ In Depth Help - /plan manage restore ? || > §2Onarım Alt Komutu\ Ön
In Depth Help - /plan manage uninstalled ? || > §2Uninstalled Server Subcommand\ Marks a server as uninstalled in the database.\ Can not mark the server the command is being used on as uninstalled.\ Will affect ConnectionSystem.
In Depth Help - /plan network ? || > §2Network Komutu\ Ağ sayfasının bağlantısını görüntüler.\ Networkte değilse, bu sayfa sunucu sayfasını görüntüler.
In Depth Help - /plan players ? || > §2Oyuncu Komutu\ Oyuncular sayfasına olan bağlantıyı verir.
In Depth Help - /plan qinspect ? || > §2Hızlı Denetim Komutu\ Oyun içindeyken oyuncu hakkında bilgi verir.
In Depth Help - /plan ingame || Oyun içindeyken oyuncu hakkında bilgi verir.
In Depth Help - /plan reload ? || > §2Yeniden Başlatma Komutu\ Restarts the plugin using onDisable and onEnable.\ §bDoes not support swapping jar on the fly
In Depth Help - /plan search ? || > §2Arama Komutu\ Verilen argümanla eşleşen Oyuncu isimlerinin bir listesini alın.\§7 Örnek: /plan search 123 - 123 adındaki tüm kullanıcıları adında bulur.
In Depth Help - /plan servers ? || > §2Sunucu Komutu\ Veritabanındaki Plan sunucularının listesini görüntüler.\ Networkteki veritabanı kaydıyla ilgili sorunları çözmek için kullanılabilir.

View File

@ -22,7 +22,7 @@ import com.djrapitops.plan.gathering.domain.GeoInfo;
import com.djrapitops.plan.gathering.domain.Session;
import com.djrapitops.plan.gathering.domain.TPS;
import com.djrapitops.plan.settings.locale.Message;
import com.djrapitops.plan.settings.locale.lang.CmdHelpLang;
import com.djrapitops.plan.settings.locale.lang.HelpLang;
import com.djrapitops.plan.settings.locale.lang.Lang;
import com.djrapitops.plan.utilities.java.Lists;
import org.junit.jupiter.api.Test;
@ -99,9 +99,9 @@ class ComparatorTest {
@Test
void localeEntryComparator() {
Map<Lang, Message> messageMap = new HashMap<>();
messageMap.put(CmdHelpLang.SERVERS, new Message(RandomData.randomString(10)));
messageMap.put(CmdHelpLang.ANALYZE, new Message(RandomData.randomString(10)));
messageMap.put(CmdHelpLang.MANAGE_RESTORE, new Message(RandomData.randomString(10)));
messageMap.put(HelpLang.SERVERS, new Message(RandomData.randomString(10)));
messageMap.put(HelpLang.SERVER, new Message(RandomData.randomString(10)));
messageMap.put(HelpLang.DB_RESTORE, new Message(RandomData.randomString(10)));
List<Lang> result = messageMap.entrySet().stream()
.sorted(new LocaleEntryComparator())
@ -109,9 +109,9 @@ class ComparatorTest {
.collect(Collectors.toList());
List<Lang> expected = Arrays.asList(
CmdHelpLang.ANALYZE,
CmdHelpLang.MANAGE_RESTORE,
CmdHelpLang.SERVERS
HelpLang.SERVER,
HelpLang.DB_RESTORE,
HelpLang.SERVERS
);
assertEquals(expected, result);
}