blob: c1d3512e4488ca82aa06668a136630065ad91fbc (
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 CommandLoadData extends CommandBase {
@Override
public String getCommandName() {
return "loadrooms";
}
@Override
public String getCommandUsage(ICommandSender sender) {
return "loadrooms";
}
@Override
public void processCommand(ICommandSender sender, String[] args) {
DungeonRoomInfoRegistry.loadAll(DungeonsGuide.getDungeonsGuide().getConfigDir());
}
@Override
public int getRequiredPermissionLevel() {
return 0;
}
}
|