Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* */ package org.hcfpvp.hcf.Hcf;
- /* */
- /* */ import com.sk89q.worldedit.bukkit.WorldEditPlugin;
- /* */ import java.io.File;
- /* */ import java.text.DecimalFormat;
- /* */ import java.util.Map;
- /* */ import java.util.Map.Entry;
- /* */ import java.util.Random;
- /* */ import java.util.concurrent.TimeUnit;
- /* */ import net.md_5.bungee.api.ChatColor;
- /* */ import org.apache.commons.lang3.time.DurationFormatUtils;
- /* */ import org.bukkit.Bukkit;
- /* */ import org.bukkit.Server;
- /* */ import org.bukkit.command.PluginCommand;
- /* */ import org.bukkit.configuration.file.FileConfiguration;
- /* */ import org.bukkit.configuration.file.FileConfigurationOptions;
- /* */ import org.bukkit.configuration.serialization.ConfigurationSerialization;
- /* */ import org.bukkit.plugin.Plugin;
- /* */ import org.bukkit.plugin.PluginDescriptionFile;
- /* */ import org.bukkit.plugin.PluginManager;
- /* */ import org.bukkit.plugin.java.JavaPlugin;
- /* */ import org.bukkit.scheduler.BukkitRunnable;
- /* */ import org.hcfpvp.base.base.BasePlugins;
- /* */ import org.hcfpvp.base.base.command.ChatModule.MessageCommand;
- /* */ import org.hcfpvp.base.base.command.ChatModule.ReplyCommand;
- /* */ import org.hcfpvp.base.base.command.ChatModule.StaffChatCommand;
- /* */ import org.hcfpvp.base.base.command.ChatModule.ToggleMessageCommand;
- /* */ import org.hcfpvp.base.base.command.EssentialsModule.BroadCastCommand;
- /* */ import org.hcfpvp.base.base.command.EssentialsModule.ClearCommand;
- /* */ import org.hcfpvp.base.base.command.EssentialsModule.FeedCommand;
- /* */ import org.hcfpvp.base.base.command.EssentialsModule.FlyCommand;
- /* */ import org.hcfpvp.base.base.command.EssentialsModule.FreezeCommand;
- /* */ import org.hcfpvp.base.base.command.EssentialsModule.GameModeCommand;
- /* */ import org.hcfpvp.base.base.command.EssentialsModule.GiveCommand;
- /* */ import org.hcfpvp.base.base.command.EssentialsModule.GodCommand;
- /* */ import org.hcfpvp.base.base.command.EssentialsModule.InvSeeCommand;
- /* */ import org.hcfpvp.base.base.command.EssentialsModule.ItemCommand;
- /* */ import org.hcfpvp.base.base.command.EssentialsModule.LagCommand;
- /* */ import org.hcfpvp.base.base.command.EssentialsModule.ListCommand;
- /* */ import org.hcfpvp.base.base.command.EssentialsModule.PingCommand;
- /* */ import org.hcfpvp.base.base.command.EssentialsModule.SetMaxPlayersCommand;
- /* */ import org.hcfpvp.base.base.command.EssentialsModule.StaffModeCommand;
- /* */ import org.hcfpvp.base.base.command.EssentialsModule.VanishCommand;
- /* */ import org.hcfpvp.base.base.command.NoteModule.NoteCommand;
- /* */ import org.hcfpvp.base.base.command.TeleportModule.TeleportAllCommand;
- /* */ import org.hcfpvp.base.base.command.TeleportModule.TeleportCommand;
- /* */ import org.hcfpvp.base.base.command.TeleportModule.TeleportHereCommand;
- /* */ import org.hcfpvp.base.base.listener.GodListener;
- /* */ import org.hcfpvp.base.base.listener.NoteListener;
- /* */ import org.hcfpvp.base.base.listener.StaffChatListener;
- /* */ import org.hcfpvp.base.base.listener.StaffModeListener;
- /* */ import org.hcfpvp.base.base.listener.VanishListener;
- /* */ import org.hcfpvp.hcf.balance.EconomyCommand;
- /* */ import org.hcfpvp.hcf.balance.EconomyManager;
- /* */ import org.hcfpvp.hcf.balance.FlatFileEconomyManager;
- /* */ import org.hcfpvp.hcf.balance.PayCommand;
- /* */ import org.hcfpvp.hcf.balance.ShopSignListener;
- /* */ import org.hcfpvp.hcf.classes.PvpClassManager;
- /* */ import org.hcfpvp.hcf.classes.archer.ArcherClass;
- /* */ import org.hcfpvp.hcf.combatlog.CombatLogListener;
- /* */ import org.hcfpvp.hcf.combatlog.CustomEntityRegistration;
- /* */ import org.hcfpvp.hcf.command.CoordsCommand;
- /* */ import org.hcfpvp.hcf.command.CrowbarCommand;
- /* */ import org.hcfpvp.hcf.command.DonatorReviveCommand;
- /* */ import org.hcfpvp.hcf.command.GMCCommand;
- /* */ import org.hcfpvp.hcf.command.GMSCommand;
- /* */ import org.hcfpvp.hcf.command.GoppleCommand;
- /* */ import org.hcfpvp.hcf.command.HelpCommand;
- /* */ import org.hcfpvp.hcf.command.HelpopCommand;
- /* */ import org.hcfpvp.hcf.command.LogoutCommand;
- /* */ import org.hcfpvp.hcf.command.MapKitCommand;
- /* */ import org.hcfpvp.hcf.command.OreStatsCommand;
- /* */ import org.hcfpvp.hcf.command.PvpTimerCommand;
- /* */ import org.hcfpvp.hcf.command.RandomCommand;
- /* */ import org.hcfpvp.hcf.command.RefundCommand;
- /* */ import org.hcfpvp.hcf.command.ReportCommand;
- /* */ import org.hcfpvp.hcf.command.SetBorderCommand;
- /* */ import org.hcfpvp.hcf.command.SetCommand;
- /* */ import org.hcfpvp.hcf.command.SpawnCommand;
- /* */ import org.hcfpvp.hcf.command.SpawnerCommand;
- /* */ import org.hcfpvp.hcf.command.TeamspeakCommand;
- /* */ import org.hcfpvp.hcf.config.PlayerData;
- /* */ import org.hcfpvp.hcf.config.PotionLimiterData;
- /* */ import org.hcfpvp.hcf.config.WorldData;
- /* */ import org.hcfpvp.hcf.faction.FactionExecutor;
- /* */ import org.hcfpvp.hcf.faction.FactionManager;
- /* */ import org.hcfpvp.hcf.faction.FactionMember;
- /* */ import org.hcfpvp.hcf.faction.FlatFileFactionManager;
- /* */ import org.hcfpvp.hcf.faction.claim.Claim;
- /* */ import org.hcfpvp.hcf.faction.claim.ClaimHandler;
- /* */ import org.hcfpvp.hcf.faction.claim.ClaimWandListener;
- /* */ import org.hcfpvp.hcf.faction.claim.Subclaim;
- /* */ import org.hcfpvp.hcf.faction.type.ClaimableFaction;
- /* */ import org.hcfpvp.hcf.faction.type.EndPortalFaction;
- /* */ import org.hcfpvp.hcf.faction.type.Faction;
- /* */ import org.hcfpvp.hcf.faction.type.PlayerFaction;
- /* */ import org.hcfpvp.hcf.faction.type.RoadFaction;
- /* */ import org.hcfpvp.hcf.faction.type.RoadFaction.EastRoadFaction;
- /* */ import org.hcfpvp.hcf.faction.type.RoadFaction.NorthRoadFaction;
- /* */ import org.hcfpvp.hcf.faction.type.RoadFaction.SouthRoadFaction;
- /* */ import org.hcfpvp.hcf.faction.type.RoadFaction.WestRoadFaction;
- /* */ import org.hcfpvp.hcf.faction.type.SpawnFaction;
- /* */ import org.hcfpvp.hcf.fixes.BeaconStrengthFixListener;
- /* */ import org.hcfpvp.hcf.fixes.BlockHitFixListener;
- /* */ import org.hcfpvp.hcf.fixes.BlockJumpGlitchFixListener;
- /* */ import org.hcfpvp.hcf.fixes.BoatGlitchFixListener;
- /* */ import org.hcfpvp.hcf.fixes.EnchantLimitListener;
- /* */ import org.hcfpvp.hcf.fixes.EnderChestRemovalListener;
- /* */ import org.hcfpvp.hcf.fixes.HungerFixListener;
- /* */ import org.hcfpvp.hcf.fixes.InfinityArrowFixListener;
- /* */ import org.hcfpvp.hcf.fixes.NoPermissionClickListener;
- /* */ import org.hcfpvp.hcf.fixes.PearlGlitchListener;
- /* */ import org.hcfpvp.hcf.fixes.PortalListener;
- /* */ import org.hcfpvp.hcf.fixes.PotionLimitListener;
- /* */ import org.hcfpvp.hcf.fixes.ServerSecurityListener;
- /* */ import org.hcfpvp.hcf.fixes.VoidGlitchFixListener;
- /* */ import org.hcfpvp.hcf.fixes.WeatherFixListener;
- /* */ import org.hcfpvp.hcf.kothgame.CaptureZone;
- /* */ import org.hcfpvp.hcf.kothgame.EventExecutor;
- /* */ import org.hcfpvp.hcf.kothgame.EventScheduler;
- /* */ import org.hcfpvp.hcf.kothgame.conquest.ConquestExecutor;
- /* */ import org.hcfpvp.hcf.kothgame.eotw.EOTWHandler;
- /* */ import org.hcfpvp.hcf.kothgame.eotw.EotwCommand;
- /* */ import org.hcfpvp.hcf.kothgame.eotw.EotwListener;
- /* */ import org.hcfpvp.hcf.kothgame.faction.CapturableFaction;
- /* */ import org.hcfpvp.hcf.kothgame.faction.ConquestFaction;
- /* */ import org.hcfpvp.hcf.kothgame.faction.KothFaction;
- /* */ import org.hcfpvp.hcf.kothgame.koth.KothExecutor;
- /* */ import org.hcfpvp.hcf.listener.AutoSmeltOreListener;
- /* */ import org.hcfpvp.hcf.listener.BookDeenchantListener;
- /* */ import org.hcfpvp.hcf.listener.BorderListener;
- /* */ import org.hcfpvp.hcf.listener.BottledExpListener;
- /* */ import org.hcfpvp.hcf.listener.ChatListener;
- /* */ import org.hcfpvp.hcf.listener.CoreListener;
- /* */ import org.hcfpvp.hcf.listener.CrowbarListener;
- /* */ import org.hcfpvp.hcf.listener.ElevatorListener;
- /* */ import org.hcfpvp.hcf.listener.ExpMultiplierListener;
- /* */ import org.hcfpvp.hcf.listener.FactionListener;
- /* */ import org.hcfpvp.hcf.listener.FactionsCoreListener;
- /* */ import org.hcfpvp.hcf.listener.FoundDiamondsListener;
- /* */ import org.hcfpvp.hcf.listener.FurnaceSmeltSpeederListener;
- /* */ import org.hcfpvp.hcf.listener.ItemStatTrackingListener;
- /* */ import org.hcfpvp.hcf.listener.SignSubclaimListener;
- /* */ import org.hcfpvp.hcf.listener.SkullListener;
- /* */ import org.hcfpvp.hcf.listener.UnRepairableListener;
- /* */ import org.hcfpvp.hcf.listener.WorldListener;
- /* */ import org.hcfpvp.hcf.scoreboard.ScoreboardHandler;
- /* */ import org.hcfpvp.hcf.sotw.SotwCommand;
- /* */ import org.hcfpvp.hcf.sotw.SotwTimer;
- /* */ import org.hcfpvp.hcf.timer.TimerExecutor;
- /* */ import org.hcfpvp.hcf.timer.TimerManager;
- /* */ import org.hcfpvp.hcf.user.FactionUser;
- /* */ import org.hcfpvp.hcf.user.UserManager;
- /* */ import org.hcfpvp.hcf.visualise.ProtocolLibHook;
- /* */ import org.hcfpvp.hcf.visualise.VisualiseHandler;
- /* */ import org.hcfpvp.hcf.visualise.WallBorderListener;
- /* */ import org.hcfpvp.hcfold.EventSignListener;
- /* */ import org.hcfpvp.hcfold.crate.KeyListener;
- /* */ import org.hcfpvp.hcfold.crate.KeyManager;
- /* */ import org.hcfpvp.hcfold.crate.LootExecutor;
- /* */
- /* */ public class HCF extends JavaPlugin
- /* */ {
- /* */ public static File conf;
- /* */ public static FileConfiguration config;
- /* */ private String craftBukkitVersion;
- /* */ private static HCF instance;
- /* */
- /* */ public HCF()
- /* */ {
- /* 180 */ this.random = new Random();
- /* */ }
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* 190 */ public static String scrub = "http://pastebin.com/raw/cMptHipd";
- /* */ private CombatLogListener combatLogListener;
- /* */ private ConfigurationService configuration;
- /* */ private CoreListener core;
- /* */
- /* */ public static HCF getPlugin()
- /* */ {
- /* 197 */ return plugin;
- /* */ }
- /* */
- /* */ public static HCF getInstance()
- /* */ {
- /* 202 */ return instance;
- /* */ }
- /* */
- /* */ public static String getReaming(long millis)
- /* */ {
- /* 207 */ return getRemaining(millis, true, true);
- /* */ }
- /* */
- /* */ public String getCraftBukkitVersion()
- /* */ {
- /* 212 */ return this.craftBukkitVersion;
- /* */ }
- /* */
- /* */ public static String getRemaining(long millis, boolean milliseconds)
- /* */ {
- /* 217 */ return getRemaining(millis, milliseconds, true);
- /* */ }
- /* */
- /* */ public static String getRemaining(long duration, boolean milliseconds, boolean trail)
- /* */ {
- /* 222 */ if ((milliseconds) && (duration < MINUTE)) {
- /* 223 */ return ((DecimalFormat)(trail ? DateTimeFormats.REMAINING_SECONDS_TRAILING : DateTimeFormats.REMAINING_SECONDS).get()).format(duration * 0.001D) + 's';
- /* */ }
- /* 225 */ return DurationFormatUtils.formatDuration(duration, (duration >= HOUR ? "HH:" : "") + "mm:ss");
- /* */ }
- /* */
- /* */ public void onEnable()
- /* */ {
- /* 230 */ plugin = this;
- /* */
- /* 232 */ BasePlugins.getPlugin().init(this);
- /* */
- /* 234 */ config = getConfig();
- /* 235 */ config.options().copyDefaults(true);
- /* 236 */ saveConfig();
- /* 237 */ conf = new File(getDataFolder(), "config.yml");
- /* */
- /* 239 */ WorldData.getInstance().setup(this);
- /* 240 */ PlayerData.getInstance().setup(this);
- /* 241 */ PotionLimiterData.getInstance().setup(this);
- /* 242 */ PotionLimitListener.init();
- /* */
- /* 244 */ ProtocolLibHook.hook(this);
- /* 245 */ CustomEntityRegistration.registerCustomEntities();
- /* 246 */ Plugin wep = Bukkit.getPluginManager().getPlugin("WorldEdit");
- /* */
- /* 248 */ this.craftBukkitVersion = Bukkit.getServer().getClass().getPackage().getName().split("\\.")[3];
- /* 249 */ this.worldEdit = (((wep instanceof WorldEditPlugin)) && (wep.isEnabled()) ? (WorldEditPlugin)wep : null);
- /* */
- /* 251 */ registerConfiguration();
- /* 252 */ registerCommands();
- /* 253 */ registerManagers();
- /* 254 */ registerListeners();
- /* */
- /* 256 */ runRegisterCore();
- /* */
- /* 258 */ Cooldowns.createCooldown("Assassin_item_cooldown");
- /* 259 */ Cooldowns.createCooldown("Archer_item_cooldown");
- /* 260 */ Cooldowns.createCooldown("revive_cooldown");
- /* 261 */ Cooldowns.createCooldown("report_cooldown");
- /* 262 */ Cooldowns.createCooldown("helpop_cooldown");
- /* 263 */ new BukkitRunnable()
- /* */ {
- /* */ public void run()
- /* */ {
- /* 267 */ HCF.this.saveData();
- /* */ }
- /* 269 */ }.runTaskTimerAsynchronously(plugin, TimeUnit.SECONDS.toMillis(20L), TimeUnit.SECONDS.toMillis(20L));
- /* */ }
- /* */
- /* */ private void runRegisterCore() {
- /* 273 */ PluginManager manager = Bukkit.getPluginManager();
- /* */ }
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */ private void saveData()
- /* */ {
- /* 283 */ this.economyManager.saveEconomyData();
- /* 284 */ this.factionManager.saveFactionData();
- /* 285 */ this.keyManager.saveKeyData();
- /* 286 */ this.userManager.saveUserData();
- /* */ }
- /* */
- /* */ public void onDisable() {
- /* 290 */ CombatLogListener.removeCombatLoggers();
- /* 291 */ this.pvpClassManager.onDisable();
- /* 292 */ CustomEntityRegistration.unregisterCustomEntities();
- /* 293 */ CombatLogListener.removeCombatLoggers();
- /* 294 */ this.scoreboardHandler.clearBoards();
- /* 295 */ saveData();
- /* 296 */ plugin = null;
- /* */ }
- /* */
- /* */ private void registerConfiguration()
- /* */ {
- /* 301 */ ConfigurationSerialization.registerClass(CaptureZone.class);
- /* 303 */ ConfigurationSerialization.registerClass(Claim.class);
- /* 304 */ ConfigurationSerialization.registerClass(Subclaim.class);
- /* 306 */ ConfigurationSerialization.registerClass(FactionUser.class);
- /* 307 */ ConfigurationSerialization.registerClass(ClaimableFaction.class);
- /* 308 */ ConfigurationSerialization.registerClass(ConquestFaction.class);
- /* 309 */ ConfigurationSerialization.registerClass(CapturableFaction.class);
- /* 310 */ ConfigurationSerialization.registerClass(KothFaction.class);
- /* 311 */ ConfigurationSerialization.registerClass(EndPortalFaction.class);
- /* 312 */ ConfigurationSerialization.registerClass(Faction.class);
- /* 313 */ ConfigurationSerialization.registerClass(FactionMember.class);
- /* 314 */ ConfigurationSerialization.registerClass(PlayerFaction.class);
- /* 315 */ ConfigurationSerialization.registerClass(RoadFaction.class);
- /* 316 */ ConfigurationSerialization.registerClass(SpawnFaction.class);
- /* 317 */ ConfigurationSerialization.registerClass(RoadFaction.NorthRoadFaction.class);
- /* 318 */ ConfigurationSerialization.registerClass(RoadFaction.EastRoadFaction.class);
- /* 319 */ ConfigurationSerialization.registerClass(RoadFaction.SouthRoadFaction.class);
- /* 320 */ ConfigurationSerialization.registerClass(RoadFaction.WestRoadFaction.class);
- /* */ }
- /* */
- /* */ private void registerListeners()
- /* */ {
- /* 325 */ PluginManager manager = getServer().getPluginManager();
- /* 326 */ manager.registerEvents(new NoteListener(), this);
- /* 327 */ manager.registerEvents(new OreStatsCommand(), this);
- /* 328 */ manager.registerEvents(new GodListener(), this);
- /* 329 */ manager.registerEvents(new VanishListener(), this);
- /* 330 */ manager.registerEvents(new StaffChatListener(), this);
- /* 331 */ manager.registerEvents(new ArcherClass(this), this);
- /* 332 */ manager.registerEvents(new KeyListener(this), this);
- /* 333 */ manager.registerEvents(new PortalListener(this), this);
- /* 334 */ manager.registerEvents(new WeatherFixListener(), this);
- /* 335 */ manager.registerEvents(new NoPermissionClickListener(), this);
- /* 336 */ manager.registerEvents(new AutoSmeltOreListener(), this);
- /* 337 */ manager.registerEvents(new BlockHitFixListener(), this);
- /* 338 */ manager.registerEvents(new BlockJumpGlitchFixListener(), this);
- /* 339 */ manager.registerEvents(new BoatGlitchFixListener(), this);
- /* 340 */ manager.registerEvents(new BookDeenchantListener(), this);
- /* 341 */ manager.registerEvents(new BorderListener(), this);
- /* 342 */ manager.registerEvents(new BottledExpListener(), this);
- /* 343 */ manager.registerEvents(new ChatListener(this), this);
- /* 344 */ manager.registerEvents(new ClaimWandListener(this), this);
- /* 345 */ manager.registerEvents(new CombatLogListener(this), this);
- /* 346 */ manager.registerEvents(new CoreListener(this), this);
- /* 347 */ manager.registerEvents(new CrowbarListener(this), this);
- /* 348 */ manager.registerEvents(new DeathListener(this), this);
- /* 349 */ manager.registerEvents(new ElevatorListener(), this);
- /* 350 */ manager.registerEvents(new DeathMessageListener(this), this);
- /* 351 */ manager.registerEvents(new RefundCommand(this), this);
- /* 353 */ manager.registerEvents(new EnchantLimitListener(), this);
- /* 354 */ manager.registerEvents(new EnderChestRemovalListener(), this);
- /* 355 */ manager.registerEvents(new FlatFileFactionManager(this), this);
- /* 356 */ manager.registerEvents(new EotwListener(this), this);
- /* 357 */ manager.registerEvents(new EventSignListener(), this);
- /* 359 */ manager.registerEvents(new ExpMultiplierListener(), this);
- /* 360 */ manager.registerEvents(new FactionListener(this), this);
- /* 361 */ manager.registerEvents(this.foundDiamondsListener = new FoundDiamondsListener(this), this);
- /* 362 */ manager.registerEvents(new FurnaceSmeltSpeederListener(), this);
- /* 363 */ manager.registerEvents(new InfinityArrowFixListener(), this);
- /* 364 */ manager.registerEvents(new ItemStatTrackingListener(), this);
- /* 365 */ manager.registerEvents(new ServerSecurityListener(), this);
- /* 366 */ manager.registerEvents(new HungerFixListener(), this);
- /* 367 */ manager.registerEvents(new PearlGlitchListener(this), this);
- /* 368 */ manager.registerEvents(new PotionLimitListener(), this);
- /* 369 */ manager.registerEvents(new FactionsCoreListener(this), this);
- /* 370 */ manager.registerEvents(new SignSubclaimListener(this), this);
- /* 371 */ manager.registerEvents(new ShopSignListener(this), this);
- /* 372 */ manager.registerEvents(new SkullListener(), this);
- /* 373 */ manager.registerEvents(new BeaconStrengthFixListener(), this);
- /* 374 */ manager.registerEvents(new VoidGlitchFixListener(), this);
- /* 375 */ manager.registerEvents(new WallBorderListener(this), this);
- /* 376 */ manager.registerEvents(new WorldListener(this), this);
- /* 377 */ manager.registerEvents(new UnRepairableListener(), this);
- /* 378 */ manager.registerEvents(new StaffModeListener(), this);
- /* */ }
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */ private void registerCommands()
- /* */ {
- /* 422 */ getCommand("note").setExecutor(new NoteCommand());
- /* 423 */ getCommand("list").setExecutor(new ListCommand());
- /* 424 */ getCommand("setborder").setExecutor(new SetBorderCommand());
- /* 425 */ getCommand("freeze").setExecutor(new FreezeCommand(this));
- /* 426 */ getCommand("staffrevive").setExecutor(new StaffReviveCommand(this));
- /* 427 */ getCommand("lag").setExecutor(new LagCommand());
- /* 428 */ getCommand("broadcast").setExecutor(new BroadCastCommand());
- /* 429 */ getCommand("togglemessage").setExecutor(new ToggleMessageCommand());
- /* 430 */ getCommand("reply").setExecutor(new ReplyCommand());
- /* 431 */ getCommand("message").setExecutor(new MessageCommand());
- /* 432 */ getCommand("feed").setExecutor(new FeedCommand());
- /* 433 */ getCommand("ping").setExecutor(new PingCommand());
- /* 434 */ getCommand("teleportall").setExecutor(new TeleportAllCommand());
- /* 435 */ getCommand("teleporthere").setExecutor(new TeleportHereCommand());
- /* 436 */ getCommand("give").setExecutor(new GiveCommand());
- /* 437 */ getCommand("gamemode").setExecutor(new GameModeCommand());
- /* 438 */ getCommand("item").setExecutor(new ItemCommand());
- /* 439 */ getCommand("fly").setExecutor(new FlyCommand());
- /* 440 */ getCommand("invsee").setExecutor(new InvSeeCommand(this));
- /* 441 */ getCommand("god").setExecutor(new GodCommand());
- /* 442 */ getCommand("vanish").setExecutor(new VanishCommand());
- /* 443 */ getCommand("sotw").setExecutor(new SotwCommand(this));
- /* 444 */ getCommand("random").setExecutor(new RandomCommand(this));
- /* 445 */ getCommand("conquest").setExecutor(new ConquestExecutor(this));
- /* 446 */ getCommand("crowbar").setExecutor(new CrowbarCommand());
- /* 447 */ getCommand("economy").setExecutor(new EconomyCommand(this));
- /* 448 */ getCommand("eotw").setExecutor(new EotwCommand(this));
- /* 449 */ getCommand("event").setExecutor(new EventExecutor(this));
- /* 450 */ getCommand("faction").setExecutor(new FactionExecutor(this));
- /* 451 */ getCommand("gopple").setExecutor(new GoppleCommand(this));
- /* 452 */ getCommand("koth").setExecutor(new KothExecutor(this));
- /* 454 */ getCommand("logout").setExecutor(new LogoutCommand(this));
- /* 455 */ getCommand("pay").setExecutor(new PayCommand(this));
- /* 456 */ getCommand("pvptimer").setExecutor(new PvpTimerCommand(this));
- /* 457 */ getCommand("refund").setExecutor(new RefundCommand(this));
- /* 458 */ getCommand("spawn").setExecutor(new SpawnCommand(this));
- /* 459 */ getCommand("timer").setExecutor(new TimerExecutor(this));
- /* 460 */ getCommand("ores").setExecutor(new OreStatsCommand());
- /* 461 */ getCommand("key").setExecutor(new LootExecutor(this));
- /* 462 */ getCommand("help").setExecutor(new HelpCommand());
- /* 463 */ getCommand("teamspeak").setExecutor(new TeamspeakCommand());
- /* 464 */ getCommand("coords").setExecutor(new CoordsCommand());
- /* 465 */ getCommand("gmc").setExecutor(new GMCCommand());
- /* 466 */ getCommand("gms").setExecutor(new GMSCommand());
- /* 467 */ getCommand("report").setExecutor(new ReportCommand());
- /* 468 */ getCommand("helpop").setExecutor(new HelpopCommand());
- /* 469 */ getCommand("mapkit").setExecutor(new MapKitCommand(this));
- /* 470 */ getCommand("medic").setExecutor(new DonatorReviveCommand(this));
- /* 471 */ getCommand("setmaxplayers").setExecutor(new SetMaxPlayersCommand());
- /* */
- /* 473 */ getCommand("staffmode").setExecutor(new StaffModeCommand());
- /* 474 */ getCommand("spawner").setExecutor(new SpawnerCommand(this));
- /* 475 */ getCommand("set").setExecutor(new SetCommand(this));
- /* 476 */ getCommand("clear").setExecutor(new ClearCommand());
- /* 477 */ getCommand("teleport").setExecutor(new TeleportCommand());
- /* 478 */ getCommand("staffchat").setExecutor(new StaffChatCommand());
- /* */
- /* 480 */ Map<String, Map<String, Object>> map = getDescription().getCommands();
- /* 481 */ for (Map.Entry<String, Map<String, Object>> entry : map.entrySet())
- /* */ {
- /* 483 */ PluginCommand command = getCommand((String)entry.getKey());
- /* 484 */ command.setPermission("command." + (String)entry.getKey());
- /* 485 */ command.setPermissionMessage(ChatColor.RED + "You do not have permission for this command.");
- /* */ }
- /* */ }
- /* */
- /* */ private void registerManagers()
- /* */ {
- /* 491 */ this.claimHandler = new ClaimHandler(this);
- /* 493 */ this.economyManager = new FlatFileEconomyManager(this);
- /* 494 */ this.eotwHandler = new EOTWHandler(this);
- /* 495 */ this.eventScheduler = new EventScheduler(this);
- /* 496 */ this.factionManager = new FlatFileFactionManager(this);
- /* 497 */ this.pvpClassManager = new PvpClassManager(this);
- /* 498 */ this.timerManager = new TimerManager(this);
- /* 499 */ this.scoreboardHandler = new ScoreboardHandler(this);
- /* 500 */ this.userManager = new UserManager(this);
- /* 501 */ this.visualiseHandler = new VisualiseHandler();
- /* 502 */ this.sotwTimer = new SotwTimer();
- /* 503 */ this.keyManager = new KeyManager(this);
- /* 504 */ this.message = new Message(this);
- /* */ }
- /* */
- /* */ public Message getMessage()
- /* */ {
- /* 509 */ return this.message;
- /* */ }
- /* */
- /* */ public Random getRandom()
- /* */ {
- /* 514 */ return this.random;
- /* */ }
- /* */
- /* */ public WorldEditPlugin getWorldEdit()
- /* */ {
- /* 519 */ return this.worldEdit;
- /* */ }
- /* */
- /* */ public KeyManager getKeyManager()
- /* */ {
- /* 524 */ return this.keyManager;
- /* */ }
- /* */
- /* */ public ClaimHandler getClaimHandler()
- /* */ {
- /* 529 */ return this.claimHandler;
- /* */ }
- /* */
- /* */ public SotwTimer getSotwTimer() {
- /* 533 */ return this.sotwTimer;
- /* */ }
- /* */
- /* */
- /* */ public ConfigurationService getConfiguration()
- /* */ {
- /* 539 */ return this.configuration;
- /* */ }
- /* */
- /* */ public VanishListener getVanish() {
- /* 548 */ return this.vanish;
- /* */ }
- /* */
- /* */ public EconomyManager getEconomyManager()
- /* */ {
- /* 553 */ return this.economyManager;
- /* */ }
- /* */
- /* */ public EOTWHandler getEotwHandler()
- /* */ {
- /* 558 */ return this.eotwHandler;
- /* */ }
- /* */
- /* */ public FactionManager getFactionManager()
- /* */ {
- /* 563 */ return this.factionManager;
- /* */ }
- /* */
- /* */ public PvpClassManager getPvpClassManager()
- /* */ {
- /* 568 */ return this.pvpClassManager;
- /* */ }
- /* */
- /* */
- /* */ public ScoreboardHandler getScoreboardHandler()
- /* */ {
- /* 574 */ return this.scoreboardHandler;
- /* */ }
- /* */
- /* */ public TimerManager getTimerManager()
- /* */ {
- /* 579 */ return this.timerManager;
- /* */ }
- /* */
- /* */ public UserManager getUserManager()
- /* */ {
- /* 584 */ return this.userManager;
- /* */ }
- /* */
- /* */ public VisualiseHandler getVisualiseHandler()
- /* */ {
- /* 589 */ return this.visualiseHandler;
- /* */ }
- /* */
- /* 592 */ private static final long MINUTE = TimeUnit.MINUTES.toMillis(1L);
- /* 593 */ private static final long HOUR = TimeUnit.HOURS.toMillis(1L);
- /* */ private static HCF plugin;
- /* */ public static Plugin pl;
- /* */ private Message message;
- /* */ public EventScheduler eventScheduler;
- /* */ private Random random;
- /* */ private WorldEditPlugin worldEdit;
- /* */ private FoundDiamondsListener foundDiamondsListener;
- /* */ private ClaimHandler claimHandler;
- /* */ private KeyManager keyManager;
- /* */ private EconomyManager economyManager;
- /* */ private EOTWHandler eotwHandler;
- /* */ private FactionManager factionManager;
- /* */ private PvpClassManager pvpClassManager;
- /* */ private VanishListener vanish;
- /* */ private ScoreboardHandler scoreboardHandler;
- /* */ private SotwTimer sotwTimer;
- /* */ private TimerManager timerManager;
- /* */ private UserManager userManager;
- /* */ private VisualiseHandler visualiseHandler;
- /* */ }
- /* Location: C:\Users\Zach\Desktop\HCF.jar!\org\hcfpvp\hcf\HCF.class
- * Java compiler version: 8 (52.0)
- * JD-Core Version: 0.7.1
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement