版本更新至:3.289

调整:低估了 Yaml 的兼容性,删除 GlobalDataManager 工具的某段智障代码。
This commit is contained in:
坏黑 2018-03-28 20:28:58 +08:00
parent 0af1ebd032
commit 7f8167156a
2 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ website: http://www.15imc.com/index.html
main: me.skymc.taboolib.Main main: me.skymc.taboolib.Main
version: 3.828 version: 3.829
commands: commands:
taboolib: taboolib:

View File

@ -30,7 +30,7 @@ public class GlobalDataManager {
return obj != null ? obj.toString().equals("null") ? defaultVariable : obj.toString() : defaultVariable; return obj != null ? obj.toString().equals("null") ? defaultVariable : obj.toString() : defaultVariable;
} }
else { 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()); Main.getConnection().intoValue(Main.getTablePrefix() + "_plugindata", name, variable == null ? "null" : variable, TabooLib.getServerUID());
} }
else { else {
data.set(name.replace(":", "-"), variable); data.set(name, variable);
} }
} }
@ -93,7 +93,7 @@ public class GlobalDataManager {
return getVariable(name, null) != null; return getVariable(name, null) != null;
} }
else { else {
return data.contains(name.replace(":", "-")); return data.contains(name);
} }
} }