Search in sources :

Example 1 with CitizensListener

use of com.andrei1058.bedwars.support.citizens.CitizensListener in project BedWars1058 by andrei1058.

the class BedWars method onEnable.

@Override
public void onEnable() {
    if (!serverSoftwareSupport) {
        Bukkit.getPluginManager().disablePlugin(this);
        return;
    }
    nms.registerVersionListeners();
    if (Bukkit.getPluginManager().getPlugin("Enhanced-SlimeWorldManager") != null) {
        try {
            // noinspection rawtypes
            Constructor constructor = Class.forName("com.andrei1058.bedwars.arena.mapreset.eswm.ESlimeAdapter").getConstructor(Plugin.class);
            try {
                api.setRestoreAdapter((RestoreAdapter) constructor.newInstance(this));
                this.getLogger().info("Hook into Enhanced-SlimeWorldManager support!");
            } catch (InstantiationException e) {
                e.printStackTrace();
                api.setRestoreAdapter(new InternalAdapter(this));
                this.getLogger().info("Failed to hook into Enhanced-SlimeWorldManager support! Using the internal reset adapter.");
            }
        } catch (NoSuchMethodException | ClassNotFoundException | IllegalAccessException | InvocationTargetException e) {
            e.printStackTrace();
            api.setRestoreAdapter(new InternalAdapter(this));
            this.getLogger().info("Failed to hook into Enhanced-SlimeWorldManager support! Using the internal reset adapter.");
        }
    } else if (checkSWM()) {
        try {
            // noinspection rawtypes
            Constructor constructor = Class.forName("com.andrei1058.bedwars.arena.mapreset.slime.SlimeAdapter").getConstructor(Plugin.class);
            try {
                api.setRestoreAdapter((RestoreAdapter) constructor.newInstance(this));
                this.getLogger().info("Hook into SlimeWorldManager support!");
            } catch (InstantiationException e) {
                e.printStackTrace();
                api.setRestoreAdapter(new InternalAdapter(this));
                this.getLogger().info("Failed to hook into SlimeWorldManager support! Using internal reset adapter.");
            }
        } catch (NoSuchMethodException | ClassNotFoundException | IllegalAccessException | InvocationTargetException e) {
            e.printStackTrace();
            api.setRestoreAdapter(new InternalAdapter(this));
            this.getLogger().info("Failed to hook into SlimeWorldManager support! Using internal reset adapter.");
        }
    } else {
        api.setRestoreAdapter(new InternalAdapter(this));
    }
    /* Register commands */
    nms.registerCommand(mainCmd, new MainCommand(mainCmd));
    Bukkit.getScheduler().runTaskLater(this, () -> {
        if (!nms.isBukkitCommandRegistered("shout")) {
            nms.registerCommand("shout", new ShoutCommand("shout"));
        }
        nms.registerCommand("rejoin", new RejoinCommand("rejoin"));
        if (!(nms.isBukkitCommandRegistered("leave") && getServerType() == ServerType.BUNGEE)) {
            nms.registerCommand("leave", new LeaveCommand("leave"));
        }
        if (getServerType() != ServerType.BUNGEE && config.getBoolean(ConfigPath.GENERAL_ENABLE_PARTY_CMD)) {
            nms.registerCommand("party", new PartyCommand("party"));
        }
    }, 20L);
    /* Setup plugin messaging channel */
    Bukkit.getServer().getMessenger().registerOutgoingPluginChannel(this, "BungeeCord");
    /* Check if lobby location is set. Required for non Bungee servers */
    if (config.getLobbyWorldName().isEmpty() && serverType != ServerType.BUNGEE) {
        plugin.getLogger().log(java.util.logging.Level.WARNING, "Lobby location is not set!");
    }
    /* Load lobby world if not main level
         * when the server finishes loading. */
    if (getServerType() == ServerType.MULTIARENA)
        Bukkit.getScheduler().runTaskLater(this, () -> {
            if (!config.getLobbyWorldName().isEmpty()) {
                if (Bukkit.getWorld(config.getLobbyWorldName()) == null && new File(Bukkit.getWorldContainer(), config.getLobbyWorldName() + "/level.dat").exists()) {
                    if (!config.getLobbyWorldName().equalsIgnoreCase(Bukkit.getServer().getWorlds().get(0).getName())) {
                        Bukkit.getScheduler().runTaskLater(this, () -> {
                            Bukkit.createWorld(new WorldCreator(config.getLobbyWorldName()));
                            if (Bukkit.getWorld(config.getLobbyWorldName()) != null) {
                                Bukkit.getScheduler().runTaskLater(plugin, () -> Objects.requireNonNull(Bukkit.getWorld(config.getLobbyWorldName())).getEntities().stream().filter(e -> e instanceof Monster).forEach(Entity::remove), 20L);
                            }
                        }, 100L);
                    }
                }
                Location l = config.getConfigLoc("lobbyLoc");
                if (l != null) {
                    World w = Bukkit.getWorld(config.getLobbyWorldName());
                    if (w != null) {
                        w.setSpawnLocation(l.getBlockX(), l.getBlockY(), l.getBlockZ());
                    }
                }
            }
        }, 1L);
    // Register events
    registerEvents(new EnderPearlLanded(), new QuitAndTeleportListener(), new BreakPlace(), new DamageDeathMove(), new Inventory(), new Interact(), new RefreshGUI(), new HungerWeatherSpawn(), new CmdProcess(), new FireballListener(), new EggBridge(), new SpectatorListeners(), new BaseListener(), new TargetListener(), new LangListener(), new Warnings(this), new ChatAFK());
    if (getServerType() == ServerType.BUNGEE) {
        if (autoscale) {
            // registerEvents(new ArenaListeners());
            ArenaSocket.lobbies.addAll(config.getList(ConfigPath.GENERAL_CONFIGURATION_BUNGEE_OPTION_LOBBY_SERVERS));
            new SendTask();
            registerEvents(new AutoscaleListener(), new PrePartyListener(), new JoinListenerBungee());
            Bukkit.getScheduler().runTaskTimerAsynchronously(this, new LoadedUsersCleaner(), 60L, 60L);
        } else {
            registerEvents(new ServerPingListener(), new JoinListenerBungeeLegacy());
        }
    } else if (getServerType() == ServerType.MULTIARENA || getServerType() == ServerType.SHARED) {
        registerEvents(new ArenaSelectorListener(), new BlockStatusListener());
        if (getServerType() == ServerType.MULTIARENA) {
            registerEvents(new JoinListenerMultiArena());
        } else {
            registerEvents(new JoinListenerShared());
        }
    }
    registerEvents(new WorldLoadListener());
    if (!(getServerType() == ServerType.BUNGEE && autoscale)) {
        registerEvents(new JoinHandlerCommon());
    }
    // Register setup-holograms fix
    registerEvents(new ChunkLoad());
    /* Deprecated versions */
    switch(version) {
        case "v1_9_R1":
        case "v1_9_R2":
        case "v1_10_R1":
        case "v1_11_R1":
        case "v1_13_R2":
        case "v1_14_R1":
        case "v1_15_R1":
        case "v1_16_R1":
        case "v1_16_R2":
            registerEvents(new InvisibilityPotionListener());
            Bukkit.getScheduler().runTaskLater(this, () -> System.out.println("\u001B[31m[WARN] BedWars1058 may drop support for this server version in the future.\nSee: https://wiki.andrei1058.dev/docs/BedWars1058/compatibility \u001B[0m"), 40L);
            break;
    }
    /* Load join signs. */
    loadArenasAndSigns();
    statsManager = new StatsManager();
    /* Party support */
    Bukkit.getScheduler().runTaskLater(this, () -> {
        if (config.getYml().getBoolean(ConfigPath.GENERAL_CONFIGURATION_ALLOW_PARTIES)) {
            if (getServer().getPluginManager().isPluginEnabled("Parties")) {
                getLogger().info("Hook into Parties (by AlessioDP) support!");
                party = new PartiesAdapter();
            } else if (Bukkit.getServer().getPluginManager().isPluginEnabled("PartyAndFriends")) {
                getLogger().info("Hook into Party and Friends for Spigot (by Simonsator) support!");
                party = new PAF();
            } else if (Bukkit.getServer().getPluginManager().isPluginEnabled("Spigot-Party-API-PAF")) {
                getLogger().info("Hook into Spigot Party API for Party and Friends Extended (by Simonsator) support!");
                party = new PAFBungeecordRedisApi();
            }
            if (party instanceof NoParty) {
                party = new com.andrei1058.bedwars.support.party.Internal();
                getLogger().info("Loading internal Party system. /party");
            }
        } else {
            party = new NoParty();
        }
    }, 10L);
    /* Levels support */
    setLevelAdapter(new InternalLevel());
    /* Register tasks */
    Bukkit.getScheduler().runTaskTimer(this, new Refresh(), 20L, 20L);
    if (config.getBoolean(ConfigPath.GENERAL_CONFIGURATION_PERFORMANCE_ROTATE_GEN)) {
        // new OneTick().runTaskTimer(this, 120, 1);
        Bukkit.getScheduler().runTaskTimer(this, new OneTick(), 120, 1);
    }
    /* Register NMS entities */
    nms.registerEntities();
    /* Database support */
    if (config.getBoolean("database.enable")) {
        com.andrei1058.bedwars.database.MySQL mySQL = new com.andrei1058.bedwars.database.MySQL();
        long time = System.currentTimeMillis();
        if (!mySQL.connect()) {
            this.getLogger().severe("Could not connect to database! Please verify your credentials and make sure that the server IP is whitelisted in MySQL.");
            remoteDatabase = new SQLite();
        } else {
            remoteDatabase = mySQL;
        }
        if (System.currentTimeMillis() - time >= 5000) {
            this.getLogger().severe("It took " + ((System.currentTimeMillis() - time) / 1000) + " ms to establish a database connection!\n" + "Using this remote connection is not recommended!");
        }
        remoteDatabase.init();
    } else {
        remoteDatabase = new SQLite();
        remoteDatabase.init();
    }
    /* Citizens support */
    Bukkit.getScheduler().runTaskLater(plugin, () -> {
        if (this.getServer().getPluginManager().getPlugin("Citizens") != null) {
            JoinNPC.setCitizensSupport(true);
            getLogger().info("Hook into Citizens support. /bw npc");
            registerEvents(new CitizensListener());
        }
        // spawn NPCs
        try {
            JoinNPC.spawnNPCs();
        } catch (Exception e) {
            this.getLogger().severe("Could not spawn CmdJoin NPCs. Make sure you have right version of Citizens for your server!");
            JoinNPC.setCitizensSupport(false);
        }
    /*if (getServerType() == ServerType.BUNGEE) {
                if (Arena.getArenas().size() > 0) {
                    ArenaSocket.sendMessage(Arena.getArenas().get(0));
                }
            }*/
    }, 40L);
    /* Save messages for stats gui items if custom items added, for each language */
    Language.setupCustomStatsMessages();
    /* PlaceholderAPI Support */
    if (Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) {
        getLogger().info("Hooked into PlaceholderAPI support!");
        new PAPISupport().register();
        SupportPAPI.setSupportPAPI(new SupportPAPI.withPAPI());
    }
    /*
         * Vault support
         * The task is to initialize after all plugins have loaded,
         *  to make sure any economy/chat plugins have been loaded and registered.
         */
    Bukkit.getScheduler().runTask(this, () -> {
        if (this.getServer().getPluginManager().getPlugin("Vault") != null) {
            try {
                // noinspection rawtypes
                RegisteredServiceProvider rsp = this.getServer().getServicesManager().getRegistration(net.milkbowl.vault.chat.Chat.class);
                if (rsp != null) {
                    WithChat.setChat((net.milkbowl.vault.chat.Chat) rsp.getProvider());
                    plugin.getLogger().info("Hooked into vault chat support!");
                    chat = new WithChat();
                } else {
                    plugin.getLogger().info("Vault found, but no chat provider!");
                    chat = new NoChat();
                }
            } catch (Exception var2_2) {
                chat = new NoChat();
            }
            try {
                registerEvents(new MoneyListeners());
                RegisteredServiceProvider<net.milkbowl.vault.economy.Economy> rsp = this.getServer().getServicesManager().getRegistration(net.milkbowl.vault.economy.Economy.class);
                if (rsp != null) {
                    WithEconomy.setEconomy(rsp.getProvider());
                    plugin.getLogger().info("Hooked into vault economy support!");
                    economy = new WithEconomy();
                } else {
                    plugin.getLogger().info("Vault found, but no economy provider!");
                    economy = new NoEconomy();
                }
            } catch (Exception var2_2) {
                economy = new NoEconomy();
            }
        } else {
            chat = new NoChat();
            economy = new NoEconomy();
        }
    });
    /* Chat support */
    if (config.getBoolean(ConfigPath.GENERAL_CHAT_FORMATTING)) {
        registerEvents(new ChatFormatting());
    }
    /* Protect glass walls from tnt explosion */
    nms.registerTntWhitelist();
    /* Prevent issues on reload */
    for (Player p : Bukkit.getOnlinePlayers()) {
        p.kickPlayer("BedWars1058 was RELOADED! (do not reload plugins)");
    }
    /* Load sounds configuration */
    Sounds.init();
    /* Initialize shop */
    shop = new ShopManager();
    // Leave this code at the end of the enable method
    for (Language l : Language.getLanguages()) {
        l.setupUnSetCategories();
        Language.addDefaultMessagesCommandItems(l);
    }
    LevelsConfig.init();
    /* Load Money Configuration */
    MoneyConfig.init();
    // bStats metrics
    Metrics metrics = new Metrics(this, 1885);
    metrics.addCustomChart(new SimplePie("server_type", () -> getServerType().toString()));
    metrics.addCustomChart(new SimplePie("default_language", () -> Language.getDefaultLanguage().getIso()));
    metrics.addCustomChart(new SimplePie("auto_scale", () -> String.valueOf(autoscale)));
    metrics.addCustomChart(new SimplePie("party_adapter", () -> party.getClass().getName()));
    metrics.addCustomChart(new SimplePie("chat_adapter", () -> chat.getClass().getName()));
    metrics.addCustomChart(new SimplePie("level_adapter", () -> getLevelSupport().getClass().getName()));
    metrics.addCustomChart(new SimplePie("db_adapter", () -> getRemoteDatabase().getClass().getName()));
    metrics.addCustomChart(new SimplePie("map_adapter", () -> String.valueOf(getAPI().getRestoreAdapter().getOwner().getName())));
    if (Bukkit.getPluginManager().getPlugin("VipFeatures") != null) {
        try {
            IVipFeatures vf = Bukkit.getServicesManager().getRegistration(IVipFeatures.class).getProvider();
            vf.registerMiniGame(new VipFeatures(this));
            registerEvents(new VipListeners(vf));
            getLogger().log(java.util.logging.Level.INFO, "Hook into VipFeatures support.");
        } catch (Exception e) {
            getLogger().warning("Could not load support for VipFeatures.");
        } catch (MiniGameAlreadyRegistered miniGameAlreadyRegistered) {
            miniGameAlreadyRegistered.printStackTrace();
        }
    }
    /* Check updates */
    new SpigotUpdater(this, 50942, true).checkUpdate();
    Bukkit.getScheduler().runTaskLater(this, () -> getLogger().info("This server is running in " + getServerType().toString() + " with auto-scale " + autoscale), 100L);
    // Initialize team upgrades
    com.andrei1058.bedwars.upgrades.UpgradesManager.init();
    int playerListRefreshInterval = config.getInt(ConfigPath.SB_CONFIG_SIDEBAR_LIST_REFRESH);
    if (playerListRefreshInterval < 1) {
        Bukkit.getLogger().info("Scoreboard names list refresh is disabled. (Is set to " + playerListRefreshInterval + ").");
    } else {
        if (playerListRefreshInterval < 20) {
            Bukkit.getLogger().warning("Scoreboard names list refresh interval is set to: " + playerListRefreshInterval);
            Bukkit.getLogger().warning("It is not recommended to use a value under 20 ticks.");
            Bukkit.getLogger().warning("If you expect performance issues please increase its timer.");
        }
        Bukkit.getScheduler().runTaskTimer(this, new SidebarListRefresh(), 23L, playerListRefreshInterval);
    }
    int placeholdersRefreshInterval = config.getInt(ConfigPath.SB_CONFIG_SIDEBAR_PLACEHOLDERS_REFRESH_INTERVAL);
    if (placeholdersRefreshInterval < 1) {
        Bukkit.getLogger().info("Scoreboard placeholders refresh is disabled. (Is set to " + placeholdersRefreshInterval + ").");
    } else {
        if (placeholdersRefreshInterval < 20) {
            Bukkit.getLogger().warning("Scoreboard placeholders refresh interval is set to: " + placeholdersRefreshInterval);
            Bukkit.getLogger().warning("It is not recommended to use a value under 20 ticks.");
            Bukkit.getLogger().warning("If you expect performance issues please increase its timer.");
        }
        Bukkit.getScheduler().runTaskTimer(this, new SidebarPlaceholderRefresh(), 28L, placeholdersRefreshInterval);
    }
    int titleRefreshInterval = config.getInt(ConfigPath.SB_CONFIG_SIDEBAR_TITLE_REFRESH_INTERVAL);
    if (titleRefreshInterval < 1) {
        Bukkit.getLogger().info("Scoreboard title refresh is disabled. (Is set to " + titleRefreshInterval + ").");
    } else {
        if (titleRefreshInterval < 4) {
            Bukkit.getLogger().warning("Scoreboard title refresh interval is set to: " + titleRefreshInterval);
            Bukkit.getLogger().warning("If you expect performance issues please increase its timer.");
        }
        Bukkit.getScheduler().runTaskTimerAsynchronously(this, new SidebarTitleRefresh(), 32L, titleRefreshInterval);
    }
    int healthAnimationInterval = config.getInt(ConfigPath.SB_CONFIG_SIDEBAR_HEALTH_REFRESH);
    if (healthAnimationInterval < 1) {
        Bukkit.getLogger().info("Scoreboard health animation refresh is disabled. (Is set to " + healthAnimationInterval + ").");
    } else {
        if (healthAnimationInterval < 20) {
            Bukkit.getLogger().warning("Scoreboard health animation refresh interval is set to: " + healthAnimationInterval);
            Bukkit.getLogger().warning("It is not recommended to use a value under 20 ticks.");
            Bukkit.getLogger().warning("If you expect performance issues please increase its timer.");
        }
        Bukkit.getScheduler().scheduleSyncRepeatingTask(this, new SidebarLifeRefresh(), 40L, healthAnimationInterval);
    }
    registerEvents(new ScoreboardListener());
    // Halloween Special
    HalloweenSpecial.init();
    SpoilPlayerTNTFeature.init();
}
Also used : Plugin(org.bukkit.plugin.Plugin) com.andrei1058.bedwars.listeners.joinhandler(com.andrei1058.bedwars.listeners.joinhandler) JoinNPC(com.andrei1058.bedwars.support.citizens.JoinNPC) SpigotUpdater(com.andrei1058.spigotutils.SpigotUpdater) ArenaManager(com.andrei1058.bedwars.arena.ArenaManager) Arena(com.andrei1058.bedwars.arena.Arena) Player(org.bukkit.entity.Player) SimplePie(org.bstats.charts.SimplePie) ChunkGenerator(org.bukkit.generator.ChunkGenerator) PAF(com.andrei1058.bedwars.support.party.PAF) Level(com.andrei1058.bedwars.api.levels.Level) Location(org.bukkit.Location) SpoilPlayerTNTFeature(com.andrei1058.bedwars.arena.feature.SpoilPlayerTNTFeature) World(org.bukkit.World) Monster(org.bukkit.entity.Monster) Refresh(com.andrei1058.bedwars.arena.tasks.Refresh) VipListeners(com.andrei1058.bedwars.support.vipfeatures.VipListeners) SQLite(com.andrei1058.bedwars.database.SQLite) com.andrei1058.bedwars.sidebar(com.andrei1058.bedwars.sidebar) BlockStatusListener(com.andrei1058.bedwars.listeners.blockstatus.BlockStatusListener) InternalAdapter(com.andrei1058.bedwars.maprestore.internal.InternalAdapter) PrePartyListener(com.andrei1058.bedwars.support.preloadedparty.PrePartyListener) ChatAFK(com.andrei1058.bedwars.listeners.chat.ChatAFK) ShoutCommand(com.andrei1058.bedwars.commands.shout.ShoutCommand) PartiesAdapter(com.andrei1058.bedwars.support.party.PartiesAdapter) Bukkit(org.bukkit.Bukkit) ArenaSocket(com.andrei1058.bedwars.lobbysocket.ArenaSocket) PlayerJoinEvent(org.bukkit.event.player.PlayerJoinEvent) ServicePriority(org.bukkit.plugin.ServicePriority) Entity(org.bukkit.entity.Entity) Metrics(org.bstats.bukkit.Metrics) HalloweenSpecial(com.andrei1058.bedwars.halloween.HalloweenSpecial) Party(com.andrei1058.bedwars.api.party.Party) InvocationTargetException(java.lang.reflect.InvocationTargetException) JavaPlugin(org.bukkit.plugin.java.JavaPlugin) Database(com.andrei1058.bedwars.database.Database) SendTask(com.andrei1058.bedwars.lobbysocket.SendTask) IArena(com.andrei1058.bedwars.api.arena.IArena) PlayerQuitEvent(org.bukkit.event.player.PlayerQuitEvent) TargetListener(com.andrei1058.bedwars.arena.despawnables.TargetListener) StatsManager(com.andrei1058.bedwars.stats.StatsManager) RestoreAdapter(com.andrei1058.bedwars.api.server.RestoreAdapter) com.andrei1058.bedwars.support.vault(com.andrei1058.bedwars.support.vault) ServerType(com.andrei1058.bedwars.api.server.ServerType) com.andrei1058.bedwars.configuration(com.andrei1058.bedwars.configuration) java.util(java.util) SupportPAPI(com.andrei1058.bedwars.support.papi.SupportPAPI) BaseListener(com.andrei1058.bedwars.arena.upgrades.BaseListener) OneTick(com.andrei1058.bedwars.arena.tasks.OneTick) IVipFeatures(com.andrei1058.vipfeatures.api.IVipFeatures) WorldCreator(org.bukkit.WorldCreator) LeaveCommand(com.andrei1058.bedwars.commands.leave.LeaveCommand) Constructor(java.lang.reflect.Constructor) NoParty(com.andrei1058.bedwars.support.party.NoParty) ShopManager(com.andrei1058.bedwars.shop.ShopManager) com.andrei1058.bedwars.listeners(com.andrei1058.bedwars.listeners) MiniGameAlreadyRegistered(com.andrei1058.vipfeatures.api.MiniGameAlreadyRegistered) SpectatorListeners(com.andrei1058.bedwars.arena.spectator.SpectatorListeners) Language(com.andrei1058.bedwars.api.language.Language) MoneyListeners(com.andrei1058.bedwars.money.internal.MoneyListeners) ConfigManager(com.andrei1058.bedwars.api.configuration.ConfigManager) LoadedUsersCleaner(com.andrei1058.bedwars.lobbysocket.LoadedUsersCleaner) MainCommand(com.andrei1058.bedwars.commands.bedwars.MainCommand) Listener(org.bukkit.event.Listener) PartyCommand(com.andrei1058.bedwars.commands.party.PartyCommand) PAPISupport(com.andrei1058.bedwars.support.papi.PAPISupport) LevelListeners(com.andrei1058.bedwars.levels.internal.LevelListeners) RejoinCommand(com.andrei1058.bedwars.commands.rejoin.RejoinCommand) VipFeatures(com.andrei1058.bedwars.support.vipfeatures.VipFeatures) VoidChunkGenerator(com.andrei1058.bedwars.arena.VoidChunkGenerator) CitizensListener(com.andrei1058.bedwars.support.citizens.CitizensListener) com.andrei1058.bedwars.language(com.andrei1058.bedwars.language) ArenaSelectorListener(com.andrei1058.bedwars.listeners.arenaselector.ArenaSelectorListener) File(java.io.File) ConfigPath(com.andrei1058.bedwars.api.configuration.ConfigPath) InternalLevel(com.andrei1058.bedwars.levels.internal.InternalLevel) ChatFormatting(com.andrei1058.bedwars.listeners.chat.ChatFormatting) PAFBungeecordRedisApi(com.andrei1058.bedwars.support.party.PAFBungeecordRedisApi) RegisteredServiceProvider(org.bukkit.plugin.RegisteredServiceProvider) VersionSupport(com.andrei1058.bedwars.api.server.VersionSupport) Entity(org.bukkit.entity.Entity) ChatAFK(com.andrei1058.bedwars.listeners.chat.ChatAFK) StatsManager(com.andrei1058.bedwars.stats.StatsManager) SQLite(com.andrei1058.bedwars.database.SQLite) TargetListener(com.andrei1058.bedwars.arena.despawnables.TargetListener) IVipFeatures(com.andrei1058.vipfeatures.api.IVipFeatures) VipFeatures(com.andrei1058.bedwars.support.vipfeatures.VipFeatures) BlockStatusListener(com.andrei1058.bedwars.listeners.blockstatus.BlockStatusListener) BaseListener(com.andrei1058.bedwars.arena.upgrades.BaseListener) Refresh(com.andrei1058.bedwars.arena.tasks.Refresh) CitizensListener(com.andrei1058.bedwars.support.citizens.CitizensListener) Monster(org.bukkit.entity.Monster) PartiesAdapter(com.andrei1058.bedwars.support.party.PartiesAdapter) PAFBungeecordRedisApi(com.andrei1058.bedwars.support.party.PAFBungeecordRedisApi) IVipFeatures(com.andrei1058.vipfeatures.api.IVipFeatures) SpectatorListeners(com.andrei1058.bedwars.arena.spectator.SpectatorListeners) Constructor(java.lang.reflect.Constructor) PrePartyListener(com.andrei1058.bedwars.support.preloadedparty.PrePartyListener) LoadedUsersCleaner(com.andrei1058.bedwars.lobbysocket.LoadedUsersCleaner) PAF(com.andrei1058.bedwars.support.party.PAF) SendTask(com.andrei1058.bedwars.lobbysocket.SendTask) OneTick(com.andrei1058.bedwars.arena.tasks.OneTick) MainCommand(com.andrei1058.bedwars.commands.bedwars.MainCommand) MiniGameAlreadyRegistered(com.andrei1058.vipfeatures.api.MiniGameAlreadyRegistered) SimplePie(org.bstats.charts.SimplePie) PartyCommand(com.andrei1058.bedwars.commands.party.PartyCommand) World(org.bukkit.World) Metrics(org.bstats.bukkit.Metrics) ChatFormatting(com.andrei1058.bedwars.listeners.chat.ChatFormatting) ShopManager(com.andrei1058.bedwars.shop.ShopManager) com.andrei1058.bedwars.support.vault(com.andrei1058.bedwars.support.vault) NoParty(com.andrei1058.bedwars.support.party.NoParty) Player(org.bukkit.entity.Player) PAPISupport(com.andrei1058.bedwars.support.papi.PAPISupport) VipListeners(com.andrei1058.bedwars.support.vipfeatures.VipListeners) SpigotUpdater(com.andrei1058.spigotutils.SpigotUpdater) InvocationTargetException(java.lang.reflect.InvocationTargetException) File(java.io.File) ArenaSelectorListener(com.andrei1058.bedwars.listeners.arenaselector.ArenaSelectorListener) LeaveCommand(com.andrei1058.bedwars.commands.leave.LeaveCommand) WorldCreator(org.bukkit.WorldCreator) RejoinCommand(com.andrei1058.bedwars.commands.rejoin.RejoinCommand) InternalLevel(com.andrei1058.bedwars.levels.internal.InternalLevel) ShoutCommand(com.andrei1058.bedwars.commands.shout.ShoutCommand) Language(com.andrei1058.bedwars.api.language.Language) SupportPAPI(com.andrei1058.bedwars.support.papi.SupportPAPI) MoneyListeners(com.andrei1058.bedwars.money.internal.MoneyListeners) RegisteredServiceProvider(org.bukkit.plugin.RegisteredServiceProvider) InvocationTargetException(java.lang.reflect.InvocationTargetException) RestoreAdapter(com.andrei1058.bedwars.api.server.RestoreAdapter) InternalAdapter(com.andrei1058.bedwars.maprestore.internal.InternalAdapter) Plugin(org.bukkit.plugin.Plugin) JavaPlugin(org.bukkit.plugin.java.JavaPlugin) Location(org.bukkit.Location)

