aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÄkwav <xekwavx@gmail.com>2022-03-23 19:04:23 +0100
committerÄkwav <xekwavx@gmail.com>2022-03-23 19:04:23 +0100
commit22ac509f260f6979038ad6626dd222ce43a3532a (patch)
tree5b501812588da8439bd54ea3599c1a44cb856ce0
parente8569cb30684fdbffdfdfc619912a2ba8c232512 (diff)
downloadCOFL-22ac509f260f6979038ad6626dd222ce43a3532a.tar.gz
COFL-22ac509f260f6979038ad6626dd222ce43a3532a.tar.bz2
COFL-22ac509f260f6979038ad6626dd222ce43a3532a.zip
rename function
-rw-r--r--src/main/java/de/torui/coflsky/CoflSkyCommand.java4
-rw-r--r--src/main/java/de/torui/coflsky/FlipperChatCommand.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/de/torui/coflsky/CoflSkyCommand.java b/src/main/java/de/torui/coflsky/CoflSkyCommand.java
index 51760ec..d5ee857 100644
--- a/src/main/java/de/torui/coflsky/CoflSkyCommand.java
+++ b/src/main/java/de/torui/coflsky/CoflSkyCommand.java
@@ -115,7 +115,7 @@ public class CoflSkyCommand extends CommandBase {
}
break;
default:
- CommandNotRecognized(args, sender);
+ SendCommandToServer(args, sender);
return;
}
}
@@ -159,7 +159,7 @@ public class CoflSkyCommand extends CommandBase {
return status;
}
- public void CommandNotRecognized(String[] args, ICommandSender sender) {
+ public void SendCommandToServer(String[] args, ICommandSender sender) {
String command = String.join(" ", Arrays.copyOfRange(args, 1, args.length));
//JsonStringCommand sc = new JsonStringCommand(args[0], WSClient.gson.toJson(command));
diff --git a/src/main/java/de/torui/coflsky/FlipperChatCommand.java b/src/main/java/de/torui/coflsky/FlipperChatCommand.java
index 4488747..61e7c52 100644
--- a/src/main/java/de/torui/coflsky/FlipperChatCommand.java
+++ b/src/main/java/de/torui/coflsky/FlipperChatCommand.java
@@ -46,7 +46,7 @@ public class FlipperChatCommand extends CoflSkyCommand {
String[] newArgs = new String[args.length +1];
System.arraycopy(args, 0, newArgs, 1, args.length);
newArgs[0] = "chat";
- CommandNotRecognized(newArgs, sender);
+ SendCommandToServer(newArgs, sender);
}).start();
}
}