Package org.bat.client.plugins.prots

Examples of org.bat.client.plugins.prots.Prot


        }
      } catch (Throwable t) {
        myHandler.debugInfo("EXCEPTION: " + t.getMessage());
      }
      if (!(ProtsState.myProts.containsKey(protName) || protName.startsWith("Effect"))) {
        ProtsState.myProts.put(protName, new Prot(protName, ProtsState.stickyActive));
        myHandler.doCommand(
            "@party report " + protName
                + (ProtsState.stickyActive ? " (sticky)" : "")
                + " UP (Duration: " + protLasts + ")");
      }
      if (checkProts.containsKey(protName)) {
        myHandler.debugInfo("No need to report down for: " + protName);
        checkProts.remove(protName);
      }
      if (reportToParty && !"Effect".equals(protName)) {
        Prot activeProt = ProtsState.myProts.get(protName);
        if (ProtsHandler.getShortNameMap().get(protName.toLowerCase()) != null) {
          reportPartyProts.append(ProtsHandler.getShortNameMap().get(protName.toLowerCase()));
          if (activeProt.isSticky())
            reportPartyProts.append("-S");
          if (!protLasts.equals("For now")) {
            reportPartyProts.append(" (");
            reportPartyProts.append(protLasts);
            reportPartyProts.append(")  ");
View Full Code Here


      if ("n extra".equals(triggerMatcher.group(1))) {
        ProtsState.stickyActive = true;
      }
    }
    if (TRIGGER_HW_STICKY.equals(triggerName)) {
      Prot hwProt = ProtsState.myProts.get("heavy weight");
      if (hwProt != null) {
        hwProt.setSticky(true);
      }
    }
    if (TRIGGER_REPORTPARTY1.equals(triggerName) || TRIGGER_REPORTPARTY2.equals(triggerName)) {
      myHandler.doCommand("cp");
    } else {
View Full Code Here

TOP

Related Classes of org.bat.client.plugins.prots.Prot

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.