MapleGuildResponse.java
Upload User: gwt600
Upload Date: 2021-06-03
Package Size: 704k
Code Size: 1k
Category:

Games

Development Platform:

Java

  1. /*
  2. This file was written by "StellarAshes" <stellar_dust@hotmail.com> 
  3. as a part of the Guild package for
  4. the OdinMS Maple Story Server
  5. Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc> 
  6. Matthias Butz <matze@odinms.de>
  7. Jan Christian Meyer <vimes@odinms.de>
  8. This program is free software: you can redistribute it and/or modify
  9. it under the terms of the GNU Affero General Public License version 3
  10. as published by the Free Software Foundation. You may not use, modify
  11. or distribute this program under any other version of the
  12. GNU Affero General Public License.
  13. This program is distributed in the hope that it will be useful,
  14. but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. GNU Affero General Public License for more details.
  17. You should have received a copy of the GNU Affero General Public License
  18. along with this program.  If not, see <http://www.gnu.org/licenses/>.
  19.  */
  20. package net.sf.odinms.net.world.guild;
  21. import net.sf.odinms.tools.MaplePacketCreator;
  22. import net.sf.odinms.net.MaplePacket;
  23. public enum MapleGuildResponse {
  24.     NOT_IN_CHANNEL(0x2a),
  25.     ALREADY_IN_GUILD(0x28),
  26.     NOT_IN_GUILD(0x2d);
  27.     private int value;
  28.     private MapleGuildResponse(int val) {
  29.         value = val;
  30.     }
  31.     public int getValue() {
  32.         return value;
  33.     }
  34.     public MaplePacket getPacket() {
  35.         return MaplePacketCreator.genericGuildMessage((byte) value);
  36.     }
  37. }