aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandSaveData.java
blob: 4d17787c0e698855b636e4975538e85a6a3cae57 (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.e;
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(e.getDungeonsGuide().getConfigDir());
    }
    @Override
    public int getRequiredPermissionLevel() {
        return 0;
    }
}