From 22ac509f260f6979038ad6626dd222ce43a3532a Mon Sep 17 00:00:00 2001 From: Äkwav Date: Wed, 23 Mar 2022 19:04:23 +0100 Subject: rename function --- src/main/java/de/torui/coflsky/CoflSkyCommand.java | 4 ++-- src/main/java/de/torui/coflsky/FlipperChatCommand.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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(); } } -- cgit