FloodProtectorConfig.java 1.7 KB

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