mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-25 06:04:46 -04:00
Now /imp is nobody by default.
This commit is contained in:
parent
17d1beaad6
commit
708375151d
@ -115,7 +115,7 @@ namespace MCGalaxy.Commands {
|
||||
|
||||
if (blacklist.Count == 0) return;
|
||||
|
||||
builder.Append( " %S(but not ");
|
||||
builder.Append( " %S(except ");
|
||||
foreach (string name in blacklist)
|
||||
builder.Append(PlayerInfo.GetColoredName(p, name) + ", ");
|
||||
builder.Remove(builder.Length - 2, 2);
|
||||
|
@ -23,7 +23,7 @@ namespace MCGalaxy.Commands {
|
||||
public override string name { get { return "impersonate"; } }
|
||||
public override string shortcut { get { return "imp"; } }
|
||||
public override string type { get { return CommandTypes.Other; } }
|
||||
public override LevelPermission defaultRank { get { return LevelPermission.Operator; } }
|
||||
public override LevelPermission defaultRank { get { return LevelPermission.Nobody; } }
|
||||
|
||||
public override void Use(Player p, string message) {
|
||||
if (!message.Contains(" ")) { Help(p); return; }
|
||||
|
@ -32,7 +32,7 @@ namespace MCGalaxy {
|
||||
}
|
||||
|
||||
if (disallowed != null && disallowed.Count > 0) {
|
||||
builder.Append( " (but not ");
|
||||
builder.Append( " (except ");
|
||||
foreach (LevelPermission perm in disallowed)
|
||||
builder.Append(Group.GetColoredName(perm) + ", ");
|
||||
builder.Remove(builder.Length - 2, 2);
|
||||
|
Loading…
x
Reference in New Issue
Block a user