mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 21:51:19 -04:00
Take out unnecessary extra string
Replace tempmessage with setting message to args instead of split[0]
This commit is contained in:
parent
7872667f14
commit
e08b12f161
@ -30,10 +30,9 @@ namespace MCGalaxy.Commands
|
||||
public override void Use(Player p, string message) {
|
||||
if (message == "") { Help(p); return; }
|
||||
|
||||
string[] args;
|
||||
string tempmessage = message;
|
||||
message = message.Split(' ')[0];
|
||||
args = tempmessage.Split(' ');
|
||||
string[] args = message.Split(' ');
|
||||
|
||||
message = args[0];
|
||||
|
||||
Player who = PlayerInfo.FindOrShowMatches(p, message);
|
||||
if (who == null) return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user