Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- void onShear(PlayerShearEntityEvent e)
- {
- Random rand = new Random();
- int liczba = rand.nextInt(100);
- int procentSzansy = getConfig().getInt("SzansaWybuchuProcent");
- if (liczba <= procentSzansy)
- {
- int mocOwcy = getConfig().getInt("MocOwcy");
- e.getEntity().getWorld().createExplosion(e.getEntity().getLocation(), mocOwcy, true);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement