mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 06:28:49 +00:00
Add additional functionality to the Essentials Migrator
Signed-off-by: BuildTools <[email protected]>
This commit is contained in:
1 parent
82fe9dfe29
commit
4dcf9f094d
2 files changed
+46
-21
No files matched your search
@@ -123,10 +123,16 @@ public class HuskHomesCommand extends CommandBase implements TabCompleter {
|
||||
MessageManager.sendMessage(p, "error_console_only");
|
||||
return true;
|
||||
}
|
||||
if (args.length == 2) {
|
||||
if (args[1].equalsIgnoreCase("essentialsX")) {
|
||||
if (args.length >= 2) {
|
||||
if (args[1].equalsIgnoreCase("essentialsx")) {
|
||||
sender.spigot().sendMessage(new MineDown("[HuskHomes](#00fb9a bold) �fb9a&| Starting data migration from EssentialsX...").toComponent());
|
||||
EssentialsMigrator.migrate();
|
||||
if (args.length == 4) {
|
||||
EssentialsMigrator.migrate(args[2].toLowerCase(), args[3].toLowerCase());
|
||||
} else if (args.length == 2) {
|
||||
EssentialsMigrator.migrate();
|
||||
} else {
|
||||
sender.sendMessage(ChatColor.RED + "Invalid syntax! Usage: /huskhomes migrate essentialsX [world] [target server]");
|
||||
}
|
||||
} else {
|
||||
sender.sendMessage(ChatColor.RED + "Invalid argument! Usage: /huskhomes migrate essentialsX");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user