Class AdminChatBucket

java.lang.Object
games.stendhal.server.entity.player.PlayerChatBucket
games.stendhal.server.entity.player.AdminChatBucket

public class AdminChatBucket extends PlayerChatBucket
a special PlayerChatBucket for admins which does not limit the message (postman generates at least twice the amount of manages than the attacker).
Author:
hendrik
  • Constructor Details

    • AdminChatBucket

      public AdminChatBucket()
  • Method Details

    • checkAndAdd

      public boolean checkAndAdd(int count)
      Description copied from class: PlayerChatBucket
      checks that the bucket is not full, yet and adds the turn in case there is still room.
      Overrides:
      checkAndAdd in class PlayerChatBucket
      Parameters:
      count - length of chat message
      Returns:
      true if the bucket is not full, yet; false otherwise.