Skip to content

Commit

Permalink
Added some config values + pregen warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
lewmilburn committed Sep 25, 2024
1 parent 0b60620 commit 2ee2889
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/main/java/net/lewmc/kryptonite/kos/gui/KOS_PurpurGui.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
import de.themoep.inventorygui.InventoryGui;
import de.themoep.inventorygui.StaticGuiElement;
import net.lewmc.kryptonite.Kryptonite;
import net.lewmc.kryptonite.kos.config.Bukkit;
import net.lewmc.kryptonite.kos.config.Pufferfish;
import net.lewmc.kryptonite.kos.config.Purpur;
import net.lewmc.kryptonite.kos.config.ServerProperties;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.command.CommandSender;
Expand All @@ -22,7 +19,6 @@
public class KOS_PurpurGui {
private final Kryptonite plugin;
private final CommandSender user;
private final int simulationDistance;
private final Purpur purpur;
private InventoryGui gui;

Expand All @@ -34,7 +30,6 @@ public class KOS_PurpurGui {
public KOS_PurpurGui(Kryptonite plugin, CommandSender user) {
this.plugin = plugin;
this.user = user;
this.simulationDistance = (new ServerProperties(plugin).getInt(ServerProperties.Key.SIMULATION_DISTANCE) -1)*16;

this.purpur = new Purpur(plugin, user);
}
Expand Down Expand Up @@ -353,6 +348,7 @@ private void dolphinDisableTreasureSearching(char id) {
ChatColor.YELLOW + "true",
ChatColor.YELLOW + "Impact to player experience - dolphins won't",
ChatColor.YELLOW + "perform structure searches.",
ChatColor.YELLOW + "Only enable if you have pre-generated your world.",
ChatColor.BLUE + "Click to toggle true/false."
));
} else {
Expand All @@ -368,6 +364,7 @@ private void dolphinDisableTreasureSearching(char id) {
ChatColor.DARK_RED + "Dolphin Disable Treasure Searching",
ChatColor.RED + "false",
ChatColor.RED + "Impact to performance.",
ChatColor.RED + "Only enable if you have pre-generated your world.",
ChatColor.BLUE + "Click to toggle true/false."
));
}
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ update-check: true
kos:
override-pregenerated-world-protections: false
using-tcpshield: false
expected-player-count: 20
player-style: 1

0 comments on commit 2ee2889

Please sign in to comment.