Skip to content

Commit

Permalink
Added playerBlockRecorder setting to lang file (this sorted them)
Browse files Browse the repository at this point in the history
  • Loading branch information
FireInstall committed May 29, 2024
1 parent 2de77b2 commit bed484b
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ public enum MgMenuLangKey implements MinigameLangKey {
MENU_PLAYERSETTINGS_PAINTBALL_MODE_NAME("menu.playerSettings.paintball.mode.name"),
MENU_PLAYERSETTINGS_SINGLEPLAYERFLAG_NAME("menu.playerSettings.singleplayerFlag.name"),
MENU_PLAYERSETTINGS_UNLIMITEDAMMO_NAME("menu.playerSettings.unlimitedAmmo.name"),
MENU_PLAYER_BLOCK_RECORDER("menu.minigame.playerBlockRecorder.name"),
MENU_PLAYSOUND_MENU_NAME("menu.playSound.menu.name"),
MENU_PLAYSOUND_PITCH_NAME("menu.playSound.pitch.name"),
MENU_PLAYSOUND_PRIVATEPLAYBACK_NAME("menu.playSound.privatePlayback.name"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1281,7 +1281,7 @@ public void setValue(FloorDegenerator.DegeneratorType value) {
MgMenuLangKey.MENU_MINIGAME_RANDOMCHESTS_MAX_DESCRIPTION, 0, null));

mainMenu.addItem(new MenuItemStatisticsSettings(Material.WRITABLE_BOOK, MgMenuLangKey.MENU_MINIGAME_STATISTIC_NAME, this));
mainMenu.addItem(activatePlayerRecorder.getMenuItem(Material.COMMAND_BLOCK, "Activate Player Block Recorder"));
mainMenu.addItem(activatePlayerRecorder.getMenuItem(Material.COMMAND_BLOCK, MgMenuLangKey.MENU_PLAYER_BLOCK_RECORDER));

mainMenu.addItem(new MenuItemNewLine());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public enum MgModules implements ModuleFactory {
this.name = name;
}

public @NotNull MinigameModule makeNewModule(Minigame minigame) {
public @NotNull MinigameModule makeNewModule(@NotNull Minigame minigame) {
return minigameModuleInit.apply(minigame, name);
}

Expand Down
5 changes: 3 additions & 2 deletions Minigames/src/main/resources/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@ menu.minigame.mechanic.name=Game Mechanic
menu.minigame.mechanic.settings.name=Game Mechanic Settings
menu.minigame.multiplayerOnly.description=Multiplayer Only
menu.minigame.objectiveDescription.name=Objective Description
menu.minigame.playerBlockRecorder.name=Activate Player Block Recorder
menu.minigame.playerRecorder.name=Activate Player Block Recorder
menu.minigame.playerSettings.name=Player Settings
menu.minigame.players.max.name=Max. Players
Expand Down Expand Up @@ -867,12 +868,12 @@ sign.score.error.alreadyUsedTeam=Your team has already used this score sign!
sign.scoreboard.error.size=Invalid size. Requires nothing or (width)x(height) eg. 3x3
sign.scoreboard.error.unevenLength=Length must not be an even number!
sign.scoreboard.error.wall=Scoreboards must be placed on a wall!
sign.subtype.capture=<green>Capture</green>
sign.team.error.unbalance=You cannot unbalance the teams!
sign.team.neutral=<gray>Neutral</gray>
sign.teleport.invalid=Invalid teleport sign!
sign.type.bet=<green>Bet<green>
sign.type.checkpoint=<green>Checkpoint</green>
sign.subtype.capture=<green>Capture</green>
sign.team.neutral=<gray>Neutral</gray>
sign.type.finish=<green>Finish</green>
sign.type.flag=<green>flag</green>
sign.type.join=<green>Join</green>
Expand Down
11 changes: 6 additions & 5 deletions Minigames/src/main/resources/messages_en_AU.properties
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ command.select.description=Select and clear region selections
command.select.point1=Point 1 selected
command.select.point2=Point 2 selected
command.select.usage=/minigame select 1<newline>/minigame select 2<newline>/minigame select clear
command.set.regenArea.usage=/minigame set <Minigame> regenarea select <1/2><newline>/minigame set <Minigame> regenarea create <name><newline>/minigame set <Minigame> regenarea list <page><newline>/minigame set <Minigame> regenarea delete <name>
command.set.allowEnderPerls.description=Sets whether players can use ender pearls in a Minigame.
command.set.allowEnderPerls.success=Ender pearl usage in <minigame> was set to <state>
command.set.allowEnderPerls.usage=/minigame set <Minigame> allowenderpearls <true / false>
Expand Down Expand Up @@ -298,6 +297,7 @@ command.set.randomizedChests.usage=/minigame set <Minigame> randomizechests <min
command.set.regenArea.description=Creates and removes regeneration regions. This only needs to be used for Minigames that have things like leaf decay, fire, tnt etc. If the Minigame has anything that the player doesn't directly interact with that breaks or changes, this should be used.
command.set.regenArea.error.notSelected=You need to select a region first!
command.set.regenArea.listHeader=<green>-----------{Regen Regions <gold><number></gold>/<gold><max></gold>}-----------</green>
command.set.regenArea.usage=/minigame set <Minigame> regenarea select <1/2><newline>/minigame set <Minigame> regenarea create <name><newline>/minigame set <Minigame> regenarea list <page><newline>/minigame set <Minigame> regenarea delete <name>
command.set.regenDelay.description=Sets the amount of time in seconds the Minigame Regenerator should wait before starting its regen. Useful for TNT explosions that could go off even after the games over. (Default: 0 seconds)
command.set.regenDelay.success=Set <minigame>'s regeneration delay to <time> seconds.
command.set.regenDelay.usage=/minigame set <Minigame> regendelay <Time>[s|m|h]
Expand Down Expand Up @@ -397,9 +397,9 @@ command.toggleTimer.pause.success=Paused <minigame>'s countdown timer. (<time>s)
command.toggleTimer.resume.success=Resumed <minigame>'s countdown timer.
command.toggleTimer.usage=/minigame toggletimer <Minigame>
command.tool.description=Spawns the Minigame tool for use in setting locations in a Minigame.
command.tool.error.noTool=You must have a Minigame Tool! Type "/minigame tool" to receive one.
command.tool.error.select.noMinigame=You must have a valid Minigame selected to use this tool!
command.tool.error.select.noMode=You must have a mode selected to do this!
command.tool.error.noTool=You must have a Minigame Tool! Type "/minigame tool" to receive one.
command.tool.setMode=Set the tools mode to '<type>'.
command.tool.setTeam=Set the tools team to <team>
command.tool.usage=/minigame tool <mode><newline>/minigame tool team <team><newline>/minigame tool minigame <Minigame><newline>/minigame tool select<newline>/minigame tool deselect
Expand Down Expand Up @@ -439,6 +439,7 @@ menu.displayName.name=Display Name
menu.edit.shiftLeft=Shift + Left Click to change
menu.effects.save.name=Save effects
menu.elementNotSet=Not Set
menu.error.unknown=<red>*ERROR*</red>
menu.executor.action=<green>Actions: </green><gray><text></gray>
menu.executor.edit=(Left click to edit)
menu.executor.trigger=<green>Trigger: </green><gray><text></gray>
Expand All @@ -460,7 +461,6 @@ menu.infected.percent.name=Infected Percent
menu.infected.team.infected.name=Infected Team
menu.infected.team.survivor.name=Survivor Team
menu.invert.name=Invert
menu.error.unknown=<red>*ERROR*</red>
menu.list.enterChat=Enter the name of the option into chat for <type>, the menu will automatically reopen in <time> if nothing is entered.
menu.list.error.invalid=Could not find matching value!
menu.list.error.long=Unfortunately there are too many options to provide a list in game. Perhaps use the WIKI
Expand Down Expand Up @@ -494,6 +494,7 @@ menu.minigame.mechanic.name=Game Mechanic
menu.minigame.mechanic.settings.name=Game Mechanic Settings
menu.minigame.multiplayerOnly.description=Multiplayer Only
menu.minigame.objectiveDescription.name=Objective Description
menu.minigame.playerBlockRecorder.name=Activate Player Block Recorder
menu.minigame.playerSettings.name=Player Settings
menu.minigame.players.max.name=Max. Players
menu.minigame.players.min.name=Min. Players
Expand Down Expand Up @@ -624,14 +625,14 @@ menu.team.defaultWin.name=Default Winning Team
menu.team.gameAutobalanceMsg.description=Message sent to all players<newline>when someone is<newline>auto-balanced.<newline>Use <team>/<player> for team/player name
menu.team.gameAutobalanceMsg.name=Autobalance Broadcast Message
menu.team.maxPlayers=Max Players
menu.teams.name=Teams
menu.team.nameVisibility.alwaysVisible=Always visible
menu.team.nameVisibility.hideOtherTeam=Hide for other teams
menu.team.nameVisibility.hideOwnTeam=Hide for own team
menu.team.nameVisibility.name=NameTag Visibility
menu.team.nameVisibility.neverVisible=Never visible
menu.team.options.name=Team Options
menu.teamAdd.name=Add Team
menu.teams.name=Teams
menu.time.startWait.name=Start Wait Time
menu.timeWeather.name=Time and Weather Settings
menu.timeWeather.time.name=Time of Day
Expand Down Expand Up @@ -819,14 +820,14 @@ player.team.assign.joinAnnounce=<player> has joined <team>
player.team.assign.joinTeam=You have joined <team>
player.team.autobalance.minigameMsg=<player> has been auto-balanced to <team>
player.team.autobalance.plyMsg=You have been auto-balanced to <team>
position=<x>, <y>, <z>
preset.info.noInfo=No information given on this preset.
preset.load.error.notFound=Failed to load preset: <preset>.yml was not found in the presets folder!
preset.load.success=Loaded the <preset> preset to <minigame>
quantifier.none=<gray>None</gray>
region.describe=<region> from <postion1> to <postion2> (<number>)
region.error.noRegenRegion=No region by the name '<region>' exists.
region.error.noSelection=You have not made a selection!
position=<x>, <y>, <z>
region.regenRegion.created=Created a new regen region in <minigame> called <region>, <number> / <max>
region.regenRegion.error.limit=Error: the limit of Blocks of all regen areas together has been reached +(<number> / <max>). Please contact an admin if necessary.
region.regenRegion.updated=Updated regen region in <minigame> called <region> with a new area <number> / <max>
Expand Down
11 changes: 6 additions & 5 deletions Minigames/src/main/resources/messages_en_US.properties
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ command.select.description=Select and clear region selections
command.select.point1=Point 1 selected
command.select.point2=Point 2 selected
command.select.usage=/minigame select 1<newline>/minigame select 2<newline>/minigame select clear
command.set.regenArea.usage=/minigame set <Minigame> regenarea select <1/2><newline>/minigame set <Minigame> regenarea create <name><newline>/minigame set <Minigame> regenarea list <page><newline>/minigame set <Minigame> regenarea delete <name>
command.set.allowEnderPerls.description=Sets whether players can use ender pearls in a Minigame.
command.set.allowEnderPerls.success=Ender pearl usage in <minigame> was set to <state>
command.set.allowEnderPerls.usage=/minigame set <Minigame> allowenderpearls <true / false>
Expand Down Expand Up @@ -297,6 +296,7 @@ command.set.randomizedChests.usage=/minigame set <Minigame> randomizechests <min
command.set.regenArea.description=Creates and removes regeneration regions. This only needs to be used for Minigames that have things like leaf decay, fire, tnt etc. If the Minigame has anything that the player doesn't directly interact with that breaks or changes, this should be used.
command.set.regenArea.error.notSelected=You need to select a region first!
command.set.regenArea.listHeader=<green>-----------{Regen Regions <gold><number></gold>/<gold><max></gold>}-----------</green>
command.set.regenArea.usage=/minigame set <Minigame> regenarea select <1/2><newline>/minigame set <Minigame> regenarea create <name><newline>/minigame set <Minigame> regenarea list <page><newline>/minigame set <Minigame> regenarea delete <name>
command.set.regenDelay.description=Sets the amount of time in seconds the Minigame Regenerator should wait before starting its regen. Useful for TNT explosions that could go off even after the games over. (Default: 0 seconds)
command.set.regenDelay.success=Set <minigame>'s regeneration delay to <time> seconds.
command.set.regenDelay.usage=/minigame set <Minigame> regendelay <Time>[s|m|h]
Expand Down Expand Up @@ -396,9 +396,9 @@ command.toggleTimer.pause.success=Paused <minigame>'s countdown timer. (<time>s)
command.toggleTimer.resume.success=Resumed <minigame>'s countdown timer.
command.toggleTimer.usage=/minigame toggletimer <Minigame>
command.tool.description=Spawns the Minigame tool for use in setting locations in a Minigame.
command.tool.error.noTool=You must have a Minigame Tool! Type "/minigame tool" to receive one.
command.tool.error.select.noMinigame=You must have a valid Minigame selected to use this tool!
command.tool.error.select.noMode=You must have a mode selected to do this!
command.tool.error.noTool=You must have a Minigame Tool! Type "/minigame tool" to receive one.
command.tool.setMode=Set the tools mode to '<type>'.
command.tool.setTeam=Set the tools team to <team>
command.tool.usage=/minigame tool <mode><newline>/minigame tool team <team><newline>/minigame tool minigame <Minigame><newline>/minigame tool select<newline>/minigame tool deselect
Expand Down Expand Up @@ -439,6 +439,7 @@ menu.displayName.name=Display Name
menu.edit.shiftLeft=Shift + Left Click to change
menu.effects.save.name=Save effects
menu.elementNotSet=Not Set
menu.error.unknown=<red>*ERROR*</red>
menu.executor.action=<green>Actions: </green><gray><text></gray>
menu.executor.edit=(Left click to edit)
menu.executor.trigger=<green>Trigger: </green><gray><text></gray>
Expand All @@ -460,7 +461,6 @@ menu.infected.percent.name=Infected Percent
menu.infected.team.infected.name=Infected Team
menu.infected.team.survivor.name=Survivor Team
menu.invert.name=Invert
menu.error.unknown=<red>*ERROR*</red>
menu.list.enterChat=Enter the name of the option into chat for <type>, the menu will automatically reopen in <time> if nothing is entered.
menu.list.error.invalid=Could not find matching value!
menu.list.error.long=Unfortunately there are too many options to provide a list in game. Perhaps use the WIKI
Expand Down Expand Up @@ -494,6 +494,7 @@ menu.minigame.mechanic.name=Game Mechanic
menu.minigame.mechanic.settings.name=Game Mechanic Settings
menu.minigame.multiplayerOnly.description=Multiplayer Only
menu.minigame.objectiveDescription.name=Objective Description
menu.minigame.playerBlockRecorder.name=Activate Player Block Recorder
menu.minigame.playerSettings.name=Player Settings
menu.minigame.players.max.name=Max. Players
menu.minigame.players.min.name=Min. Players
Expand Down Expand Up @@ -624,14 +625,14 @@ menu.team.defaultWin.name=Default Winning Team
menu.team.gameAutobalanceMsg.description=Message sent to all players<newline>when someone is<newline>auto-balanced.<newline>Use <team>/<player> for team/player name
menu.team.gameAutobalanceMsg.name=Autobalance Broadcast Message
menu.team.maxPlayers=Max Players
menu.teams.name=Teams
menu.team.nameVisibility.alwaysVisible=Always visible
menu.team.nameVisibility.hideOtherTeam=Hide for other teams
menu.team.nameVisibility.hideOwnTeam=Hide for own team
menu.team.nameVisibility.name=NameTag Visibility
menu.team.nameVisibility.neverVisible=Never visible
menu.team.options.name=Team Options
menu.teamAdd.name=Add Team
menu.teams.name=Teams
menu.time.startWait.name=Start Wait Time
menu.timeWeather.name=Time and Weather Settings
menu.timeWeather.time.name=Time of Day
Expand Down Expand Up @@ -819,14 +820,14 @@ player.team.assign.joinAnnounce=<player> has joined <team>
player.team.assign.joinTeam=You have joined <team>
player.team.autobalance.minigameMsg=<player> has been auto-balanced to <team>
player.team.autobalance.plyMsg=You have been auto-balanced to <team>
position=<x>, <y>, <z>
preset.info.noInfo=No information given on this preset.
preset.load.error.notFound=Failed to load preset: <preset>.yml was not found in the presets folder!
preset.load.success=Loaded the <preset> preset to <minigame>
quantifier.none=<gray>None</gray>
region.describe=<region> from <postion1> to <postion2> (<number>)
region.error.noRegenRegion=No region by the name '<region>' exists.
region.error.noSelection=You have not made a selection!
position=<x>, <y>, <z>
region.regenRegion.created=Created a new regen region in <minigame> called <region>, <number> / <max>
region.regenRegion.error.limit=Error: the limit of Blocks of all regen areas together has been reached +(<number> / <max>). Please contact an admin if necessary.
region.regenRegion.updated=Updated regen region in <minigame> called <region> with a new area <number> / <max>
Expand Down

0 comments on commit bed484b

Please sign in to comment.