Package games.stendhal.server.core.engine

Examples of games.stendhal.server.core.engine.GameEvent


          }

          String message = player.getName() + " has a large amount of items";
          if (caught) {

            new GameEvent("fish inspect", "jail", player.getName(), Integer.toString(-1), "possible macro use to get fish").raise();
            SingletonRepository.getJail().imprison(player.getName(), player, -1, "possible macro use to get fish");
            player.sendPrivateText("Please use /support to talk to an admin about your large amount of fish which may have been obtained illegally.");
            player.notifyWorldAboutChanges();

            message = "auto jailed " + player.getName() + " because of a large number of fish";
          }

          if (warn || caught) {

            new GameEvent("fish inspect", "support", message).raise();
            SingletonRepository.getRuleProcessor().sendMessageToSupporters("fish inspect", message);
            logger.warn("User with large amount of fish: " + message + "\r\n" + sb.toString());
          }
        }
      }
View Full Code Here


              message = Grammar.quantityplnoun(item.getQuantity(), item.getName(), "A")
                        + " which you left on the floor in the vault "+ Grammar.hashave(item.getQuantity())+" been automatically "
                        + "returned to your bag.";

              new GameEvent(((RPEntity) entity).getName(), "equip", item.getName(), "vault", "bag", Integer.toString(item.getQuantity())).raise();
            } else {
              boolean equippedToBank = ((RPEntity) entity).equip(
                  "bank", item);
              if (equippedToBank) {
                message =  Grammar.quantityplnoun(item.getQuantity(), item.getName(), "A")
                + " which you left on the floor in the vault "+ Grammar.hashave(item.getQuantity())+" been automatically "
                + "returned to your bank chest.";

                new GameEvent(((RPEntity) entity).getName(), "equip", item.getName(), "vault", "bank", Integer.toString(item.getQuantity())).raise();
              } else {
                // the player lost their items
                message = Grammar.quantityplnoun(item.getQuantity(), item.getName(), "A")
                          + " which you left on the floor in the vault "+ Grammar.hashave(item.getQuantity())+" been thrown into "
                          + "the void, because there was no space to fit them into either your "
View Full Code Here

              }
              final String playerName = sentence.getOriginalText().substring("delete ".length()).trim();
              if (rentedSignList.removeByName(playerName)) {
                final String message = player.getName() + " deleted sign from " + playerName;
                SingletonRepository.getRuleProcessor().sendMessageToSupporters("SignLessorNPC", message);
                new GameEvent(player.getName(), "sign", "deleted", playerName).raise();
              } else {
                player.sendPrivateText("I could not find a sign by " + playerName);
              }
            }
View Full Code Here

        String message = player.getName() + " rented a sign saying \"" + text + "\"";
        if (postman != null) {
          postman.sendPrivateText(message);
        }
        logger.log(Level.toLevel(System.getProperty("stendhal.support.loglevel"), Level.DEBUG), message);
        new GameEvent(player.getName(), "sign", "rent", text).raise();
      } else {
        npc.say("Sorry, there are too many signs at the moment. I do not have a free spot left.");
      }
    }
View Full Code Here

    // do the modifications here
    object.put("adminlevel", Integer.parseInt(newLevel));

    // log game event
    new GameEvent(admin.getName(), "adminlevel", playerName, "adminlevel", newLevel).raise();
  }
View Full Code Here

          }

          String message = player.getName() + " has a large amount of items";
          if (caught) {

            new GameEvent("bug inspect", "jail", player.getName(), Integer.toString(-1), "possible bug abuse").raise();
            SingletonRepository.getJail().imprison(player.getName(), player, -1, "possible bug abuse");
            player.sendPrivateText("Please use /support to talk to an admin about your large amount of items which may have been the result of a bug.");
            player.notifyWorldAboutChanges();

            message = "auto jailed " + player.getName() + " because of a large number of items";
          }

          if (warn || caught) {

            new GameEvent("bug inspect", "support", message).raise();
            SingletonRepository.getRuleProcessor().sendMessageToSupporters("bug inspect", message);
            logger.warn("User with large amout of items: " + message + "\r\n" + sb.toString());
          }
        }
      }
View Full Code Here

   * @param rpEntity entity pushed
   * @param x new x-position
   * @param y new y-position
   */
  private void move(final Player player, final RPEntity rpEntity, final int x, final int y) {
    new GameEvent(player.getName(), "push", rpEntity.getName(), rpEntity.getZone().getName(), rpEntity.getX() + " " + rpEntity.getY() + " --> " + x + " " + y).raise();
    rpEntity.setPosition(x, y);
    rpEntity.notifyWorldAboutChanges();
    player.onPush(rpEntity);
  }
View Full Code Here

    ThePiedPiper.setNewNotificationTime(
        ThePiedPiper.getDefaultPhaseClass().getMinTimeOut(),
        ThePiedPiper.getDefaultPhaseClass().getMaxTimeOut())
    ThePiedPiper.getDefaultPhaseClass().prepare();
    if(!comments.isEmpty()) {
      new GameEvent(null, "raid", comments.toString()).raise();
    }
  }
View Full Code Here

  }

  public void phaseToNextPhase(ITPPQuest nextPhase, List<String> comments) {
    shoutMessage(getSwitchingToNextPhaseMessage());
    if(!comments.isEmpty()) {
      new GameEvent(null, "raid", comments.toString()).raise();
    }
    logger.info("ThePiedPiper quest: switch phase to ("+nextPhase.getPhase().name()+").");
    ThePiedPiper.setPhase(nextPhase.getPhase());
    stopShouts();
    ThePiedPiper.setNewNotificationTime(
View Full Code Here

TOP

Related Classes of games.stendhal.server.core.engine.GameEvent

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.