mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-12-27 03:17:47 +01:00
Downgrade to Spigot 1.13.2 and BentoBox 1.6
This commit is contained in:
parent
e83f906581
commit
1ba3a7a273
8
pom.xml
8
pom.xml
@ -35,15 +35,15 @@
|
||||
<java.version>1.8</java.version>
|
||||
<powermock.version>1.7.4</powermock.version>
|
||||
<!-- More visible way how to change dependency versions -->
|
||||
<spigot.version>1.14.4-R0.1-SNAPSHOT</spigot.version>
|
||||
<bentobox.version>1.7.0</bentobox.version>
|
||||
<spigot.version>1.13.2-R0.1-SNAPSHOT</spigot.version>
|
||||
<bentobox.version>1.6.0</bentobox.version>
|
||||
<level.version>1.6.0</level.version>
|
||||
<vault.version>1.7</vault.version>
|
||||
<!-- Revision variable removes warning about dynamic version -->
|
||||
<revision>${build.version}-SNAPSHOT</revision>
|
||||
<revision>${build.version}</revision>
|
||||
<!-- This allows to change between versions and snapshots. -->
|
||||
<build.version>0.8.0</build.version>
|
||||
<build.number>-LOCAL</build.number>
|
||||
<build.number>-1.6.0</build.number>
|
||||
</properties>
|
||||
|
||||
<profiles>
|
||||
|
@ -273,7 +273,7 @@ public abstract class CommonGUI
|
||||
{
|
||||
name = this.user.getTranslation("challenges.gui.buttons.next");
|
||||
description = Collections.emptyList();
|
||||
icon = new ItemStack(Material.OAK_SIGN);
|
||||
icon = new ItemStack(Material.SIGN);
|
||||
clickHandler = (panel, user, clickType, slot) -> {
|
||||
this.pageIndex++;
|
||||
this.build();
|
||||
@ -286,7 +286,7 @@ public abstract class CommonGUI
|
||||
{
|
||||
name = this.user.getTranslation("challenges.gui.buttons.previous");
|
||||
description = Collections.emptyList();
|
||||
icon = new ItemStack(Material.OAK_SIGN);
|
||||
icon = new ItemStack(Material.SIGN);
|
||||
clickHandler = (panel, user, clickType, slot) -> {
|
||||
this.pageIndex--;
|
||||
this.build();
|
||||
|
@ -455,7 +455,7 @@ public class EditSettingsGUI extends CommonGUI
|
||||
this.user.getTranslation("challenges.gui.descriptions.enabled") :
|
||||
this.user.getTranslation("challenges.gui.descriptions.disabled")));
|
||||
name = this.user.getTranslation("challenges.gui.buttons.admin.title-enable");
|
||||
icon = new ItemStack(Material.OAK_SIGN);
|
||||
icon = new ItemStack(Material.SIGN);
|
||||
clickHandler = (panel, user1, clickType, i) -> {
|
||||
this.settings.setShowCompletionTitle(!this.settings.isShowCompletionTitle());
|
||||
|
||||
|
@ -168,7 +168,7 @@ public class ChallengesGUI extends CommonGUI
|
||||
if (this.freeChallengeIndex > 0)
|
||||
{
|
||||
panelBuilder.item(index++, new PanelItemBuilder().
|
||||
icon(Material.OAK_SIGN).
|
||||
icon(Material.SIGN).
|
||||
name(this.user.getTranslation("challenges.gui.buttons.previous")).
|
||||
clickHandler((panel, user1, clickType, slot) -> {
|
||||
this.freeChallengeIndex--;
|
||||
@ -192,7 +192,7 @@ public class ChallengesGUI extends CommonGUI
|
||||
else if (currentIndex < freeChallengesCount)
|
||||
{
|
||||
panelBuilder.item(index, new PanelItemBuilder().
|
||||
icon(Material.OAK_SIGN).
|
||||
icon(Material.SIGN).
|
||||
name(this.user.getTranslation("challenges.gui.buttons.next")).
|
||||
clickHandler((panel, user1, clickType, slot) -> {
|
||||
this.freeChallengeIndex++;
|
||||
@ -244,7 +244,7 @@ public class ChallengesGUI extends CommonGUI
|
||||
if (this.pageIndex > 0)
|
||||
{
|
||||
panelBuilder.item(index++, new PanelItemBuilder().
|
||||
icon(Material.OAK_SIGN).
|
||||
icon(Material.SIGN).
|
||||
name(this.user.getTranslation("challenges.gui.buttons.previous")).
|
||||
clickHandler((panel, user1, clickType, slot) -> {
|
||||
this.pageIndex--;
|
||||
@ -268,7 +268,7 @@ public class ChallengesGUI extends CommonGUI
|
||||
else if (currentIndex < challengesCount)
|
||||
{
|
||||
panelBuilder.item(index, new PanelItemBuilder().
|
||||
icon(Material.OAK_SIGN).
|
||||
icon(Material.SIGN).
|
||||
name(this.user.getTranslation("challenges.gui.buttons.next")).
|
||||
clickHandler((panel, user1, clickType, slot) -> {
|
||||
this.pageIndex++;
|
||||
@ -305,7 +305,7 @@ public class ChallengesGUI extends CommonGUI
|
||||
if (this.levelIndex > 0)
|
||||
{
|
||||
panelBuilder.item(index++, new PanelItemBuilder().
|
||||
icon(Material.OAK_SIGN).
|
||||
icon(Material.SIGN).
|
||||
name(this.user.getTranslation("challenges.gui.buttons.previous")).
|
||||
clickHandler((panel, user1, clickType, slot) -> {
|
||||
this.levelIndex--;
|
||||
@ -329,7 +329,7 @@ public class ChallengesGUI extends CommonGUI
|
||||
else if (currentIndex < levelCounts)
|
||||
{
|
||||
panelBuilder.item(index, new PanelItemBuilder().
|
||||
icon(Material.OAK_SIGN).
|
||||
icon(Material.SIGN).
|
||||
name(this.user.getTranslation("challenges.gui.buttons.next")).
|
||||
clickHandler((panel, user1, clickType, slot) -> {
|
||||
this.levelIndex++;
|
||||
|
@ -42,18 +42,18 @@ public class MultipleGUI
|
||||
{
|
||||
PanelBuilder panelBuilder = new PanelBuilder().
|
||||
user(this.user).
|
||||
type(Panel.Type.HOPPER).
|
||||
// type(Panel.Type.HOPPER).
|
||||
name(this.user.getTranslation("challenges.gui.title.multiple-complete"));
|
||||
|
||||
panelBuilder.item(2, this.getButton(Button.VALUE));
|
||||
panelBuilder.item(4, this.getButton(Button.VALUE));
|
||||
|
||||
// Reduce
|
||||
panelBuilder.item(0, this.getButton(Button.REDUCE_LOT));
|
||||
panelBuilder.item(1, this.getButton(Button.REDUCE));
|
||||
panelBuilder.item(2, this.getButton(Button.REDUCE_LOT));
|
||||
panelBuilder.item(3, this.getButton(Button.REDUCE));
|
||||
|
||||
// Increase
|
||||
panelBuilder.item(3, this.getButton(Button.INCREASE));
|
||||
panelBuilder.item(4, this.getButton(Button.INCREASE_LOT));
|
||||
panelBuilder.item(5, this.getButton(Button.INCREASE));
|
||||
panelBuilder.item(6, this.getButton(Button.INCREASE_LOT));
|
||||
|
||||
panelBuilder.build();
|
||||
}
|
||||
|
@ -64,12 +64,12 @@ public class ChallengeTypeGUI
|
||||
{
|
||||
PanelBuilder panelBuilder = new PanelBuilder().
|
||||
user(this.user).
|
||||
type(Panel.Type.HOPPER).
|
||||
// type(Panel.Type.HOPPER).
|
||||
name(this.user.getTranslation("challenges.gui.title.admin.type-select"));
|
||||
|
||||
panelBuilder.item(0, this.getButton(Challenge.ChallengeType.INVENTORY));
|
||||
panelBuilder.item(1, this.getButton(Challenge.ChallengeType.ISLAND));
|
||||
panelBuilder.item(2, this.getButton(Challenge.ChallengeType.OTHER));
|
||||
panelBuilder.item(3, this.getButton(Challenge.ChallengeType.INVENTORY));
|
||||
panelBuilder.item(4, this.getButton(Challenge.ChallengeType.ISLAND));
|
||||
panelBuilder.item(5, this.getButton(Challenge.ChallengeType.OTHER));
|
||||
|
||||
panelBuilder.build();
|
||||
}
|
||||
|
@ -145,7 +145,7 @@ public class SelectBlocksGUI
|
||||
|
||||
panelBuilder.item(18,
|
||||
new PanelItemBuilder().
|
||||
icon(Material.OAK_SIGN).
|
||||
icon(Material.SIGN).
|
||||
name(this.user.getTranslation("challenges.gui.buttons.previous")).
|
||||
clickHandler((panel, user1, clickType, slot) -> {
|
||||
this.build(correctPage - 1);
|
||||
@ -154,7 +154,7 @@ public class SelectBlocksGUI
|
||||
|
||||
panelBuilder.item(26,
|
||||
new PanelItemBuilder().
|
||||
icon(Material.OAK_SIGN).
|
||||
icon(Material.SIGN).
|
||||
name(this.user.getTranslation("challenges.gui.buttons.next")).
|
||||
clickHandler((panel, user1, clickType, slot) -> {
|
||||
this.build(correctPage + 1);
|
||||
|
@ -76,7 +76,7 @@ public class SelectChallengeGUI
|
||||
|
||||
panelBuilder.item(18,
|
||||
new PanelItemBuilder().
|
||||
icon(Material.OAK_SIGN).
|
||||
icon(Material.SIGN).
|
||||
name(this.user.getTranslation("challenges.gui.buttons.previous")).
|
||||
clickHandler((panel, user1, clickType, slot) -> {
|
||||
this.build(correctPage - 1);
|
||||
@ -85,7 +85,7 @@ public class SelectChallengeGUI
|
||||
|
||||
panelBuilder.item(26,
|
||||
new PanelItemBuilder().
|
||||
icon(Material.OAK_SIGN).
|
||||
icon(Material.SIGN).
|
||||
name(this.user.getTranslation("challenges.gui.buttons.next")).
|
||||
clickHandler((panel, user1, clickType, slot) -> {
|
||||
this.build(correctPage + 1);
|
||||
|
@ -115,7 +115,7 @@ public class SelectEntityGUI
|
||||
|
||||
panelBuilder.item(18,
|
||||
new PanelItemBuilder().
|
||||
icon(Material.OAK_SIGN).
|
||||
icon(Material.SIGN).
|
||||
name(this.user.getTranslation("challenges.gui.buttons.previous")).
|
||||
clickHandler((panel, user1, clickType, slot) -> {
|
||||
this.build(correctPage - 1);
|
||||
@ -124,7 +124,7 @@ public class SelectEntityGUI
|
||||
|
||||
panelBuilder.item(26,
|
||||
new PanelItemBuilder().
|
||||
icon(Material.OAK_SIGN).
|
||||
icon(Material.SIGN).
|
||||
name(this.user.getTranslation("challenges.gui.buttons.next")).
|
||||
clickHandler((panel, user1, clickType, slot) -> {
|
||||
this.build(correctPage + 1);
|
||||
|
Loading…
Reference in New Issue
Block a user