From 61ce81dcfc304cd74e577e4ea38feca3b6349d42 Mon Sep 17 00:00:00 2001
From: lt-name <572413378@qq.com>
Date: Mon, 27 Jul 2020 10:07:23 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=8B=B1=E8=AF=AD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pom.xml | 2 +-
.../java/cn/lanink/blockhunt/BlockHunt.java | 1 +
src/main/resources/Language/en_US.yml | 117 ++++++++++++++++++
src/main/resources/config.yml | 2 +
src/main/resources/plugin.yml | 2 +-
5 files changed, 122 insertions(+), 2 deletions(-)
create mode 100644 src/main/resources/Language/en_US.yml
diff --git a/pom.xml b/pom.xml
index 44b3d7e..7bf58d1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
cn.lanink.cnBlockHunt
- 0.0.2
+ 0.0.3
diff --git a/src/main/java/cn/lanink/blockhunt/BlockHunt.java b/src/main/java/cn/lanink/blockhunt/BlockHunt.java
index 7632469..07a4d67 100644
--- a/src/main/java/cn/lanink/blockhunt/BlockHunt.java
+++ b/src/main/java/cn/lanink/blockhunt/BlockHunt.java
@@ -62,6 +62,7 @@ public void onLoad() {
this.languageMappingTable = this.config.get("languageMap", new HashMap<>());
//语言文件
saveResource("Language/zh_CN.yml", false);
+ saveResource("Language/en_US.yml", false);
File[] files = new File(getDataFolder() + "/Language").listFiles();
if (files != null && files.length > 0) {
for (File file : files) {
diff --git a/src/main/resources/Language/en_US.yml b/src/main/resources/Language/en_US.yml
new file mode 100644
index 0000000..f7156e2
--- /dev/null
+++ b/src/main/resources/Language/en_US.yml
@@ -0,0 +1,117 @@
+scoreboardAPINotFound: "§cPlease install ScoreboardAPI plugin in your server!"
+defaultSkinFailure: "§cFailed to load the default body skin!"
+startLoadingRoom: "§eStart loading game rooms..."
+roomLoadedSuccess: "§aSuccessfully loaded the game room: %name% !"
+roomLoadedFailureByConfig: "§cFailed to load the game room: %name% because its configuration file lacks something."
+roomLoadedFailureByLevel: "§cFailed to load the game room: %name% because we cant load its game map."
+roomLoadedAllSuccess: "§eAll game rooms have been checked with %number% game rooms loaded successfully!"
+roomUnloadSuccess: "§cThe game room: %name% have been unloaded!"
+roomUnloadFailure: "§cThe game room: %name% can not be unloaded!"
+pluginEnable: "§ePlugin §aBlockHunt§e enabled!§lWelcome to use!!!"
+pluginDisable: "§ePlugin §aBlockHunt§e disabled!§lThanks for your use!!!"
+useCmdInRoom: "§e >> §cYou can't use this commands here!"
+cmdHelp: "§eFor more help,please type: §b/%cmdName% help"
+userHelp: |-
+ §eBlockHunt-Help
+ §a/%cmdName% §eOpen Game UI
+ §a/%cmdName% join §eJoin a Game
+ §a/%cmdName% quit §eQuit a Game
+noPermission: "§cSORRY!But you don't have enough permission!"
+joinRoom: "§aYou joined the game room: %name%"
+joinRoomOnRoom: "§c You can't join a game because you've in a game room already!"
+joinRoomOnRiding: "§cYou can't join a game because you are riding something..."
+joinRandomRoom: "§a Randomly assigned rooms for you!"
+joinRoomIsPlaying: "§aThis room is playing, please wait!"
+joinRoomIsFull: "§aThe room is not vacant,please wait!"
+joinRoomIsNotFound: "§aCan't find this room!"
+joinRoomNotAvailable: "§aThere is no vacant room to use!"
+quitRoom: "§aYou have quit the room!"
+quitRoomNotInRoom: "§aYou are not in a room!"
+listRoom: "§eRoom list: §a %list%"
+useCmdInCon: "Please use command in the game!"
+adminHelp: |-
+ §eBlockHunt--Help
+ §a/%cmdName% §eOpen UI
+ §a/%cmdName% setwaitspawn §eSet the current location as the spawnpoint of the game
+ §a/%cmdName% addrandomspawn §eAdd the current location as the waiting spawnpoint of the game
+ §a/%cmdName% addblock §eAdd the block in your hand as a block that can be disguised
+ §a/%cmdName% setwaittime