Applied some fixes (rebasing)

This commit is contained in:
Daniel Saukel 2016-07-01 03:13:12 +02:00
parent 79dac4c6fd
commit a45fff42b1
2 changed files with 4 additions and 3 deletions

View File

@ -370,6 +370,7 @@ public class DungeonsXL extends BRPlugin {
new EscapeCommand(),
new GameCommand(),
new GroupCommand(),
new ImportCommand(),
new InviteCommand(),
new JoinCommand(),
new EnterCommand(),

View File

@ -17,12 +17,12 @@
package io.github.dre2n.dungeonsxl.command;
import io.github.dre2n.commons.command.BRCommand;
import io.github.dre2n.commons.util.FileUtil;
import io.github.dre2n.commons.util.messageutil.MessageUtil;
import io.github.dre2n.dungeonsxl.DungeonsXL;
import io.github.dre2n.dungeonsxl.config.DMessages;
import io.github.dre2n.dungeonsxl.player.DPermissions;
import io.github.dre2n.dungeonsxl.world.ResourceWorld;
import io.github.dre2n.itemsxl.util.commons.util.FileUtil;
import io.github.dre2n.dungeonsxl.world.DResourceWorld;
import java.io.File;
import org.bukkit.Bukkit;
import org.bukkit.World;
@ -70,7 +70,7 @@ public class ImportCommand extends BRCommand {
FileUtil.copyDirectory(source, target, new String[]{"playerdata", "stats"});
new ResourceWorld(args[1]);
plugin.getDWorlds().addResource(new DResourceWorld(plugin.getDWorlds(), args[1]));
MessageUtil.sendMessage(sender, DMessages.CMD_IMPORT_SUCCESS.getMessage(args[1]));
}