Aggregations

IArena (com.andrei1058.bedwars.api.arena.IArena)1 ConfigManager (com.andrei1058.bedwars.api.configuration.ConfigManager)1 ConfigPath (com.andrei1058.bedwars.api.configuration.ConfigPath)1 Language (com.andrei1058.bedwars.api.language.Language)1 Level (com.andrei1058.bedwars.api.levels.Level)1 Party (com.andrei1058.bedwars.api.party.Party)1 RestoreAdapter (com.andrei1058.bedwars.api.server.RestoreAdapter)1 ServerType (com.andrei1058.bedwars.api.server.ServerType)1 VersionSupport (com.andrei1058.bedwars.api.server.VersionSupport)1 Arena (com.andrei1058.bedwars.arena.Arena)1 ArenaManager (com.andrei1058.bedwars.arena.ArenaManager)1 VoidChunkGenerator (com.andrei1058.bedwars.arena.VoidChunkGenerator)1 TargetListener (com.andrei1058.bedwars.arena.despawnables.TargetListener)1 SpoilPlayerTNTFeature (com.andrei1058.bedwars.arena.feature.SpoilPlayerTNTFeature)1 SpectatorListeners (com.andrei1058.bedwars.arena.spectator.SpectatorListeners)1 OneTick (com.andrei1058.bedwars.arena.tasks.OneTick)1 Refresh (com.andrei1058.bedwars.arena.tasks.Refresh)1 BaseListener (com.andrei1058.bedwars.arena.upgrades.BaseListener)1 MainCommand (com.andrei1058.bedwars.commands.bedwars.MainCommand)1 LeaveCommand (com.andrei1058.bedwars.commands.leave.LeaveCommand)1