|
38 | 38 | import org.bukkit.entity.Player; |
39 | 39 | import org.bukkit.event.HandlerList; |
40 | 40 | import org.bukkit.event.entity.ItemSpawnEvent; |
41 | | -import org.bukkit.plugin.*; |
| 41 | +import org.bukkit.plugin.InvalidDescriptionException; |
| 42 | +import org.bukkit.plugin.InvalidPluginException; |
| 43 | +import org.bukkit.plugin.Plugin; |
| 44 | +import org.bukkit.plugin.PluginDescriptionFile; |
| 45 | +import org.bukkit.plugin.PluginManager; |
| 46 | +import org.bukkit.plugin.RegisteredListener; |
42 | 47 | import org.bukkit.plugin.java.JavaPlugin; |
43 | 48 | import org.bukkit.plugin.java.JavaPluginLoader; |
44 | 49 | import org.bukkit.scheduler.BukkitRunnable; |
|
57 | 62 | import org.maxgamer.quickshop.api.integration.IntegrateStage; |
58 | 63 | import org.maxgamer.quickshop.api.integration.IntegrationManager; |
59 | 64 | import org.maxgamer.quickshop.api.localization.text.TextManager; |
60 | | -import org.maxgamer.quickshop.api.shop.*; |
| 65 | +import org.maxgamer.quickshop.api.shop.AbstractDisplayItem; |
| 66 | +import org.maxgamer.quickshop.api.shop.DisplayType; |
| 67 | +import org.maxgamer.quickshop.api.shop.ItemMatcher; |
| 68 | +import org.maxgamer.quickshop.api.shop.Shop; |
| 69 | +import org.maxgamer.quickshop.api.shop.ShopManager; |
61 | 70 | import org.maxgamer.quickshop.chat.platform.minedown.BungeeQuickChat; |
62 | 71 | import org.maxgamer.quickshop.command.SimpleCommandManager; |
63 | | -import org.maxgamer.quickshop.database.*; |
| 72 | +import org.maxgamer.quickshop.database.AbstractDatabaseCore; |
| 73 | +import org.maxgamer.quickshop.database.DatabaseManager; |
| 74 | +import org.maxgamer.quickshop.database.MySQLCore; |
| 75 | +import org.maxgamer.quickshop.database.SQLiteCore; |
| 76 | +import org.maxgamer.quickshop.database.SimpleDatabaseHelper; |
64 | 77 | import org.maxgamer.quickshop.economy.Economy_GemsEconomy; |
65 | 78 | import org.maxgamer.quickshop.economy.Economy_TNE; |
66 | 79 | import org.maxgamer.quickshop.economy.Economy_Vault; |
67 | 80 | import org.maxgamer.quickshop.integration.SimpleIntegrationManager; |
68 | 81 | import org.maxgamer.quickshop.integration.worldguard.WorldGuardIntegration; |
69 | | -import org.maxgamer.quickshop.listener.*; |
| 82 | +import org.maxgamer.quickshop.listener.BlockListener; |
| 83 | +import org.maxgamer.quickshop.listener.ChatListener; |
| 84 | +import org.maxgamer.quickshop.listener.ChunkListener; |
| 85 | +import org.maxgamer.quickshop.listener.ClearLaggListener; |
| 86 | +import org.maxgamer.quickshop.listener.CustomInventoryListener; |
| 87 | +import org.maxgamer.quickshop.listener.DisplayProtectionListener; |
| 88 | +import org.maxgamer.quickshop.listener.EconomySetupListener; |
| 89 | +import org.maxgamer.quickshop.listener.InternalListener; |
| 90 | +import org.maxgamer.quickshop.listener.LockListener; |
| 91 | +import org.maxgamer.quickshop.listener.PlayerListener; |
| 92 | +import org.maxgamer.quickshop.listener.PluginListener; |
| 93 | +import org.maxgamer.quickshop.listener.ShopProtectionListener; |
| 94 | +import org.maxgamer.quickshop.listener.WorldListener; |
70 | 95 | import org.maxgamer.quickshop.listener.worldedit.WorldEditAdapter; |
71 | 96 | import org.maxgamer.quickshop.localization.text.SimpleTextManager; |
72 | 97 | import org.maxgamer.quickshop.nonquickshopstuff.com.rylinaux.plugman.util.PluginUtil; |
|
75 | 100 | import org.maxgamer.quickshop.shop.ShopPurger; |
76 | 101 | import org.maxgamer.quickshop.shop.SimpleShopManager; |
77 | 102 | import org.maxgamer.quickshop.shop.VirtualDisplayItem; |
| 103 | +import org.maxgamer.quickshop.util.GameVersion; |
| 104 | +import org.maxgamer.quickshop.util.JsonUtil; |
| 105 | +import org.maxgamer.quickshop.util.MsgUtil; |
| 106 | +import org.maxgamer.quickshop.util.PermissionChecker; |
| 107 | +import org.maxgamer.quickshop.util.PlayerFinder; |
| 108 | +import org.maxgamer.quickshop.util.ReflectFactory; |
78 | 109 | import org.maxgamer.quickshop.util.Timer; |
79 | | -import org.maxgamer.quickshop.util.*; |
| 110 | +import org.maxgamer.quickshop.util.Util; |
80 | 111 | import org.maxgamer.quickshop.util.compatibility.SimpleCompatibilityManager; |
81 | 112 | import org.maxgamer.quickshop.util.config.ConfigCommentUpdater; |
82 | 113 | import org.maxgamer.quickshop.util.config.ConfigProvider; |
83 | 114 | import org.maxgamer.quickshop.util.config.ConfigurationFixer; |
84 | | -import org.maxgamer.quickshop.util.envcheck.*; |
| 115 | +import org.maxgamer.quickshop.util.envcheck.CheckResult; |
| 116 | +import org.maxgamer.quickshop.util.envcheck.EnvCheckEntry; |
| 117 | +import org.maxgamer.quickshop.util.envcheck.EnvironmentChecker; |
| 118 | +import org.maxgamer.quickshop.util.envcheck.ResultContainer; |
| 119 | +import org.maxgamer.quickshop.util.envcheck.ResultReport; |
85 | 120 | import org.maxgamer.quickshop.util.matcher.item.BukkitItemMatcherImpl; |
86 | 121 | import org.maxgamer.quickshop.util.matcher.item.QuickShopItemMatcherImpl; |
87 | 122 | import org.maxgamer.quickshop.util.reload.ReloadManager; |
88 | 123 | import org.maxgamer.quickshop.util.reporter.error.EmptyErrorReporter; |
89 | 124 | import org.maxgamer.quickshop.util.reporter.error.IErrorReporter; |
90 | 125 | import org.maxgamer.quickshop.util.reporter.error.RollbarErrorReporter; |
91 | | -import org.maxgamer.quickshop.watcher.*; |
92 | | - |
93 | | -import java.io.*; |
| 126 | +import org.maxgamer.quickshop.watcher.CalendarWatcher; |
| 127 | +import org.maxgamer.quickshop.watcher.DisplayAutoDespawnWatcher; |
| 128 | +import org.maxgamer.quickshop.watcher.DisplayDupeRemoverWatcher; |
| 129 | +import org.maxgamer.quickshop.watcher.DisplayWatcher; |
| 130 | +import org.maxgamer.quickshop.watcher.LogWatcher; |
| 131 | +import org.maxgamer.quickshop.watcher.OngoingFeeWatcher; |
| 132 | +import org.maxgamer.quickshop.watcher.ShopContainerWatcher; |
| 133 | +import org.maxgamer.quickshop.watcher.SignUpdateWatcher; |
| 134 | +import org.maxgamer.quickshop.watcher.TpsWatcher; |
| 135 | +import org.maxgamer.quickshop.watcher.UpdateWatcher; |
| 136 | + |
| 137 | +import java.io.BufferedInputStream; |
| 138 | +import java.io.File; |
| 139 | +import java.io.IOException; |
| 140 | +import java.io.InputStream; |
| 141 | +import java.io.InputStreamReader; |
94 | 142 | import java.net.URI; |
95 | 143 | import java.net.URISyntaxException; |
96 | 144 | import java.nio.charset.StandardCharsets; |
97 | 145 | import java.nio.file.Files; |
98 | 146 | import java.nio.file.Paths; |
99 | | -import java.util.*; |
| 147 | +import java.util.ArrayList; |
| 148 | +import java.util.Arrays; |
| 149 | +import java.util.Collections; |
| 150 | +import java.util.HashMap; |
| 151 | +import java.util.Iterator; |
| 152 | +import java.util.List; |
| 153 | +import java.util.Map; |
100 | 154 | import java.util.Map.Entry; |
| 155 | +import java.util.Objects; |
| 156 | +import java.util.StringJoiner; |
| 157 | +import java.util.UUID; |
101 | 158 | import java.util.logging.Level; |
102 | 159 |
|
103 | 160 | public class QuickShop extends JavaPlugin implements QuickShopAPI { |
@@ -999,7 +1056,6 @@ public final void onEnable() { |
999 | 1056 | new CustomInventoryListener(this).register(); |
1000 | 1057 | new ShopProtectionListener(this, this.shopCache).register(); |
1001 | 1058 | new PluginListener(this).register(); |
1002 | | - new EconomySetupListener(this).register(); |
1003 | 1059 | InternalListener internalListener = new InternalListener(this); |
1004 | 1060 | internalListener.register(); |
1005 | 1061 |
|
@@ -1042,13 +1098,14 @@ public final void onEnable() { |
1042 | 1098 | } |
1043 | 1099 |
|
1044 | 1100 |
|
1045 | | - /* Delay the Ecoonomy system load, give a chance to let economy system regiser. */ |
| 1101 | + /* Delay the Ecoonomy system load, give a chance to let economy system register. */ |
1046 | 1102 | /* And we have a listener to listen the ServiceRegisterEvent :) */ |
1047 | 1103 | Util.debugLog("Loading economy system..."); |
1048 | 1104 | new BukkitRunnable() { |
1049 | 1105 | @Override |
1050 | 1106 | public void run() { |
1051 | 1107 | loadEcon(); |
| 1108 | + new EconomySetupListener(QuickShop.this).register(); |
1052 | 1109 | } |
1053 | 1110 | }.runTaskLater(this, 1); |
1054 | 1111 | Util.debugLog("Registering watchers..."); |
|
0 commit comments