RequestBBSwrite.java 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 net.sf.l2j.gameserver.clientpackets;
  16. import net.sf.l2j.gameserver.communitybbs.CommunityBoard;
  17. /**
  18. * Format SSSSSS
  19. * @author -Wooden-
  20. *
  21. */
  22. public class RequestBBSwrite extends L2GameClientPacket
  23. {
  24. private static final String _C__22_REQUESTBBSWRITE = "[C] 22 RequestBBSwrite";
  25. private String _url;
  26. private String _arg1;
  27. private String _arg2;
  28. private String _arg3;
  29. private String _arg4;
  30. private String _arg5;
  31. @Override
  32. protected void readImpl()
  33. {
  34. _url = readS();
  35. _arg1 = readS();
  36. _arg2 = readS();
  37. _arg3 = readS();
  38. _arg4 = readS();
  39. _arg5 = readS();
  40. }
  41. /* (non-Javadoc)
  42. * @see net.sf.l2j.gameserver.clientpackets.ClientBasePacket#runImpl()
  43. */
  44. @Override
  45. protected
  46. void runImpl()
  47. {
  48. CommunityBoard.getInstance().handleWriteCommands(getClient(),_url,_arg1,_arg2, _arg3, _arg4, _arg5);
  49. }
  50. /* (non-Javadoc)
  51. * @see net.sf.l2j.gameserver.BasePacket#getType()
  52. */
  53. @Override
  54. public String getType()
  55. {
  56. return _C__22_REQUESTBBSWRITE;
  57. }
  58. }