Skip to content

Commit

Permalink
Fix doing /unmute without a name erroring
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownShadow200 committed Apr 16, 2021
1 parent 7da4e13 commit c07c2bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MCGalaxy/Commands/Moderation/CmdMute.cs
Expand Up @@ -32,10 +32,10 @@ public override CommandAlias[] Aliases
public override void Use(Player p, string message, CommandData data) {
if (message.Length == 0) { Help(p); return; }
string[] args = message.SplitSpaces(3);

string target;

if (args[0].CaselessEq(UNMUTE_FLAG)) {
if (args.Length == 1) { Help(p); return; }
target = PlayerInfo.FindMatchesPreferOnline(p, args[1]);
if (target == null) return;

Expand Down

0 comments on commit c07c2bc

Please sign in to comment.