Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void add() {
- this.event.addRandomObject(new RandomEvent.RandomInterface() {
- @SuppressWarnings("deprecation")
- @Override
- public void onRandom(final Player player) {
- player.addPotionEffect(new PotionEffect(PotionEffectType.JUMP, 400, 4));
- player.sendTitle("§8┃ §a§lBuildFFA §8┃","§8➟ §7Jump");
- }
- });
- this.event.addRandomObject(new RandomEvent.RandomInterface() {
- @SuppressWarnings("deprecation")
- @Override
- public void onRandom(final Player player) {
- player.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 400, 4));
- player.sendTitle("§8┃ §a§lBuildFFA §8┃","§8➟ §7Schnelligkeit");
- }
- });
- this.event.addRandomObject(new RandomEvent.RandomInterface() {
- @SuppressWarnings("deprecation")
- @Override
- public void onRandom(final Player player) {
- player.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, 400, 4));
- player.sendTitle("§8┃ §a§lBuildFFA §8┃","§8➟ §7Betrunken");
- }
- });
- this.event.addRandomObject(new RandomEvent.RandomInterface() {
- @SuppressWarnings("deprecation")
- @Override
- public void onRandom(final Player player) {
- player.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 400, 4));
- player.sendTitle("§8┃ §a§lBuildFFA §8┃","§8➟ §7Langsamkeit");
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement