Advertisement
Guest User

Untitled

a guest
Apr 16th, 2017
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 62.60 KB | None | 0 0
  1. /* */ package me.MrBambusCZ.Lobby;
  2. /* */
  3. /* */ import com.google.common.io.ByteArrayDataOutput;
  4. /* */ import com.google.common.io.ByteStreams;
  5. /* */ import java.io.ByteArrayOutputStream;
  6. /* */ import java.io.DataOutputStream;
  7. /* */ import java.util.ArrayList;
  8. /* */ import java.util.HashMap;
  9. /* */ import java.util.Map;
  10. /* */ import org.bukkit.Bukkit;
  11. /* */ import org.bukkit.DyeColor;
  12. /* */ import org.bukkit.Material;
  13. /* */ import org.bukkit.Server;
  14. /* */ import org.bukkit.command.Command;
  15. /* */ import org.bukkit.command.CommandSender;
  16. /* */ import org.bukkit.configuration.Configuration;
  17. /* */ import org.bukkit.entity.Player;
  18. /* */ import org.bukkit.event.Listener;
  19. /* */ import org.bukkit.inventory.Inventory;
  20. /* */ import org.bukkit.inventory.ItemFlag;
  21. /* */ import org.bukkit.inventory.ItemStack;
  22. /* */ import org.bukkit.inventory.meta.ItemMeta;
  23. /* */ import org.bukkit.plugin.PluginManager;
  24. /* */ import org.bukkit.plugin.java.JavaPlugin;
  25. /* */ import org.bukkit.plugin.messaging.Messenger;
  26. /* */ import org.bukkit.scoreboard.Scoreboard;
  27. /* */
  28. /* */
  29. /* */
  30. /* */
  31. /* */
  32. /* */
  33. /* */
  34. /* */
  35. /* */
  36. /* */
  37. /* */
  38. /* */
  39. /* */
  40. /* */
  41. /* */
  42. /* */ public class Lobby
  43. /* */ extends JavaPlugin
  44. /* */ implements Listener
  45. /* */ {
  46. /* */ private ConfigManager configManager;
  47. /* */ private Timing timer;
  48. /* */ public static Lobby lb;
  49. /* 49 */ private Map<String, Scoreboard> playerScoreboards = new HashMap();
  50. /* */ private PListener plistener;
  51. /* 51 */ static ArrayList<String> A = new ArrayList();
  52. /* 52 */ private static ByteArrayOutputStream b = new ByteArrayOutputStream();
  53. /* 53 */ private static DataOutputStream out = new DataOutputStream(b);
  54. /* 54 */ public boolean loteries = true;
  55. /* */
  56. /* 56 */ public void onEnable() { PluginManager pm = getServer().getPluginManager();
  57. /* 57 */ Bukkit.getMessenger().registerOutgoingPluginChannel(this, "BungeeCord");
  58. /* 58 */ this.configManager = new ConfigManager(this);
  59. /* 59 */ this.configManager.loadConfigFiles(new String[] { "config.yml" });
  60. /* 60 */ getServer().getPluginManager().registerEvents(this, this);
  61. /* 61 */ Configuration config = this.configManager.getConfig("config.yml");
  62. /* 62 */ String host = config.getString("MySQL.host");
  63. /* 63 */ Integer port = Integer.valueOf(config.getInt("MySQL.port"));
  64. /* 64 */ String name = config.getString("MySQL.name");
  65. /* 65 */ String user = config.getString("MySQL.user");
  66. /* 66 */ String pass = config.getString("MySQL.pass");
  67. /* 67 */ Coins.connect(host, port, user, pass, name);
  68. /* 68 */ AnniSQL.connect(host, port, user, pass, name);
  69. /* 69 */ JumpLeagueSQL.connect(host, port, user, pass, name);
  70. /* 70 */ OP.connect(host, port, user, pass, name);
  71. /* 71 */ UHCSQL.connect(host, port, user, pass, name);
  72. /* */
  73. /* */
  74. /* 74 */ this.timer = new Timing(this, 0);
  75. /* 75 */ this.timer.start();
  76. /* 76 */ new AnniMenu(this);
  77. /* 77 */ new PListener(this);
  78. /* 78 */ new AnniShop(this);
  79. /* 79 */ new GameSelect(this);
  80. /* 80 */ new GameATSelect(this);
  81. /* 81 */ new JumpLeagueMenu(this);
  82. /* 82 */ new LobbySelector(this);
  83. /* 83 */ new VIP(this);
  84. /* 84 */ new Profile(this);
  85. /* 85 */ new UHCMenu(this);
  86. /* */ }
  87. /* */
  88. /* */
  89. /* */
  90. /* */
  91. /* */ public void onDisable()
  92. /* */ {
  93. /* 93 */ Coins.closeConnection();
  94. /* */
  95. /* 95 */ AnniSQL.closeConnection();
  96. /* 96 */ JumpLeagueSQL.closeConnection();
  97. /* 97 */ OP.closeConnection();
  98. /* 98 */ UHCSQL.closeConnection();
  99. /* */ }
  100. /* */
  101. /* */ public boolean startTimer()
  102. /* */ {
  103. /* 103 */ if (this.timer.isRunning()) {
  104. /* 104 */ return false;
  105. /* */ }
  106. /* 106 */ this.timer.start();
  107. /* */
  108. /* */
  109. /* 109 */ return true;
  110. /* */ }
  111. /* */
  112. /* */ public void getCount(Player player)
  113. /* */ {
  114. /* 114 */ ByteArrayDataOutput out = ByteStreams.newDataOutput();
  115. /* 115 */ out.writeUTF("PlayerCount");
  116. /* 116 */ out.writeUTF("ALL");
  117. /* */
  118. /* 118 */ player.sendPluginMessage(this, "BungeeCord", out.toByteArray());
  119. /* */ }
  120. /* */
  121. /* */ public boolean onCommand(CommandSender sender, Command cmd, String commmandlabel, String[] args)
  122. /* */ {
  123. /* 123 */ if ((sender instanceof Player)) {
  124. /* 124 */ Player player = (Player)sender;
  125. /* 125 */ if ((args.length == 0) && (cmd.getName().equalsIgnoreCase("annimenu"))) {
  126. /* 126 */ ItemStack anni3 = new ItemStack(Material.WOOL, AnniSQL.getOnlinePlayer("Annihilation"), (short)DyeColor.RED.getData());
  127. /* 127 */ ItemMeta metaanni3 = anni3.getItemMeta();
  128. /* 128 */ metaanni3.setDisplayName("§e§lAnnihilation 1");
  129. /* 129 */ ArrayList<String> anni3lore = new ArrayList();
  130. /* 130 */ anni3lore.add("");
  131. /* 131 */ anni3lore.add("§7Hraci§8: §e" + AnniSQL.getOnlinePlayer("Annihilation"));
  132. /* 132 */ anni3lore.add("§7Faze§8: §e" + AnniSQL.getPhaseInt("Annihilation"));
  133. /* 133 */ anni3lore.add("§7Mapa§8: §e" + AnniSQL.getMap("Annihilation").replace("", ""));
  134. /* 134 */ metaanni3.setLore(anni3lore);
  135. /* 135 */ anni3.setItemMeta(metaanni3);
  136. /* 136 */ ItemStack anni2 = new ItemStack(Material.WOOL, AnniSQL.getOnlinePlayer("Annihilation"), (short)DyeColor.YELLOW.getData());
  137. /* 137 */ ItemMeta metaanni2 = anni2.getItemMeta();
  138. /* 138 */ metaanni2.setDisplayName("§e§lAnnihilation 1");
  139. /* 139 */ ArrayList<String> anni2lore = new ArrayList();
  140. /* 140 */ anni2lore.add("");
  141. /* 141 */ anni2lore.add("§7Hraci§8: §e" + AnniSQL.getOnlinePlayer("Annihilation"));
  142. /* 142 */ anni2lore.add("§7Faze§8: §e" + AnniSQL.getPhaseInt("Annihilation"));
  143. /* 143 */ anni2lore.add("§7Mapa§8: §e" + AnniSQL.getMap("Annihilation").replace("", ""));
  144. /* 144 */ metaanni2.setLore(anni2lore);
  145. /* 145 */ anni2.setItemMeta(metaanni2);
  146. /* 146 */ ItemStack anni1 = new ItemStack(Material.WOOL, AnniSQL.getOnlinePlayer("Annihilation"), (short)DyeColor.GREEN.getData());
  147. /* 147 */ ItemMeta metaanni1 = anni1.getItemMeta();
  148. /* 148 */ metaanni1.setDisplayName("§e§lAnnihilation 1");
  149. /* 149 */ ArrayList<String> anni1lore = new ArrayList();
  150. /* 150 */ anni1lore.add("");
  151. /* 151 */ anni1lore.add("§7Hraci§8: §e" + AnniSQL.getOnlinePlayer("Annihilation"));
  152. /* 152 */ anni1lore.add("§7Faze§8: §e" + AnniSQL.getPhaseInt("Annihilation"));
  153. /* 153 */ anni1lore.add("§7Mapa§8: §e" + AnniSQL.getMap("Annihilation").replace("", ""));
  154. /* 154 */ metaanni1.setLore(anni1lore);
  155. /* 155 */ anni1.setItemMeta(metaanni1);
  156. /* 156 */ ItemStack anni0 = new ItemStack(Material.WOOL, AnniSQL.getOnlinePlayer("Annihilation"), (short)DyeColor.LIGHT_BLUE.getData());
  157. /* 157 */ ItemMeta metaanni0 = anni0.getItemMeta();
  158. /* 158 */ metaanni0.setDisplayName("§e§lAnnihilation 1");
  159. /* 159 */ ArrayList<String> anni0lore = new ArrayList();
  160. /* 160 */ anni0lore.add("");
  161. /* 161 */ anni0lore.add("§7Hraci§8: §e" + AnniSQL.getOnlinePlayer("Annihilation"));
  162. /* 162 */ anni0lore.add("§7Stav§8: §eHlasuje se");
  163. /* 163 */ metaanni0.setLore(anni0lore);
  164. /* 164 */ anni0.setItemMeta(metaanni0);
  165. /* 165 */ ItemStack anni5 = new ItemStack(Material.WOOL, AnniSQL.getOnlinePlayer("Annihilation"), (short)DyeColor.BLACK.getData());
  166. /* 166 */ ItemMeta metaanni5 = anni5.getItemMeta();
  167. /* 167 */ metaanni5.setDisplayName("§e§lAnnihilation 1");
  168. /* 168 */ ArrayList<String> anni5lore = new ArrayList();
  169. /* 169 */ anni5lore.add("");
  170. /* 170 */ anni5lore.add("§7Stav§8: §cRestartuje se");
  171. /* 171 */ metaanni5.setLore(anni5lore);
  172. /* 172 */ anni5.setItemMeta(metaanni5);
  173. /* */
  174. /* */
  175. /* */
  176. /* 176 */ ItemStack anni32 = new ItemStack(Material.WOOL, AnniSQL.getOnlinePlayer("Annihilation2"), (short)DyeColor.RED.getData());
  177. /* 177 */ ItemMeta metaanni32 = anni32.getItemMeta();
  178. /* 178 */ metaanni32.setDisplayName("§e§lAnnihilation 2");
  179. /* 179 */ ArrayList<String> anni32lore = new ArrayList();
  180. /* 180 */ anni32lore.add("");
  181. /* 181 */ anni32lore.add("§7Hraci§8: §e" + AnniSQL.getOnlinePlayer("Annihilation2"));
  182. /* 182 */ anni32lore.add("§7Faze§8: §e" + AnniSQL.getPhaseInt("Annihilation2"));
  183. /* 183 */ anni32lore.add("§7Mapa§8: §e" + AnniSQL.getMap("Annihilation2").replace("", ""));
  184. /* 184 */ metaanni32.setLore(anni32lore);
  185. /* 185 */ anni32.setItemMeta(metaanni32);
  186. /* 186 */ ItemStack anni22 = new ItemStack(Material.WOOL, AnniSQL.getOnlinePlayer("Annihilation2"), (short)DyeColor.YELLOW.getData());
  187. /* 187 */ ItemMeta metaanni22 = anni22.getItemMeta();
  188. /* 188 */ metaanni22.setDisplayName("§e§lAnnihilation 2");
  189. /* 189 */ ArrayList<String> anni22lore = new ArrayList();
  190. /* 190 */ anni22lore.add("");
  191. /* 191 */ anni22lore.add("§7Hraci§8: §e" + AnniSQL.getOnlinePlayer("Annihilation2"));
  192. /* 192 */ anni22lore.add("§7Faze§8: §e" + AnniSQL.getPhaseInt("Annihilation2"));
  193. /* 193 */ anni22lore.add("§7Mapa§8: §e" + AnniSQL.getMap("Annihilation2").replace("", ""));
  194. /* 194 */ metaanni22.setLore(anni22lore);
  195. /* 195 */ anni22.setItemMeta(metaanni22);
  196. /* 196 */ ItemStack anni12 = new ItemStack(Material.WOOL, AnniSQL.getOnlinePlayer("Annihilation2"), (short)DyeColor.GREEN.getData());
  197. /* 197 */ ItemMeta metaanni12 = anni12.getItemMeta();
  198. /* 198 */ metaanni12.setDisplayName("§e§lAnnihilation 2");
  199. /* 199 */ ArrayList<String> anni12lore = new ArrayList();
  200. /* 200 */ anni12lore.add("");
  201. /* 201 */ anni12lore.add("§7Hraci§8: §e" + AnniSQL.getOnlinePlayer("Annihilation2"));
  202. /* 202 */ anni12lore.add("§7Faze§8: §e" + AnniSQL.getPhaseInt("Annihilation2"));
  203. /* 203 */ anni12lore.add("§7Mapa§8: §e" + AnniSQL.getMap("Annihilation2").replace("", ""));
  204. /* 204 */ metaanni12.setLore(anni12lore);
  205. /* 205 */ anni12.setItemMeta(metaanni12);
  206. /* 206 */ ItemStack anni02 = new ItemStack(Material.WOOL, AnniSQL.getOnlinePlayer("Annihilation2"), (short)DyeColor.LIGHT_BLUE.getData());
  207. /* 207 */ ItemMeta metaanni02 = anni02.getItemMeta();
  208. /* 208 */ metaanni02.setDisplayName("§e§lAnnihilation 2");
  209. /* 209 */ ArrayList<String> anni02lore = new ArrayList();
  210. /* 210 */ anni02lore.add("");
  211. /* 211 */ anni02lore.add("§7Hraci§8: §e" + AnniSQL.getOnlinePlayer("Annihilation2"));
  212. /* 212 */ anni02lore.add("§7Stav§8: §eHlasuje se");
  213. /* 213 */ metaanni02.setLore(anni02lore);
  214. /* 214 */ anni02.setItemMeta(metaanni02);
  215. /* 215 */ ItemStack anni52 = new ItemStack(Material.WOOL, AnniSQL.getOnlinePlayer("Annihilation2"), (short)DyeColor.BLACK.getData());
  216. /* 216 */ ItemMeta metaanni52 = anni52.getItemMeta();
  217. /* 217 */ metaanni52.setDisplayName("§e§lAnnihilation 2");
  218. /* 218 */ ArrayList<String> anni52lore = new ArrayList();
  219. /* 219 */ anni52lore.add("");
  220. /* 220 */ anni52lore.add("§7Stav§8: §cRestartuje se");
  221. /* 221 */ metaanni52.setLore(anni52lore);
  222. /* 222 */ anni52.setItemMeta(metaanni52);
  223. /* */
  224. /* */
  225. /* */
  226. /* */
  227. /* 227 */ ItemStack anni33 = new ItemStack(Material.WOOL, AnniSQL.getOnlinePlayer("Annihilation3"), (short)DyeColor.RED.getData());
  228. /* 228 */ ItemMeta metaanni33 = anni33.getItemMeta();
  229. /* 229 */ metaanni33.setDisplayName("§e§lAnnihilation 3");
  230. /* 230 */ ArrayList<String> anni33lore = new ArrayList();
  231. /* 231 */ anni33lore.add("");
  232. /* 232 */ anni33lore.add("§7Hraci§8: §e" + AnniSQL.getOnlinePlayer("Annihilation3"));
  233. /* 233 */ anni33lore.add("§7Faze§8: §e" + AnniSQL.getPhaseInt("Annihilation3"));
  234. /* 234 */ anni33lore.add("§7Mapa§8: §e" + AnniSQL.getMap("Annihilation3").replace("", ""));
  235. /* 235 */ metaanni33.setLore(anni33lore);
  236. /* 236 */ anni33.setItemMeta(metaanni33);
  237. /* 237 */ ItemStack anni23 = new ItemStack(Material.WOOL, AnniSQL.getOnlinePlayer("Annihilation3"), (short)DyeColor.YELLOW.getData());
  238. /* 238 */ ItemMeta metaanni23 = anni23.getItemMeta();
  239. /* 239 */ metaanni23.setDisplayName("§e§lAnnihilation 3");
  240. /* 240 */ ArrayList<String> anni23lore = new ArrayList();
  241. /* 241 */ anni23lore.add("");
  242. /* 242 */ anni23lore.add("§7Hraci§8: §e" + AnniSQL.getOnlinePlayer("Annihilation3"));
  243. /* 243 */ anni23lore.add("§7Faze§8: §e" + AnniSQL.getPhaseInt("Annihilation3"));
  244. /* 244 */ anni23lore.add("§7Mapa§8: §e" + AnniSQL.getMap("Annihilation3").replace("", ""));
  245. /* 245 */ metaanni23.setLore(anni23lore);
  246. /* 246 */ anni23.setItemMeta(metaanni23);
  247. /* 247 */ ItemStack anni13 = new ItemStack(Material.WOOL, AnniSQL.getOnlinePlayer("Annihilation3"), (short)DyeColor.GREEN.getData());
  248. /* 248 */ ItemMeta metaanni13 = anni13.getItemMeta();
  249. /* 249 */ metaanni13.setDisplayName("§e§lAnnihilation 3");
  250. /* 250 */ ArrayList<String> anni13lore = new ArrayList();
  251. /* 251 */ anni13lore.add("");
  252. /* 252 */ anni13lore.add("§7Hraci§8: §e" + AnniSQL.getOnlinePlayer("Annihilation3"));
  253. /* 253 */ anni13lore.add("§7Faze§8: §e" + AnniSQL.getPhaseInt("Annihilation3"));
  254. /* 254 */ anni13lore.add("§7Mapa§8: §e" + AnniSQL.getMap("Annihilation3").replace("", ""));
  255. /* 255 */ metaanni13.setLore(anni13lore);
  256. /* 256 */ anni13.setItemMeta(metaanni13);
  257. /* 257 */ ItemStack anni03 = new ItemStack(Material.WOOL, AnniSQL.getOnlinePlayer("Annihilation3"), (short)DyeColor.LIGHT_BLUE.getData());
  258. /* 258 */ ItemMeta metaanni03 = anni03.getItemMeta();
  259. /* 259 */ metaanni03.setDisplayName("§e§lAnnihilation 3");
  260. /* 260 */ ArrayList<String> anni03lore = new ArrayList();
  261. /* 261 */ anni03lore.add("");
  262. /* 262 */ anni03lore.add("§7Hraci§8: §e" + AnniSQL.getOnlinePlayer("Annihilation3"));
  263. /* 263 */ anni03lore.add("§7Stav§8: §eHlasuje se");
  264. /* 264 */ metaanni03.setLore(anni03lore);
  265. /* 265 */ anni03.setItemMeta(metaanni03);
  266. /* 266 */ ItemStack anni53 = new ItemStack(Material.WOOL, AnniSQL.getOnlinePlayer("Annihilation3"), (short)DyeColor.BLACK.getData());
  267. /* 267 */ ItemMeta metaanni53 = anni53.getItemMeta();
  268. /* 268 */ metaanni53.setDisplayName("§e§lAnnihilation 3");
  269. /* 269 */ ArrayList<String> anni53lore = new ArrayList();
  270. /* 270 */ anni53lore.add("");
  271. /* 271 */ anni53lore.add("§7Stav§8: §cRestartuje se");
  272. /* 272 */ metaanni53.setLore(anni53lore);
  273. /* 273 */ anni53.setItemMeta(metaanni53);
  274. /* */
  275. /* */
  276. /* 276 */ if (AnniSQL.getPhaseInt("Annihilation") == -1) {
  277. /* 277 */ AnniMenu.anni.setItem(12, anni5);
  278. /* 278 */ AnniMenu.anni.remove(anni1);
  279. /* 279 */ AnniMenu.anni.remove(anni2);
  280. /* 280 */ AnniMenu.anni.remove(anni3);
  281. /* 281 */ AnniMenu.anni.remove(anni0);
  282. /* */ }
  283. /* 283 */ if (AnniSQL.getPhaseInt("Annihilation2") == -1) {
  284. /* 284 */ AnniMenu.anni.setItem(13, anni52);
  285. /* 285 */ AnniMenu.anni.remove(anni12);
  286. /* 286 */ AnniMenu.anni.remove(anni22);
  287. /* 287 */ AnniMenu.anni.remove(anni32);
  288. /* 288 */ AnniMenu.anni.remove(anni02);
  289. /* */ }
  290. /* 290 */ if (AnniSQL.getPhaseInt("Annihilation3") == -1) {
  291. /* 291 */ AnniMenu.anni.setItem(14, anni53);
  292. /* 292 */ AnniMenu.anni.remove(anni13);
  293. /* 293 */ AnniMenu.anni.remove(anni23);
  294. /* 294 */ AnniMenu.anni.remove(anni33);
  295. /* 295 */ AnniMenu.anni.remove(anni2);
  296. /* */ }
  297. /* */
  298. /* 298 */ if (AnniSQL.getPhaseInt("Annihilation") == 0) {
  299. /* 299 */ AnniMenu.anni.setItem(12, anni0);
  300. /* 300 */ AnniMenu.anni.remove(anni1);
  301. /* 301 */ AnniMenu.anni.remove(anni2);
  302. /* 302 */ AnniMenu.anni.remove(anni3);
  303. /* 303 */ AnniMenu.anni.remove(anni5);
  304. /* */ }
  305. /* 305 */ if (AnniSQL.getPhaseInt("Annihilation2") == 0) {
  306. /* 306 */ AnniMenu.anni.setItem(13, anni02);
  307. /* 307 */ AnniMenu.anni.remove(anni12);
  308. /* 308 */ AnniMenu.anni.remove(anni22);
  309. /* 309 */ AnniMenu.anni.remove(anni32);
  310. /* 310 */ AnniMenu.anni.remove(anni52);
  311. /* */ }
  312. /* 312 */ if (AnniSQL.getPhaseInt("Annihilation3") == 0) {
  313. /* 313 */ AnniMenu.anni.setItem(14, anni03);
  314. /* 314 */ AnniMenu.anni.remove(anni13);
  315. /* 315 */ AnniMenu.anni.remove(anni23);
  316. /* 316 */ AnniMenu.anni.remove(anni33);
  317. /* 317 */ AnniMenu.anni.remove(anni3);
  318. /* */ }
  319. /* */
  320. /* */
  321. /* 321 */ if (AnniSQL.getPhaseInt("Annihilation") == 1) {
  322. /* 322 */ AnniMenu.anni.setItem(12, anni1);
  323. /* 323 */ AnniMenu.anni.remove(anni0);
  324. /* 324 */ AnniMenu.anni.remove(anni2);
  325. /* 325 */ AnniMenu.anni.remove(anni3);
  326. /* */ }
  327. /* 327 */ if (AnniSQL.getPhaseInt("Annihilation2") == 1) {
  328. /* 328 */ AnniMenu.anni.setItem(13, anni12);
  329. /* 329 */ AnniMenu.anni.remove(anni02);
  330. /* 330 */ AnniMenu.anni.remove(anni22);
  331. /* 331 */ AnniMenu.anni.remove(anni32);
  332. /* */ }
  333. /* 333 */ if (AnniSQL.getPhaseInt("Annihilation3") == 1) {
  334. /* 334 */ AnniMenu.anni.setItem(14, anni13);
  335. /* 335 */ AnniMenu.anni.remove(anni03);
  336. /* 336 */ AnniMenu.anni.remove(anni23);
  337. /* 337 */ AnniMenu.anni.remove(anni33);
  338. /* */ }
  339. /* */
  340. /* */
  341. /* 341 */ if (AnniSQL.getPhaseInt("Annihilation") == 2) {
  342. /* 342 */ AnniMenu.anni.setItem(12, anni2);
  343. /* 343 */ AnniMenu.anni.remove(anni0);
  344. /* 344 */ AnniMenu.anni.remove(anni1);
  345. /* 345 */ AnniMenu.anni.remove(anni3);
  346. /* */ }
  347. /* 347 */ if (AnniSQL.getPhaseInt("Annihilation2") == 2) {
  348. /* 348 */ AnniMenu.anni.setItem(13, anni22);
  349. /* 349 */ AnniMenu.anni.remove(anni02);
  350. /* 350 */ AnniMenu.anni.remove(anni12);
  351. /* 351 */ AnniMenu.anni.remove(anni32);
  352. /* */ }
  353. /* 353 */ if (AnniSQL.getPhaseInt("Annihilation3") == 2) {
  354. /* 354 */ AnniMenu.anni.setItem(14, anni23);
  355. /* 355 */ AnniMenu.anni.remove(anni03);
  356. /* 356 */ AnniMenu.anni.remove(anni13);
  357. /* 357 */ AnniMenu.anni.remove(anni33);
  358. /* */ }
  359. /* */
  360. /* */
  361. /* 361 */ if (AnniSQL.getPhaseInt("Annihilation") >= 3) {
  362. /* 362 */ AnniMenu.anni.setItem(12, anni3);
  363. /* 363 */ AnniMenu.anni.remove(anni0);
  364. /* 364 */ AnniMenu.anni.remove(anni1);
  365. /* 365 */ AnniMenu.anni.remove(anni2);
  366. /* */ }
  367. /* 367 */ if (AnniSQL.getPhaseInt("Annihilation2") >= 3) {
  368. /* 368 */ AnniMenu.anni.setItem(13, anni32);
  369. /* 369 */ AnniMenu.anni.remove(anni02);
  370. /* 370 */ AnniMenu.anni.remove(anni12);
  371. /* 371 */ AnniMenu.anni.remove(anni22);
  372. /* */ }
  373. /* 373 */ if (AnniSQL.getPhaseInt("Annihilation3") >= 3) {
  374. /* 374 */ AnniMenu.anni.setItem(14, anni33);
  375. /* 375 */ AnniMenu.anni.remove(anni03);
  376. /* 376 */ AnniMenu.anni.remove(anni13);
  377. /* 377 */ AnniMenu.anni.remove(anni23);
  378. /* */ }
  379. /* */
  380. /* 380 */ player.openInventory(AnniMenu.anni);
  381. /* */ }
  382. /* 382 */ if ((args.length == 0) && (cmd.getName().equalsIgnoreCase("jlmenu"))) {
  383. /* 383 */ player.openInventory(JumpLeagueMenu.jumpLeague);
  384. /* 384 */ ItemStack JumpL1W = new ItemStack(Material.WOOL, JumpLeagueSQL.getOnlinePlayer("JumpLeague1"), (short)DyeColor.LIME.getData());
  385. /* 385 */ ItemMeta JumpL1Wm = JumpL1W.getItemMeta();
  386. /* 386 */ JumpL1Wm.setDisplayName("§e§lJump League 1");
  387. /* 387 */ ArrayList<String> JumpL1Wl = new ArrayList();
  388. /* 388 */ JumpL1Wl.add("");
  389. /* 389 */ JumpL1Wl.add("§7Hraci§8: §e" + JumpLeagueSQL.getOnlinePlayer("JumpLeague1"));
  390. /* 390 */ JumpL1Wl.add("§7Stav§8: §eCekani");
  391. /* 391 */ JumpL1Wm.setLore(JumpL1Wl);
  392. /* 392 */ JumpL1W.setItemMeta(JumpL1Wm);
  393. /* */
  394. /* */
  395. /* 395 */ ItemStack JumpL1S = new ItemStack(Material.WOOL, JumpLeagueSQL.getOnlinePlayer("JumpLeague1"), (short)DyeColor.YELLOW.getData());
  396. /* 396 */ ItemMeta JumpL1Sm = JumpL1S.getItemMeta();
  397. /* 397 */ JumpL1Sm.setDisplayName("§e§lJump League 1");
  398. /* 398 */ ArrayList<String> JumpL1Sl = new ArrayList();
  399. /* 399 */ JumpL1Sl.add("");
  400. /* 400 */ JumpL1Sl.add("§7Hraci§8: §e" + JumpLeagueSQL.getOnlinePlayer("JumpLeague1"));
  401. /* 401 */ JumpL1Sl.add("§7Stav§8: §eStartuje");
  402. /* 402 */ JumpL1Sm.setLore(JumpL1Sl);
  403. /* 403 */ JumpL1S.setItemMeta(JumpL1Sm);
  404. /* */
  405. /* 405 */ ItemStack JumpL1I = new ItemStack(Material.WOOL, JumpLeagueSQL.getOnlinePlayer("JumpLeague1"), (short)DyeColor.RED.getData());
  406. /* 406 */ ItemMeta JumpL1Im = JumpL1I.getItemMeta();
  407. /* 407 */ JumpL1Im.setDisplayName("§e§lJump League 1");
  408. /* 408 */ ArrayList<String> JumpL1Il = new ArrayList();
  409. /* 409 */ JumpL1Il.add("");
  410. /* 410 */ JumpL1Il.add("§7Hraci§8: §e" + JumpLeagueSQL.getOnlinePlayer("JumpLeague1"));
  411. /* 411 */ JumpL1Il.add("§7Stav§8: §eVe Hre");
  412. /* 412 */ JumpL1Im.setLore(JumpL1Il);
  413. /* 413 */ JumpL1I.setItemMeta(JumpL1Im);
  414. /* */
  415. /* 415 */ ItemStack JumpL1R = new ItemStack(Material.WOOL, JumpLeagueSQL.getOnlinePlayer("JumpLeague1"), (short)DyeColor.BLACK.getData());
  416. /* 416 */ ItemMeta JumpL1Rm = JumpL1R.getItemMeta();
  417. /* 417 */ JumpL1Rm.setDisplayName("§e§lJump League 1");
  418. /* 418 */ ArrayList<String> JumpL1Rl = new ArrayList();
  419. /* 419 */ JumpL1Rl.add("");
  420. /* 420 */ JumpL1Rl.add("§7Stav§8: §cRestartuje se");
  421. /* 421 */ JumpL1Rm.setLore(JumpL1Rl);
  422. /* 422 */ JumpL1R.setItemMeta(JumpL1Rm);
  423. /* */
  424. /* */
  425. /* */
  426. /* 426 */ ItemStack JumpL2W = new ItemStack(Material.WOOL, JumpLeagueSQL.getOnlinePlayer("JumpLeague2"), (short)DyeColor.LIME.getData());
  427. /* 427 */ ItemMeta JumpL2Wm = JumpL2W.getItemMeta();
  428. /* 428 */ JumpL2Wm.setDisplayName("§e§lJump League 2");
  429. /* 429 */ ArrayList<String> JumpL2Wl = new ArrayList();
  430. /* 430 */ JumpL2Wl.add("");
  431. /* 431 */ JumpL2Wl.add("§7Hraci§8: §e" + JumpLeagueSQL.getOnlinePlayer("JumpLeague2"));
  432. /* 432 */ JumpL2Wl.add("§7Stav§8: §eCekani");
  433. /* 433 */ JumpL2Wm.setLore(JumpL2Wl);
  434. /* 434 */ JumpL2W.setItemMeta(JumpL2Wm);
  435. /* */
  436. /* */
  437. /* 437 */ ItemStack JumpL2S = new ItemStack(Material.WOOL, JumpLeagueSQL.getOnlinePlayer("JumpLeague2"), (short)DyeColor.YELLOW.getData());
  438. /* 438 */ ItemMeta JumpL2Sm = JumpL2S.getItemMeta();
  439. /* 439 */ JumpL2Sm.setDisplayName("§e§lJump League 2");
  440. /* 440 */ ArrayList<String> JumpL2Sl = new ArrayList();
  441. /* 441 */ JumpL2Sl.add("");
  442. /* 442 */ JumpL2Sl.add("§7Hraci§8: §e" + JumpLeagueSQL.getOnlinePlayer("JumpLeague2"));
  443. /* 443 */ JumpL2Sl.add("§7Stav§8: §eStartuje");
  444. /* 444 */ JumpL2Sm.setLore(JumpL2Sl);
  445. /* 445 */ JumpL2S.setItemMeta(JumpL2Sm);
  446. /* */
  447. /* 447 */ ItemStack JumpL2I = new ItemStack(Material.WOOL, JumpLeagueSQL.getOnlinePlayer("JumpLeague2"), (short)DyeColor.RED.getData());
  448. /* 448 */ ItemMeta JumpL2Im = JumpL2I.getItemMeta();
  449. /* 449 */ JumpL2Im.setDisplayName("§e§lJump League 2");
  450. /* 450 */ ArrayList<String> JumpL2Il = new ArrayList();
  451. /* 451 */ JumpL2Il.add("");
  452. /* 452 */ JumpL2Il.add("§7Hraci§8: §e" + JumpLeagueSQL.getOnlinePlayer("JumpLeague2"));
  453. /* 453 */ JumpL2Il.add("§7Stav§8: §eVe Hre");
  454. /* 454 */ JumpL2Im.setLore(JumpL2Il);
  455. /* 455 */ JumpL2I.setItemMeta(JumpL2Im);
  456. /* */
  457. /* 457 */ ItemStack JumpL2R = new ItemStack(Material.WOOL, JumpLeagueSQL.getOnlinePlayer("JumpLeague2"), (short)DyeColor.BLACK.getData());
  458. /* 458 */ ItemMeta JumpL2Rm = JumpL2R.getItemMeta();
  459. /* 459 */ JumpL2Rm.setDisplayName("§e§lJump League 2");
  460. /* 460 */ ArrayList<String> JumpL2Rl = new ArrayList();
  461. /* 461 */ JumpL2Rl.add("");
  462. /* 462 */ JumpL2Rl.add("§7Stav§8: §cRestartuje se");
  463. /* 463 */ JumpL2Rm.setLore(JumpL2Rl);
  464. /* 464 */ JumpL2R.setItemMeta(JumpL2Rm);
  465. /* */
  466. /* */
  467. /* */
  468. /* */
  469. /* 469 */ ItemStack JumpL3W = new ItemStack(Material.WOOL, JumpLeagueSQL.getOnlinePlayer("JumpLeague3"), (short)DyeColor.LIME.getData());
  470. /* 470 */ ItemMeta JumpL3Wm = JumpL3W.getItemMeta();
  471. /* 471 */ JumpL3Wm.setDisplayName("§e§lJump League 3");
  472. /* 472 */ ArrayList<String> JumpL3Wl = new ArrayList();
  473. /* 473 */ JumpL3Wl.add("");
  474. /* 474 */ JumpL3Wl.add("§7Hraci§8: §e" + JumpLeagueSQL.getOnlinePlayer("JumpLeague3"));
  475. /* 475 */ JumpL3Wl.add("§7Stav§8: §eCekani");
  476. /* 476 */ JumpL3Wm.setLore(JumpL3Wl);
  477. /* 477 */ JumpL3W.setItemMeta(JumpL3Wm);
  478. /* */
  479. /* */
  480. /* 480 */ ItemStack JumpL3S = new ItemStack(Material.WOOL, JumpLeagueSQL.getOnlinePlayer("JumpLeague3"), (short)DyeColor.YELLOW.getData());
  481. /* 481 */ ItemMeta JumpL3Sm = JumpL3S.getItemMeta();
  482. /* 482 */ JumpL3Sm.setDisplayName("§e§lJump League 3");
  483. /* 483 */ ArrayList<String> JumpL3Sl = new ArrayList();
  484. /* 484 */ JumpL3Sl.add("");
  485. /* 485 */ JumpL3Sl.add("§7Hraci§8: §e" + JumpLeagueSQL.getOnlinePlayer("JumpLeague3"));
  486. /* 486 */ JumpL3Sl.add("§7Stav§8: §eStartuje");
  487. /* 487 */ JumpL3Sm.setLore(JumpL3Sl);
  488. /* 488 */ JumpL3S.setItemMeta(JumpL3Sm);
  489. /* */
  490. /* 490 */ ItemStack JumpL3I = new ItemStack(Material.WOOL, JumpLeagueSQL.getOnlinePlayer("JumpLeague3"), (short)DyeColor.RED.getData());
  491. /* 491 */ ItemMeta JumpL3Im = JumpL3I.getItemMeta();
  492. /* 492 */ JumpL3Im.setDisplayName("§e§lJump League 3");
  493. /* 493 */ ArrayList<String> JumpL3Il = new ArrayList();
  494. /* 494 */ JumpL3Il.add("");
  495. /* 495 */ JumpL3Il.add("§7Hraci§8: §e" + JumpLeagueSQL.getOnlinePlayer("JumpLeague3"));
  496. /* 496 */ JumpL3Il.add("§7Stav§8: §eVe Hre");
  497. /* 497 */ JumpL3Im.setLore(JumpL3Il);
  498. /* 498 */ JumpL3I.setItemMeta(JumpL3Im);
  499. /* */
  500. /* 500 */ ItemStack JumpL3R = new ItemStack(Material.WOOL, JumpLeagueSQL.getOnlinePlayer("JumpLeague3"), (short)DyeColor.BLACK.getData());
  501. /* 501 */ ItemMeta JumpL3Rm = JumpL3R.getItemMeta();
  502. /* 502 */ JumpL3Rm.setDisplayName("§e§lJump League 3");
  503. /* 503 */ ArrayList<String> JumpL3Rl = new ArrayList();
  504. /* 504 */ JumpL3Rl.add("");
  505. /* 505 */ JumpL3Rl.add("§7Stav§8: §cRestartuje se");
  506. /* 506 */ JumpL3Rm.setLore(JumpL3Rl);
  507. /* 507 */ JumpL3R.setItemMeta(JumpL3Rm);
  508. /* */
  509. /* */
  510. /* */
  511. /* */
  512. /* 512 */ if (JumpLeagueSQL.getStav("JumpLeague1").equals("stop")) {
  513. /* 513 */ JumpLeagueMenu.jumpLeague.setItem(12, JumpL1R);
  514. /* */ }
  515. /* 515 */ if (JumpLeagueSQL.getStav("JumpLeague1").equals("wait")) {
  516. /* 516 */ JumpLeagueMenu.jumpLeague.setItem(12, JumpL1W);
  517. /* */ }
  518. /* 518 */ if (JumpLeagueSQL.getStav("JumpLeague1").equals("start")) {
  519. /* 519 */ JumpLeagueMenu.jumpLeague.setItem(12, JumpL1S);
  520. /* */ }
  521. /* 521 */ if (JumpLeagueSQL.getStav("JumpLeague1").equals("ingame")) {
  522. /* 522 */ JumpLeagueMenu.jumpLeague.setItem(12, JumpL1I);
  523. /* */ }
  524. /* */
  525. /* 525 */ if (JumpLeagueSQL.getStav("JumpLeague2").equals("stop")) {
  526. /* 526 */ JumpLeagueMenu.jumpLeague.setItem(13, JumpL2R);
  527. /* */ }
  528. /* 528 */ if (JumpLeagueSQL.getStav("JumpLeague2").equals("wait")) {
  529. /* 529 */ JumpLeagueMenu.jumpLeague.setItem(13, JumpL2W);
  530. /* */ }
  531. /* 531 */ if (JumpLeagueSQL.getStav("JumpLeague2").equals("start")) {
  532. /* 532 */ JumpLeagueMenu.jumpLeague.setItem(13, JumpL2S);
  533. /* */ }
  534. /* 534 */ if (JumpLeagueSQL.getStav("JumpLeague2").equals("ingame")) {
  535. /* 535 */ JumpLeagueMenu.jumpLeague.setItem(13, JumpL2I);
  536. /* */ }
  537. /* */
  538. /* 538 */ if (JumpLeagueSQL.getStav("JumpLeague3").equals("stop")) {
  539. /* 539 */ JumpLeagueMenu.jumpLeague.setItem(14, JumpL3R);
  540. /* */ }
  541. /* 541 */ if (JumpLeagueSQL.getStav("JumpLeague3").equals("wait")) {
  542. /* 542 */ JumpLeagueMenu.jumpLeague.setItem(14, JumpL3W);
  543. /* */ }
  544. /* 544 */ if (JumpLeagueSQL.getStav("JumpLeague3").equals("start")) {
  545. /* 545 */ JumpLeagueMenu.jumpLeague.setItem(14, JumpL3S);
  546. /* */ }
  547. /* 547 */ if (JumpLeagueSQL.getStav("JumpLeague3").equals("ingame")) {
  548. /* 548 */ JumpLeagueMenu.jumpLeague.setItem(14, JumpL3I);
  549. /* */ }
  550. /* */ }
  551. /* 551 */ if (cmd.getName().equalsIgnoreCase("gameselectd")) {
  552. /* 552 */ player.openInventory(GameSelect.GameMenu);
  553. /* 553 */ int Anniint = OP.getPlayer("Anni1") + OP.getPlayer("Anni2") + OP.getPlayer("Anni3");
  554. /* 554 */ ItemStack Anni = new ItemStack(Material.ENDER_STONE);
  555. /* 555 */ ItemMeta Annim = Anni.getItemMeta();
  556. /* 556 */ Annim.setDisplayName("§e§lAnnihilation");
  557. /* 557 */ ArrayList<String> Annil = new ArrayList();
  558. /* 558 */ Annil.add("");
  559. /* 559 */ Annil.add("§a§lKLIKNI PRO VYBER");
  560. /* 560 */ Annil.add("");
  561. /* 561 */ Annil.add("§7Vymyslej ruzne taktiky,");
  562. /* 562 */ Annil.add("§7nic nexusy ostatnich tymu");
  563. /* 563 */ Annil.add("§7a zabijej nepratele!");
  564. /* 564 */ Annil.add("");
  565. /* 565 */ Annil.add("§7Prave hraje§8: §e" + Anniint);
  566. /* 566 */ Annim.setLore(Annil);
  567. /* 567 */ Anni.setItemMeta(Annim);
  568. /* */
  569. /* 569 */ int JumpLint = OP.getPlayer("JL1") + OP.getPlayer("JL2") + OP.getPlayer("JL3");
  570. /* 570 */ ItemStack JumpL = new ItemStack(Material.DIAMOND_BOOTS);
  571. /* 571 */ ItemMeta JumpLm = JumpL.getItemMeta();
  572. /* 572 */ JumpLm.setDisplayName("§e§lJump League");
  573. /* 573 */ ArrayList<String> JumpLl = new ArrayList();
  574. /* 574 */ JumpLl.add("");
  575. /* 575 */ JumpLl.add("§a§lKLIKNI PRO VYBER");
  576. /* 576 */ JumpLl.add("");
  577. /* 577 */ JumpLl.add("§7Doskakej vsechny moduly,");
  578. /* 578 */ JumpLl.add("§7vyber vsechny truhly");
  579. /* 579 */ JumpLl.add("§7a zabij vsechny v boji!");
  580. /* 580 */ JumpLl.add("");
  581. /* 581 */ JumpLl.add("§7Prave hraje§8: §e" + JumpLint);
  582. /* 582 */ JumpLm.setLore(JumpLl);
  583. /* 583 */ JumpL.setItemMeta(JumpLm);
  584. /* */
  585. /* */
  586. /* 586 */ int UHCint = OP.getPlayer("UHC1") + OP.getPlayer("UHC2");
  587. /* 587 */ ItemStack UHC = new ItemStack(Material.GOLDEN_APPLE);
  588. /* 588 */ ItemMeta UHCm = UHC.getItemMeta();
  589. /* 589 */ UHCm.setDisplayName("§e§lEpic§c§lUHC");
  590. /* 590 */ ArrayList<String> UHCl = new ArrayList();
  591. /* 591 */ UHCl.add("");
  592. /* 592 */ UHCl.add("§a§lKLIKNI PRO VYBER");
  593. /* 593 */ UHCl.add("");
  594. /* 594 */ UHCl.add("§7Nakopej si suroviny,");
  595. /* 595 */ UHCl.add("§7vytvor zbrane a zabijej ostatni!");
  596. /* 596 */ UHCl.add("§7To vse na nasem §e§lEpic§c§lUHC");
  597. /* 597 */ UHCl.add("");
  598. /* 598 */ UHCl.add("§7Prave hraje§8: §e" + UHCint);
  599. /* 599 */ UHCm.setLore(UHCl);
  600. /* 600 */ UHC.setItemMeta(UHCm);
  601. /* */
  602. /* */
  603. /* */
  604. /* 604 */ int PvPint = OP.getPlayer("PvP");
  605. /* 605 */ ItemStack PvP = new ItemStack(Material.STONE_SWORD);
  606. /* 606 */ ItemMeta PvPm = PvP.getItemMeta();
  607. /* 607 */ PvPm.setDisplayName("§e§lPvP");
  608. /* 608 */ ArrayList<String> PvPl = new ArrayList();
  609. /* 609 */ PvPl.add("");
  610. /* 610 */ PvPl.add("§a§lKLIKNI PRO PRIPOJENI");
  611. /* 611 */ PvPl.add("");
  612. /* 612 */ PvPl.add("§7Vyzvi hrace na duel");
  613. /* 613 */ PvPl.add("§7nebo si zabojuj v tymech!");
  614. /* 614 */ PvPl.add("§7Zabijenim si vydelavej Coiny");
  615. /* 615 */ PvPl.add("§7a kup si nejlepsi Rank!");
  616. /* 616 */ PvPl.add("");
  617. /* 617 */ PvPl.add("§7Prave hraje§8: §e" + PvPint);
  618. /* 618 */ PvPm.addItemFlags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES });
  619. /* 619 */ PvPm.addItemFlags(new ItemFlag[] { ItemFlag.HIDE_DESTROYS });
  620. /* 620 */ PvPm.addItemFlags(new ItemFlag[] { ItemFlag.HIDE_UNBREAKABLE });
  621. /* 621 */ PvPm.setLore(PvPl);
  622. /* 622 */ PvP.setItemMeta(PvPm);
  623. /* */
  624. /* 624 */ int Buildint = OP.getPlayer("Build");
  625. /* 625 */ ItemStack Build = new ItemStack(Material.WOOD_AXE);
  626. /* 626 */ ItemMeta Buildm = Build.getItemMeta();
  627. /* 627 */ Buildm.setDisplayName("§e§lBuild Server");
  628. /* 628 */ ArrayList<String> Buildl = new ArrayList();
  629. /* 629 */ Buildl.add("");
  630. /* 630 */ Buildl.add("§a§lKLIKNI PRO PRIPOJENI");
  631. /* 631 */ Buildl.add("");
  632. /* 632 */ Buildl.add("§7Server pro Buildery");
  633. /* 633 */ Buildl.add("");
  634. /* 634 */ Buildl.add("§7Prave stavi§8: §e" + Buildint);
  635. /* 635 */ Buildm.addItemFlags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES });
  636. /* 636 */ Buildm.addItemFlags(new ItemFlag[] { ItemFlag.HIDE_DESTROYS });
  637. /* 637 */ Buildm.addItemFlags(new ItemFlag[] { ItemFlag.HIDE_UNBREAKABLE });
  638. /* 638 */ Buildm.setLore(Buildl);
  639. /* 639 */ Build.setItemMeta(Buildm);
  640. /* */
  641. /* */
  642. /* */
  643. /* 643 */ GameSelect.GameMenu.setItem(10, Anni);
  644. /* 644 */ GameSelect.GameMenu.setItem(12, JumpL);
  645. /* 645 */ GameSelect.GameMenu.setItem(14, UHC);
  646. /* 646 */ GameSelect.GameMenu.setItem(16, PvP);
  647. /* */
  648. /* */
  649. /* */
  650. /* 650 */ ItemStack GlassGr = new ItemStack(Material.STAINED_GLASS_PANE, 1, (short)DyeColor.GREEN.getData());
  651. /* 651 */ ItemMeta GlassGrm = GlassGr.getItemMeta();
  652. /* 652 */ GlassGrm.setDisplayName("§a");
  653. /* 653 */ GlassGr.setItemMeta(GlassGrm);
  654. /* 654 */ ItemStack GlassGrayLL = new ItemStack(Material.STAINED_GLASS_PANE, 1, (short)DyeColor.LIME.getData());
  655. /* 655 */ ItemMeta GlassGrayLLm = GlassGrayLL.getItemMeta();
  656. /* 656 */ GlassGrayLLm.setDisplayName("§e");
  657. /* 657 */ GlassGrayLL.setItemMeta(GlassGrayLLm);
  658. /* 658 */ ItemStack GlassYe = new ItemStack(Material.STAINED_GLASS_PANE, 1, (short)DyeColor.YELLOW.getData());
  659. /* 659 */ ItemMeta GlassYem = GlassYe.getItemMeta();
  660. /* 660 */ GlassYem.setDisplayName("§d");
  661. /* 661 */ GlassYe.setItemMeta(GlassYem);
  662. /* 662 */ ItemStack GlassGray = new ItemStack(Material.STAINED_GLASS_PANE, 1, (short)DyeColor.GRAY.getData());
  663. /* 663 */ ItemMeta GlassGraym = GlassGray.getItemMeta();
  664. /* 664 */ GlassGraym.setDisplayName("§b");
  665. /* 665 */ GlassGray.setItemMeta(GlassGraym);
  666. /* 666 */ ItemStack GlassBl = new ItemStack(Material.STAINED_GLASS_PANE, 1, (short)DyeColor.BLACK.getData());
  667. /* 667 */ ItemMeta GlassBlm = GlassBl.getItemMeta();
  668. /* 668 */ GlassBlm.setDisplayName("§c");
  669. /* 669 */ GlassBl.setItemMeta(GlassBlm);
  670. /* */
  671. /* 671 */ GameSelect.GameMenu.setItem(0, GlassGr);
  672. /* 672 */ GameSelect.GameMenu.setItem(35, GlassGr);
  673. /* */
  674. /* 674 */ GameSelect.GameMenu.setItem(1, GlassGrayLL);
  675. /* 675 */ GameSelect.GameMenu.setItem(9, GlassGrayLL);
  676. /* 676 */ GameSelect.GameMenu.setItem(34, GlassGrayLL);
  677. /* 677 */ GameSelect.GameMenu.setItem(26, GlassGrayLL);
  678. /* */
  679. /* 679 */ GameSelect.GameMenu.setItem(2, GlassYe);
  680. /* 680 */ GameSelect.GameMenu.setItem(18, GlassYe);
  681. /* 681 */ GameSelect.GameMenu.setItem(17, GlassYe);
  682. /* 682 */ GameSelect.GameMenu.setItem(33, GlassYe);
  683. /* */
  684. /* 684 */ GameSelect.GameMenu.setItem(3, GlassGray);
  685. /* 685 */ GameSelect.GameMenu.setItem(8, GlassGray);
  686. /* 686 */ GameSelect.GameMenu.setItem(32, GlassGray);
  687. /* 687 */ GameSelect.GameMenu.setItem(27, GlassGray);
  688. /* */
  689. /* 689 */ GameSelect.GameMenu.setItem(28, GlassBl);
  690. /* 690 */ GameSelect.GameMenu.setItem(29, GlassBl);
  691. /* 691 */ GameSelect.GameMenu.setItem(30, GlassBl);
  692. /* 692 */ GameSelect.GameMenu.setItem(31, GlassBl);
  693. /* 693 */ GameSelect.GameMenu.setItem(4, GlassBl);
  694. /* 694 */ GameSelect.GameMenu.setItem(6, GlassBl);
  695. /* 695 */ GameSelect.GameMenu.setItem(5, GlassBl);
  696. /* 696 */ GameSelect.GameMenu.setItem(7, GlassBl);
  697. /* */ }
  698. /* 698 */ if (cmd.getName().equalsIgnoreCase("gameselectat")) {
  699. /* 699 */ player.openInventory(GameATSelect.GameMenuAT);
  700. /* 700 */ int Anniint = OP.getPlayer("Anni1") + OP.getPlayer("Anni2") + OP.getPlayer("Anni3");
  701. /* 701 */ ItemStack Anni = new ItemStack(Material.ENDER_STONE);
  702. /* 702 */ ItemMeta Annim = Anni.getItemMeta();
  703. /* 703 */ Annim.setDisplayName("§e§lAnnihilation");
  704. /* 704 */ ArrayList<String> Annil = new ArrayList();
  705. /* 705 */ Annil.add("");
  706. /* 706 */ Annil.add("§a§lKLIKNI PRO VYBER");
  707. /* 707 */ Annil.add("");
  708. /* 708 */ Annil.add("§7Vymyslej ruzne taktiky,");
  709. /* 709 */ Annil.add("§7nic nexusy ostatnich tymu");
  710. /* 710 */ Annil.add("§7a zabijej nepratele!");
  711. /* 711 */ Annil.add("");
  712. /* 712 */ Annil.add("§7Prave hraje§8: §e" + Anniint);
  713. /* 713 */ Annim.setLore(Annil);
  714. /* 714 */ Anni.setItemMeta(Annim);
  715. /* */
  716. /* 716 */ int JumpLint = OP.getPlayer("JL1") + OP.getPlayer("JL2") + OP.getPlayer("JL3");
  717. /* 717 */ ItemStack JumpL = new ItemStack(Material.DIAMOND_BOOTS);
  718. /* 718 */ ItemMeta JumpLm = JumpL.getItemMeta();
  719. /* 719 */ JumpLm.setDisplayName("§e§lJump League");
  720. /* 720 */ ArrayList<String> JumpLl = new ArrayList();
  721. /* 721 */ JumpLl.add("");
  722. /* 722 */ JumpLl.add("§a§lKLIKNI PRO VYBER");
  723. /* 723 */ JumpLl.add("");
  724. /* 724 */ JumpLl.add("§7Doskakej vsechny moduly,");
  725. /* 725 */ JumpLl.add("§7vyber vsechny truhly");
  726. /* 726 */ JumpLl.add("§7a zabij vsechny v boji!");
  727. /* 727 */ JumpLl.add("");
  728. /* 728 */ JumpLl.add("§7Prave hraje§8: §e" + JumpLint);
  729. /* 729 */ JumpLm.setLore(JumpLl);
  730. /* 730 */ JumpL.setItemMeta(JumpLm);
  731. /* */
  732. /* */
  733. /* 733 */ int UHCint = OP.getPlayer("UHC1") + OP.getPlayer("UHC2");
  734. /* 734 */ ItemStack UHC = new ItemStack(Material.GOLDEN_APPLE);
  735. /* 735 */ ItemMeta UHCm = UHC.getItemMeta();
  736. /* 736 */ UHCm.setDisplayName("§e§lEpic§c§lUHC");
  737. /* 737 */ ArrayList<String> UHCl = new ArrayList();
  738. /* 738 */ UHCl.add("");
  739. /* 739 */ UHCl.add("§a§lKLIKNI PRO VYBER");
  740. /* 740 */ UHCl.add("");
  741. /* 741 */ UHCl.add("§7Nakopej si suroviny,");
  742. /* 742 */ UHCl.add("§7vytvor zbrane a zabijej ostatni!");
  743. /* 743 */ UHCl.add("§7To vse na nasem §e§lEpic§c§lUHC");
  744. /* 744 */ UHCl.add("");
  745. /* 745 */ UHCl.add("§7Prave hraje§8: §e" + UHCint);
  746. /* 746 */ UHCm.setLore(UHCl);
  747. /* 747 */ UHC.setItemMeta(UHCm);
  748. /* */
  749. /* */
  750. /* */
  751. /* 751 */ int PvPint = OP.getPlayer("PvP");
  752. /* 752 */ ItemStack PvP = new ItemStack(Material.STONE_SWORD);
  753. /* 753 */ ItemMeta PvPm = PvP.getItemMeta();
  754. /* 754 */ PvPm.setDisplayName("§e§lPvP");
  755. /* 755 */ ArrayList<String> PvPl = new ArrayList();
  756. /* 756 */ PvPl.add("");
  757. /* 757 */ PvPl.add("§a§lKLIKNI PRO PRIPOJENI");
  758. /* 758 */ PvPl.add("");
  759. /* 759 */ PvPl.add("§7Vyzvi hrace na duel");
  760. /* 760 */ PvPl.add("§7nebo si zabojuj v tymech!");
  761. /* 761 */ PvPl.add("§7Zabijenim si vydelavej Coiny");
  762. /* 762 */ PvPl.add("§7a kup si nejlepsi Rank!");
  763. /* 763 */ PvPl.add("");
  764. /* 764 */ PvPl.add("§7Prave hraje§8: §e" + PvPint);
  765. /* 765 */ PvPm.addItemFlags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES });
  766. /* 766 */ PvPm.addItemFlags(new ItemFlag[] { ItemFlag.HIDE_DESTROYS });
  767. /* 767 */ PvPm.addItemFlags(new ItemFlag[] { ItemFlag.HIDE_UNBREAKABLE });
  768. /* 768 */ PvPm.setLore(PvPl);
  769. /* 769 */ PvP.setItemMeta(PvPm);
  770. /* */
  771. /* 771 */ int Buildint = OP.getPlayer("Build");
  772. /* 772 */ ItemStack Build = new ItemStack(Material.WOOD_AXE);
  773. /* 773 */ ItemMeta Buildm = Build.getItemMeta();
  774. /* 774 */ Buildm.setDisplayName("§e§lBuild Server");
  775. /* 775 */ ArrayList<String> Buildl = new ArrayList();
  776. /* 776 */ Buildl.add("");
  777. /* 777 */ Buildl.add("§a§lKLIKNI PRO PRIPOJENI");
  778. /* 778 */ Buildl.add("");
  779. /* 779 */ Buildl.add("§7Server pro Buildery");
  780. /* 780 */ Buildl.add("");
  781. /* 781 */ Buildl.add("§7Prave stavi§8: §e" + Buildint);
  782. /* 782 */ Buildm.addItemFlags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES });
  783. /* 783 */ Buildm.addItemFlags(new ItemFlag[] { ItemFlag.HIDE_DESTROYS });
  784. /* 784 */ Buildm.addItemFlags(new ItemFlag[] { ItemFlag.HIDE_UNBREAKABLE });
  785. /* 785 */ Buildm.setLore(Buildl);
  786. /* 786 */ Build.setItemMeta(Buildm);
  787. /* */
  788. /* */
  789. /* */
  790. /* 790 */ GameATSelect.GameMenuAT.setItem(10, Anni);
  791. /* 791 */ GameATSelect.GameMenuAT.setItem(12, JumpL);
  792. /* 792 */ GameATSelect.GameMenuAT.setItem(14, UHC);
  793. /* 793 */ GameATSelect.GameMenuAT.setItem(16, PvP);
  794. /* 794 */ GameATSelect.GameMenuAT.setItem(22, Build);
  795. /* */
  796. /* */
  797. /* 797 */ ItemStack GlassGr = new ItemStack(Material.STAINED_GLASS_PANE, 1, (short)DyeColor.GREEN.getData());
  798. /* 798 */ ItemMeta GlassGrm = GlassGr.getItemMeta();
  799. /* 799 */ GlassGrm.setDisplayName("§a");
  800. /* 800 */ GlassGr.setItemMeta(GlassGrm);
  801. /* 801 */ ItemStack GlassGrayLL = new ItemStack(Material.STAINED_GLASS_PANE, 1, (short)DyeColor.LIME.getData());
  802. /* 802 */ ItemMeta GlassGrayLLm = GlassGrayLL.getItemMeta();
  803. /* 803 */ GlassGrayLLm.setDisplayName("§e");
  804. /* 804 */ GlassGrayLL.setItemMeta(GlassGrayLLm);
  805. /* 805 */ ItemStack GlassYe = new ItemStack(Material.STAINED_GLASS_PANE, 1, (short)DyeColor.YELLOW.getData());
  806. /* 806 */ ItemMeta GlassYem = GlassYe.getItemMeta();
  807. /* 807 */ GlassYem.setDisplayName("§d");
  808. /* 808 */ GlassYe.setItemMeta(GlassYem);
  809. /* 809 */ ItemStack GlassGray = new ItemStack(Material.STAINED_GLASS_PANE, 1, (short)DyeColor.GRAY.getData());
  810. /* 810 */ ItemMeta GlassGraym = GlassGray.getItemMeta();
  811. /* 811 */ GlassGraym.setDisplayName("§b");
  812. /* 812 */ GlassGray.setItemMeta(GlassGraym);
  813. /* 813 */ ItemStack GlassBl = new ItemStack(Material.STAINED_GLASS_PANE, 1, (short)DyeColor.BLACK.getData());
  814. /* 814 */ ItemMeta GlassBlm = GlassBl.getItemMeta();
  815. /* 815 */ GlassBlm.setDisplayName("§c");
  816. /* 816 */ GlassBl.setItemMeta(GlassBlm);
  817. /* */
  818. /* 818 */ GameATSelect.GameMenuAT.setItem(0, GlassGr);
  819. /* 819 */ GameATSelect.GameMenuAT.setItem(35, GlassGr);
  820. /* */
  821. /* 821 */ GameATSelect.GameMenuAT.setItem(1, GlassGrayLL);
  822. /* 822 */ GameATSelect.GameMenuAT.setItem(9, GlassGrayLL);
  823. /* 823 */ GameATSelect.GameMenuAT.setItem(34, GlassGrayLL);
  824. /* 824 */ GameATSelect.GameMenuAT.setItem(26, GlassGrayLL);
  825. /* */
  826. /* 826 */ GameATSelect.GameMenuAT.setItem(2, GlassYe);
  827. /* 827 */ GameATSelect.GameMenuAT.setItem(18, GlassYe);
  828. /* 828 */ GameATSelect.GameMenuAT.setItem(17, GlassYe);
  829. /* 829 */ GameATSelect.GameMenuAT.setItem(33, GlassYe);
  830. /* */
  831. /* 831 */ GameATSelect.GameMenuAT.setItem(3, GlassGray);
  832. /* 832 */ GameATSelect.GameMenuAT.setItem(8, GlassGray);
  833. /* 833 */ GameATSelect.GameMenuAT.setItem(32, GlassGray);
  834. /* 834 */ GameATSelect.GameMenuAT.setItem(27, GlassGray);
  835. /* */
  836. /* 836 */ GameATSelect.GameMenuAT.setItem(28, GlassBl);
  837. /* 837 */ GameATSelect.GameMenuAT.setItem(29, GlassBl);
  838. /* 838 */ GameATSelect.GameMenuAT.setItem(30, GlassBl);
  839. /* 839 */ GameATSelect.GameMenuAT.setItem(31, GlassBl);
  840. /* 840 */ GameATSelect.GameMenuAT.setItem(4, GlassBl);
  841. /* 841 */ GameATSelect.GameMenuAT.setItem(6, GlassBl);
  842. /* 842 */ GameATSelect.GameMenuAT.setItem(5, GlassBl);
  843. /* 843 */ GameATSelect.GameMenuAT.setItem(7, GlassBl);
  844. /* */ }
  845. /* 845 */ if (cmd.getName().equalsIgnoreCase("anni1")) {
  846. /* 846 */ ByteArrayDataOutput out = ByteStreams.newDataOutput();
  847. /* 847 */ out.writeUTF("Connect");
  848. /* 848 */ out.writeUTF("Annihilation1");
  849. /* 849 */ player.sendPluginMessage(this, "BungeeCord", out.toByteArray());
  850. /* */ }
  851. /* 851 */ if (cmd.getName().equalsIgnoreCase("anni2")) {
  852. /* 852 */ ByteArrayDataOutput out = ByteStreams.newDataOutput();
  853. /* 853 */ out.writeUTF("Connect");
  854. /* 854 */ out.writeUTF("Annihilation2");
  855. /* 855 */ player.sendPluginMessage(this, "BungeeCord", out.toByteArray());
  856. /* */ }
  857. /* 857 */ if (cmd.getName().equalsIgnoreCase("anni3")) {
  858. /* 858 */ ByteArrayDataOutput out = ByteStreams.newDataOutput();
  859. /* 859 */ out.writeUTF("Connect");
  860. /* 860 */ out.writeUTF("Annihilation3");
  861. /* 861 */ player.sendPluginMessage(this, "BungeeCord", out.toByteArray());
  862. /* */ }
  863. /* 863 */ if (cmd.getName().equalsIgnoreCase("pvp")) {
  864. /* 864 */ ByteArrayDataOutput out = ByteStreams.newDataOutput();
  865. /* 865 */ out.writeUTF("Connect");
  866. /* 866 */ out.writeUTF("PVP");
  867. /* 867 */ player.sendPluginMessage(this, "BungeeCord", out.toByteArray());
  868. /* */ }
  869. /* 869 */ if (cmd.getName().equalsIgnoreCase("skywars")) {
  870. /* 870 */ ByteArrayDataOutput out = ByteStreams.newDataOutput();
  871. /* 871 */ out.writeUTF("Connect");
  872. /* 872 */ out.writeUTF("SW1");
  873. /* 873 */ player.sendPluginMessage(this, "BungeeCord", out.toByteArray());
  874. /* */ }
  875. /* 875 */ if (cmd.getName().equalsIgnoreCase("buildserver")) {
  876. /* 876 */ ByteArrayDataOutput out = ByteStreams.newDataOutput();
  877. /* 877 */ out.writeUTF("Connect");
  878. /* 878 */ out.writeUTF("Build");
  879. /* 879 */ player.sendPluginMessage(this, "BungeeCord", out.toByteArray());
  880. /* */ }
  881. /* 881 */ if (cmd.getName().equalsIgnoreCase("uhcmenu")) {
  882. /* 882 */ player.openInventory(UHCMenu.uhc);
  883. /* 883 */ ItemStack UHC1P = new ItemStack(Material.WOOL, UHCSQL.getOnlinePlayer("uhc"), (short)DyeColor.YELLOW.getData());
  884. /* 884 */ ItemMeta UHC1Pm = UHC1P.getItemMeta();
  885. /* 885 */ UHC1Pm.setDisplayName("§e§lEpic§c§lUHC§e§l 1");
  886. /* 886 */ ArrayList<String> UHC1Pl = new ArrayList();
  887. /* 887 */ UHC1Pl.add("");
  888. /* 888 */ UHC1Pl.add("§7Hraci§8: §e" + UHCSQL.getOnlinePlayer("uhc"));
  889. /* 889 */ UHC1Pl.add("§7Stav§8: §eGenerovani Mapy");
  890. /* 890 */ UHC1Pm.setLore(UHC1Pl);
  891. /* 891 */ UHC1P.setItemMeta(UHC1Pm);
  892. /* */
  893. /* */
  894. /* 894 */ ItemStack UHC1L = new ItemStack(Material.WOOL, UHCSQL.getOnlinePlayer("uhc"), (short)DyeColor.LIME.getData());
  895. /* 895 */ ItemMeta UHC1Lm = UHC1L.getItemMeta();
  896. /* 896 */ UHC1Lm.setDisplayName("§e§lEpic§c§lUHC§e§l 1");
  897. /* 897 */ ArrayList<String> UHC1Ll = new ArrayList();
  898. /* 898 */ UHC1Ll.add("");
  899. /* 899 */ UHC1Ll.add("§7Hraci§8: §e" + UHCSQL.getOnlinePlayer("uhc"));
  900. /* 900 */ UHC1Ll.add("§7Stav§8: §eCekani");
  901. /* 901 */ UHC1Lm.setLore(UHC1Ll);
  902. /* 902 */ UHC1L.setItemMeta(UHC1Lm);
  903. /* */
  904. /* 904 */ ItemStack UHC1T = new ItemStack(Material.WOOL, UHCSQL.getOnlinePlayer("uhc"), (short)DyeColor.RED.getData());
  905. /* 905 */ ItemMeta UHC1Tm = UHC1T.getItemMeta();
  906. /* 906 */ UHC1Tm.setDisplayName("§e§lEpic§c§lUHC§e§l 1");
  907. /* 907 */ ArrayList<String> UHC1Tl = new ArrayList();
  908. /* 908 */ UHC1Tl.add("");
  909. /* 909 */ UHC1Tl.add("§7Hraci§8: §e" + UHCSQL.getOnlinePlayer("uhc"));
  910. /* 910 */ UHC1Tl.add("§7Stav§8: §eTeleportovani");
  911. /* 911 */ UHC1Tm.setLore(UHC1Tl);
  912. /* 912 */ UHC1T.setItemMeta(UHC1Tm);
  913. /* */
  914. /* 914 */ ItemStack UHC1Pe = new ItemStack(Material.WOOL, UHCSQL.getOnlinePlayer("uhc"), (short)DyeColor.RED.getData());
  915. /* 915 */ ItemMeta UHC1Pem = UHC1Pe.getItemMeta();
  916. /* 916 */ UHC1Pem.setDisplayName("§e§lEpic§c§lUHC§e§l 1");
  917. /* 917 */ ArrayList<String> UHC1Pel = new ArrayList();
  918. /* 918 */ UHC1Pel.add("");
  919. /* 919 */ UHC1Pel.add("§7Hraci§8: §e" + UHCSQL.getOnlinePlayer("uhc"));
  920. /* 920 */ UHC1Pel.add("§7Stav§8: §cZiskavani veci");
  921. /* 921 */ UHC1Pem.setLore(UHC1Pel);
  922. /* 922 */ UHC1Pe.setItemMeta(UHC1Pem);
  923. /* */
  924. /* 924 */ ItemStack UHC1Pv = new ItemStack(Material.WOOL, UHCSQL.getOnlinePlayer("uhc"), (short)DyeColor.RED.getData());
  925. /* 925 */ ItemMeta UHC1Pvm = UHC1Pv.getItemMeta();
  926. /* 926 */ UHC1Pvm.setDisplayName("§e§lEpic§c§lUHC§e§l 1");
  927. /* 927 */ ArrayList<String> UHC1Pvl = new ArrayList();
  928. /* 928 */ UHC1Pvl.add("");
  929. /* 929 */ UHC1Pvl.add("§7Hraci§8: §e" + UHCSQL.getOnlinePlayer("uhc"));
  930. /* 930 */ UHC1Pvl.add("§7Stav§8: §eBojovani");
  931. /* 931 */ UHC1Pvm.setLore(UHC1Pvl);
  932. /* 932 */ UHC1Pv.setItemMeta(UHC1Pvm);
  933. /* */
  934. /* 934 */ ItemStack UHC1D = new ItemStack(Material.WOOL, UHCSQL.getOnlinePlayer("uhc"), (short)DyeColor.RED.getData());
  935. /* 935 */ ItemMeta UHC1Dm = UHC1D.getItemMeta();
  936. /* 936 */ UHC1Dm.setDisplayName("§e§lEpic§c§lUHC§e§l 1");
  937. /* 937 */ ArrayList<String> UHC1Dl = new ArrayList();
  938. /* 938 */ UHC1Dl.add("");
  939. /* 939 */ UHC1Dl.add("§7Hraci§8: §e" + UHCSQL.getOnlinePlayer("uhc"));
  940. /* 940 */ UHC1Dl.add("§7Stav§8: §eDeath Match");
  941. /* 941 */ UHC1Dm.setLore(UHC1Dl);
  942. /* 942 */ UHC1D.setItemMeta(UHC1Dm);
  943. /* */
  944. /* 944 */ ItemStack UHC1R = new ItemStack(Material.WOOL, UHCSQL.getOnlinePlayer("uhc"), (short)DyeColor.BLACK.getData());
  945. /* 945 */ ItemMeta UHC1Rm = UHC1R.getItemMeta();
  946. /* 946 */ UHC1Rm.setDisplayName("§e§lEpic§c§lUHC§e§l 1");
  947. /* 947 */ ArrayList<String> UHC1Rl = new ArrayList();
  948. /* 948 */ UHC1Rl.add("");
  949. /* 949 */ UHC1Rl.add("§7Stav§8: §cRestartuje se");
  950. /* 950 */ UHC1Rm.setLore(UHC1Rl);
  951. /* 951 */ UHC1R.setItemMeta(UHC1Rm);
  952. /* */
  953. /* */
  954. /* 954 */ ItemStack UHC2OFF = new ItemStack(Material.WOOL, 1, (short)DyeColor.BLACK.getData());
  955. /* 955 */ ItemMeta UHC2OFFm = UHC2OFF.getItemMeta();
  956. /* 956 */ UHC2OFFm.setDisplayName("§e§lEpic§c§lUHC§e§l 2");
  957. /* 957 */ ArrayList<String> UHC2OFFl = new ArrayList();
  958. /* 958 */ UHC2OFFl.add("");
  959. /* 959 */ UHC2OFFl.add("§7Stav§8: §cPripravujeme");
  960. /* 960 */ UHC2OFFm.setLore(UHC2OFFl);
  961. /* 961 */ UHC2OFF.setItemMeta(UHC2OFFm);
  962. /* */
  963. /* */
  964. /* 964 */ if (UHCSQL.getStav("uhc").equals("preparing")) {
  965. /* 965 */ UHCMenu.uhc.setItem(12, UHC1P);
  966. /* */ }
  967. /* 967 */ if (UHCSQL.getStav("uhc").equals("lobby")) {
  968. /* 968 */ UHCMenu.uhc.setItem(12, UHC1L);
  969. /* */ }
  970. /* 970 */ if (UHCSQL.getStav("uhc").equals("teleporting")) {
  971. /* 971 */ UHCMenu.uhc.setItem(12, UHC1T);
  972. /* */ }
  973. /* 973 */ if (UHCSQL.getStav("uhc").equals("pve")) {
  974. /* 974 */ UHCMenu.uhc.setItem(12, UHC1Pe);
  975. /* */ }
  976. /* 976 */ if (UHCSQL.getStav("uhc").equals("pvp")) {
  977. /* 977 */ UHCMenu.uhc.setItem(12, UHC1Pv);
  978. /* */ }
  979. /* 979 */ if (UHCSQL.getStav("uhc").equals("dm")) {
  980. /* 980 */ UHCMenu.uhc.setItem(12, UHC1D);
  981. /* */ }
  982. /* 982 */ if (UHCSQL.getStav("uhc").equals("ending")) {
  983. /* 983 */ UHCMenu.uhc.setItem(12, UHC1R);
  984. /* */ }
  985. /* 985 */ UHCMenu.uhc.setItem(14, UHC2OFF);
  986. /* */ }
  987. /* */
  988. /* */
  989. /* 989 */ if (cmd.getName().equalsIgnoreCase("uhc1")) {
  990. /* 990 */ ByteArrayDataOutput out = ByteStreams.newDataOutput();
  991. /* 991 */ out.writeUTF("Connect");
  992. /* 992 */ out.writeUTF("UHC");
  993. /* 993 */ player.sendPluginMessage(this, "BungeeCord", out.toByteArray());
  994. /* */ }
  995. /* 995 */ if (cmd.getName().equalsIgnoreCase("uhc2")) {
  996. /* 996 */ ByteArrayDataOutput out = ByteStreams.newDataOutput();
  997. /* 997 */ out.writeUTF("Connect");
  998. /* 998 */ out.writeUTF("uhc2");
  999. /* 999 */ player.sendPluginMessage(this, "BungeeCord", out.toByteArray());
  1000. /* */ }
  1001. /* 1001 */ if (cmd.getName().equalsIgnoreCase("lobby1")) {
  1002. /* 1002 */ ByteArrayDataOutput out = ByteStreams.newDataOutput();
  1003. /* 1003 */ out.writeUTF("Connect");
  1004. /* 1004 */ out.writeUTF("Lobby1");
  1005. /* 1005 */ player.sendPluginMessage(this, "BungeeCord", out.toByteArray());
  1006. /* */ }
  1007. /* 1007 */ if (cmd.getName().equalsIgnoreCase("lobby2")) {
  1008. /* 1008 */ ByteArrayDataOutput out = ByteStreams.newDataOutput();
  1009. /* 1009 */ out.writeUTF("Connect");
  1010. /* 1010 */ out.writeUTF("Lobby2");
  1011. /* 1011 */ player.sendPluginMessage(this, "BungeeCord", out.toByteArray());
  1012. /* */ }
  1013. /* 1013 */ if (cmd.getName().equalsIgnoreCase("jl1")) {
  1014. /* 1014 */ ByteArrayDataOutput out = ByteStreams.newDataOutput();
  1015. /* 1015 */ out.writeUTF("Connect");
  1016. /* 1016 */ out.writeUTF("JL1");
  1017. /* 1017 */ player.sendPluginMessage(this, "BungeeCord", out.toByteArray());
  1018. /* */ }
  1019. /* 1019 */ if (cmd.getName().equalsIgnoreCase("jl2")) {
  1020. /* 1020 */ ByteArrayDataOutput out = ByteStreams.newDataOutput();
  1021. /* 1021 */ out.writeUTF("Connect");
  1022. /* 1022 */ out.writeUTF("JL2");
  1023. /* 1023 */ player.sendPluginMessage(this, "BungeeCord", out.toByteArray());
  1024. /* */ }
  1025. /* 1025 */ if (cmd.getName().equalsIgnoreCase("vip")) {
  1026. /* 1026 */ player.openInventory(VIP.VIP);
  1027. /* */ }
  1028. /* 1028 */ if (cmd.getName().equalsIgnoreCase("lobbymenu"))
  1029. /* */ {
  1030. /* 1030 */ player.openInventory(LobbySelector.LobbyMenu);
  1031. /* 1031 */ int LobbyIint = OP.getPlayer("Lobby1");
  1032. /* 1032 */ ItemStack LobbyI = new ItemStack(Material.WOOL, LobbyIint, (short)DyeColor.LIME.getData());
  1033. /* 1033 */ ItemMeta LobbyIm = LobbyI.getItemMeta();
  1034. /* 1034 */ LobbyIm.setDisplayName("§e§lLobby1");
  1035. /* 1035 */ ArrayList<String> LobbyIl = new ArrayList();
  1036. /* 1036 */ LobbyIl.add("");
  1037. /* 1037 */ LobbyIl.add("§a§lKLIKNI PRO PRIPOJENI");
  1038. /* 1038 */ LobbyIl.add("");
  1039. /* 1039 */ LobbyIl.add("§7Hracu§8: §e" + LobbyIint);
  1040. /* 1040 */ LobbyIm.addItemFlags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES });
  1041. /* 1041 */ LobbyIm.addItemFlags(new ItemFlag[] { ItemFlag.HIDE_DESTROYS });
  1042. /* 1042 */ LobbyIm.addItemFlags(new ItemFlag[] { ItemFlag.HIDE_UNBREAKABLE });
  1043. /* 1043 */ LobbyIm.setLore(LobbyIl);
  1044. /* 1044 */ LobbyI.setItemMeta(LobbyIm);
  1045. /* */
  1046. /* */
  1047. /* 1047 */ int LobbyINint = OP.getPlayer("Lobby1");
  1048. /* 1048 */ ItemStack LobbyIN = new ItemStack(Material.WOOL, LobbyINint, (short)DyeColor.YELLOW.getData());
  1049. /* 1049 */ ItemMeta LobbyINm = LobbyIN.getItemMeta();
  1050. /* 1050 */ LobbyINm.setDisplayName("§e§lLobby1");
  1051. /* 1051 */ ArrayList<String> LobbyINl = new ArrayList();
  1052. /* 1052 */ LobbyINl.add("");
  1053. /* 1053 */ LobbyINl.add("§e§lZDE SE PRAVE NACHAZIS");
  1054. /* 1054 */ LobbyINl.add("");
  1055. /* 1055 */ LobbyINl.add("§7Hracu§8: §e" + LobbyINint);
  1056. /* 1056 */ LobbyINm.addItemFlags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES });
  1057. /* 1057 */ LobbyINm.addItemFlags(new ItemFlag[] { ItemFlag.HIDE_DESTROYS });
  1058. /* 1058 */ LobbyINm.addItemFlags(new ItemFlag[] { ItemFlag.HIDE_UNBREAKABLE });
  1059. /* 1059 */ LobbyINm.setLore(LobbyINl);
  1060. /* 1060 */ LobbyIN.setItemMeta(LobbyINm);
  1061. /* */
  1062. /* */
  1063. /* 1063 */ int LobbyIIint = OP.getPlayer("Lobby2");
  1064. /* 1064 */ ItemStack LobbyII = new ItemStack(Material.WOOL, LobbyIIint, (short)DyeColor.LIME.getData());
  1065. /* 1065 */ ItemMeta LobbyIIm = LobbyII.getItemMeta();
  1066. /* 1066 */ LobbyIIm.setDisplayName("§e§lLobby2");
  1067. /* 1067 */ ArrayList<String> LobbyIIl = new ArrayList();
  1068. /* 1068 */ LobbyIIl.add("");
  1069. /* 1069 */ LobbyIIl.add("§a§lKLIKNI PRO PRIPOJENI");
  1070. /* 1070 */ LobbyIIl.add("");
  1071. /* 1071 */ LobbyIIl.add("§7Hracu§8: §e" + LobbyIIint);
  1072. /* 1072 */ LobbyIIm.addItemFlags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES });
  1073. /* 1073 */ LobbyIIm.addItemFlags(new ItemFlag[] { ItemFlag.HIDE_DESTROYS });
  1074. /* 1074 */ LobbyIIm.addItemFlags(new ItemFlag[] { ItemFlag.HIDE_UNBREAKABLE });
  1075. /* 1075 */ LobbyIIm.setLore(LobbyIIl);
  1076. /* 1076 */ LobbyII.setItemMeta(LobbyIIm);
  1077. /* */
  1078. /* */
  1079. /* 1079 */ int LobbyIINint = OP.getPlayer("Lobby2");
  1080. /* 1080 */ ItemStack LobbyIIN = new ItemStack(Material.WOOL, LobbyIINint, (short)DyeColor.YELLOW.getData());
  1081. /* 1081 */ ItemMeta LobbyIINm = LobbyIIN.getItemMeta();
  1082. /* 1082 */ LobbyIINm.setDisplayName("§e§lLobby2");
  1083. /* 1083 */ ArrayList<String> LobbyIINl = new ArrayList();
  1084. /* 1084 */ LobbyIINl.add("");
  1085. /* 1085 */ LobbyIINl.add("§e§lZDE SE PRAVE NACHAZIS");
  1086. /* 1086 */ LobbyIINl.add("");
  1087. /* 1087 */ LobbyIINl.add("§7Hracu§8: §e" + LobbyIINint);
  1088. /* 1088 */ LobbyIINm.addItemFlags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES });
  1089. /* 1089 */ LobbyIINm.addItemFlags(new ItemFlag[] { ItemFlag.HIDE_DESTROYS });
  1090. /* 1090 */ LobbyIINm.addItemFlags(new ItemFlag[] { ItemFlag.HIDE_UNBREAKABLE });
  1091. /* 1091 */ LobbyIINm.setLore(LobbyIINl);
  1092. /* 1092 */ LobbyIIN.setItemMeta(LobbyIINm);
  1093. /* 1093 */ if (Bukkit.getServerName().contains("Lobby1")) {
  1094. /* 1094 */ LobbySelector.LobbyMenu.setItem(12, LobbyIN);
  1095. /* 1095 */ LobbySelector.LobbyMenu.setItem(14, LobbyII);
  1096. /* */ }
  1097. /* 1097 */ if (Bukkit.getServerName().contains("Lobby2")) {
  1098. /* 1098 */ LobbySelector.LobbyMenu.setItem(14, LobbyIIN);
  1099. /* 1099 */ LobbySelector.LobbyMenu.setItem(12, LobbyI);
  1100. /* */ }
  1101. /* */ }
  1102. /* 1102 */ if (cmd.getName().equalsIgnoreCase("jl3")) {
  1103. /* 1103 */ ByteArrayDataOutput out = ByteStreams.newDataOutput();
  1104. /* 1104 */ out.writeUTF("Connect");
  1105. /* 1105 */ out.writeUTF("JL3");
  1106. /* 1106 */ player.sendPluginMessage(this, "BungeeCord", out.toByteArray());
  1107. /* */ }
  1108. /* 1108 */ if (cmd.getName().equalsIgnoreCase("annikits")) {
  1109. /* 1109 */ player.openInventory(AnniShop.annikit(player));
  1110. /* */ }
  1111. /* */ }
  1112. /* 1112 */ return false;
  1113. /* */ }
  1114. /* */
  1115. /* */
  1116. /* */
  1117. /* */ public void onSecond()
  1118. /* */ {
  1119. /* 1119 */ this.timer.getTime();
  1120. /* */
  1121. /* */
  1122. /* 1122 */ this.timer.getTime();
  1123. /* */ }
  1124. /* */ }
  1125.  
  1126.  
  1127. /* Location: C:\Users\ditar\Desktop\FGLobby.jar!\me\MrBambusCZ\Lobby\Lobby.class
  1128. * Java compiler version: 7 (51.0)
  1129. * JD-Core Version: 0.7.1
  1130. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement