I wrote a plugin for fly, when I give it to another player it works, but when I give it to myself it gives me an error, does anyone know how to fix it? Video of the error and the plugin:
@timtower the error is an array out of bounds exception and it's on this line Code: Player cel = Bukkit.getPlayer(args[0]); Your problem is that you have no return statements in your code so when a player types /fly there are no args and that's why it's throwing that error.