mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 04:32:50 -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 string type { get { return CommandTypes.Information; } }
|
||||||
public override LevelPermission defaultRank { get { return LevelPermission.Guest; } }
|
public override LevelPermission defaultRank { get { return LevelPermission.Guest; } }
|
||||||
public override CommandPerm[] ExtraPerms {
|
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) {
|
public override void Use(Player p, string message) {
|
||||||
|
@ -107,10 +107,10 @@ namespace MCGalaxy.Commands.Info {
|
|||||||
|
|
||||||
bool ParseCommand(Player p, string message) {
|
bool ParseCommand(Player p, string message) {
|
||||||
string[] args = message.SplitSpaces(2);
|
string[] args = message.SplitSpaces(2);
|
||||||
Alias alias = Alias.Find(args[0]);
|
string cmdName = args[0], cmdArgs = "";
|
||||||
if (alias != null) args[0] = alias.Target;
|
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 (cmd == null) return false;
|
||||||
|
|
||||||
if (args.Length == 1) {
|
if (args.Length == 1) {
|
||||||
|
@ -39,7 +39,7 @@ namespace MCGalaxy.Commands.Misc {
|
|||||||
string cmdArgs = parts.Length > 2 ? parts[2] : "";
|
string cmdArgs = parts.Length > 2 ? parts[2] : "";
|
||||||
Command.Search(ref cmdName, ref cmdArgs);
|
Command.Search(ref cmdName, ref cmdArgs);
|
||||||
|
|
||||||
Command cmd = Command.all.Find(cmdName);
|
Command cmd = Command.all.FindByName(cmdName);
|
||||||
if (cmd == null) {
|
if (cmd == null) {
|
||||||
Player.Message(p, "Unknown command \"" + cmdName + "\"."); return;
|
Player.Message(p, "Unknown command \"" + cmdName + "\"."); return;
|
||||||
}
|
}
|
||||||
|
@ -95,7 +95,7 @@ namespace MCGalaxy.Games {
|
|||||||
InfectPlayer(p, null);
|
InfectPlayer(p, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (RoundInProgress && oldLvl == Map) {
|
if (RoundInProgress && oldLvl == Map && lvl != Map) {
|
||||||
PlayerLeftGame(p);
|
PlayerLeftGame(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user