mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-07 00:48:19 +01:00
Fix CITIZENS-295
This commit is contained in:
parent
ab60782de3
commit
777a14d039
@ -204,6 +204,7 @@ public class Citizens extends JavaPlugin implements CitizensPlugin {
|
||||
|
||||
@Override
|
||||
public void onEnable() {
|
||||
CitizensAPI.setImplementation(this);
|
||||
// Disable if the server is not using the compatible Minecraft version
|
||||
String mcVersion = ((CraftServer) getServer()).getServer().getVersion();
|
||||
compatible = mcVersion.startsWith(COMPATIBLE_MC_VERSION);
|
||||
@ -212,7 +213,6 @@ public class Citizens extends JavaPlugin implements CitizensPlugin {
|
||||
getServer().getPluginManager().disablePlugin(this);
|
||||
return;
|
||||
}
|
||||
CitizensAPI.setImplementation(this);
|
||||
config = new Settings(getDataFolder());
|
||||
registerScriptHelpers();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user