blob: 566fb6e7f72c7d0745569cb0253f2c5e4b487cb6 (
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.example.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;
}
}
|