Skip to content

Commit

Permalink
fix compat
Browse files Browse the repository at this point in the history
  • Loading branch information
burdoto committed Jun 8, 2024
1 parent 9b7d9c0 commit f4427f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ private Server getServer(String[] args) {
}

@Override
public void handleResponse(Command.Delegate cmd, @NotNull Object response, Object... args) {
public void handleResponse(Command.Usage cmd, @NotNull Object response, Object... args) {
//Stream.of(args).flatMap(Streams.cast(ConsoleController.Connection.class)).findAny()
// .ifPresent(con -> ws.convertAndSendToUser(con.getUser().getName(), response));
out.println(response);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
import lombok.extern.java.Log;
import org.comroid.api.func.util.Command;
import org.comroid.api.func.util.Streams;
import org.comroid.api.text.minecraft.McFormatCode;
import org.comroid.api.text.minecraft.Tellraw;
import org.comroid.mcsd.core.entity.module.console.McsdCommandModulePrototype;
import org.comroid.mcsd.core.entity.server.Server;
import org.comroid.mcsd.core.entity.system.User;
import org.comroid.mcsd.core.module.ServerModule;
import org.comroid.mcsd.core.repo.system.UserRepo;
import org.comroid.api.text.minecraft.McFormatCode;
import org.comroid.api.text.minecraft.Tellraw;
import org.comroid.mcsd.util.Utils;
import org.jetbrains.annotations.NotNull;

Expand Down Expand Up @@ -48,7 +48,7 @@ public McsdCommandModule(Server server, McsdCommandModulePrototype proto) {
}

@Override
public void handleResponse(Command.Delegate cmd, @NotNull Object response, Object... args) {
public void handleResponse(Command.Usage cmd, @NotNull Object response, Object... args) {
var profile = Arrays.stream(args)
.flatMap(Streams.cast(User.class))
.findAny()
Expand Down

0 comments on commit f4427f7

Please sign in to comment.