diff --git a/QSB/API/QSBAPI.cs b/QSB/API/QSBAPI.cs index 0b4dc6c9..edc68959 100644 --- a/QSB/API/QSBAPI.cs +++ b/QSB/API/QSBAPI.cs @@ -42,9 +42,7 @@ internal static class QSBAPIEvents QSBPlayerManager.OnRemovePlayer += player => OnPlayerLeaveEvent.Invoke(player.PlayerId); } - public static UnityEvent OnPlayerJoinEvent = new PlayerEvent(); - public static UnityEvent OnPlayerLeaveEvent = new PlayerEvent(); + internal class PlayerEvent : UnityEvent { } + internal static PlayerEvent OnPlayerJoinEvent = new PlayerEvent(); + internal static PlayerEvent OnPlayerLeaveEvent = new PlayerEvent(); } - -// i hate OOP sometimes -internal class PlayerEvent : UnityEvent { }