版本更新至:3.289
调整:低估了 Yaml 的兼容性,删除 GlobalDataManager 工具的某段智障代码。
This commit is contained in:
parent
0af1ebd032
commit
7f8167156a
@ -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:
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user