blob: 5275e54f01655193dab3ada3edf8a03387a2dfe1 (
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
28
29
30
31
32
33
34
|
package eu.olli.cowmoonication.command;
import eu.olli.cowmoonication.Cowmoonication;
import net.minecraft.command.CommandBase;
import net.minecraft.command.CommandException;
import net.minecraft.command.ICommandSender;
public class ShrugCommand extends CommandBase {
private final Cowmoonication main;
public ShrugCommand(Cowmoonication main) {
this.main = main;
}
@Override
public String getCommandName() {
return "shrug";
}
@Override
public String getCommandUsage(ICommandSender sender) {
return "/shrug [message]";
}
@Override
public void processCommand(ICommandSender sender, String[] args) throws CommandException {
main.getChatHelper().sendShrug(args);
}
@Override
public int getRequiredPermissionLevel() {
return 0;
}
}
|