33using LabApi . Features . Console ;
44using MEC ;
55using SER . Code . FlagSystem . Flags ;
6+ using SER . Code . Helpers ;
67using SER . Code . Helpers . Extensions ;
78using SER . Code . MethodSystem ;
89using SER . Code . MethodSystem . Methods . PlayerDataMethods ;
@@ -21,11 +22,11 @@ public class MainPlugin : LabApi.Loader.Features.Plugins.Plugin<Config>
2122 public override string Author => "Elektryk_Andrzej" ;
2223 public override Version RequiredApiVersion => LabApiProperties . CurrentVersion ;
2324 public override Version Version => new ( 0 , 13 , 0 ) ;
24-
25+
2526 public static string GitHubLink => "https://github.com/ScriptedEvents/ScriptedEventsReloaded" ;
2627 public static string DocsLink => "https://scriptedeventsreloaded.gitbook.io/docs/tutorial" ;
2728 public static string DiscordLink => "https://discord.gg/3j54zBnbbD" ;
28-
29+
2930 public static string HelpCommandName => "serhelp" ;
3031 public static MainPlugin Instance { get ; private set ; } = null ! ;
3132
@@ -34,17 +35,17 @@ public record struct Contributor(string Name, Contribution Contribution);
3435 [ Flags ]
3536 public enum Contribution
3637 {
37- None = 0 ,
38- LeadDeveloper = 1 << 1 ,
39- Developer = 1 << 2 ,
38+ None = 0 ,
39+ LeadDeveloper = 1 << 1 ,
40+ Developer = 1 << 2 ,
4041 QualityAssurance = 1 << 3 ,
41- Sponsor = 1 << 4 ,
42- Betatester = 1 << 5 ,
43- EarlyAdopter = 1 << 6 ,
44- TechSupport = 1 << 7 ,
42+ Sponsor = 1 << 4 ,
43+ Betatester = 1 << 5 ,
44+ EarlyAdopter = 1 << 6 ,
45+ TechSupport = 1 << 7 ,
4546 }
4647
47- public static Contributor [ ] Contributors =>
48+ public static Contributor [ ] Contributors =>
4849 [
4950 new ( Instance . Author , Contribution . LeadDeveloper ) ,
5051 new ( "Whitty985playz" , Contribution . QualityAssurance | Contribution . EarlyAdopter ) ,
@@ -59,18 +60,19 @@ public enum Contribution
5960 public override void Enable ( )
6061 {
6162 Instance = this ;
62-
63+
6364 Script . StopAll ( ) ;
6465 EventHandler . Initialize ( ) ;
6566 MethodIndex . Initialize ( ) ;
6667 VariableIndex . Initialize ( ) ;
6768 Flag . RegisterFlags ( ) ;
6869 CommandEvents . Initialize ( ) ;
70+ ExiledHelper . ExiledAwaiter ( ) . RunCoroutine ( ) ;
6971 SendLogo ( ) ;
70-
72+
7173 Events . ServerEvents . WaitingForPlayers += OnServerFullyInit ;
7274 Events . ServerEvents . RoundRestarted += Disable ;
73-
75+
7476 Timing . CallDelayed ( 1.5f , FileSystem . FileSystem . Initialize ) ;
7577 }
7678
@@ -79,11 +81,11 @@ public override void Disable()
7981 Script . StopAll ( ) ;
8082 SetPlayerDataMethod . PlayerData . Clear ( ) ;
8183 }
82-
84+
8385 private void OnServerFullyInit ( )
8486 {
8587 if ( Config ? . SendHelpMessageOnServerInitialization is false ) return ;
86-
88+
8789 Logger . Raw (
8890 $ """
8991 Thank you for using ### Scripted Events Reloaded ### by { Author } !
@@ -102,7 +104,7 @@ private static void SendLogo()
102104 Logger . Raw (
103105 """
104106 #####################################
105-
107+
106108 █████████ ██████████ ███████████
107109 ███░░░░░███░░███░░░░░█░░███░░░░░███
108110 ░███ ░░░ ░███ █ ░ ░███ ░███
0 commit comments