mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2025-01-16 21:21:28 +01:00
Add correct language references.
This commit is contained in:
parent
087ee07f45
commit
4b2f974b56
@ -154,7 +154,7 @@ public class ChallengesManager
|
||||
{
|
||||
if (!silent)
|
||||
{
|
||||
user.sendMessage("challenges.admin.import.skip",
|
||||
user.sendMessage("challenges.admin.import.skipping",
|
||||
"[object]", challenge.getFriendlyName());
|
||||
}
|
||||
|
||||
@ -219,7 +219,7 @@ public class ChallengesManager
|
||||
{
|
||||
if (!silent)
|
||||
{
|
||||
user.sendMessage("challenges.admin.import.skip",
|
||||
user.sendMessage("challenges.admin.import.skipping",
|
||||
"[object]", level.getFriendlyName());
|
||||
}
|
||||
|
||||
|
@ -451,7 +451,7 @@ public class EditChallengeGUI extends CommonGUI
|
||||
for (World.Environment environment : World.Environment.values())
|
||||
{
|
||||
values.add((this.challenge.getEnvironment().contains(environment.name()) ? "§2" : "§c") +
|
||||
this.user.getTranslation("challenges.gui.admin.descriptions." + environment.name()));
|
||||
this.user.getTranslation("challenges.gui.admin.descriptions." + environment.name().toLowerCase()));
|
||||
}
|
||||
|
||||
name = this.user.getTranslation("challenges.gui.admin.buttons.environment");
|
||||
|
@ -134,7 +134,7 @@ public class ChallengesGUI extends CommonGUI
|
||||
{
|
||||
panelBuilder.item(new PanelItemBuilder().
|
||||
icon(Material.SIGN).
|
||||
name("Previous").
|
||||
name(this.user.getTranslation("challenges.gui.buttons.previous")).
|
||||
clickHandler((panel, user1, clickType, slot) -> {
|
||||
this.freeChallengeIndex--;
|
||||
this.build();
|
||||
@ -158,7 +158,7 @@ public class ChallengesGUI extends CommonGUI
|
||||
{
|
||||
panelBuilder.item(new PanelItemBuilder().
|
||||
icon(Material.SIGN).
|
||||
name("Next").
|
||||
name(this.user.getTranslation("challenges.gui.buttons.next")).
|
||||
clickHandler((panel, user1, clickType, slot) -> {
|
||||
this.freeChallengeIndex++;
|
||||
this.build();
|
||||
@ -196,7 +196,7 @@ public class ChallengesGUI extends CommonGUI
|
||||
{
|
||||
panelBuilder.item(new PanelItemBuilder().
|
||||
icon(Material.SIGN).
|
||||
name("Previous").
|
||||
name(this.user.getTranslation("challenges.gui.buttons.previous")).
|
||||
clickHandler((panel, user1, clickType, slot) -> {
|
||||
this.pageIndex--;
|
||||
this.build();
|
||||
@ -220,7 +220,7 @@ public class ChallengesGUI extends CommonGUI
|
||||
{
|
||||
panelBuilder.item(new PanelItemBuilder().
|
||||
icon(Material.SIGN).
|
||||
name("Next").
|
||||
name(this.user.getTranslation("challenges.gui.buttons.next")).
|
||||
clickHandler((panel, user1, clickType, slot) -> {
|
||||
this.pageIndex++;
|
||||
this.build();
|
||||
@ -262,7 +262,7 @@ public class ChallengesGUI extends CommonGUI
|
||||
{
|
||||
panelBuilder.item(new PanelItemBuilder().
|
||||
icon(Material.SIGN).
|
||||
name("Previous").
|
||||
name(this.user.getTranslation("challenges.gui.buttons.previous")).
|
||||
clickHandler((panel, user1, clickType, slot) -> {
|
||||
this.levelIndex--;
|
||||
this.build();
|
||||
@ -286,7 +286,7 @@ public class ChallengesGUI extends CommonGUI
|
||||
{
|
||||
panelBuilder.item(new PanelItemBuilder().
|
||||
icon(Material.SIGN).
|
||||
name("Next").
|
||||
name(this.user.getTranslation("challenges.gui.buttons.next")).
|
||||
clickHandler((panel, user1, clickType, slot) -> {
|
||||
this.levelIndex++;
|
||||
this.build();
|
||||
|
Loading…
Reference in New Issue
Block a user