PlayerTracert.java 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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.loginserver.gameserverpackets;
  16. import com.l2jserver.util.network.BaseRecievePacket;
  17. /**
  18. * @author mrTJO
  19. *
  20. */
  21. public class PlayerTracert extends BaseRecievePacket
  22. {
  23. private String _account;
  24. private String _pcIp;
  25. private String _hop1;
  26. private String _hop2;
  27. private String _hop3;
  28. private String _hop4;
  29. /**
  30. * @param decrypt
  31. */
  32. public PlayerTracert(byte[] decrypt)
  33. {
  34. super(decrypt);
  35. _account = readS();
  36. _pcIp = readS();
  37. _hop1 = readS();
  38. _hop2 = readS();
  39. _hop3 = readS();
  40. _hop4 = readS();
  41. }
  42. /**
  43. * @return Returns the account.
  44. */
  45. public String getAccount()
  46. {
  47. return _account;
  48. }
  49. /**
  50. * @return Returns PC IP.
  51. */
  52. public String getPcIp()
  53. {
  54. return _pcIp;
  55. }
  56. /**
  57. * @return Returns 1st Traceroute Hop.
  58. */
  59. public String getFirstHop()
  60. {
  61. return _hop1;
  62. }
  63. /**
  64. * @return Returns 2nd Traceroute Hop.
  65. */
  66. public String getSecondHop()
  67. {
  68. return _hop2;
  69. }
  70. /**
  71. * @return Returns 3rd Traceroute Hop.
  72. */
  73. public String getThirdHop()
  74. {
  75. return _hop3;
  76. }
  77. /**
  78. * @return Returns 4th Traceroute Hop.
  79. */
  80. public String getFourthHop()
  81. {
  82. return _hop4;
  83. }
  84. }