|
18 | 18 | import think.rpgitems.power.*;
|
19 | 19 | import think.rpgitems.power.trigger.BaseTriggers;
|
20 | 20 | import think.rpgitems.power.trigger.Trigger;
|
| 21 | +import think.rpgitems.support.MythicMobsSupport; |
21 | 22 | import think.rpgitems.support.PlaceholderAPISupport;
|
22 | 23 | import think.rpgitems.support.ResidenceSupport;
|
23 | 24 | import think.rpgitems.support.WGSupport;
|
@@ -130,6 +131,7 @@ public void onLoad() {
|
130 | 131 | saveDefaultConfig();
|
131 | 132 | Font.load();
|
132 | 133 | PlaceholderAPISupport.init(this);
|
| 134 | + MythicMobsSupport.init(this); |
133 | 135 | WGSupport.load();
|
134 | 136 | loadExtensions();
|
135 | 137 | }
|
@@ -188,15 +190,15 @@ public void onEnable() {
|
188 | 190 | //may null in test environment
|
189 | 191 | if (implementationVersion != null && implementationVersion.startsWith("git-Bukkit-")) {
|
190 | 192 | Bukkit.getConsoleSender().sendMessage(ChatColor.RED + "======================================");
|
191 |
| - Bukkit.getConsoleSender().sendMessage(ChatColor.RED + "RPGItems plugin requires Spigot API, Please make sure you are using Spigot."); |
| 193 | + Bukkit.getConsoleSender().sendMessage(ChatColor.RED + "RPGItems plugin requires Paper API, Please make sure you are using Paper."); |
192 | 194 | Bukkit.getConsoleSender().sendMessage(ChatColor.RED + "======================================");
|
193 | 195 | }
|
194 | 196 | try {
|
195 |
| - Bukkit.spigot(); |
| 197 | + Class.forName("io.papermc.paper.ServerBuildInfo"); |
196 | 198 | } catch (Throwable e) {
|
197 | 199 | getCommand("rpgitem").setExecutor((sender, command, label, args) -> {
|
198 | 200 | sender.sendMessage(ChatColor.RED + "======================================");
|
199 |
| - sender.sendMessage(ChatColor.RED + "RPGItems plugin requires Spigot API, Please make sure you are using Spigot."); |
| 201 | + sender.sendMessage(ChatColor.RED + "RPGItems plugin requires Paper API, Please make sure you are using Paper."); |
200 | 202 | sender.sendMessage(ChatColor.RED + "======================================");
|
201 | 203 | return true;
|
202 | 204 | });
|
|
0 commit comments