Added CommandHandler instance
This commit is contained in:
parent
59d8ced86d
commit
690c7d9532
@ -11,6 +11,7 @@ import java.util.List;
|
|||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
|
import fr.xephi.authme.command.CommandHandler;
|
||||||
import org.apache.logging.log4j.LogManager;
|
import org.apache.logging.log4j.LogManager;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
@ -77,6 +78,9 @@ public class AuthMe extends JavaPlugin {
|
|||||||
private static Server server;
|
private static Server server;
|
||||||
private Logger authmeLogger;
|
private Logger authmeLogger;
|
||||||
|
|
||||||
|
// TODO: Move this to a better place! -- timvisee
|
||||||
|
private CommandHandler commandHandler = null;
|
||||||
|
|
||||||
public Management management;
|
public Management management;
|
||||||
public NewAPI api;
|
public NewAPI api;
|
||||||
public SendMailSSL mail;
|
public SendMailSSL mail;
|
||||||
@ -140,6 +144,10 @@ public class AuthMe extends JavaPlugin {
|
|||||||
authmeLogger = Logger.getLogger("AuthMe");
|
authmeLogger = Logger.getLogger("AuthMe");
|
||||||
authme = this;
|
authme = this;
|
||||||
|
|
||||||
|
// Set up and initialize the command handler
|
||||||
|
this.commandHandler = new CommandHandler(false);
|
||||||
|
this.commandHandler.init();
|
||||||
|
|
||||||
// TODO: split the plugin in more modules
|
// TODO: split the plugin in more modules
|
||||||
moduleManager = new ModuleManager(this);
|
moduleManager = new ModuleManager(this);
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
@ -808,4 +816,13 @@ public class AuthMe extends JavaPlugin {
|
|||||||
public String getCountryName(String ip) {
|
public String getCountryName(String ip) {
|
||||||
return Utils.getCountryName(ip);
|
return Utils.getCountryName(ip);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the command handler instance.
|
||||||
|
*
|
||||||
|
* @return Command handler.
|
||||||
|
*/
|
||||||
|
public CommandHandler getCommandHandler() {
|
||||||
|
return this.commandHandler;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user