Guest User

Untitled

a guest
May 24th, 2018
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. package net.st0rm.mc.npcs;
  2.  
  3. import org.bukkit.Location;
  4. import org.bukkit.entity.Player;
  5.  
  6. import net.st0rm.mc.npc.DialogOption;
  7. import net.st0rm.mc.npc.DialogOptionSet;
  8. import net.st0rm.mc.npc.DialogSelectionHandler;
  9. import net.st0rm.mc.npc.NPCManager;
  10. import net.st0rm.mc.npc.StationaryNPC;;
  11.  
  12. public class DildoSiskowitz extends StationaryNPC {
  13.  
  14. public DildoSiskowitz(int id, Location l) {
  15. super(id, "Dildo Siskowitz", l);
  16. // TODO Auto-generated constructor stub
  17. }
  18.  
  19. @Override
  20. public void onAction(Player plr) {
  21. whisper(plr, "I suck nards.");
  22.  
  23. final DialogOptionSet set = new DialogOptionSet();
  24. set.addOption(new DialogOption("What is your religion?", new DialogSelectionHandler() {
  25.  
  26. @Override
  27. public void handle(Player plr) {
  28. whisper(plr, "I'm a jew, but that's not a word.");
  29.  
  30. }
  31. }));
  32.  
  33. set.addOption(new DialogOption("Who do you love?", new DialogSelectionHandler() {
  34.  
  35. @Override
  36. public void handle(Player plr) {
  37. whisper(plr, "Ben. It has always been Ben.");
  38.  
  39. set.clear();
  40. set.addOption(new DialogOption("Why?", new DialogSelectionHandler() {
  41.  
  42. @Override
  43. public void handle(Player plr) {
  44. whisper(plr, "BECAUSE HE'S GORGEOUS!!!");
  45. set.clear();
  46. }
  47. }));
  48. set.print(plr);
  49.  
  50. }
  51. }));
  52. set.print(plr);
  53. NPCManager.setDialogSet(plr, set);
  54.  
  55. }
  56.  
  57. }
Add Comment
Please, Sign In to add comment