Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.st0rm.mc.npcs;
- import org.bukkit.Location;
- import org.bukkit.entity.Player;
- import net.st0rm.mc.npc.DialogOption;
- import net.st0rm.mc.npc.DialogOptionSet;
- import net.st0rm.mc.npc.DialogSelectionHandler;
- import net.st0rm.mc.npc.NPCManager;
- import net.st0rm.mc.npc.StationaryNPC;;
- public class DildoSiskowitz extends StationaryNPC {
- public DildoSiskowitz(int id, Location l) {
- super(id, "Dildo Siskowitz", l);
- // TODO Auto-generated constructor stub
- }
- @Override
- public void onAction(Player plr) {
- whisper(plr, "I suck nards.");
- final DialogOptionSet set = new DialogOptionSet();
- set.addOption(new DialogOption("What is your religion?", new DialogSelectionHandler() {
- @Override
- public void handle(Player plr) {
- whisper(plr, "I'm a jew, but that's not a word.");
- }
- }));
- set.addOption(new DialogOption("Who do you love?", new DialogSelectionHandler() {
- @Override
- public void handle(Player plr) {
- whisper(plr, "Ben. It has always been Ben.");
- set.clear();
- set.addOption(new DialogOption("Why?", new DialogSelectionHandler() {
- @Override
- public void handle(Player plr) {
- whisper(plr, "BECAUSE HE'S GORGEOUS!!!");
- set.clear();
- }
- }));
- set.print(plr);
- }
- }));
- set.print(plr);
- NPCManager.setDialogSet(plr, set);
- }
- }
Add Comment
Please, Sign In to add comment