mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-08 03:29:41 +01:00
Fix RoyalAuth Command
This commit is contained in:
parent
1d83b398f0
commit
8db9c69ed0
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user