Examples of describeTo()


Examples of com.massivecraft.factions.entity.UPlayer.describeTo()

      return;
    }

    if (faction == uplayerFaction)
    {
      msg("<i>%s <i>%s already a member of %s<i>.", uplayer.describeTo(usender, true), (samePlayer ? "are" : "is"), faction.getName(usender));
      return;
    }

    if (UConf.get(faction).factionMemberLimit > 0 && faction.getUPlayers().size() >= UConf.get(faction).factionMemberLimit)
    {
View Full Code Here

Examples of com.massivecraft.factions.entity.UPlayer.describeTo()

      return;
    }

    if (UConf.get(faction).factionMemberLimit > 0 && faction.getUPlayers().size() >= UConf.get(faction).factionMemberLimit)
    {
      msg(" <b>!<white> The faction %s is at the limit of %d members, so %s cannot currently join.", faction.getName(usender), UConf.get(faction).factionMemberLimit, uplayer.describeTo(usender, false));
      return;
    }

    if (uplayerFaction.isNormal())
    {
View Full Code Here

Examples of com.massivecraft.factions.entity.UPlayer.describeTo()

      return;
    }

    if (uplayerFaction.isNormal())
    {
      msg("<b>%s must leave %s current faction first.", uplayer.describeTo(usender, true), (samePlayer ? "your" : "their"));
      return;
    }

    if (!UConf.get(faction).canLeaveWithNegativePower && uplayer.getPower() < 0)
    {
View Full Code Here

Examples of com.massivecraft.factions.entity.UPlayer.describeTo()

      return;
    }

    if (!UConf.get(faction).canLeaveWithNegativePower && uplayer.getPower() < 0)
    {
      msg("<b>%s cannot join a faction with a negative power level.", uplayer.describeTo(usender, true));
      return;
    }

    if( ! (faction.isOpen() || faction.isInvited(uplayer) || usender.isUsingAdminMode() || Perm.JOIN_ANY.has(sender, false)))
    {
View Full Code Here

Examples of com.massivecraft.factions.entity.UPlayer.describeTo()

    if( ! (faction.isOpen() || faction.isInvited(uplayer) || usender.isUsingAdminMode() || Perm.JOIN_ANY.has(sender, false)))
    {
      msg("<i>This faction requires invitation.");
      if (samePlayer)
      {
        faction.msg("%s<i> tried to join your faction.", uplayer.describeTo(faction, true));
      }
      return;
    }

    // Event
View Full Code Here

Examples of org.gradle.model.internal.core.rule.describe.ModelRuleDescriptor.describeTo()

        ModelRuleDescriptor creator = creators.get(type);
        if (creator != null) {
            StringBuilder builder = new StringBuilder("Cannot register a factory for type ")
                    .append(type.getSimpleName())
                    .append(" because a factory for this type was already registered by ");
            creator.describeTo(builder);
            builder.append(".");
            throw new GradleException(builder.toString());
        }
        creators.put(type, RuleContext.get());
    }
View Full Code Here

Examples of org.jbehave.core.steps.StepResult.describeTo()

            if ( step instanceof ParametrisedStep ){
                ((ParametrisedStep)step).describeTo(reporter.get());
            }
            UUIDExceptionWrapper storyFailureIfItHappened = storyFailure.get();
            StepResult result = step.perform(storyFailureIfItHappened);
            result.describeTo(reporter.get());
            UUIDExceptionWrapper stepFailure = result.getFailure();
            if (stepFailure == null) {
                return this;
            }
View Full Code Here

Examples of org.jbehave.core.steps.StepResult.describeTo()

            this.scenarioFailure = scenarioFailure;
        }

        public State run(Step step) {
            StepResult result = step.doNotPerform(scenarioFailure);
            result.describeTo(reporter.get());
            return this;
        }
    }

    @Override
View Full Code Here

Examples of org.jbehave.core.steps.StepResult.describeTo()

    }

    private class SomethingHappened implements State {
        public void run(Step step) {
            StepResult result = step.doNotPerform();
            result.describeTo(reporter);
        }
    }

    private final class FineSoFar implements State {
View Full Code Here

Examples of org.jbehave.core.steps.StepResult.describeTo()

    private final class FineSoFar implements State {

        public void run(Step step) {

            StepResult result = step.perform();
            result.describeTo(reporter);
            Throwable scenarioFailure = result.getFailure();
            if (scenarioFailure != null) {
                state = new SomethingHappened();
                storyFailure = mostImportantOf(storyFailure, scenarioFailure);
                currentStrategy = strategyFor(storyFailure);
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.