Solved I don't understand why this fails.

Discussion in 'Plugin Development' started by SlimeyDerp, Apr 4, 2020.

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

    SlimeyDerp

    https://pastebin.com/ymYfBpWg

    I made this. It's supposed to make you "throw" your sword at enemies, but whenever I trigger the sword, the server just crashes, no error logs, no explanation, nothing. Although, I know the stand is generated and when I log back into the server, there's the stand with the sword on it's head ( invisible stand btw ) but it seems as if I'm doing something wrong. Anybody can help me debug this weird code?
     
  2. Offline

    CraftCreeper6

    @SlimeyDerp
    The server might be crashing before any of the if statements are met.
     
Thread Status:
Not open for further replies.

Share This Page