-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSimpleCommand.java
More file actions
36 lines (31 loc) · 998 Bytes
/
SimpleCommand.java
File metadata and controls
36 lines (31 loc) · 998 Bytes
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
35
36
package com.github.pinont.singularitylib.api.command;
import io.papermc.paper.command.brigadier.BasicCommand;
/**
* Interface for creating simple commands that extend Paper's BasicCommand.
* This interface provides a simplified way to create commands with automatic registration.
*/
public interface SimpleCommand extends BasicCommand {
/**
* Gets the name of the command.
* This is used for command registration and execution.
*
* @return the command name
*/
String getName();
// /**
// * Gets the description of the command.
// * This description is used in help messages and command documentation.
// *
// * @return the command description
// */
// String getDescription();
/**
* Gets the usage string for this command.
*
* @param bool unused parameter for compatibility
* @return the usage string for this command
*/
default String usage(Boolean bool) {
return "/" + getName();
}
}