ExCubeGameChangeTimeToStart.java 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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.network.serverpackets;
  16. /**
  17. * Format: (chd) d
  18. * d: Seconds Left
  19. *
  20. * @author mrTJO
  21. */
  22. public class ExCubeGameChangeTimeToStart extends L2GameServerPacket
  23. {
  24. private static final String _S__FE_97_03_EXCUBEGAMECHANGETIMETOSTART = "[S] FE:97:03 ExCubeGameChangeTimeToStart";
  25. int _seconds;
  26. /**
  27. * Update Minigame Waiting List Time to Start
  28. *
  29. * @param seconds
  30. */
  31. public ExCubeGameChangeTimeToStart(int seconds)
  32. {
  33. _seconds = seconds;
  34. }
  35. /* (non-Javadoc)
  36. * @see com.l2jserver.gameserver.serverpackets.ServerBasePacket#writeImpl()
  37. */
  38. @Override
  39. protected void writeImpl()
  40. {
  41. writeC(0xfe);
  42. writeH(0x97);
  43. writeD(0x03);
  44. writeD(_seconds);
  45. }
  46. /* (non-Javadoc)
  47. * @see com.l2jserver.gameserver.BasePacket#getType()
  48. */
  49. @Override
  50. public String getType()
  51. {
  52. return _S__FE_97_03_EXCUBEGAMECHANGETIMETOSTART;
  53. }
  54. }