mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-27 21:29:14 +01:00
Move setImplementation call
This commit is contained in:
parent
ae6a666bc6
commit
eec27c07e4
@ -206,6 +206,7 @@ public class Citizens extends JavaPlugin implements CitizensPlugin {
|
||||
getServer().getPluginManager().disablePlugin(this);
|
||||
return;
|
||||
}
|
||||
CitizensAPI.setImplementation(this);
|
||||
config = new Settings(getDataFolder());
|
||||
registerScriptHelpers();
|
||||
|
||||
@ -219,7 +220,6 @@ public class Citizens extends JavaPlugin implements CitizensPlugin {
|
||||
npcRegistry = new CitizensNPCRegistry(saves);
|
||||
traitFactory = new CitizensTraitFactory();
|
||||
selector = new NPCSelector(this);
|
||||
CitizensAPI.setImplementation(this);
|
||||
|
||||
getServer().getPluginManager().registerEvents(new EventListen(), this);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user