mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Consolidate CommandManager implementations
A lot of these just implemented the class overrode the `description` method returning nothing.
This commit is contained in:
parent
144d7b000a
commit
730b0beb01
10 changed files with 14 additions and 180 deletions
|
@ -63,7 +63,7 @@ import java.util.Locale;
|
|||
import java.util.Map;
|
||||
|
||||
@RequiredArgsConstructor
|
||||
public abstract class GeyserCommandManager {
|
||||
public class GeyserCommandManager {
|
||||
|
||||
@Getter
|
||||
private final Map<String, Command> commands = new Object2ObjectOpenHashMap<>(12);
|
||||
|
@ -198,7 +198,9 @@ public abstract class GeyserCommandManager {
|
|||
* @param command Command to get the description for
|
||||
* @return Command description
|
||||
*/
|
||||
public abstract String description(String command);
|
||||
public String description(String command) {
|
||||
return "";
|
||||
}
|
||||
|
||||
@RequiredArgsConstructor
|
||||
public static class CommandBuilder<T extends CommandSource> implements Command.Builder<T> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue