summaryrefslogtreewikicommitdiff
path: root/src/main/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/resources')
-rw-r--r--src/main/resources/config.yml61
-rw-r--r--src/main/resources/localization.yml50
-rw-r--r--src/main/resources/plugin.yml14
3 files changed, 120 insertions, 5 deletions
diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml
new file mode 100644
index 0000000..368bca4
--- /dev/null
+++ b/src/main/resources/config.yml
@@ -0,0 +1,61 @@
+# How long in seconds will the game last, set it < 1 to disable
+# default: 1200 aka 20min
+gameLength: 1200
+
+# Announce join/leave/game over messages to people not playing the game
+# default: true
+announceMessagesToNonPlayers: true
+
+# Allow Hiders to see their own teams nametags as well as seekers. Seekers can never see nametags regardless.
+# default: false
+nametagsVisible: false
+
+# Require bukkit permessions though a plugin to run commands, recomended on large servers
+# default: true
+permissionsRequired: true
+
+# Minimum ammount of players to start the game. Cannot go lower than 2.
+# default: 2
+minPlayers: 2
+
+# Spawn locations where players are teleported
+spawns:
+ # Location where players are teleported into the game (/hs start)
+ game:
+ x: 0
+ y: 0
+ z: 0
+ world: world
+ # Location where players are teleported into the lobby (/hs join)
+ lobby:
+ x: 0
+ y: 0
+ z: 0
+ world: world
+ # Location where players are teleported when they exit (/hs leave)
+ exit:
+ x: 0
+ y: 0
+ z: 0
+ world: world
+
+# The worldborder closes every interval, whish is evey [delay] in minutes.
+# Thw worldborder stharts at [size], and decreaces 100 blocks every interval.
+# x & z are the center location. [enabled] is whenever the border is enabled.
+worldBorder:
+ x: 0
+ z: 0
+ delay: 10
+ size: 500
+ enabled: false
+
+# The message prefixes displayed before messages. The message contents themselvs
+# can be changed in localization.yml.
+prefix:
+ default: '&9Hide and Seek > &f'
+ error: '&cError > &f'
+ taunt: '&eTaunt > &f'
+ border: '&cWorld Border > &f'
+ abort: '&cAbort > &f'
+ gameover: '&aGame Over > &f'
+ warning: '&cWarning > &f' \ No newline at end of file
diff --git a/src/main/resources/localization.yml b/src/main/resources/localization.yml
new file mode 100644
index 0000000..cf2fd30
--- /dev/null
+++ b/src/main/resources/localization.yml
@@ -0,0 +1,50 @@
+Localization:
+ COMMAND_PLAYER_ONLY: "This command can only be run as a player."
+ COMMAND_NOT_ALLOWED: "You are not allowed to run this command."
+ COMMAND_ERROR: "An internal error has occoured."
+ GAME_PLAYER_DEATH: "&c{PLAYER}&f was killed."
+ GAME_PLAYER_FOUND: "&e{PLAYER}&f was found and became a seeker."
+ GAME_PLAYER_FOUND_BY: "&e{PLAYER}&f was found by &c{PLAYER}&f and became a seeker."
+ GAME_GAMEOVER_HIDERS_FOUND: "All hiders have been found."
+ GAME_GAMEOVER_SEEKERS_QUIT: "All seekers have quit."
+ GAME_GAMEOVER_TIME: "Seekers ran out of time. Hiders win!"
+ GAME_SETUP: "Game is not setup. Run /hs setup to see what you need to do."
+ GAME_INGAME: "You are already in the lobby/game."
+ GAME_NOT_INGAME: "You are not in a lobby/game."
+ GAME_INPROGRESS: "There is currently a game inprogress."
+ GAME_NOT_INPROGRESS: "There is no game inprogress."
+ GAME_JOIN: "{PLAYER} has joined the HideAndSeek lobby."
+ GAME_JOIN_SPECTATOR: "You have joined midgame and are now a spectator."
+ GAME_LEAVE: "{PLAYER} has left the HideAndSeek lobby."
+ CONFIG_RELOAD: "Reloaded the config."
+ MAPSAVE_INPROGRESS: "Map save is currently in progress. Try again later."
+ MAPSAVE_START: "Starting map save."
+ MAPSAVE_WARNING: "All commands will be disabled whenthe save is in progress. Do not turn off the server."
+ MAPSAVE_END: "Map save complete."
+ MAPSAVE_ERROR: "Coudnt find current map."
+ WORLDBORDER_DISABLE: "Disabled worldborder."
+ WORLDBORDER_INVALID_INPUT: "Invalid integer {AMOUNT}."
+ WORLDBORDER_MIN_SIZE: "Worldborder cannot be smaller than 100 blocks."
+ WORLDBORDER_POSITION: "Spawn position must be 100 from worldborder center."
+ WORLDBORDER_ENABLE: "Set border center to current location, size to {AMOUNT}, and delay to {AMOUNT}."
+ WORLDBORDER_DECREASING: "Worlderborder decreasing by 100 blocks over the next 30s."
+ TAUNTED: "$c$oOh no! You have been chosen to be taunted."
+ TAUNT: "A random hider will be taunted in the next 30s."
+ TAUNT_ACTIVATE: "Taunt has been activated."
+ ERROR_GAME_SPAWN: "Please set game spawn location first"
+ SETUP: "&f&lThe following is needed for setup..."
+ SETUP_GAME: "&c&l- &fGame spawn isnt set, /hs setspawn"
+ SETUP_LOBBY: "&c&l- &fLobby spawn isnt set, /hs setlobby"
+ SETUP_EXIT: "&c&l- &fQuit/exit teleport location isnt set, /hs setexit"
+ SETUP_SAVEMAP: "&c&l- &fHide and seek map isnt saved, /hs savemap (after /hs setspawn)"
+ SETUP_COMPLETE: "Everything is setup and ready to go!"
+ GAME_SPAWN: "Set game spawn position to current location"
+ LOBBY_SPAWN: "Set lobby position to current location"
+ EXIT_SPAWN: "Set exit position to current location"
+ START_MIN_PLAYERS: "You must have at least {AMOUNT} players to start."
+ START_INVALID_NAME: "Invalid player: {PLAYER}."
+ START_COUNTDOWN: "Hiders have {AMOUNT} seconds to hide!"
+ START: "Attetion SEEKERS, its time to fin the hiders!"
+ STOP: "Game has been force stopped"
+ HIDERS_SUBTITLE: "Hide away from the seekers"
+ SEEKERS_SUBTITLE: "Eliminate all hiders"
diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml
index 1feeaf7..200d799 100644
--- a/src/main/resources/plugin.yml
+++ b/src/main/resources/plugin.yml
@@ -8,7 +8,7 @@ depend: [ProtocolLib]
commands:
hideandseek:
description: Hide and Seek command
- usage: /hideandseek [about|help|start|stop|setspawn|setseeker]
+ usage: /hideandseek [command]
aliases: hs
permissions:
hideandseek.*:
@@ -20,10 +20,11 @@ permissions:
hideandseek.setborder: true
hideandseek.setspawn: true
hideandseek.setlobby: true
+ hideandseek.setexit: true
+ hideandseek.setup: true
hideandseek.start: true
hideandseek.stop: true
hideandseek.savemap: true
- hideandseek.blockbypass: true
hideandseek.join: true
hideandseek.leave: true
hideandseek.about:
@@ -44,6 +45,12 @@ permissions:
hideandseek.setlobby:
description: Allows you to set the game lobby point
default: op
+ hideandseek.setexit:
+ description: Allows you to set the game exit point
+ default: op
+ hideandseek.setup:
+ description: Allows you to see what needs to be setup for the plugin to function
+ default: op
hideandseek.start:
description: Allows you to start the game
default: op
@@ -53,9 +60,6 @@ permissions:
hideandseek.savemap:
description: Allows you to set the current game map
default: op
- hideandseek.blockbypass:
- description: Allows you to bypass the block break prevention
- default: op
hideandseek.join:
description: Allows you to join the game manual lobby
default: true