Skip to content

Commit cb16d4d

Browse files
SetGroup Method Fix
Method works. WARNING If you want to remove the group from players, from unknown reason, badge name still exists next to the player nickname in player list.
1 parent 45e3964 commit cb16d4d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

MethodSystem/Methods/PlayerMethods/SetGroupMethod.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ public override void Execute()
1919
{
2020
string gr = Args.GetText("group");
2121
List<Player> pls = Args.GetPlayers("players");
22-
pls.ForEach(p=>p.UserGroup = ServerStatic.PermissionsHandler.GetGroup(gr == "NONE" ? null: gr));
22+
foreach(Player p in pls)
23+
{
24+
p.UserGroup = gr == "NONE" ? null : ServerStatic.PermissionsHandler.GetGroup(gr);
25+
}
2326
}
2427
}

0 commit comments

Comments
 (0)