From 77bb0d1326757611717fe236cb3a47759bb91989 Mon Sep 17 00:00:00 2001 From: GeorgH93 Date: Sat, 22 May 2021 16:04:22 +0200 Subject: [PATCH] Update dictionaries and comments --- .idea/dictionaries/Georg.xml | 9 +++++++++ .idea/dictionaries/Minecraft.xml | 3 +++ Minepacks/resources/config.yml | 8 ++++---- .../Minepacks/Bukkit/Database/Backend/SQLite.java | 2 +- 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/.idea/dictionaries/Georg.xml b/.idea/dictionaries/Georg.xml index 5c2ba56..8960b21 100644 --- a/.idea/dictionaries/Georg.xml +++ b/.idea/dictionaries/Georg.xml @@ -1,8 +1,17 @@ + cooldowns ingame munge + ondisconnect + ondisconnectdelayed + uncache + uncaching + xxxx + xxxxxxxx + xxxxxxxxxxxx + xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx \ No newline at end of file diff --git a/.idea/dictionaries/Minecraft.xml b/.idea/dictionaries/Minecraft.xml index 67fcf94..372d6fd 100644 --- a/.idea/dictionaries/Minecraft.xml +++ b/.idea/dictionaries/Minecraft.xml @@ -9,6 +9,9 @@ mojang papermc placeholderapi + shulker + shulkerbox + shulkerboxes spigot diff --git a/Minepacks/resources/config.yml b/Minepacks/resources/config.yml index 866bc52..210b0e3 100644 --- a/Minepacks/resources/config.yml +++ b/Minepacks/resources/config.yml @@ -113,7 +113,7 @@ Database: # Settings controlling the cache behavior of the plugin. You may optimize it a little depending on your player count, ram or cpu bottlenecks. Cache: UnCache: - # The strategy used to uncache offline players. Options + # The strategy used to uncache offline players. Options: # interval (offline players get uncached every x seconds) # intervalChecked (like interval, but also ensures that the player is already offline for at least the interval time, adds a cpu overhead) # ondisconnect (player instantly gets uncached as soon as he disconnects, may adds overhead if other plugins try to access the player data when they go offline, also it may be problematic for players with unstable connections) @@ -124,11 +124,11 @@ Database: Delay: 600 Shulkerboxes: - # This setting controls whether players can put shulkerboxes into their backpacks. + # This setting controls whether players can put shulker-boxes into their backpacks. PreventInBackpack: true - # This setting allows disabling shulkerboxes all together. Players won't be able to craft or use them. + # This setting allows disabling shulker-boxes all together. Players won't be able to craft or use them. DisableShulkerboxes: false - # This setting controls how existing shulkerboxes are handled if they are disabled. + # This setting controls how existing shulker-boxes are handled if they are disabled. # Options: Ignore, Remove = shulker-box will be removed including its content, Destroy = shulker-box will be destroyed, and it's content will be dropped Existing: "Ignore" diff --git a/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Database/Backend/SQLite.java b/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Database/Backend/SQLite.java index d2c2c4b..35220b0 100644 --- a/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Database/Backend/SQLite.java +++ b/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Database/Backend/SQLite.java @@ -107,7 +107,7 @@ protected void checkDB() if(rs.next()) return new Version(rs.getString("value")); } try(ResultSet rs = stmt.executeQuery("SELECT name FROM sqlite_master WHERE type='table' AND name='backpack_players';")) - { // Check if players table exists + { // Check if old players table exists if(rs.next()) return new Version(2); } return plugin.getVersion();