aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandSaveData.java
blob: 1cdfc7915147a95b9a5b33b5efc89d14678fde5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package kr.syeyoung.dungeonsguide.commands;

import kr.syeyoung.dungeonsguide.DungeonsGuide;
import kr.syeyoung.dungeonsguide.dungeon.roomfinder.DungeonRoomInfoRegistry;
import net.minecraft.command.CommandBase;
import net.minecraft.command.ICommandSender;

public class CommandSaveData extends CommandBase {
    @Override
    public String getCommandName() {
        return "saverooms";
    }

    @Override
    public String getCommandUsage(ICommandSender sender) {
        return "saverooms";
    }

    @Override
    public void processCommand(ICommandSender sender, String[] args) {
        DungeonRoomInfoRegistry.saveAll(DungeonsGuide.getDungeonsGuide().getConfigDir());
    }
    @Override
    public int getRequiredPermissionLevel() {
        return 0;
    }
}