[SOLVED] Lib's Disguises

Discussion in 'Spigot Plugin Development' started by InfiniteIV, Jun 15, 2015.

  1. First of all, disguising as a player with /disguise does
    That's strange as it is, but when I use the API, no one is disguised at all. I know I am using the API correctly, look.
    Code (Text):
                PlayerDisguise dis  = new PlayerDisguise(disguise);
    How can I make it so thathe player does not see his own disguise and they actually work WITHOUT being like the above?
  2. In the settings you can disable this option.
    Code (Text):
    UndisguiseRadiusMax: 50
    # Shall the players view their disguises?
    # Best used when viewing yourself in 3rd person
    ViewSelfDisguises: false
    # Shall I disguise the sounds?
    # This turns your damage sound into a MOO
  3. What about me disguising the players? What's wrong with the code?
  4. Solved it , I did DisguiseAPI.disguiseToAll(p,dis); BUT
    I get this stack trace
    Code (Text):
    [17:31:42 WARN]: [Murder] Task #19 for Murder v1.0 generated an exception
            at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:859) ~[?:1.7.0_79]
            at java.util.ArrayList$Itr.next(ArrayList.java:831) ~[?:1.7.0_79]
            at java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1067) ~[?:1.7.0_79]
            at me.libraryaddict.disguise.DisguiseAPI.disguiseToAll(DisguiseAPI.java:220) ~[?:?]
            at net.mcsro.Murder.Murderer.disguisePlayers(Murderer.java:421) ~[?:?]
            at net.mcsro.Murder.Timers.Countdown.run(Countdown.java:59) ~[?:?]
            at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71) ~[spigot.jar:git-Spigot-262ce89-01930e2]
            at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [spigot.jar:git-Spigot-262ce89-01930e2]
            at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:726) [spigot.jar:git-Spigot-262ce89-01930e2]
            at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:367) [spigot.jar:git-Spigot-262ce89-01930e2]
            at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:657) [spigot.jar:git-Spigot-262ce89-01930e2]
            at net.minecraft.server.v1_8_R3.MinecraftServer.run(Min