mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 01:46:15 +00:00
update example
This commit is contained in:
1 parent
e9beb3b423
commit
2cfc5ac039
1 file changed
+2
-5
@@ -38,12 +38,9 @@ public static class ExampleEventHandlers
|
|||||||
[RegisterEvent]
|
[RegisterEvent]
|
||||||
public static void StartMeetingEvent(StartMeetingEvent _)
|
public static void StartMeetingEvent(StartMeetingEvent _)
|
||||||
{
|
{
|
||||||
foreach (var plr in PlayerControl.AllPlayerControls)
|
foreach (var plr in PlayerControl.AllPlayerControls.ToArray().Where(player => player.Data.Role is MayorRole))
|
||||||
{
|
{
|
||||||
if (plr.Data.Role is MayorRole)
|
plr.GetVoteData().IncreaseRemainingVotes(1);
|
||||||
{
|
|
||||||
plr.GetVoteData().IncreaseRemainingVotes(1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user