Skip to content

Commit

Permalink
Push update.
Browse files Browse the repository at this point in the history
  • Loading branch information
lewmilburn committed Nov 6, 2024
1 parent e1b6df4 commit 51e0edf
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ public boolean onCommand(CommandSender commandSender, Command command, String s,
gui.show();
} else {
message.Info("Please run this command in-game.");
message.Info("We're working on bringing CLI access back soon, but it's temporarily disabled in this version.");
message.Info("Please either downgrade to the previous version where it is enabled, or wait for the next update.");
message.Info("We apologise for any inconvenience.");
}
} else {
message.Error("You do not have the required permissions to run this command.");
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/net/lewmc/kryptonite/kos/gui/KOS_MainGui.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ private void addElements() {
new ItemStack(Material.COMMAND_BLOCK),
1,
click -> {
click.getWhoClicked().sendMessage(ChatColor.DARK_RED + "This feature is currently disabled in this version of Kryptonite.");
click.getWhoClicked().sendMessage(ChatColor.RED + "If you'd like to use it please either downgrade to a version wher it was enabled, or wait for an update to re-enable it. We apologise for any inconvenience.");
click.getGui().close();
return true;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ private void addElements() {
new ItemStack(Material.MAP),
1,
click -> {
click.getGui().close();
click.getWhoClicked().sendMessage(ChatColor.DARK_RED + "There are no options that can be changed for this configuration file.");
return true;
},
ChatColor.BLUE + "Paper Global",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ private void arrowDespawnRateNonPlayer(char id) {
));
} else if (value > 30) {
this.gui.addElement(new StaticGuiElement(id,
new ItemStack(Material.ORANGE_CONCRETE),
new ItemStack(Material.RED_CONCRETE),
1,
click -> this.setInt(PaperWorld.Key.ARROW_DESPAWN_RATE_NON_PLAYER, click, value, false),
ChatColor.DARK_RED + "Arrow Despawn Rate - Non-Player",
Expand All @@ -684,7 +684,7 @@ private void arrowDespawnRateNonPlayer(char id) {
));
} else {
this.gui.addElement(new StaticGuiElement(id,
new ItemStack(Material.RED_CONCRETE),
new ItemStack(Material.ORANGE_CONCRETE),
1,
click -> this.setInt(PaperWorld.Key.ARROW_DESPAWN_RATE_NON_PLAYER, click, value, false),
ChatColor.GOLD + "Arrow Despawn Rate - Non-Player",
Expand All @@ -709,7 +709,7 @@ private void arrowDespawnRateCreative(char id) {
));
} else if (value > 30) {
this.gui.addElement(new StaticGuiElement(id,
new ItemStack(Material.ORANGE_CONCRETE),
new ItemStack(Material.RED_CONCRETE),
1,
click -> this.setInt(PaperWorld.Key.ARROW_DESPAWN_RATE_CREATIVE, click, value, false),
ChatColor.DARK_RED + "Arrow Despawn Rate - Creative",
Expand All @@ -720,7 +720,7 @@ private void arrowDespawnRateCreative(char id) {
));
} else {
this.gui.addElement(new StaticGuiElement(id,
new ItemStack(Material.RED_CONCRETE),
new ItemStack(Material.ORANGE_CONCRETE),
1,
click -> this.setInt(PaperWorld.Key.ARROW_DESPAWN_RATE_CREATIVE, click, value, false),
ChatColor.GOLD + "Arrow Despawn Rate - Creative",
Expand Down

0 comments on commit 51e0edf

Please sign in to comment.