Package ca.xshade.bukkit.questioner

Examples of ca.xshade.bukkit.questioner.Questioner


        private static void townInviteResident(Town town, Resident newMember) throws AlreadyRegisteredException {
                Plugin test = Bukkit.getServer().getPluginManager().getPlugin("Questioner");
               
                if (TownySettings.isUsingQuestioner() && test != null && test instanceof Questioner && test.isEnabled()) {
                        Questioner questioner = (Questioner)test;
                        questioner.loadClasses();
                       
                        List<Option> options = new ArrayList<Option>();
                        options.add(new Option(TownySettings.questionerAccept(), new JoinTownTask(newMember, town)));
                        options.add(new Option(TownySettings.questionerDeny(), new ResidentTownQuestionTask(newMember, town) {
                                @Override
View Full Code Here


    Plugin test = plugin.getServer().getPluginManager().getPlugin("Questioner");

    Resident townMayor = town.getMayor();

    if (TownySettings.isUsingQuestioner() && test != null && test instanceof Questioner && test.isEnabled()) {
      Questioner questioner = (Questioner) test;
      questioner.loadClasses();

      List<Option> options = new ArrayList<Option>();
      options.add(new Option(TownySettings.questionerAccept(), new JoinNationTask(townMayor, nation)));
      options.add(new Option(TownySettings.questionerDeny(), new ResidentNationQuestionTask(townMayor, nation) {
        @Override
View Full Code Here

TOP

Related Classes of ca.xshade.bukkit.questioner.Questioner

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.