Examples of IWVWObjectiveClaimedEvent


Examples of de.justi.yagw2api.wrapper.IWVWObjectiveClaimedEvent

  @Override
  public void claim(IGuild guild) {
    if ((guild != null) && (!this.claimedByGuild.isPresent() || !this.claimedByGuild.get().equals(guild))) {
      // changed claiming guild
      final IWVWObjectiveClaimedEvent event = WVW_MODEL_EVENTS_FACTORY.newObjectiveClaimedEvent(this, guild, this.claimedByGuild);
      LOGGER.info(this.getLocation().getLabel(YAGW2APIArenanet.INSTANCE.getCurrentLocale()) + " has been claimed by: " + guild.getName() + " | previous claimed by " + this.claimedByGuild);
      this.claimedByGuild = Optional.of(guild);
      this.getChannel().post(event);
    } else if ((guild == null) && this.claimedByGuild.isPresent()) {
      // unclaim (e.g. after capture)
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.