FloodProtectorConfig.java 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * This program is free software: you can redistribute it and/or modify it under
  3. * the terms of the GNU General Public License as published by the Free Software
  4. * Foundation, either version 3 of the License, or (at your option) any later
  5. * version.
  6. *
  7. * This program is distributed in the hope that it will be useful, but WITHOUT
  8. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  9. * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  10. * details.
  11. *
  12. * You should have received a copy of the GNU General Public License along with
  13. * this program. If not, see <http://www.gnu.org/licenses/>.
  14. */
  15. package com.l2jserver.gameserver.util;
  16. /**
  17. * Flood protector configuration
  18. * @author fordfrog
  19. */
  20. public final class FloodProtectorConfig
  21. {
  22. /**
  23. * Type used for identification of logging output.
  24. */
  25. public String FLOOD_PROTECTOR_TYPE;
  26. /**
  27. * Flood protection interval in game ticks.
  28. */
  29. public int FLOOD_PROTECTION_INTERVAL;
  30. /**
  31. * Whether flooding should be logged.
  32. */
  33. public boolean LOG_FLOODING;
  34. /**
  35. * If specified punishment limit is exceeded, punishment is applied.
  36. */
  37. public int PUNISHMENT_LIMIT;
  38. /**
  39. * Punishment type. Either 'none', 'kick', 'ban' or 'jail'.
  40. */
  41. public String PUNISHMENT_TYPE;
  42. /**
  43. * For how long should the char/account be punished.
  44. */
  45. public int PUNISHMENT_TIME;
  46. /**
  47. * Creates new instance of FloodProtectorConfig.
  48. * @param floodProtectorType {@link #FLOOD_PROTECTOR_TYPE}
  49. */
  50. public FloodProtectorConfig(final String floodProtectorType)
  51. {
  52. super();
  53. FLOOD_PROTECTOR_TYPE = floodProtectorType;
  54. }
  55. }