summaryrefslogtreewikicommitdiff
path: root/src/main/resources
diff options
context:
space:
mode:
authortylermurphy534 <tylermurphy534@gmail.com>2023-02-05 19:02:59 +0000
committertylermurphy534 <tylermurphy534@gmail.com>2023-02-05 19:02:59 +0000
commit8fdd3461c14a70dd69b34ba7bb44130e3f3a8ef0 (patch)
treeb82610c3a320bdcb8dd45197f7db309d7a3a7aa3 /src/main/resources
parentUpdate 'README.md' (diff)
parent1.7.0 rc3 (diff)
downloadkenshinshideandseek-8fdd3461c14a70dd69b34ba7bb44130e3f3a8ef0.tar.gz
kenshinshideandseek-8fdd3461c14a70dd69b34ba7bb44130e3f3a8ef0.tar.bz2
kenshinshideandseek-8fdd3461c14a70dd69b34ba7bb44130e3f3a8ef0.zip
Merge pull request '1.7.0 - Multi Map Support' (#4) from dev into main
Reviewed-on: https://g.tylerm.dev/tylermurphy534/KenshinsHideAndSeek/pulls/4
Diffstat (limited to '')
-rw-r--r--src/main/resources/config.yml146
-rw-r--r--src/main/resources/lang/localization_de-DE.yml66
-rw-r--r--src/main/resources/lang/localization_en-US.yml63
-rw-r--r--src/main/resources/leaderboard.yml7
-rw-r--r--src/main/resources/maps.yml1
-rw-r--r--src/main/resources/plugin.yml112
6 files changed, 222 insertions, 173 deletions
diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml
index 1d61cdc..82b9379 100644
--- a/src/main/resources/config.yml
+++ b/src/main/resources/config.yml
@@ -15,23 +15,23 @@ gameLength: 1200
announceMessagesToNonPlayers: true
# When the game is starting, the plugin will state there is x seconds left to hide.
-# You change where countdown messages to be displayed: in the chat, action bar, or a title.
+# You change where countdown messages are to be displayed: in the chat, action bar, or a title.
# Below you can set CHAT, ACTIONBAR, or TITLE. Any invalid option will revert to CHAT.
#
-# CHAT - Messages will be displayed in the chat
+# CHAT - Staring messages will be displayed in the chat
#
-# ACTIONBAR - Messages will be displayed in the action bar (area above the hotbar)
+# ACTIONBAR - Staring messages will be displayed in the action bar (area above the hotbar)
#
-# TITLE - Messages will be displayed as a title
+# TITLE - Staring messages will be displayed as a title
#
# default: CHAT
-hideCountdownDisplay: CHAT
+hideCountdownDisplay: "CHAT"
# Allow Hiders to see their own teams nametags as well as seekers. Seekers can never see nametags regardless.
# default: false
nametagsVisible: false
-# Require bukkit permissions though a plugin to run commands, recommended on large servers
+# Require bukkit permissions though a permissions plugin to run commands, or require op, recommended on most servers
# default: true
permissionsRequired: true
@@ -80,11 +80,11 @@ leaveOnEnd: false
# PROXY - Send the player to a specified server in a bungee-cord / velocity setup.
#
# default: EXIT
-leaveType: EXIT
+leaveType: "EXIT"
# Ignore this setting if you aren't using the PROXY leave type method above. If you are, set this to the server you want to send
# players too.
-leaveServer: hub
+leaveServer: "hub"
# By default, the plugin forces you to use a map save to protect from changes to a map thought a game play though. It copies your
# hide-and-seek world to a separate world, and loads the game there to contain the game in an isolated and backed up map This allows you to
@@ -117,40 +117,16 @@ delayedRespawn:
# MYSQL - Uses a mysql server to store data, good for multi-server setups or large servers.
#
# default: SQLITE
-databaseType: SQLITE
+databaseType: "SQLITE"
# The following settings are used for MYSQL databases ONLY. If you are running SQLITE, these
# will be ignored. If you are running MYSQL, you need to provide the database host url, database
# host port (usually 3306), database username, and database password.
-databaseHost: localhost
+databaseHost: "localhost"
databasePort: 3306
-databaseUser: root
-databasePass:
-databaseName: hideandseek
-
-# The world border closes every interval, which is evey [delay] in minutes.
-# Thw world border starts at [size], and decreases 100 blocks every interval.
-# x & z are the center location. [enabled] is whenever the border is enabled.
-# You can choose if Hiders are warned 30 seconds before the border moves.
-
-# You want block hunt? We have block hunt! Just enable it below, and set the
-# available blocks to pick from, and you're all set! It's that easy!
-# Items are displayed in the order that they are listed below.
-# The solidifyTime is the time in server ticks that it takes players to solidify.
-# Every 20 ticks is a second. Minimum solidifyTime is 20 ticks.
-blockhunt:
- enabled: false
- solidifyTime: 60
- blocks: [CRAFTING_TABLE, GRASS_BLOCK, DIRT, BEACON, BOOKSHELF]
-
-worldBorder:
- x: 0
- z: 0
- delay: 10
- size: 500
- moveAmount: 100
- warn: true
- enabled: false
+databaseUser: "root"
+databasePass: "pass"
+databaseName: "hideandseek"
# The taunt will activate every delay set in seconds. It will spawn a firework
# on a random Hider to alert a Seeker where someone may be. You can choose
@@ -173,8 +149,12 @@ glow:
stackable: true
enabled: true
name: "Glow Powerup"
- lore: [ "Throw to make all seekers glow", "Last 30s, all hiders can see it", "Time stacks on multi use" ]
- material: SNOWBALL
+ lore: [
+ "Throw to make all seekers glow",
+ "Last 30s, all hiders can see it",
+ "Time stacks on multi use"
+ ]
+ material: "SNOWBALL"
model-data: 0
# This has the same glow effect as the glow powerup in that all seekers positions get
@@ -221,14 +201,16 @@ lobby:
# If you set adminOnly to false, only the item will become non admin only, not the command.
lobbyItems:
leave:
- material: BED
+ material: "BED"
name: "&cLeave Lobby"
- lore: ["Go back to server hub"]
+ lore: [
+ "Go back to server hub"
+ ]
position: 8
model-data: 0
enabled: true
start:
- material: CLOCK
+ material: "CLOCK"
name: "&bStart Game"
lore: []
position: 0
@@ -241,15 +223,19 @@ lobbyItems:
# and position of the item. You can also change the model data if your server is running 1.14 or above.
spectatorItems:
flight:
- material: FEATHER
+ material: "FEATHER"
name: "&bToggle Flight"
- lore: [ "Turns flying on and off" ]
+ lore: [
+ "Turns flying on and off"
+ ]
position: 3
model-data: 0
teleport:
- material: COMPASS
+ material: "COMPASS"
name: "&bTeleport to Others"
- lore: [ "Allows you to teleport to all other players in game" ]
+ lore: [
+ "Allows you to teleport to all other players in game"
+ ]
position: 5
model-data: 0
@@ -265,8 +251,8 @@ seekerPing:
leadingVolume: 0.5
volume: 0.3
pitch: 1
- heartbeatNoise: BLOCK_NOTE_BLOCK_BASEDRUM
- ringingNoise: BLOCK_NOTE_BLOCK_PLING
+ heartbeatNoise: "BLOCK_NOTE_BLOCK_BASEDRUM"
+ ringingNoise: "BLOCK_NOTE_BLOCK_PLING"
enabled: true
# Changes the default plugin language. Currently, Supported localizations are:
@@ -275,58 +261,34 @@ seekerPing:
locale: "en-US"
# Stop commands being run by any user while playing the game.
-# Can be usefull If you aren't using a permission plugin and want
+# Can be usefull If you aren't using a permission plugin and don't want
# to op people, but still want to block certain commands.
# Not really usefully if using permission plugins.
# You can add /kill for any use, but it's already blocked on those
# playing the game.
-blockedCommands: [msg, tp, gamemode, kill, give, effect]
+blockedCommands: [
+ "msg",
+ "reply",
+ "me"
+]
# Stop interactions with any block by any user while playing the game.
# If your map has things such as chests for aesthetic only, you can
# block the use of clicking them. It shouldn't matter what version of
# the block ID you enter, as the plugin will automatically switch to the
# block ID of your current Minecraft server version.
-blockedInteracts: [FURNACE, CRAFTING_TABLE, ANVIL, CHEST, BARREL]
-# ---------------------------------------------------------- #
-# ONLY EDIT BEYOND THIS POINT IF YOU KNOW WHAT YOU ARE DOING #
-# ---------------------------------------------------------- #
-
-# The 2 coordinate bounds that will contain your hideAndSeek map. Its recommended
-# that you use /hs setbounds for this, and not edit this directly, as breaking
-# this section will completely break the entire plugin when you run /hs savemap.
-bounds:
- min:
- x: 0
- z: 0
- max:
- x: 0
- z: 0
+blockedInteracts: [
+ "FURNACE",
+ "CRAFTING_TABLE",
+ "ANVIL",
+ "CHEST",
+ "BARREL"
+]
-# 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 seekers wait during the hiding grace period
- seeker:
- x: 0
- y: 0
- z: 0
- # Currently is not used, seekers are teleported to spawns.game.world
- world: world
- # Location where players are teleported when they exit (/hs leave)
- exit:
- x: 0
- y: 0
- z: 0
- world: world \ No newline at end of file
+# Location where players are teleported when they exit (/hs leave)
+# Auto filled by /hs setexit, so you don't need to touch this here
+exit:
+ x: 0
+ y: 0
+ z: 0
+ world: "world" \ No newline at end of file
diff --git a/src/main/resources/lang/localization_de-DE.yml b/src/main/resources/lang/localization_de-DE.yml
index 9789a75..92309ee 100644
--- a/src/main/resources/lang/localization_de-DE.yml
+++ b/src/main/resources/lang/localization_de-DE.yml
@@ -10,6 +10,7 @@ Localization:
COMMAND_PLAYER_ONLY: "Dieser Befehl kann nur als Spieler ausgeführt werden."
COMMAND_NOT_ALLOWED: "Es ist dir nicht gestattet diesen Befehl auszuführen."
COMMAND_ERROR: "Ein unbekannter Fehler ist aufgetreten."
+ COMMAND_INVALID_ARG: "Ungültiges Argument: {AMOUNT}"
GAME_PLAYER_DEATH: "&c{PLAYER}&f ist gestorben."
GAME_PLAYER_FOUND: "&e{PLAYER}&f wurde gefunden und ist nun ein Seeker."
GAME_PLAYER_FOUND_BY: "&e{PLAYER}&f wurde von &c{PLAYER}&f gefunden und ist nun ein Seeker."
@@ -17,7 +18,7 @@ Localization:
GAME_GAMEOVER_SEEKERS_QUIT: "All Seeker haben das Spiel verlassen."
GAME_GAMEOVER_HIDERS_QUIT: "All Hider haben das Spiel verlassen."
GAME_GAMEOVER_TIME: "Seekers haben keine Spielzeit mehr. Die Hiders haben gewonnen!"
- GAME_SETUP: "Spiel wurde noch nicht eingerichtet. Führe &c/hs setup&f aus, um die Einrichtungsschritte zu sehen."
+ GAME_SETUP: "Es gibt keine Setup-Karten! Führen Sie /hs map status auf einer Karte aus, um zu sehen, was Sie tun müssen."
GAME_INGAME: "Du bist bereits in der Lobby oder im Spiel."
GAME_NOT_INGAME: "Du bist weder in einer Lobby noch in einem Spiel."
GAME_INPROGRESS: "Es läuft bereits ein Spiel."
@@ -25,6 +26,7 @@ Localization:
GAME_JOIN: "{PLAYER} hat die Hide and Seek Lobby betreten."
GAME_JOIN_SPECTATOR: "Du bist als Beobachter einem laufenden Spiel beigetreten."
GAME_LEAVE: "{PLAYER} hat die Hide and Seek Lobby verlassen."
+ LOBBY_IN_USE: "Die Lobby kann nicht verändert werden, solange die Lobby nicht leer ist."
CONFIG_RELOAD: "Konfiguration neu geladen."
MAPSAVE_INPROGRESS: "Weltkarte wird aktuell gespeichert. Versuche es später nochmal."
MAPSAVE_START: "Starte Speichervorgang der Weltkarte"
@@ -32,6 +34,9 @@ Localization:
MAPSAVE_END: "Speichervorgang abgeschlossen."
MAPSAVE_ERROR: "Aktuelle Weltkarte konnte nicht gefunden werden."
MAPSAVE_DISABLED: "Mapsave ist in config.yml deaktiviert."
+ MAPSAVE_FAIL_WORLD: "Mapsave fehlgeschlagen. Die aktuelle Welt konnte nicht geladen werden."
+ MAPSAVE_INVALID: "Ungültige Welt zum Speichern: {AMOUNT}"
+ MAPSAVE_FAIL_DIR: "Verzeichnis konnte nicht umbenannt werden: {AMOUNT}"
WORLDBORDER_DISABLE: "World Border ausgeschaltet."
WORLDBORDER_INVALID_INPUT: "Ungültiger Wert: {AMOUNT}"
WORLDBORDER_MIN_SIZE: "World Border darf nicht geringer als 100 Blöcke sein."
@@ -39,24 +44,32 @@ Localization:
WORLDBORDER_ENABLE: "Setze World Border zentriert von dieser Position aus. Größe: {AMOUNT}. Verzögerung: {AMOUNT}."
WORLDBORDER_DECREASING: "World Norder schrumpoft 100 Blöcke über die nächsten 30 Sekunden!"
WORLDBORDER_WARN: "Die Weltgrenze wird in den nächsten 30er Jahren schrumpfen!"
+ WORLDBORDER_CHANGE_SIZE: "Die Änderung der Weltgrenze kann nicht 0 oder weniger sein."
TAUNTED: "&c&oOh nein! Du wurdest geärgert!"
TAUNT: "Ein zufälliger Hider wird in den nächsten 30 Sekunden geärgert."
TAUNT_ACTIVATE: "Ärgern wurde aktiviert"
ERROR_GAME_SPAWN: "Bitte erst die Spawn-Position für das Spiel festlegen."
+ ERROR_GAME_SEEKER_SPAWN: "Bitte setze zuerst den Sucher-Spawn-Ort"
+ ERROR_MAP_BOUNDS: "Bitte setzen Sie die Grenzen der Karte vor dem Speichern"
+ WARN_MAP_BOUNDS: "Dieser Ort liegt nicht innerhalb der Kartengrenzen, dies könnte Probleme verursachen"
+ WARN_SPAWN_RESET: "Spiel-Spawn wurde zurückgesetzt, da er nicht innerhalb der Kartengrenzen liegt"
+ WARN_SEEKER_SPAWN_RESET: "Seeker-Spawn zurückgesetzt, da er nicht innerhalb der Kartengrenzen liegt"
SETUP: "&f&lFühre die folgenden Schritte zur Einrichtung aus:"
- SETUP_GAME: "&c&l- &fTeleport-Position für den Spielbeginn festlegen mit /hs setspawn"
- SETUP_LOBBY: "&c&l- &fTeleport-Position für die Lobby festlegen mit /hs setlobby"
- SETUP_SEEKER_LOBBY: "&c&l- &fTeleport-Position für die Lobby Seekern festlegen mit /hs setseekerlobby"
- SETUP_EXIT: "&c&l- &fTeleport-Position für das Spielende festlegen mit /hs setexit"
- SETUP_SAVEMAP: "&c&l- &fHide and Seek Weltkarte speichern mit /hs savemap (nach /hs setspawn)"
+ SETUP_GAME: "&c&l- &fSpielspawn ist nicht gesetzt, /hs map set spawn <map>"
+ SETUP_LOBBY: "&c&l- &fLobby-Spawn ist nicht gesetzt, /hs map set lobby <map>"
+ SETUP_SEEKER_LOBBY: "&c&l- &fSucherlobby-Spawn ist nicht gesetzt, /hs map set seekerlobby <map>"
+ SETUP_EXIT: "&c&l- &fBeenden/Verlassen der Teleportposition ist nicht festgelegt, /hs setexit"
+ SETUP_SAVEMAP: "&c&l- &fVerstecken und Suchen Karte wird nicht gespeichert, /hs map save <map>"
SETUP_COMPLETE: "Alles eingerichtet! Hide and Seek ist spielbereit."
- SETUP_BOUNDS: "&c&l- &fSpielgrenze in 2 gegenüberliegenden Ecken der Welt festlegen mit /hs setbounds"
+ SETUP_BLOCKHUNT: "&c&l - &fWenn Blockhunt aktiviert ist, muss mindestens 1 Block gesetzt sein, /hs map blockhunt block add block <map> <block>"
+ SETUP_BOUNDS: "&c&l- &fBitte setzen Sie Spielgrenzen in 2 gegenüberliegenden Ecken der Spielkarte, /hs map set bounds <map>"
GAME_SPAWN: "Teleport-Position für Spielbeginn festgelegt"
LOBBY_SPAWN: "Teleport-Position für Lobby festgelegt"
EXIT_SPAWN: "Teleport-Position für Spielende festgelegt"
SEEKER_SPAWN: "Teleport-Position für Seeker Lobby festgelegt"
START_MIN_PLAYERS: "Um das Spiel zu starten benötigst du mindestens {AMOUNT} Spieler."
START_INVALID_NAME: "Ungültiger Spieler: {PLAYER}."
+ START_FAILED_SEEKER: "Zufälliger Sucher konnte nicht ausgewählt werden."
START_COUNTDOWN: "Die Hider haben {AMOUNT} Sekunden Zeit sich zu verstecken!"
START_COUNTDOWN_LAST: "Die Hider haben {AMOUNT} Sekunde Zeit sich zu verstecken!"
START: "Los, Seeker! Es ist Zeit, die Hider zu finden."
@@ -76,7 +89,44 @@ Localization:
FLYING_ENABLED: "Fliegen aktiviert"
FLYING_DISABLED: "Fliegen deaktiviert"
RESPAWN_NOTICE: "Du wirst in {AMOUNT} Sekunden respawnen."
+ INVALID_MAP: "Das ist ein ungültiger Kartenname!"
+ MAP_ALREADY_EXISTS: "Diese Karte existiert bereits!"
+ INVALID_MAP_NAME: "Der Name darf nur Zahlen oder Buchstaben enthalten."
+ MAP_CREATED: "Neue Karte erstellt: {AMOUNT}"
+ MAP_FAIL_DELETE: "Karte konnte nicht gelöscht werden: {AMOUNT}"
+ MAP_DELETED: "Gelöschte Landkarte: {AMOUNT}"
+ NO_MAPS: "Es gibt keine Karten im Plugin (/hs map add <name>)"
+ MAP_NOT_SETUP: "Die Karte {AMOUNT} ist nicht eingerichtet (/hs map status <map>)"
+ LIST_MAPS: "Die aktuellen Karten sind:"
+ ARGUMENT_COUNT: "Dieser Befehl erfordert mehr Argumente zur Ausführung."
+ GAME_SPAWN_NEEDED: "Der Hauptspawn muss vor dem Sucherspawn gesetzt werden."
+ SEEKER_LOBBY_SPAWN_RESET: "Der Spawn der Seeker-Lobby wurde zurückgesetzt, da der Spiel-Spawn in eine neue Welt verschoben wurde."
+ SEEKER_LOBBY_INVALID: "Die Lobby des Suchers muss sich in der gleichen Welt befinden, in der das Spiel startet."
+ CONFIG_ERROR: "Fehler beim Neuladen der Konfiguration. Prüfen Sie die Serverprotokolle."
+ BLOCKHUNT_DISABLED: "Bitte aktivieren Sie Blockhunt in dieser Karte in der maps.yml, um Verkleidungen zu ermöglichen. Blockhunt funktioniert nicht auf 1.8"
+ BLOCKHUNT_UNSUPPORTED: "Blockhunt funktioniert nicht unter 1.8"
+ BLOCKHUNT_SET_TO: "Blockjagd eingestellt auf {AMOUNT}."
+ BLOCKHUNT_BLOCK_EXISTS: "{AMOUNT} ist bereits in der Blockhunt-Konfiguration eingestellt."
+ BLOCKHUNT_BLOCK_DOESNT_EXIT: "{AMOUNT} ist bereits nicht in der blochunt-Konfiguration eingestellt."
+ BLOCKHUNT_BLOCK_ADDED: "{AMOUNT} zur Blockhunt-Konfiguration hinzugefügt."
+ BLOCKHUNT_BLOCK_REMOVED: "Entfernt {AMOUNT} aus der Blockhunt-Konfiguration."
+ BLOCKHUNT_LIST_BLOCKS: "Die folgenden Blockhunt-Blöcke sind:"
+ NO_BLOCKS: "Auf dieser Karte gibt es keine Blockhunt-Blöcke."
+ WORLD_EXISTS: "Eine Welt namens {AMOUNT} existiert bereits."
+ WORLD_DOESNT_EXIST: "Es gibt keine Welt namens {AMOUNT}, die existiert."
+ WORLD_ADDED: "Eine Welt mit dem Namen {AMOUNT} erstellt."
+ WORLD_ADDED_FAILED: "Fehlgeschlagen, eine neue Welt zu erschaffen."
+ WORLD_REMOVED: "Eine Welt namens {AMOUNT} wurde gelöscht."
+ WORLD_REMOVED_FAILED: "Welt konnte nicht gelöscht werden."
+ WORLD_NOT_EMPTY: "In einer zu löschenden Welt darf es keine Spieler geben."
+ LIST_WORLDS: "Die folgenden Welten sind:"
+ NO_WORLDS: "Failed to fetch any worlds."
+ WORLD_LOAD_FAILED: "Es konnten keine Welten geholt werden."
+ INVALID_WORLD_TYPE: "Ungültiger Welttyp: {AMOUNT}."
+ NO_CONFIRMATION: "Sie haben nichts zu bestätigen."
+ CONFIRMATION_TIMED_OUT: "Die Zeit für die Bestätigung ist abgelaufen."
+ CONFIRMATION: "Führen Sie /hs confirm innerhalb von 10s aus, um zu bestätigen."
# DO NOT EDIT IT OR IT MAY BREAK OR RESET FILE
-version: 3
+version: 4
type: "de-DE"
diff --git a/src/main/resources/lang/localization_en-US.yml b/src/main/resources/lang/localization_en-US.yml
index f03d188..062f4f2 100644
--- a/src/main/resources/lang/localization_en-US.yml
+++ b/src/main/resources/lang/localization_en-US.yml
@@ -10,6 +10,7 @@ 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 occurred."
+ COMMAND_INVALID_ARG: "Invalid argument: {AMOUNT}"
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."
@@ -17,7 +18,7 @@ Localization:
GAME_GAMEOVER_SEEKERS_QUIT: "All seekers have quit."
GAME_GAMEOVER_HIDERS_QUIT: "All hiders 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_SETUP: "There are no setup maps! Run /hs map status on a map 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 in progress."
@@ -25,6 +26,7 @@ Localization:
GAME_JOIN: "{PLAYER} has joined the HideAndSeek lobby."
GAME_JOIN_SPECTATOR: "You have joined mid game and are now a spectator."
GAME_LEAVE: "{PLAYER} has left the HideAndSeek lobby."
+ LOBBY_IN_USE: "Cant modify the lobby while the lobby isn't empty."
CONFIG_RELOAD: "Reloaded the config."
MAPSAVE_INPROGRESS: "Map save is currently in progress. Try again later."
MAPSAVE_START: "Starting map save."
@@ -32,6 +34,9 @@ Localization:
MAPSAVE_END: "Map save complete."
MAPSAVE_ERROR: "Couldn't find current map."
MAPSAVE_DISABLED: "Mapsave is disabled in config.yml."
+ MAPSAVE_FAIL_WORLD: "Mapsave failed. Failed to load current world."
+ MAPSAVE_INVALID: "Invalid world to save: {AMOUNT}"
+ MAPSAVE_FAIL_DIR: "Failed to rename directory: {AMOUNT}"
WORLDBORDER_DISABLE: "Disabled world border."
WORLDBORDER_INVALID_INPUT: "Invalid integer {AMOUNT}."
WORLDBORDER_MIN_SIZE: "World border cannot be smaller than 100 blocks."
@@ -44,13 +49,19 @@ Localization:
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"
+ ERROR_GAME_SEEKER_SPAWN: "Please set seeker spawn location first"
+ ERROR_MAP_BOUNDS: "Please set map bounds before saving"
+ WARN_MAP_BOUNDS: "This location is not inside map bounds, this could cause issues"
+ WARN_SPAWN_RESET: "Game spawn reset due to not being inside map bounds"
+ WARN_SEEKER_SPAWN_RESET: "Seeker spawn reset due to not being inside map bounds"
SETUP: "&f&lThe following is needed for setup..."
- SETUP_GAME: "&c&l- &fGame spawn isn't set, /hs setspawn"
- SETUP_LOBBY: "&c&l- &fLobby spawn isn't set, /hs setlobby"
- SETUP_SEEKER_LOBBY: "&c&l- &fSeeker Lobby spawn isn't set, /hs setseekerlobby"
+ SETUP_GAME: "&c&l- &fGame spawn isn't set, /hs map set spawn <map>"
+ SETUP_LOBBY: "&c&l- &fLobby spawn isn't set, /hs map set lobby <map>"
+ SETUP_SEEKER_LOBBY: "&c&l- &fSeeker Lobby spawn isn't set, /hs map set seekerlobby <map>"
SETUP_EXIT: "&c&l- &fQuit/exit teleport location isn't set, /hs setexit"
- SETUP_SAVEMAP: "&c&l- &fHide and seek map isn't saved, /hs savemap (after /hs setspawn)"
- SETUP_BOUNDS: "&c&l- &fPlease set game bounds in 2 opposite corners of the game map, /hs setbounds"
+ SETUP_SAVEMAP: "&c&l- &fHide and seek map isn't saved, /hs map save <map>"
+ SETUP_BOUNDS: "&c&l- &fPlease set game bounds in 2 opposite corners of the game map, /hs map set bounds <map>"
+ SETUP_BLOCKHUNT: "&c&l - &fIf blockhunt is enabled, there needs to be at least 1 block set, /hs map blockhunt block add block <map> <block>"
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"
@@ -58,6 +69,7 @@ Localization:
SEEKER_SPAWN: "Set seeker lobby position to current location"
START_MIN_PLAYERS: "You must have at least {AMOUNT} players to start."
START_INVALID_NAME: "Invalid player: {PLAYER}."
+ START_FAILED_SEEKER: "Failed to select random seeker."
START_COUNTDOWN: "Hiders have {AMOUNT} seconds to hide!"
START_COUNTDOWN_LAST: "Hiders have {AMOUNT} second to hide!"
START: "Attention SEEKERS, its time to find the hiders!"
@@ -77,7 +89,44 @@ Localization:
FLYING_ENABLED: "&l&bFlying Enabled"
FLYING_DISABLED: "&l&bFlying Disabled"
RESPAWN_NOTICE: "You will respawn in {AMOUNT} seconds."
+ INVALID_MAP: "That is an invalid map name!"
+ MAP_ALREADY_EXISTS: "This map already exists!"
+ INVALID_MAP_NAME: "A map name can only contain numbers or letters."
+ MAP_CREATED: "Created new map: {AMOUNT}"
+ MAP_FAIL_DELETE: "Failed to delete map: {AMOUNT}"
+ MAP_DELETED: "Deleted map: {AMOUNT}"
+ NO_MAPS: "There are no maps in the plugin rn (/hs map add <name>)"
+ MAP_NOT_SETUP: "Map {AMOUNT} is not setup (/hs map status <map>)"
+ LIST_MAPS: "The current maps are:"
+ ARGUMENT_COUNT: "This command requires more arguments to run."
+ GAME_SPAWN_NEEDED: "Game spawn must be set before seeker spawn."
+ SEEKER_LOBBY_SPAWN_RESET: "Seeker lobby spawn reset since the game spawn was moved to a new world."
+ SEEKER_LOBBY_INVALID: "Seeker lobby must be in the same world as game spawn."
+ CONFIG_ERROR: "Error reloading config. Check server logs."
+ BLOCKHUNT_DISABLED: "Please enable blockhunt in this map inside maps.yml to enable disguises. Blockhunt does not work on 1.8"
+ BLOCKHUNT_UNSUPPORTED: "Blockhunt does not work on 1.8"
+ BLOCKHUNT_SET_TO: "Blockhunt set to {AMOUNT}."
+ BLOCKHUNT_BLOCK_EXISTS: "{AMOUNT} is already set in the blockhunt config."
+ BLOCKHUNT_BLOCK_DOESNT_EXIT: "{AMOUNT} is already not set in the blochunt config."
+ BLOCKHUNT_BLOCK_ADDED: "Added {AMOUNT} to blockhunt config."
+ BLOCKHUNT_BLOCK_REMOVED: "Removed {AMOUNT} from blockhunt config."
+ BLOCKHUNT_LIST_BLOCKS: "The following blockhunt blocks are:"
+ NO_BLOCKS: "There are no blockhunt blocks in this map."
+ WORLD_EXISTS: "A world named {AMOUNT} already exists."
+ WORLD_DOESNT_EXIST: "There is no world named {AMOUNT} that exists."
+ WORLD_ADDED: "Created a world named {AMOUNT}."
+ WORLD_ADDED_FAILED: "Failed to create new world."
+ WORLD_REMOVED: "Deleted a world named {AMOUNT}."
+ WORLD_REMOVED_FAILED: "Failed to delete world."
+ WORLD_NOT_EMPTY: "World must be empty to be deleted."
+ LIST_WORLDS: "The following worlds are:"
+ NO_WORLDS: "Failed to fetch any worlds."
+ WORLD_LOAD_FAILED: "Failed to load world."
+ INVALID_WORLD_TYPE: "Invalid world type: {AMOUNT}."
+ NO_CONFIRMATION: "You have nothing to confirm."
+ CONFIRMATION_TIMED_OUT: "The confirmation has timed out."
+ CONFIRMATION: "Run /hs confirm within 10s to confirm."
# DO NOT EDIT IT OR IT MAY BREAK OR RESET FILE
-version: 3
+version: 4
type: "en-US" \ No newline at end of file
diff --git a/src/main/resources/leaderboard.yml b/src/main/resources/leaderboard.yml
index 9c7a777..cd958a3 100644
--- a/src/main/resources/leaderboard.yml
+++ b/src/main/resources/leaderboard.yml
@@ -16,6 +16,7 @@
# {COUNT} - The amount of player currently in the lobby.
# {SEEKER%} - The chance that a player will be selected to be a seeker.
# {HIDER%} - The chance that a player will be selected to be a hider.
+# {MAP} - The current map the player is on
#
# GAME BOARD PLACEHOLDERS
#
@@ -38,6 +39,7 @@
# only Hiders will be able to see its effects though.
# {#SEEKER} - Number of current seekers.
# {#HIDER} - Number of current hiders.
+# {MAP} - The current map the player is on
#
# YOU CANNOT USE TWO PLACEHOLDERS ON THE SAME LINE. ONLY THE FIRST ONE WILL
# BE CHANGED, AND THE SECOND ONE WILL SAY A PLACEHOLDER MARKER!
@@ -50,12 +52,15 @@ lobby:
"Players: {COUNT}",
"",
"&cSEEKER % &f{SEEKER%}",
- "&6HIDER % &f{HIDER%}"
+ "&6HIDER % &f{HIDER%}",
+ "",
+ "Map: {MAP}",
]
game:
title: "&eHIDE AND SEEK"
content: [
+ "Map: {MAP}",
"Team: {TEAM}",
"",
"Time Left: &a{TIME}",
diff --git a/src/main/resources/maps.yml b/src/main/resources/maps.yml
new file mode 100644
index 0000000..8505162
--- /dev/null
+++ b/src/main/resources/maps.yml
@@ -0,0 +1 @@
+maps: \ No newline at end of file
diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml
index f0d8fe5..c6ce455 100644
--- a/src/main/resources/plugin.yml
+++ b/src/main/resources/plugin.yml
@@ -1,6 +1,6 @@
name: KenshinsHideAndSeek
main: net.tylermurphy.hideAndSeek.Main
-version: 1.6.2
+version: 1.7.0
author: KenshinEto
load: STARTUP
api-version: 1.13
@@ -12,82 +12,64 @@ commands:
usage: /hideandseek [command]
aliases: hs
permissions:
- hideandseek.*:
- description: Gives access to all hideandseek commands
- children:
- hideandseek.about: true
- hideandseek.help: true
- hideandseek.reload: true
- hideandseek.setborder: true
- hideandseek.setspawn: true
- hideandseek.setlobby: true
- hideandseek.setseekerlobby: true
- hideandseek.setexit: true
- hideadnseek.setbounds: true
- hideandseek.setup: true
- hideandseek.start: true
- hideandseek.stop: true
- hideandseek.savemap: true
- hideandseek.join: true
- hideandseek.leave: true
- hideandseek.leavebounds: true
- hideandseek.wins: true
- hideandseek.top: true
- hideandseek.debug: true
- hideandseek.about:
- description: Allows you to run the about command
+ hs.help:
default: true
- hideandseek.help:
- description: Allows you to run the help command
+ hs.join:
default: true
- hideandseek.reload:
- description: Allows you to reload the config
+ hs.leave:
+ default: true
+ hs.top:
+ default: true
+ hs.wins:
+ default: true
+ hs.reload:
default: op
- hideandseek.setborder:
- description: Allows you to set the game world border
+ hs.send:
default: op
- hideandseek.setspawn:
- description: Allows you to set the game spawn point
+ hs.setexit:
default: op
- hideandseek.setlobby:
- description: Allows you to set the game lobby point
+ hs.start:
default: op
- hideandseek.setseekerlobby:
- description: Allows you to set the game seeker lobby point
+ hs.stop:
default: op
- hideandseek.setexit:
- description: Allows you to set the game exit point
+ hs.map.add:
default: op
- hideandseek.setbounds:
- description: Allows you to set bounds for the game map
+ hs.map.remove:
default: op
- hideandseek.setup:
- description: Allows you to see what needs to be setup for the plugin to function
+ hs.map.list:
default: op
- hideandseek.start:
- description: Allows you to start the game
+ hs.map.status:
default: op
- hideandseek.stop:
- description: Allows you to stop the game
+ hs.map.save:
default: op
- hideandseek.savemap:
- description: Allows you to set the current game map
+ hs.map.debug:
default: op
- hideandseek.join:
- description: Allows you to join the game manual lobby
- default: true
- hideandseek.leave:
- description: Allows you to leave the game manual lobby
- default: true
- hideandseek.leavebounds:
- description: Allows players to leave specified game bounderies
+ hs.map.goto:
default: op
- hideandseek.wins:
- description: Allows players to see a players amount of wins
- default: true
- hideandseek.top:
- description: Allows players to see the global wins leaderboard
- default: true
- hideandseek.debug:
- description: Opens the debug menu
+ hs.map.set.lobby:
+ default: op
+ hs.map.set.spawn:
+ default: op
+ hs.map.set.seekerlobby:
+ default: op
+ hs.map.set.border:
+ default: op
+ hs.map.set.bounds:
+ default: op
+ hs.map.blockhunt.add:
+ default: op
+ hs.map.blockhunt.remove:
+ default: op
+ hs.map.blockhunt.list:
+ default: op
+ hs.world.create:
+ default: op
+ hs.world.delete:
+ default: op
+ hs.world.list:
+ default: op
+ hs.world.tp:
+ default: op
+ hs.confirm:
default: op
+