mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
fix ranks losing their blocks perms after modifying ranks in gui, fixes #470
This commit is contained in:
parent
5e662846bc
commit
9c66b78ff3
@ -28,10 +28,16 @@ namespace MCGalaxy {
|
|||||||
public static Group GuestRank { get { return Find(LevelPermission.Guest); } }
|
public static Group GuestRank { get { return Find(LevelPermission.Guest); } }
|
||||||
public static Group NobodyRank { get { return Find(LevelPermission.Nobody); } }
|
public static Group NobodyRank { get { return Find(LevelPermission.Nobody); } }
|
||||||
public static Group standard;
|
public static Group standard;
|
||||||
|
static bool reloading;
|
||||||
|
|
||||||
public static void Register(Group grp) {
|
public static void Register(Group grp) {
|
||||||
GroupList.Add(grp);
|
GroupList.Add(grp);
|
||||||
grp.LoadPlayers();
|
grp.LoadPlayers();
|
||||||
|
|
||||||
|
if (reloading) {
|
||||||
|
grp.SetUsableBlocks();
|
||||||
|
grp.SetUsableCommands();
|
||||||
|
}
|
||||||
OnGroupLoadedEvent.Call(grp);
|
OnGroupLoadedEvent.Call(grp);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -63,6 +69,7 @@ namespace MCGalaxy {
|
|||||||
if (standard == null) standard = GuestRank;
|
if (standard == null) standard = GuestRank;
|
||||||
|
|
||||||
OnGroupLoadEvent.Call();
|
OnGroupLoadEvent.Call();
|
||||||
|
reloading = true;
|
||||||
SaveList(GroupList);
|
SaveList(GroupList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user