Why im getting this error i tried a lot of things but couldnt fix it…
piece of code that (probably) make this error
Why im getting this error i tried a lot of things but couldnt fix it…
piece of code that (probably) make this error
Your running api 8. Run api 7-7.2 and it should work. (Latest recommended build is 7.1.6)
Api 8 isnt ready at all yet so dont develop for it
Now I have next error
Its a simple nullpointerexception. What is on line 58 of that listener class?
code of my lister and commands
package Commands;import java.lang.reflect.Array;import java.util.ArrayList - Pastebin.com
The following line needs to be changed to the next.
static ArrayList<Player> shooters;
static ArrayList<Player> shooters = new ArrayList<>();
Also checking that the player is not null after setting the player object is not needed. Just a waste of resources.