blob: 73a4fea1714a4c0745f041585849b4ec3ced0b6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package dulkirmod.command
import net.minecraft.command.CommandBase
import net.minecraft.command.ICommandSender
abstract class ClientCommandBase protected constructor(private val name: String) : CommandBase() {
override fun getCommandName(): String {
return name
}
override fun getCommandUsage(sender: ICommandSender): String {
return "/$name"
}
override fun canCommandSenderUseCommand(sender: ICommandSender): Boolean {
return true
}
}
|