diff --git a/README.md b/README.md index 763c0fd..a9f786a 100644 --- a/README.md +++ b/README.md @@ -129,9 +129,27 @@ The plugin works on spigot and paper servers but is significantly faster on pape (because it profits from asynchronous chunk loading an the better implementation of the isChunkGenerated method). +## Translation + +The **Mandarin** translation is provided by [NPBeta](https://github.com/NPBeta) and +was confirmed by [ed3d3d](https://twitter.com/ed3d3d). +The **German** and **English** translation is provided by me. +You can translate the plugin yourself and start a PR to this repository to add it to the +provided translation. + +1. create an i18n folder in the plugins folder (plugins/Chunkmaster) +2. copy the [default translations file](https://github.com/Trivernis/spigot-chunkmaster/blob/master/src/main/resources/i18n/DEFAULT.i18n.properties) +into the newly created folder and rename it to .i18n.properties +3. modify the values in the file for your translation (you can use minecraft § formatting sequences) +4. set the language property in the config file to your language abbrevation +5. start the plugin + +Now you should see your translation being used by the plugin for localized messages. + ## License -This project is licensed under the GPLv3.0 License - see the [LICENSE](https://github.com/Trivernis/spigot-chunkmaster/blob/master/LICENSE) for details. +This project is licensed under the GPLv3.0 License - see the +[LICENSE](https://github.com/Trivernis/spigot-chunkmaster/blob/master/LICENSE) for details. ## bStats diff --git a/build.gradle b/build.gradle index d89f698..df87519 100644 --- a/build.gradle +++ b/build.gradle @@ -22,7 +22,7 @@ idea { } group "net.trivernis" -version "1.2.1" +version "1.2.2" sourceCompatibility = 1.8 diff --git a/src/main/resources/i18n/zh.i18n.properties b/src/main/resources/i18n/zh.i18n.properties new file mode 100644 index 0000000..18a6d97 --- /dev/null +++ b/src/main/resources/i18n/zh.i18n.properties @@ -0,0 +1,75 @@ +RESUME_FOR_WORLD = 正在恢复执行 '%s' 世界的区块生成任务... +TASK_FINISHED = 任务 #%d 在生成 %d 个区块后完成. +TASK_CANCELED = 已取消任务 #%s. +TASK_LOAD_FAILED = §c加载任务 #%d 失败. +TASK_LOAD_SUCCESS = %d 个已保存的任务加载完成. +TASK_NOT_FOUND = §c任务 %s 未找到! +CREATE_DELAYED_LOAD = 正在创建延迟执行的区块生成任务... +TASK_PERIODIC_REPORT = 任务 #%d 正在 '%s' 世界执行. 进度: %d 区块 %s %s, 速度: %.1f 区块 / 秒, 最新生成的区块: %d, %d +TASK_SAVE_FAILED = §c保存任务时发生错误: %s + +WORLD_NAME_REQUIRED = §c你需要提供世界名称! +WORLD_NOT_FOUND = §c无法找到名为 §2%s §c的世界! +TASK_ALREADY_EXISTS = §c已存在 '%s' 的任务! +TASK_CREATION_SUCCESS = §9已创建 §2%s§9 世界的区块生成任务,§2%s§9 的 %s 区域! +TASK_UNIT_WORLDBORDER = 直到世界边界 +TASK_UNIT_RADIUS = 半径 %s +TASK_ID_REQUIRED = §c你需要提供任务 ID! +INVALID_ARGUMENT = §c在 %s: %s 存在无效的变量! + +PAUSED_TASKS_HEADER = 当前暂停的区块生成任务 +TASKS_ENTRY = - §9#%d§r - §2%s§r - §2%d 区块 %s§r +RUNNING_TASKS_HEADER = 当前运行的区块生成任务 +NO_GENERATION_TASKS = 无区块生成任务. + +PAUSE_SUCCESS = §9已暂停所有区块生成任务. +ALREADY_PAUSED = §c区块生成进程已经暂停! + +RESUME_SUCCESS = §9已恢复执行所有区块生成任务. +NOT_PAUSED = §c区块生成进程并未暂停! + +CONFIG_RELOADING = 正在重载配置文件... +CONFIG_RELOADED = §2配置文件重载完成! + +TELEPORTED = §9你已被传送到区块 §2%s, %s +TP_ONLY_PLAYER = §c此命令只能由玩家执行! + +NO_PERMISSION = §c你无权执行此命令! +SUBCOMMAND_NOT_FOUND = §c子命令 §2%s §c未找到! + +STOPPING_ALL_TASKS = 正在停止所有区块生成任务... +SAVING_TASK_PROGRESS = 正在保存任务进度 #%s 到数据库中... +DB_INIT = 正在初始化数据库... +DB_INIT_FINISHED = 数据库初始化完成. +DB_INIT_EROR = 初始化数据库时发生错误: %s. + +DATABASE_CONNECTION_ERROR = §c连接数据库失败! +SQL_ERROR = §cSQL %s 发生错误! +NO_DATABASE_CONNECTION = §c无法执行 SQL 语句: 无数据库连接. +CREATE_TABLE_DEFINITION = 已创建表 %s ,定义 %s. +TABLE_CREATE_ERROR = §c创建表 %s 失败. +UPDATE_TABLE_DEFINITION = 已更新表 %s ,SQL 语句为 %s. +UPDATE_TABLE_FAILED = 无法更新表 %s ,SQL 语句为 %s. + +TOO_FEW_ARGUMENTS = §c你没有提供足够的参数. +COORD_INVALID = §c提供的坐标 ('%s', '%s') 无效! +CENTER_UPDATED = §9世界 §2%s §9的中心已设为 §2(%s, %s)§9. +CENTER_INFO = §9世界 §2%s §9的中心为 §2(%s, %s)§9. + +PLUGIN_DETECTED = 检测到 %s 版本 %s + +RESUME_PLAYER_LEAVE = 在线玩家数量小于配置文件设定的阈值。正在恢复生成... +PAUSE_PLAYER_JOIN = 在线玩家数量达到配置文件设定的阈值。正在暂停生成... +PAUSE_MANUALLY = 生成进程已被手动暂停。将不会自动重启任务. + +STATS_HEADER = §n状态与统计§r +STATS_SERVER = §l服务器状态§r +STATS_SERVER_VERSION = - 服务器版本: §2%s§r +STATS_PLUGIN_VERSION = - 插件版本: §2%s§r +STATS_MEMORY = - 内存 (u/a): §2%d MB / %d MB = (%.2f percent)§r +STATS_CORES = - CPU 核心: §2%d§r + +STATS_WORLD_NAME = §l%s§r +STATS_ENTITY_COUNT = - §2%d§r 实体 +STATS_LOADED_CHUNKS = - §2%d§r 已载入区块 +STATS_PLUGIN_LOADED_CHUNKS = - §2%d§r 被 Chunk Master 载入的区块 diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 86d8f46..4c5f370 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,7 +1,7 @@ main: net.trivernis.chunkmaster.Chunkmaster name: Chunkmaster -version: '1.2.1' -description: Chunk commands plugin. +version: '1.2.2' +description: Automated world pregeneration. author: Trivernis website: trivernis.net api-version: '1.14'