11package dev .panda .combofly ;
22
33import dev .panda .chat .ChatUtil ;
4+ import dev .panda .combofly .balance .Balance ;
45import dev .panda .combofly .commands .PandaFlyCommand ;
56import dev .panda .combofly .commands .essentials .*;
67import dev .panda .combofly .commands .network .*;
3132import dev .panda .combofly .providers .ScoreboardProvider ;
3233import dev .panda .combofly .utilities .Animation ;
3334import dev .panda .combofly .utilities .Description ;
34- import dev .panda .combofly .utilities .balance .Balance ;
35- import dev .panda .combofly .utilities .balance .impl .Normal ;
36- import dev .panda .combofly .utilities .balance .impl .Vault ;
35+ import dev .panda .combofly .balance .impl .Normal ;
36+ import dev .panda .combofly .balance .impl .Vault ;
37+ import dev .panda .combofly .utilities .hooks .PandaAbilityHook ;
38+ import dev .panda .combofly .utilities .hooks .PlaceholderAPIHook ;
3739import dev .panda .combofly .utilities .menu .ButtonListener ;
38- import dev .panda .combofly .utilities .placeholder .PlaceholderAPI ;
3940import dev .panda .combofly .utilities .scoreboard .Assemble ;
4041import dev .panda .combofly .utilities .scoreboard .AssembleStyle ;
4142import dev .panda .command .CommandManager ;
4243import dev .panda .file .FileConfig ;
4344import dev .panda .rank .RankManager ;
44- import dev .panda .utilities .Server ;
4545import lombok .Getter ;
4646import lombok .Setter ;
4747import net .milkbowl .vault .chat .Chat ;
@@ -78,7 +78,6 @@ public class ComboFly extends JavaPlugin {
7878 private Chat chat ;
7979 private Economy econ ;
8080 private Balance balanceType ;
81- private boolean pandaAbility = false ;
8281
8382 public void onEnable () {
8483 loadConfigs ();
@@ -92,21 +91,22 @@ public void onEnable() {
9291 setupEconomy ();
9392 onlineDonors ();
9493
94+ if (Bukkit .getPluginManager ().getPlugin ("PandaAbility" ) != null ) {
95+ PandaAbilityHook .init ();
96+ }
9597 if (Bukkit .getPluginManager ().getPlugin ("PlaceholderAPI" ) != null ) {
96- new PlaceholderAPI (this ).register ();
98+ new PlaceholderAPIHook (this ).register ();
9799 }
98100
99- pandaAbility = getServer ().getPluginManager ().getPlugin ("PandaAbility" ) != null ;
100-
101- Bukkit .getConsoleSender ().sendMessage (ChatUtil .translate ("&aLoading plugin..." ));
102- Bukkit .getConsoleSender ().sendMessage (ChatUtil .translate (ChatUtil .NORMAL_LINE ));
103- Bukkit .getConsoleSender ().sendMessage (ChatUtil .translate (" " ));
104- Bukkit .getConsoleSender ().sendMessage (ChatUtil .translate (" &4\u2764 &c&l" + Description .getName () + " &4\u2764 " ));
105- Bukkit .getConsoleSender ().sendMessage (ChatUtil .translate ("" ));
106- Bukkit .getConsoleSender ().sendMessage (ChatUtil .translate (" &7\u27A5 &cAuthor&7: &f" + Description .getAuthors ()).replace ("[" , "" ).replace ("]" , "" ));
107- Bukkit .getConsoleSender ().sendMessage (ChatUtil .translate (" &7\u27A5 &cVersion&7: &f" + Description .getVersion ()));
108- Bukkit .getConsoleSender ().sendMessage (ChatUtil .translate (" &7\u27A5 &cRank System&7: &f" + getRankManager ().getRankSystem ()));
109- Bukkit .getConsoleSender ().sendMessage (ChatUtil .translate (ChatUtil .NORMAL_LINE ));
101+ ChatUtil .log ("&aLoading plugin..." );
102+ ChatUtil .log (ChatUtil .NORMAL_LINE );
103+ ChatUtil .log (" " );
104+ ChatUtil .log (" &4\u2764 &c&l" + Description .getName () + " &4\u2764 " );
105+ ChatUtil .log ("" );
106+ ChatUtil .log (" &7\u27A5 &cAuthor&7: &f" + Description .getAuthors ());
107+ ChatUtil .log (" &7\u27A5 &cVersion&7: &f" + Description .getVersion ());
108+ ChatUtil .log (" &7\u27A5 &cRank System&7: &f" + this .getRankManager ().getRankSystem ());
109+ ChatUtil .log (ChatUtil .NORMAL_LINE );
110110 }
111111
112112 public void onDisable () {
@@ -156,6 +156,7 @@ private void loadCommands() {
156156 new KothCommand ();
157157 new HostCommand ();
158158 new LeaderboardCommand ();
159+
159160 if (ComboFly .get ().getStaffManager ().isStaffEnable ()) {
160161 new FreezeCommand ();
161162 new StaffModeCommand ();
@@ -198,6 +199,7 @@ private void loadManagers() {
198199 this .claimManager = new ClaimManager ();
199200 this .spawnManager = new SpawnManager ();
200201 this .menuKitManager = new MenuKitManager ();
202+
201203 Animation .init ();
202204 Profile .init ();
203205 KoTH .init ();
0 commit comments