diff --git a/resources/plugin.yml b/resources/plugin.yml index d958cd4..c7c2d59 100644 --- a/resources/plugin.yml +++ b/resources/plugin.yml @@ -6,7 +6,7 @@ website: http://www.15imc.com/index.html main: me.skymc.taboolib.Main -version: 3.828 +version: 3.829 commands: taboolib: diff --git a/src/main/java/me/skymc/taboolib/database/GlobalDataManager.java b/src/main/java/me/skymc/taboolib/database/GlobalDataManager.java index e825d14..74b6fdb 100644 --- a/src/main/java/me/skymc/taboolib/database/GlobalDataManager.java +++ b/src/main/java/me/skymc/taboolib/database/GlobalDataManager.java @@ -30,7 +30,7 @@ public class GlobalDataManager { return obj != null ? obj.toString().equals("null") ? defaultVariable : obj.toString() : defaultVariable; } else { - return data.contains(name.replace(":", "-")) ? data.getString(name.replace(":", "-")) : defaultVariable; + return data.contains(name) ? data.getString(name) : defaultVariable; } } @@ -62,7 +62,7 @@ public class GlobalDataManager { Main.getConnection().intoValue(Main.getTablePrefix() + "_plugindata", name, variable == null ? "null" : variable, TabooLib.getServerUID()); } else { - data.set(name.replace(":", "-"), variable); + data.set(name, variable); } } @@ -93,7 +93,7 @@ public class GlobalDataManager { return getVariable(name, null) != null; } else { - return data.contains(name.replace(":", "-")); + return data.contains(name); } }