Skip to content

Commit

Permalink
添加英语
Browse files Browse the repository at this point in the history
  • Loading branch information
lt-name committed Jul 27, 2020
1 parent cb180a8 commit 61ce81d
Show file tree
Hide file tree
Showing 5 changed files with 122 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>cn.lanink.cn</groupId>
<artifactId>BlockHunt</artifactId>
<version>0.0.2</version>
<version>0.0.3</version>

<licenses>
<license>
Expand Down
1 change: 1 addition & 0 deletions src/main/java/cn/lanink/blockhunt/BlockHunt.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
117 changes: 117 additions & 0 deletions src/main/resources/Language/en_US.yml
Original file line number Diff line number Diff line change
@@ -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 <roomName> §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 <time> §eSet the waiting time after the number of players is enough
§a/%cmdName% setgametime <time> §eSet the maximum time of each game round
§a/%cmdName% setgamemode <mode> §eSet room game mode
§a/%cmdName% startroom §eStart Game
§a/%cmdName% stoproom §eEnd Game
§a/%cmdName% reloadroom §Reload all the rooms
§a/%cmdName% unloadroom §eClose all rooms and uninstall config
adminSetSpawn: "§aThe default spawnpoint is set successfully!"
adminAddRandomSpawn: "§aThe random spawnpoint is set successfully!"
adminAddGoldSpawn: "§aThe default gold ingot generation point is set successfully!"
adminNotNumber: "§aPlease input number"
adminSetWaitTime: "§aWaiting time is set to:%time%"
adminSetGameTime: "§aTime of each game is set to:%time%"
adminSetGameTimeShort: "§aThe minimum time of each game should be more than 1 minute!"
adminSetGameMode: "§aThe mode of this room is set to :%mode%"
adminSetGameModeNotFound: "§cRoom game mode: %mode% does not exist!"
adminStartRoom: "§aThe game has been forcibly started!"
adminStartRoomNoPlayer: "§aThe number of the players is less than 3,you can't start game."
adminStartRoomIsPlaying: "§cThe room is playing!"
adminLevelNoRoom: "§aYou are not in the game room"
adminStopRoom: "§aThe room has been forcibly ended!"
adminReload: "§aConfig reload complete! Please check the information in the background!"
adminUnload: "§aAll rooms unloaded! Please check the information in the background!"
roomSafeKick: |-
§cRoom is closed abnormally!
For the safety of your backpack, please re-enter the server later!
adminAddBlock: "§aThe block %id% has been added as a disguise block!"
adminAddBlockFailure: "§cItem: %id% cannot be set as a block that can be disguised!"
preyChat: "§a[prey] %player% + §b >>> %message%"
huntersChat: "§a[hunters] %player% + §b >>> %message%"
tpJoinRoomLevel: "§e >> §cPlease join a map before you start playing"
tpQuitRoomLevel: "§e >> §cPlease use the command to exit the room"
itemQuitRoom: "§cQuit room"
itemQuitRoomLore: "You can quit room when you click it"
classic: "Classic"
prey: "prey"
hunters: "hunters"
death: "death"
titlePreyTitle: "§a prey"
titlePreySubtitle: "Live, it is victory"
titleHuntersTitle: "§e hunters"
titleHuntersSubtitle: "Caught all the hidden prey"
titleVictoryHuntersTitle: "§aHunter wins!"
titleVictoryPreySubtitle: "§aPrey wins!"
victoryHuntersBottom: "§eHunter wins!"
victoryHuntersScoreBoard: "§eHunter wins!"
victoryPreyBottom: "§ePrey wins!"
victoryPreyScoreBoard: "§ePrey wins!"
scoreBoardTitle: "§eBlockHunt"
waitTimeScoreBoard: |-
Players: §a %playerNumber%/16
§aTime: §l§e %time%
waitScoreBoard: |-
Players: §a %playerNumber%/16
We need three players
Waiting for players
waitTimeBottom: "§aThere is: %time% seconds to start!"
waitBottom: "§cWaiting for players to join"
gameTimeScoreBoard: |-
§l§aIdentity:§e %mode%
§l§aSurvivors:§e %playerNumber%
§l§aTime:§e %time% §as
huntersDispatchedTimeBottom: "§aHunters will be dispatched in §e%time%§a seconds"
respawnTimeBottom: "§aWill be resurrected as a hunter in %time% seconds!"
huntersKillPrey: "%damagePlayer% Caught %player%"
userMenuButton1: "§eJoin a room randomly"
userMenuButton2: "§eQuit this room"
userMenuButton3: "§eList all the rooms"
adminMenuSetLevel: "Map:%name%"
adminMenuButton1: "§eSet wait spawnpoint"
adminMenuButton2: "§eAdd random spawnpoint"
adminMenuButton3: "§eSet time parameters"
adminMenuButton4: "§eSet room mode"
adminMenuButton5: "§eReload all the rooms"
adminMenuButton6: "§cUninstall all the rooms"
adminTimeMenuInputText1: "Waiting Time(s)"
adminTimeMenuInputText2: "Playing Time(s)"
joinRoomOK: "§l§aCofirm to join the room: %name% §l§a?"
buttonOK: "§aConfirm"
buttonReturn: "§cBack"
2 changes: 2 additions & 0 deletions src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ languageMap:
zh_HK: "zh_CN"
zh_TW: "zh_CN"
zh_SG: "zh_CN"
en: "en_US"
en-GB: "en_US"
cmdUser: "blockhunt"
cmdAdmin: "blockhuntadmin"
victoryCmd:
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: BlockHunt
main: cn.lanink.blockhunt.BlockHunt
version: "0.0.2"
version: "0.0.3"
api: ["1.0.9"]
load: POSTWORLD
author: "LT_Name"
Expand Down

0 comments on commit 61ce81d

Please sign in to comment.