aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/cowtipper/cowlection/command/ShrugCommand.java
blob: 264e19d14b27a4fbbca068b28a60980345ed2dc0 (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 de.cowtipper.cowlection.command;

import de.cowtipper.cowlection.Cowlection;
import net.minecraft.command.CommandBase;
import net.minecraft.command.CommandException;
import net.minecraft.command.ICommandSender;

public class ShrugCommand extends CommandBase {
    private final Cowlection main;

    public ShrugCommand(Cowlection 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;
    }
}