Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.01 KB | None | 0 0
  1.  
  2. import org.bukkit.plugin.java.*;
  3. import org.bukkit.event.*;
  4. import org.bukkit.configuration.file.*;
  5. import org.bukkit.command.*;
  6. import de.server.teamler.cmds.*;
  7. import eu.lequitfreezy.falcionsystem.clearlag.*;
  8. import org.bukkit.plugin.*;
  9. import de.server.verknpf.*;
  10. import de.server.events.*;
  11. import eu.lequitfreezy.falcionsystem.globalmute.*;
  12. import com.comphenix.protocol.*;
  13. import eu.lequitfreezy.falcionsystem.enterhaken.*;
  14. import eu.lequitfreezy.falcionsystem.rangcmd.*;
  15. import eu.lequitfreezy.falcionsystem.coloredsigns.*;
  16. import eu.lequitfreezy.falcionsystem.titleapi.*;
  17. import eu.lequitfreezy.falcionsystem.antiplugin.*;
  18. import java.io.*;
  19. import org.bukkit.*;
  20. import java.util.*;
  21. import eu.lequitfreezy.falcionsystem.verify.*;
  22. import eu.lequitfreezy.falcionsystem.main.*;
  23. import eu.lequitfreezy.falcionsystem.anticrash.*;
  24. import org.bukkit.entity.*;
  25. import org.bukkit.scheduler.*;
  26.  
  27. public class main extends JavaPlugin implements Listener
  28. {
  29. private static main plugin;
  30. public static HashMap<String, String> messages;
  31. public static ArrayList<String> onlineplayers;
  32. private boolean isglobalmute;
  33. private static main instance;
  34. public ProtocolManager protocolManager;
  35. public static File file;
  36. public static YamlConfiguration cfg;
  37. public static File file2;
  38. public static YamlConfiguration cfg2;
  39. private MySQL mySQL;
  40. private File file1;
  41. private FileConfiguration configuration;
  42. private static String verifyTag;
  43. private static String unVerifyTag;
  44.  
  45. static {
  46. main.messages = new HashMap<String, String>();
  47. main.onlineplayers = new ArrayList<String>();
  48. main.file = new File("plugins//FalcionSystem//ActionBar//config.yml");
  49. main.cfg = YamlConfiguration.loadConfiguration(main.file);
  50. main.file2 = new File("plugins//FalcionSystem//YouTube//messages.yml");
  51. main.cfg2 = YamlConfiguration.loadConfiguration(main.file2);
  52. }
  53.  
  54. public main() {
  55. this.file1 = new File("plugins//FalcionSystem//TSVerify-Tag//config.yml");
  56. this.configuration = (FileConfiguration)YamlConfiguration.loadConfiguration(main.file);
  57. }
  58.  
  59. public static main getPlugin() {
  60. return main.plugin;
  61. }
  62.  
  63. public void onEnable() {
  64. this.getCommand("CW").setExecutor((CommandExecutor)new CW_CMD());
  65. this.getCommand("Commandwatch").setExecutor((CommandExecutor)new CW_CMD());
  66. this.getCommand("TP").setExecutor((CommandExecutor)new TP_CMD());
  67. this.getCommand("Teleport").setExecutor((CommandExecutor)new TP_CMD());
  68. this.getCommand("TPH").setExecutor((CommandExecutor)new TP_CMD());
  69. this.getCommand("Tphere").setExecutor((CommandExecutor)new TP_CMD());
  70. this.getCommand("TPtoggle").setExecutor((CommandExecutor)new TP_CMD());
  71. this.getCommand("ICC").setExecutor((CommandExecutor)new ClearChat());
  72. this.getCommand("Nacht").setExecutor((CommandExecutor)new NACHT_CMD());
  73. this.getCommand("Tag").setExecutor((CommandExecutor)new TAG_CMD());
  74. this.getCommand("MSG").setExecutor((CommandExecutor)new MSG_CMD());
  75. this.getCommand("Gamemode").setExecutor((CommandExecutor)new GAMEMODE_CMD());
  76. this.getCommand("GM").setExecutor((CommandExecutor)new GAMEMODE_CMD());
  77. this.getCommand("EC").setExecutor((CommandExecutor)new EC_CMD());
  78. this.getCommand("Enderchest").setExecutor((CommandExecutor)new EC_CMD());
  79. this.getCommand("CI").setExecutor((CommandExecutor)new INV_CLEAR_CMD());
  80. this.getCommand("Clear").setExecutor((CommandExecutor)new INV_CLEAR_CMD());
  81. this.getCommand("Rename").setExecutor((CommandExecutor)new RENAME_CMD());
  82. this.getCommand("Repair").setExecutor((CommandExecutor)new REPAIR_CMD());
  83. this.getCommand("Invsee").setExecutor((CommandExecutor)new INVSEE_CMD());
  84. this.getCommand("clearlag").setExecutor((CommandExecutor)new ClearLag());
  85. Bukkit.getPluginManager().registerEvents((Listener)new To_CW_CMD(), (Plugin)this);
  86. Bukkit.getPluginManager().registerEvents((Listener)new To_CHAT_CMD(), (Plugin)this);
  87. Bukkit.getPluginManager().registerEvents((Listener)new IPTrack_Event((Plugin)this), (Plugin)this);
  88. Bukkit.getPluginManager().registerEvents((Listener)new JoinQuitMotd_Event(), (Plugin)this);
  89. Bukkit.getPluginManager().registerEvents((Listener)new OreGenerator(), (Plugin)this);
  90. this.LoadConfig();
  91. this.LoadConfig_Settinsg();
  92. this.getCommand("yt").setExecutor((CommandExecutor)new YouTube());
  93. this.getCommand("teamchat").setExecutor((CommandExecutor)new TeamChat());
  94. this.getCommand("ts").setExecutor((CommandExecutor)new TeamSpeak());
  95. this.getCommand("clearchat").setExecutor((CommandExecutor)new ClearChat());
  96. this.getCommand("setspawn").setExecutor((CommandExecutor)new Setspawn());
  97. this.getCommand("spawn").setExecutor((CommandExecutor)new Spawn());
  98. this.getCommand("vanish").setExecutor((CommandExecutor)new Vanish());
  99. this.getCommand("broadcast").setExecutor((CommandExecutor)new Broadcast());
  100. this.getCommand("fly").setExecutor((CommandExecutor)new Fly());
  101. this.getCommand("kopf").setExecutor((CommandExecutor)new Kopf());
  102. this.getCommand("feed").setExecutor((CommandExecutor)new Feed());
  103. this.getCommand("heal").setExecutor((CommandExecutor)new Feed());
  104. this.getCommand("teamhelp").setExecutor((CommandExecutor)new Teamhelp());
  105. this.getCommand("warps").setExecutor((CommandExecutor)new WarpList());
  106. this.getCommand("kick").setExecutor((CommandExecutor)new Kick());
  107. this.getCommand("bewerben").setExecutor((CommandExecutor)new Bewerbung());
  108. this.getCommand("cock").setExecutor((CommandExecutor)new Cock());
  109. this.getCommand("ping").setExecutor((CommandExecutor)new Ping());
  110. this.getCommand("store").setExecutor((CommandExecutor)new Store());
  111. this.getCommand("falke").setExecutor((CommandExecutor)new Store());
  112. this.getCommand("premium").setExecutor((CommandExecutor)new Store());
  113. this.getCommand("help").setExecutor((CommandExecutor)new Help());
  114. this.getCommand("rang").setExecutor((CommandExecutor)new RangSystem());
  115. this.getCommand("action1").setExecutor((CommandExecutor)new TitleCMD());
  116. this.getCommand("action2").setExecutor((CommandExecutor)new TitleCMD());
  117. this.getCommand("action3").setExecutor((CommandExecutor)new TitleCMD());
  118. this.getCommand("action4").setExecutor((CommandExecutor)new TitleCMD());
  119. this.getCommand("action5").setExecutor((CommandExecutor)new TitleCMD());
  120. this.getCommand("action6").setExecutor((CommandExecutor)new TitleCMD());
  121. this.getCommand("action7").setExecutor((CommandExecutor)new TitleCMD());
  122. this.getCommand("action8").setExecutor((CommandExecutor)new TitleCMD());
  123. this.getCommand("action9").setExecutor((CommandExecutor)new TitleCMD());
  124. this.getCommand("action10").setExecutor((CommandExecutor)new TitleCMD());
  125. this.isglobalmute = false;
  126. this.getCommand("globalmute").setExecutor((CommandExecutor)new GlobalMute_CMD());
  127. Bukkit.getPluginManager().registerEvents((Listener)new Message_LISTENER(), (Plugin)this);
  128. main.instance = this;
  129. this.protocolManager = ProtocolLibrary.getProtocolManager();
  130. this.initPrevents();
  131. Bukkit.getPluginManager().registerEvents((Listener)new GrapplingHook(), (Plugin)this);
  132. Bukkit.getPluginManager().registerEvents((Listener)new JoinQuitRang(), (Plugin)this);
  133. Bukkit.getPluginManager().registerEvents((Listener)new WrongCommand(), (Plugin)this);
  134. Bukkit.getPluginManager().registerEvents((Listener)new ColorSigns(), (Plugin)this);
  135. Bukkit.getPluginManager().registerEvents((Listener)new TitleAPI(), (Plugin)this);
  136. Bukkit.getPluginManager().registerEvents((Listener)new AntiPL_Listener(), (Plugin)this);
  137. main.cfg.options().header("====================\nProgrammiert mit: ActionBarAPI-1.5.4\n====================");
  138. main.cfg.options().copyHeader();
  139. main.cfg.addDefault("ActionBar.CMD1", (Object)"&7Updates: &b&l+System recode!");
  140. main.cfg.addDefault("ActionBar.CMD2", (Object)"&7Updates: &c&l+System recode!");
  141. main.cfg.addDefault("ActionBar.CMD3", (Object)"&7Updates: &e&l+System recode!");
  142. main.cfg.addDefault("ActionBar.CMD4", (Object)"&7Updates: &3&l+System recode!");
  143. main.cfg.addDefault("ActionBar.CMD5", (Object)"&7Updates: &4&l+System recode!");
  144. main.cfg.addDefault("ActionBar.CMD6", (Object)"&7Updates: &5&l+System recode!");
  145. main.cfg.addDefault("ActionBar.CMD7", (Object)"&7Updates: &6&l+System recode!");
  146. main.cfg.addDefault("ActionBar.CMD8", (Object)"&7Updates: &1&l+System recode!");
  147. main.cfg.addDefault("ActionBar.CMD9", (Object)"&7Updates: &9&l+System recode!");
  148. main.cfg.addDefault("ActionBar.CMD10", (Object)"&7Updates: &a&l+System recode!");
  149. main.cfg.options().copyDefaults(true);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement