Update dictionaries and comments

This commit is contained in:
GeorgH93 2021-05-22 16:04:22 +02:00
parent 27344a411f
commit 77bb0d1326
No known key found for this signature in database
GPG Key ID: D1630D37F9E4B3C8
4 changed files with 17 additions and 5 deletions

View File

@ -1,8 +1,17 @@
<component name="ProjectDictionaryState">
<dictionary name="Georg">
<words>
<w>cooldowns</w>
<w>ingame</w>
<w>munge</w>
<w>ondisconnect</w>
<w>ondisconnectdelayed</w>
<w>uncache</w>
<w>uncaching</w>
<w>xxxx</w>
<w>xxxxxxxx</w>
<w>xxxxxxxxxxxx</w>
<w>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</w>
</words>
</dictionary>
</component>

View File

@ -9,6 +9,9 @@
<w>mojang</w>
<w>papermc</w>
<w>placeholderapi</w>
<w>shulker</w>
<w>shulkerbox</w>
<w>shulkerboxes</w>
<w>spigot</w>
</words>
</dictionary>

View File

@ -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"

View File

@ -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();