Skip to content

Commit

Permalink
pull through sender
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekwav committed Jun 25, 2024
1 parent e9626ba commit c3b0763
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/de/torui/coflsky/CoflSkyCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public void processCommand(ICommandSender sender, String[] args) throws CommandE
SendCommandToServer(args, sender);
}
} else {
SendCommandToServer("help", "general");
SendCommandToServer("help", "general", sender);
}
}).start();
}
Expand Down Expand Up @@ -228,10 +228,10 @@ public String StatusMessage() {

public void SendCommandToServer(String[] args, ICommandSender sender) {
String command = String.join(" ", Arrays.copyOfRange(args, 1, args.length));
SendCommandToServer(args[0], command);
SendCommandToServer(args[0], command, sender);
}

public void SendCommandToServer(string command, string arguments) {
public void SendCommandToServer(String command, String arguments, ICommandSender sender) {
RawCommand rc = new RawCommand(command, WSClient.gson.toJson(arguments));
if (CoflSky.Wrapper.isRunning) {
CoflSky.Wrapper.SendMessage(rc);
Expand Down

0 comments on commit c3b0763

Please sign in to comment.