Skip to content

Commit

Permalink
feat(ML): remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
JayXTQ committed Dec 11, 2024
1 parent 75531ca commit 157dfc7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions DiscordLab.ModerationLogs/Patches/RemoteAdminLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
private static void SendCommand(string query, CommandSender sender)
{
if (Plugin.Instance.Config.RemoteAdminChannelId == 0) return;

string[] args = query.Trim().Split(QueryProcessor.SpaceArray, 512, StringSplitOptions.RemoveEmptyEntries);
if (args[0].StartsWith("$"))
return;

if (query.StartsWith("$")) return;

Player player = sender is PlayerCommandSender commandSender
? Player.Get(commandSender)
Expand Down

0 comments on commit 157dfc7

Please sign in to comment.