|
1 | | -package com.github.elic0de.thejpspit; |
| 1 | +package com.github.elic0de.thejpspit.spigot; |
2 | 2 |
|
3 | 3 | import co.aikar.commands.PaperCommandManager; |
4 | 4 | import com.fatboyindustrial.gsonjavatime.Converters; |
5 | | -import com.github.elic0de.thejpspit.command.PitCommand; |
6 | | -import com.github.elic0de.thejpspit.command.SpawnCommand; |
7 | | -import com.github.elic0de.thejpspit.config.PitPreferences; |
8 | | -import com.github.elic0de.thejpspit.database.Database; |
9 | | -import com.github.elic0de.thejpspit.database.SqLiteDatabase; |
10 | | -import com.github.elic0de.thejpspit.game.Game; |
11 | | -import com.github.elic0de.thejpspit.hook.EconomyHook; |
12 | | -import com.github.elic0de.thejpspit.hook.Hook; |
13 | | -import com.github.elic0de.thejpspit.hook.VaultEconomyHook; |
14 | | -import com.github.elic0de.thejpspit.item.ItemManager; |
15 | | -import com.github.elic0de.thejpspit.item.items.ItemDiamondBoots; |
16 | | -import com.github.elic0de.thejpspit.item.items.ItemDiamondChestPlate; |
17 | | -import com.github.elic0de.thejpspit.item.items.ItemDiamondSword; |
18 | | -import com.github.elic0de.thejpspit.item.items.ItemObsidian; |
19 | | -import com.github.elic0de.thejpspit.listener.CombatTagger; |
20 | | -import com.github.elic0de.thejpspit.listener.EventListener; |
21 | | -import com.github.elic0de.thejpspit.network.PluginMessageReceiver; |
22 | | -import com.github.elic0de.thejpspit.nms.PacketManager; |
23 | | -import com.github.elic0de.thejpspit.nms.PacketManager1_19_R1; |
24 | | -import com.github.elic0de.thejpspit.player.PitPlayer; |
25 | | -import com.github.elic0de.thejpspit.player.PitPlayerManager; |
26 | | -import com.github.elic0de.thejpspit.queue.QueueManager; |
27 | | -import com.github.elic0de.thejpspit.task.QueueTask; |
28 | | -import com.github.elic0de.thejpspit.util.KillAssistHelper; |
29 | | -import com.github.elic0de.thejpspit.util.KillRatingHelper; |
30 | | -import com.github.elic0de.thejpspit.villager.VillagerNPCManager; |
31 | | -import com.github.elic0de.thejpspit.villager.villagers.ShopVillager; |
| 5 | +import com.github.elic0de.thejpspit.spigot.command.PitCommand; |
| 6 | +import com.github.elic0de.thejpspit.spigot.command.SpawnCommand; |
| 7 | +import com.github.elic0de.thejpspit.spigot.config.PitPreferences; |
| 8 | +import com.github.elic0de.thejpspit.spigot.database.Database; |
| 9 | +import com.github.elic0de.thejpspit.spigot.database.SqLiteDatabase; |
| 10 | +import com.github.elic0de.thejpspit.spigot.game.Game; |
| 11 | +import com.github.elic0de.thejpspit.spigot.hook.EconomyHook; |
| 12 | +import com.github.elic0de.thejpspit.spigot.hook.Hook; |
| 13 | +import com.github.elic0de.thejpspit.spigot.hook.VaultEconomyHook; |
| 14 | +import com.github.elic0de.thejpspit.spigot.item.ItemManager; |
| 15 | +import com.github.elic0de.thejpspit.spigot.item.items.ItemDiamondBoots; |
| 16 | +import com.github.elic0de.thejpspit.spigot.item.items.ItemDiamondChestPlate; |
| 17 | +import com.github.elic0de.thejpspit.spigot.item.items.ItemDiamondSword; |
| 18 | +import com.github.elic0de.thejpspit.spigot.item.items.ItemObsidian; |
| 19 | +import com.github.elic0de.thejpspit.spigot.listener.CombatTagger; |
| 20 | +import com.github.elic0de.thejpspit.spigot.listener.EventListener; |
| 21 | +import com.github.elic0de.thejpspit.spigot.network.PluginMessageReceiver; |
| 22 | +import com.github.elic0de.thejpspit.spigot.nms.PacketManager; |
| 23 | +import com.github.elic0de.thejpspit.spigot.nms.PacketManager1_19_R1; |
| 24 | +import com.github.elic0de.thejpspit.spigot.player.PitPlayer; |
| 25 | +import com.github.elic0de.thejpspit.spigot.player.PitPlayerManager; |
| 26 | +import com.github.elic0de.thejpspit.spigot.queue.QueueManager; |
| 27 | +import com.github.elic0de.thejpspit.spigot.task.QueueTask; |
| 28 | +import com.github.elic0de.thejpspit.spigot.util.KillAssistHelper; |
| 29 | +import com.github.elic0de.thejpspit.spigot.util.KillRatingHelper; |
| 30 | +import com.github.elic0de.thejpspit.spigot.villager.VillagerNPCManager; |
| 31 | +import com.github.elic0de.thejpspit.spigot.villager.villagers.ShopVillager; |
32 | 32 | import com.google.gson.Gson; |
33 | 33 | import com.google.gson.GsonBuilder; |
34 | 34 | import org.bukkit.Bukkit; |
@@ -91,12 +91,11 @@ public void onEnable() { |
91 | 91 | assistKillHelper = new KillAssistHelper(); |
92 | 92 | ratingHelper = new KillRatingHelper(0); |
93 | 93 | queueManager = new QueueManager(); |
| 94 | + queueTask = new QueueTask(); |
94 | 95 |
|
95 | 96 | setPreferences(); |
96 | 97 | setPacketManager(); |
97 | 98 |
|
98 | | - //queueTask = new QueueTask(); |
99 | | - |
100 | 99 | getServer().getMessenger() |
101 | 100 | .registerIncomingPluginChannel(this, PluginMessageReceiver.BUNGEE_CHANNEL_ID, |
102 | 101 | new PluginMessageReceiver()); |
@@ -201,7 +200,7 @@ public void onDisable() { |
201 | 200 | } |
202 | 201 | game.getTask().stop(); |
203 | 202 |
|
204 | | - //queueTask.stop(); |
| 203 | + queueTask.stop(); |
205 | 204 |
|
206 | 205 | getServer().getMessenger().unregisterOutgoingPluginChannel(this); |
207 | 206 | getServer().getMessenger().unregisterIncomingPluginChannel(this); |
|
0 commit comments