mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 04:32:50 -04:00
And don't forget to put you on pervisit whitelist with /os map pervisit
This commit is contained in:
parent
f9ec5e2d61
commit
74a1d13650
@ -23,7 +23,7 @@ namespace MCGalaxy.Commands.Chatting {
|
||||
public override string name { get { return "ChatRoom"; } }
|
||||
public override string shortcut { get { return "cr"; } }
|
||||
public override string type { get { return CommandTypes.Chat; } }
|
||||
public override LevelPermission defaultRank { get { return LevelPermission.Banned; } }
|
||||
public override LevelPermission defaultRank { get { return LevelPermission.Guest; } }
|
||||
public override bool SuperUseable { get { return false; } }
|
||||
public override CommandPerm[] ExtraPerms {
|
||||
get { return new[] {
|
||||
|
@ -20,7 +20,7 @@ namespace MCGalaxy.Commands.Info {
|
||||
public override string name { get { return "HasIRC"; } }
|
||||
public override string shortcut { get { return "IRC"; } }
|
||||
public override string type { get { return CommandTypes.Information; } }
|
||||
public override LevelPermission defaultRank { get { return LevelPermission.Banned; } }
|
||||
public override LevelPermission defaultRank { get { return LevelPermission.Guest; } }
|
||||
|
||||
public override void Use(Player p, string message) {
|
||||
if (message.Length > 0) { Help(p); return; }
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*
|
||||
/*
|
||||
Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCGalaxy)
|
||||
|
||||
Dual-licensed under the Educational Community License, Version 2.0 and
|
||||
|
@ -110,6 +110,11 @@ namespace MCGalaxy.Commands.World {
|
||||
Player.Message(p, "Type %T/os map resize {0} {1} {2} confirm %Sif you're sure.",
|
||||
args[1], args[2], args[3]);
|
||||
} else if (cmd == "PERVISIT") {
|
||||
// Older realm maps didn't put you on visit whitelist, so make sure we put the owner here
|
||||
if (!p.level.VisitAccess.Whitelisted.CaselessContains(p.name)) {
|
||||
p.level.VisitAccess.Whitelist(null, p.name);
|
||||
}
|
||||
|
||||
string rank = value.Length == 0 ? ServerConfig.DefaultRankName : value;
|
||||
Group grp = Matcher.FindRanks(p, rank);
|
||||
if (grp != null) p.level.VisitAccess.SetMin(null, grp);
|
||||
|
Loading…
x
Reference in New Issue
Block a user