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