mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 20:16:36 -04:00
Quick fix for /ref issue with ZS
This commit is contained in:
parent
dc4cd0f4ee
commit
47ff3917ce
@ -23,7 +23,7 @@ namespace MCGalaxy.Commands.Chatting {
|
||||
public override string type { get { return CommandTypes.Information; } }
|
||||
public override LevelPermission defaultRank { get { return LevelPermission.Guest; } }
|
||||
public override CommandPerm[] ExtraPerms {
|
||||
get { return new[] { new CommandPerm(LevelPermission.Admin, "+ can see ping of all players") }; }
|
||||
get { return new[] { new CommandPerm(LevelPermission.Operator, "+ can see ping of all players") }; }
|
||||
}
|
||||
|
||||
public override void Use(Player p, string message) {
|
||||
|
@ -107,10 +107,10 @@ namespace MCGalaxy.Commands.Info {
|
||||
|
||||
bool ParseCommand(Player p, string message) {
|
||||
string[] args = message.SplitSpaces(2);
|
||||
Alias alias = Alias.Find(args[0]);
|
||||
if (alias != null) args[0] = alias.Target;
|
||||
string cmdName = args[0], cmdArgs = "";
|
||||
Command.Search(ref cmdName, ref cmdArgs);
|
||||
|
||||
Command cmd = Command.all.Find(args[0]);
|
||||
Command cmd = Command.all.FindByName(cmdName);
|
||||
if (cmd == null) return false;
|
||||
|
||||
if (args.Length == 1) {
|
||||
|
@ -39,7 +39,7 @@ namespace MCGalaxy.Commands.Misc {
|
||||
string cmdArgs = parts.Length > 2 ? parts[2] : "";
|
||||
Command.Search(ref cmdName, ref cmdArgs);
|
||||
|
||||
Command cmd = Command.all.Find(cmdName);
|
||||
Command cmd = Command.all.FindByName(cmdName);
|
||||
if (cmd == null) {
|
||||
Player.Message(p, "Unknown command \"" + cmdName + "\"."); return;
|
||||
}
|
||||
|
@ -95,7 +95,7 @@ namespace MCGalaxy.Games {
|
||||
InfectPlayer(p, null);
|
||||
}
|
||||
}
|
||||
if (RoundInProgress && oldLvl == Map) {
|
||||
if (RoundInProgress && oldLvl == Map && lvl != Map) {
|
||||
PlayerLeftGame(p);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user