summaryrefslogtreewikicommitdiff
path: root/src/main/resources
diff options
context:
space:
mode:
authorTyler Murphy <tylermurphy534@gmail.com>2022-06-01 20:03:01 -0400
committerGitHub <noreply@github.com>2022-06-01 20:03:01 -0400
commitc506030cbabe938f0afccbf3489ab72e7463e1e7 (patch)
tree0cafe99d4b314c761d2621457c4a4a824e53350e /src/main/resources
parentmove code of conduct and contributing guidelines (diff)
parentUpdate CONTRIBUTING.md (diff)
downloadkenshinshideandseek-c506030cbabe938f0afccbf3489ab72e7463e1e7.tar.gz
kenshinshideandseek-c506030cbabe938f0afccbf3489ab72e7463e1e7.tar.bz2
kenshinshideandseek-c506030cbabe938f0afccbf3489ab72e7463e1e7.zip
Merge pull request #68 from tylermurphy534/1.5.0
1.5.0
Diffstat (limited to '')
-rw-r--r--src/main/resources/config.yml111
-rw-r--r--src/main/resources/lang/localization_de-DE.yml12
-rw-r--r--src/main/resources/lang/localization_en-US.yml8
-rw-r--r--src/main/resources/plugin.yml13
4 files changed, 132 insertions, 12 deletions
diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml
index c163c2d..6153c46 100644
--- a/src/main/resources/config.yml
+++ b/src/main/resources/config.yml
@@ -14,6 +14,19 @@ gameLength: 1200
# default: true
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.
+# Below you can set CHAT, ACTIONBAR, or TITLE. Any invalid option will revert to CHAT.
+#
+# CHAT - Messages will be displayed in the chat
+#
+# ACTIONBAR - Messages will be displayed in the action bar (area above the hotbar)
+#
+# TITLE - Messages will be displayed as a title
+#
+# default: 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
@@ -33,6 +46,13 @@ minPlayers: 2
# default: true
pvp: true
+# !! Only effects the game at all if pvp is set to false !!
+# By default, If you disable pvp, Hiders and Seekers can no longer take damage from natural causes such as
+# falling or projectiles. If you want, you can keep pvp disabled so that Seekers only have to tag Hiders, but
+# all players can still take fall damage or any other damage that's not from another player.
+# deafult: false
+allowNaturalCauses: false
+
# Players that join the server will automatically be placed into the lobby.
# default: false
autoJoin: false
@@ -44,8 +64,15 @@ autoJoin: false
# default: false
teleportToExit: false
+# Normally when the game ends, players are set back to the lobby to play another game.
+# You can disable this, and empty the lobby after the game finishes. This is like everyone
+# running /hs leave at the end of the game. Players will leave either to the exit position
+# or another server depending on what you have `leaveType` set too.
+# default: false
+leaveOnEnd: false
+
# What do you want to happen when a player leaves the lobby. If you are running a single server, maybe you want to send
-# them to the world hub. But if you are running a bungee-cord or velocity server, maybe you want to send them to the servers
+# them to the world hub. But if you are running a bungee-cord or velocity server, maybe you want to send them to the servers'
# hub.
#
# EXIT - Sends the player to the specified exit position set by /hs setexit
@@ -59,8 +86,36 @@ leaveType: EXIT
# players too.
leaveServer: hub
-# The worldborder closes every interval, which is evey [delay] in minutes.
-# Thw worldborder starts at [size], and decreases 100 blocks every interval.
+# 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
+# not worry about your hide-and-seek map from changing, as all changes are made are in a separate world file that doesn't get saved. Once the game
+# ends, it unloads the map and doesn't save. Then reloads the duplicate to the original state, rolling back the map for the next game.
+# It is highly recommended that you keep this set to true unless you have other means of protecting your hide-and-seek map.
+# default: true
+mapSaveEnabled: true
+
+# How you want to store game data. If you are running a single server, sqlite is fine, as no setup is necessary.
+# But if you want the data to go across multiple servers, you can switch it to mysql.
+# WARNING: Data is not saved across databases. You have to migrate the data yourself!
+#
+# SQLITE - A single database.db file in the plugin folder, good for a single server.
+#
+# MYSQL - Uses a mysql server to store data, good for multi-server setups or large servers.
+#
+# default: 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
+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.
worldBorder:
@@ -92,6 +147,18 @@ glow:
time: 30
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
+ model-data: 0
+
+# This has the same glow effect as the glow powerup in that all seekers positions get
+# shown to hiders. But enabling this force disables the powerup, and instead always shows
+# the seekers positions to the hiders. Good for small maps. Since the glow effect wasn't added
+# until Minecraft 1.9, any server running 1.8 will have this disabled regardless of the
+# options below.
+# default: false
+alwaysGlow: false
# The message prefixes displayed before messages. The message contents themselves
# can be changed in localization.yml.
@@ -104,6 +171,12 @@ prefix:
gameover: '&aGame Over > &f'
warning: '&cWarning > &f'
+# This plugin has support for custom placeholders with PlaceholderAPI. If you make a mistake when creating a placeholder,
+# the plugin may tell you an error. Below you can change what could appear as an error message.
+placeholder:
+ incorrect: "{Error}"
+ noData: "{No Data}"
+
# This is the section if you want a standard "waiting for players" lobby. You can specify
# the standard countdown length under [countdown] (min 10 seconds). Then once the lobby gets to a size specified
# by [changeCountdown], the timer will automatically go to 10 seconds. [min] is the minimum players
@@ -117,24 +190,44 @@ lobby:
# Below are the two items given to you when you join a lobby. A item to click to leave the lobby, and another
# to start the game. Each of these items can be toggled separately, but only these items are currently supported.
-# You can customize the material, name, lore, and position of the item. And finally, the start item is marked as
-# adminOnly be default since the /hs start command is also admin by default. If you set adminOnly to false, only
-# the item will become non admin only, not the command.
+# You can customize the material, name, lore, and position of the item. You can also change the model data if your
+# server is running 1.14 or above. Any earlier version, the model-data tag will be ignored; Model-data 0 is also ignored.
+# Finally, the start item is marked as adminOnly be default since the /hs start command is also admin by default.
+# If you set adminOnly to false, only the item will become non admin only, not the command.
lobbyItems:
leave:
material: BED
name: "&cLeave Lobby"
lore: ["Go back to server hub"]
position: 8
+ model-data: 0
enabled: true
start:
material: CLOCK
name: "&bStart Game"
lore: []
position: 0
+ model-data: 0
enabled: true
adminOnly: true
+# Below are the two items given to you when you join the game as a spectator. One toggles flight mode, and the other
+# opens a gui to teleport to other players! Just like the lobby items, you can customize the material, name, lore,
+# 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
+ name: "&bToggle Flight"
+ lore: [ "Turns flying on and off" ]
+ position: 3
+ model-data: 0
+ teleport:
+ material: COMPASS
+ name: "&bTeleport to Others"
+ lore: [ "Allows you to teleport to all other players in game" ]
+ position: 5
+ model-data: 0
+
# As a hider, the closer a seeker gets to you, the louder and faster a pining noise will play.
# There are 3 separate distances (in blocks) you can set to the 3 different levels for the noise.
# The higher the level, the closer the seeker.
@@ -143,6 +236,12 @@ seekerPing:
level1: 30
level2: 20
level3: 10
+ sounds:
+ leadingVolume: 0.5
+ volume: 0.3
+ pitch: 1
+ heartbeatNoise: BLOCK_NOTE_BLOCK_BASEDRUM
+ ringingNoise: BLOCK_NOTE_BLOCK_PLING
enabled: true
# Changes the default plugin language. Currently, Supported localizations are:
diff --git a/src/main/resources/lang/localization_de-DE.yml b/src/main/resources/lang/localization_de-DE.yml
index 67c14fd..a1a6eea 100644
--- a/src/main/resources/lang/localization_de-DE.yml
+++ b/src/main/resources/lang/localization_de-DE.yml
@@ -15,6 +15,7 @@ Localization:
GAME_PLAYER_FOUND_BY: "&e{PLAYER}&f wurde von &c{PLAYER}&f gefunden und ist nun ein Seeker."
GAME_GAMEOVER_HIDERS_FOUND: "Alle Hider wurden gefunden."
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_INGAME: "Du bist bereits in der Lobby oder im Spiel."
@@ -30,6 +31,7 @@ Localization:
MAPSAVE_WARNING: "All commands will be disabled whenthe save is in progress. Do not turn off the server."
MAPSAVE_END: "Speichervorgang abgeschlossen."
MAPSAVE_ERROR: "Aktuelle Weltkarte konnte nicht gefunden werden."
+ MAPSAVE_DISABLED: "Mapsave ist in config.yml deaktiviert."
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."
@@ -37,7 +39,7 @@ 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!"
- TAUNTED: "$c$oOh nein! Du wurdest geärgert!"
+ 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."
@@ -54,8 +56,12 @@ Localization:
START_MIN_PLAYERS: "Um das Spiel zu starten benötigst du mindestens {AMOUNT} Spieler."
START_INVALID_NAME: "Ungültiger Spieler: {PLAYER}."
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."
STOP: "Das Spiel wurde gestoppt."
+ HIDER_TEAM_NAME: "&6&lHIDER"
+ SEEKER_TEAM_NAME: "&c&lSEEKER"
+ SPECTATOR_TEAM_NAME: "&8&lSPECTATOR"
HIDERS_SUBTITLE: "Verstecke dich gut vor den Seekern!"
SEEKERS_SUBTITLE: "Finde alle Hider!"
SPECTATOR_SUBTITLE: "Du bist mitten im spiel beigetreten."
@@ -65,7 +71,9 @@ Localization:
NO_GAME_INFO: "Keine Informationen zum Gameplay für diesen Spieler vorhanden."
INFORMATION_FOR: "Gewinninformationen für {PLAYER}:"
BLOCKED_COMMAND: "Command blocked by Kenshin's Hide And Seek"
+ FLYING_ENABLED: "Fliegen aktiviert"
+ FLYING_DISABLED: "Fliegen deaktiviert"
# DO NOT EDIT IT OR IT MAY BREAK OR RESET FILE
-version: 2
+version: 3
type: "de-DE"
diff --git a/src/main/resources/lang/localization_en-US.yml b/src/main/resources/lang/localization_en-US.yml
index 33ae4ef..96ccf7a 100644
--- a/src/main/resources/lang/localization_en-US.yml
+++ b/src/main/resources/lang/localization_en-US.yml
@@ -15,6 +15,7 @@ Localization:
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_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_INGAME: "You are already in the lobby/game."
@@ -30,6 +31,7 @@ Localization:
MAPSAVE_WARNING: "All commands will be disabled when the save is in progress. Do not turn off the server."
MAPSAVE_END: "Map save complete."
MAPSAVE_ERROR: "Couldn't find current map."
+ MAPSAVE_DISABLED: "Mapsave is disabled in config.yml."
WORLDBORDER_DISABLE: "Disabled world border."
WORLDBORDER_INVALID_INPUT: "Invalid integer {AMOUNT}."
WORLDBORDER_MIN_SIZE: "World border cannot be smaller than 100 blocks."
@@ -55,8 +57,12 @@ Localization:
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_COUNTDOWN_LAST: "Hiders have {AMOUNT} second to hide!"
START: "Attention SEEKERS, its time to find the hiders!"
STOP: "Game has been force stopped."
+ HIDER_TEAM_NAME: "&6&lHIDER"
+ SEEKER_TEAM_NAME: "&c&lSEEKER"
+ SPECTATOR_TEAM_NAME: "&8&lSPECTATOR"
HIDERS_SUBTITLE: "Hide away from the seekers"
SEEKERS_SUBTITLE: "Eliminate all hiders"
SPECTATOR_SUBTITLE: "You joined mid-game."
@@ -66,6 +72,8 @@ Localization:
NO_GAME_INFO: "Player has no gameplay information."
INFORMATION_FOR: "Win information for {PLAYER}:"
BLOCKED_COMMAND: "Command blocked by Hide And Seek plugin."
+ FLYING_ENABLED: "&l&bFlying Enabled"
+ FLYING_DISABLED: "&l&bFlying Disabled"
# DO NOT EDIT IT OR IT MAY BREAK OR RESET FILE
version: 3
diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml
index 7e1bca8..c4224dc 100644
--- a/src/main/resources/plugin.yml
+++ b/src/main/resources/plugin.yml
@@ -1,10 +1,11 @@
-name: HideAndSeek
+name: KenshinsHideAndSeek
main: net.tylermurphy.hideAndSeek.Main
-version: 1.4.2
+version: 1.5.0
author: KenshinEto
load: STARTUP
api-version: 1.13
depend: [ProtocolLib]
+softdepend: [PlaceholderAPI]
commands:
hideandseek:
description: Hide and Seek command
@@ -30,7 +31,8 @@ permissions:
hideandseek.leave: true
hideandseek.leavebounds: true
hideandseek.wins: true
- hideand.top: true
+ hideandseek.top: true
+ hideandseek.debug: true
hideandseek.about:
description: Allows you to run the about command
default: true
@@ -41,7 +43,7 @@ permissions:
description: Allows you to reload the config
default: op
hideandseek.setborder:
- description: Allows you to set the game worldborder
+ description: Allows you to set the game world border
default: op
hideandseek.setspawn:
description: Allows you to set the game spawn point
@@ -82,3 +84,6 @@ permissions:
hideandseek.top:
description: Allows players to see the global wins leaderboard
default: true
+ hideandseek.debug:
+ description: Opens the debug menu
+ default: op