Skip to content

Commit

Permalink
GlobalCommand: Fix compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
xDec0de committed Oct 7, 2024
1 parent 513c032 commit d8fdd14
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@

import java.util.List;

public abstract class GlobalCommand<P> implements MCCommand<P, MCCommandSender<MCPlayer<?>, MCConsole<?>>> {
public abstract class GlobalCommand<P> implements MCCommand<P, MCCommandSender> {

private final MCUtils<P> utils;
private final String name;
private final List<String> aliases;
private final SubCommandHandler<P, MCCommandSender<MCPlayer<?>, MCConsole<?>>> subCmdHandler = new SubCommandHandler<>();
private final SubCommandHandler<P, MCCommandSender> subCmdHandler = new SubCommandHandler<>();

public GlobalCommand(MCUtils<P> utils, @NotNull String name, List<String> aliases) {
this.utils = utils;
Expand Down Expand Up @@ -46,7 +46,7 @@ public MCUtils<P> getUtils() {
}

@Override
public @NotNull MCCommand<P, MCCommandSender<MCPlayer<?>, MCConsole<?>>> inject(@NotNull MCCommand<P, MCCommandSender<MCPlayer<?>, MCConsole<?>>>... commands) {
public @NotNull MCCommand<P, MCCommandSender> inject(@NotNull MCCommand<P, MCCommandSender>... commands) {
subCmdHandler.inject(commands);
return this;
}
Expand Down

0 comments on commit d8fdd14

Please sign in to comment.