Examples of addLine()


Examples of net.citizensnpcs.api.util.Paginator.addLine()

        if (assignmentScript.contains("SCHEDULED ACTIVITIES")) {
            entriesPresent = true;
            for (String scriptEntry : assignmentScript.getStringList("SCHEDULED ACTIVITIES"))
                paginator.addLine("<a>" + scriptEntry.split(" ")[0] + "<b> " + scriptEntry.split(" ", 2)[1]);
        } if (!entriesPresent) paginator.addLine("<c>No scheduled scripts activities.");
        paginator.addLine("");

        // Actions
        entriesPresent = false;
        paginator.addLine(ChatColor.GRAY + "Actions:");
        paginator.addLine("<e>Key: <a>Action name  <b>Script Size");
View Full Code Here

Examples of net.citizensnpcs.api.util.Paginator.addLine()

        } if (!entriesPresent) paginator.addLine("<c>No scheduled scripts activities.");
        paginator.addLine("");

        // Actions
        entriesPresent = false;
        paginator.addLine(ChatColor.GRAY + "Actions:");
        paginator.addLine("<e>Key: <a>Action name  <b>Script Size");
        if (assignmentScript.contains("ACTIONS")) entriesPresent = true;
        if (entriesPresent)
            for (String action : assignmentScript.getConfigurationSection("ACTIONS").getKeys(false))
                paginator.addLine("<a>" + action + " <b>" + assignmentScript.getStringList("ACTIONS." + action).size());
View Full Code Here

Examples of net.citizensnpcs.api.util.Paginator.addLine()

        paginator.addLine("");

        // Actions
        entriesPresent = false;
        paginator.addLine(ChatColor.GRAY + "Actions:");
        paginator.addLine("<e>Key: <a>Action name  <b>Script Size");
        if (assignmentScript.contains("ACTIONS")) entriesPresent = true;
        if (entriesPresent)
            for (String action : assignmentScript.getConfigurationSection("ACTIONS").getKeys(false))
                paginator.addLine("<a>" + action + " <b>" + assignmentScript.getStringList("ACTIONS." + action).size());
        else paginator.addLine("<c>No actions defined in the assignment.");
View Full Code Here

Examples of net.citizensnpcs.api.util.Paginator.addLine()

        paginator.addLine(ChatColor.GRAY + "Actions:");
        paginator.addLine("<e>Key: <a>Action name  <b>Script Size");
        if (assignmentScript.contains("ACTIONS")) entriesPresent = true;
        if (entriesPresent)
            for (String action : assignmentScript.getConfigurationSection("ACTIONS").getKeys(false))
                paginator.addLine("<a>" + action + " <b>" + assignmentScript.getStringList("ACTIONS." + action).size());
        else paginator.addLine("<c>No actions defined in the assignment.");
        paginator.addLine("");

        if (!paginator.sendPage(sender, page))
            throw new CommandException(Messages.COMMAND_PAGE_MISSING, page);
View Full Code Here

Examples of net.citizensnpcs.api.util.Paginator.addLine()

        paginator.addLine("<e>Key: <a>Action name  <b>Script Size");
        if (assignmentScript.contains("ACTIONS")) entriesPresent = true;
        if (entriesPresent)
            for (String action : assignmentScript.getConfigurationSection("ACTIONS").getKeys(false))
                paginator.addLine("<a>" + action + " <b>" + assignmentScript.getStringList("ACTIONS." + action).size());
        else paginator.addLine("<c>No actions defined in the assignment.");
        paginator.addLine("");

        if (!paginator.sendPage(sender, page))
            throw new CommandException(Messages.COMMAND_PAGE_MISSING, page);
    }
View Full Code Here

Examples of net.citizensnpcs.api.util.Paginator.addLine()

        if (assignmentScript.contains("ACTIONS")) entriesPresent = true;
        if (entriesPresent)
            for (String action : assignmentScript.getConfigurationSection("ACTIONS").getKeys(false))
                paginator.addLine("<a>" + action + " <b>" + assignmentScript.getStringList("ACTIONS." + action).size());
        else paginator.addLine("<c>No actions defined in the assignment.");
        paginator.addLine("");

        if (!paginator.sendPage(sender, page))
            throw new CommandException(Messages.COMMAND_PAGE_MISSING, page);
    }
View Full Code Here

Examples of net.citizensnpcs.api.util.Paginator.addLine()

    }


    public void describe(CommandSender sender, int page) throws CommandException {
        Paginator paginator = new Paginator().header("Triggers");
        paginator.addLine("<e>Key: <a>Name  <b>Status  <c>Cooldown  <d>Cooldown Type  <e>(Radius)");
        for (Entry<String, Boolean> entry : enabled.entrySet()) {
            String line = "<a> " + entry.getKey()
                    + "<b> " + (entry.getValue() ? "Enabled" : "Disabled")
                    + "<c> " + getCooldownDuration(entry.getKey())
                    + "<d> " + getCooldownType(entry.getKey()).name()
View Full Code Here

Examples of net.sf.minuteProject.loader.implicitstructure.node.Lines.addLine()

      // skip first line
      strLine = br.readLine();
      // Read File Line By Line
      while ((strLine = br.readLine()) != null) {
        // Print the content on the console
        lines.addLine(parseLine(strLine, separator, properties));
        // System.out.println (strLine);
      }
      // Close the input stream
      in.close();
    } catch (Exception e) {// Catch exception if any
View Full Code Here

Examples of net.sourceforge.cobertura.coveragedata.ClassData.addLine()

                    prevHits = sld.getHits();
                    prevConditions = sld.getConditionSize();
                }
            }
            int diffHits = (int) (afterHits - prevHits);
            result.addLine(lld.getLineNumber(), lld.getMethodName(),
                    lld.getMethodDescriptor());
            if (diffHits > 0) {
                result.touch(lld.getLineNumber(), diffHits);
            }
            if (diffHits < 0) {
View Full Code Here

Examples of org.activiti.workflow.simple.alfresco.conversion.script.ScriptServiceTaskBuilder.addLine()

  @Override
  protected ServiceTask createProcessArtifact(AlfrescoEmailStepDefinition stepDefinition,
    WorkflowDefinitionConversion conversion) {
   
    ScriptServiceTaskBuilder builder = new ScriptServiceTaskBuilder();
    builder.addLine("var mail = actions.create('mail');");
    addMailActionParameter("to", getSafeJsString(stepDefinition.getTo()), builder);
    addMailActionParameter("cc", getSafeJsString(stepDefinition.getCc()), builder);
    addMailActionParameter("from", getSafeJsString(stepDefinition.getFrom()), builder);
    addMailActionParameter("subject", getSafeJsString(stepDefinition.getSubject()), builder);
    addMailActionParameter("text", getSafeJsString(stepDefinition.getBody()), builder);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.