Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. private void add() {
  2. this.event.addRandomObject(new RandomEvent.RandomInterface() {
  3. @SuppressWarnings("deprecation")
  4. @Override
  5. public void onRandom(final Player player) {
  6. player.addPotionEffect(new PotionEffect(PotionEffectType.JUMP, 400, 4));
  7. player.sendTitle("§8┃ §a§lBuildFFA §8┃","§8➟ §7Jump");
  8. }
  9. });
  10. this.event.addRandomObject(new RandomEvent.RandomInterface() {
  11. @SuppressWarnings("deprecation")
  12. @Override
  13. public void onRandom(final Player player) {
  14. player.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 400, 4));
  15. player.sendTitle("§8┃ §a§lBuildFFA §8┃","§8➟ §7Schnelligkeit");
  16. }
  17. });
  18.  
  19. this.event.addRandomObject(new RandomEvent.RandomInterface() {
  20. @SuppressWarnings("deprecation")
  21. @Override
  22. public void onRandom(final Player player) {
  23. player.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, 400, 4));
  24. player.sendTitle("§8┃ §a§lBuildFFA §8┃","§8➟ §7Betrunken");
  25. }
  26. });
  27.  
  28. this.event.addRandomObject(new RandomEvent.RandomInterface() {
  29. @SuppressWarnings("deprecation")
  30. @Override
  31. public void onRandom(final Player player) {
  32. player.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 400, 4));
  33. player.sendTitle("§8┃ §a§lBuildFFA §8┃","§8➟ §7Langsamkeit");
  34. }
  35. });
  36.  
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement