blob: 5f391f98fdfaba3e9099107068e1e41705c914ab (
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 com.dulkirmod.commands;
import net.minecraft.command.CommandBase;
import net.minecraft.command.ICommandSender;
public abstract class ClientCommandBase extends CommandBase {
private final String name;
protected ClientCommandBase(String name) {
this.name = name;
}
@Override
public String getCommandName() {
return name;
}
@Override
public String getCommandUsage(ICommandSender sender) {
return "/" + name;
}
@Override
public boolean canCommandSenderUseCommand(ICommandSender sender) {
return true;
}
}
|