Fix RoyalAuth Command

This commit is contained in:
Xephi 2014-06-14 02:13:12 +02:00
parent 1d83b398f0
commit 8db9c69ed0

View File

@ -566,8 +566,12 @@ public class AdminCommand implements CommandExecutor {
sender.sendMessage("Usage : /authme switchantibot on/off"); sender.sendMessage("Usage : /authme switchantibot on/off");
return true; return true;
} else if (args[0].equalsIgnoreCase("royalauth")) { } else if (args[0].equalsIgnoreCase("royalauth")) {
new RoyalAuthConverter(plugin); Converter converter = new RoyalAuthConverter(plugin);
sender.sendMessage("[AuthMe] RoyalAuth database has been imported correctly"); try {
Bukkit.getScheduler().runTaskAsynchronously(plugin, converter);
} catch (Exception e) {
sender.sendMessage("Error while importing RoyalAuth data, check your logs");
}
return true; return true;
} else if (args[0].equalsIgnoreCase("getip")) { } else if (args[0].equalsIgnoreCase("getip")) {
if (args.length < 2) { if (args.length < 2) {