diff --git a/BankEconomyMod/src/me/kaZep/Base/Main.java b/BankEconomyMod/src/me/kaZep/Base/Main.java index 520bf49..b892d7e 100644 --- a/BankEconomyMod/src/me/kaZep/Base/Main.java +++ b/BankEconomyMod/src/me/kaZep/Base/Main.java @@ -4872,57 +4872,6 @@ public void payDay(int time) return 0; } } - - - private static Method getMethod(Class cl, String method) - { - for (Method m : cl.getMethods()) - if (m.getName().equals(method)) - return m; - return null; - } - - - /** - * Explodes random firework on location - * - * @param loc - * Location to explode - */ - public static void playFirework(Location loc) - { - Random gen = new Random(); - try - { - Firework fw = loc.getWorld().spawn(loc, Firework.class); - Method d0 = getMethod(loc.getWorld().getClass(), "getHandle"); - Method d2 = getMethod(fw.getClass(), "getHandle"); - Object o3 = d0.invoke(loc.getWorld(), (Object[]) null); - Object o4 = d2.invoke(fw, (Object[]) null); - Method d1 = getMethod(o3.getClass(), "broadcastEntityEffect"); - FireworkMeta data = fw.getFireworkMeta(); - data.addEffect(FireworkEffect - .builder() - .with(FireworkEffect.Type.values()[gen - .nextInt(FireworkEffect.Type.values().length)]) - .flicker(gen.nextBoolean()) - .trail(gen.nextBoolean()) - .withColor( - Color.fromRGB(gen.nextInt(255), gen.nextInt(255), - gen.nextInt(255))) - .withFade( - Color.fromRGB(gen.nextInt(255), gen.nextInt(255), - gen.nextInt(255))).build()); - fw.setFireworkMeta(data); - d1.invoke(o3, new Object[] { o4, (byte) 17 }); - fw.remove(); - } - catch (Exception ex) - { - // not a Beta1.4.6R0.2 Server - } - } - public void setLv30Choice(Player p, String arg1, String arg2) { if (getJobLv(arg1, p)>=30) { if (arg2.equals("1") || arg2.equals("2")) {