DisguiseCraft isn't disguising

Discussion in 'Plugin Development' started by Pezah, Jan 5, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Pezah

    It's not giving me any errors, just not disguising me - please help;

    Code:java
    1. public static enum MorphType
    2. {
    3. NONE,
    4. COW,
    5. PIG;
    6. }
    7.  
    8. public static HashMap<String, MorphType> morphList = new HashMap<String, MorphType>();
    9. public static DisguiseCraftAPI morphAPI;
    10.  
    11. public static void morph(Player p, MorphType type)
    12. {
    13. if(type == MorphType.PIG)
    14. {
    15. if(type != null && morphAPI != null && MorphType.PIG != null)
    16. morphAPI.disguisePlayer(p, new Disguise(morphAPI.newEntityID(), DisguiseType.Pig));
    17. }
    18. }


    bump

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 6, 2016
  2. Offline

    RawCode

    what about adding debug messages into your code?
     
Thread Status:
Not open for further replies.

Share This Page