Actually, my solution was a bit different, but much easier. I used a bow and on projectilehitevent I spawned primed TNT. It was much more fluent...
It's a thing with kids, they complain and come up with excuses to try and get what they want. Just part of human nature. Take a look at half the...
Good luck finding someone willing to code you a novel then.
Yes.
Doesn't a string list start at 0 though?
when i just type /givespear i get the arrayindexoutofboundserror (0 arguments).
Ok, got that problem fixed. Now i need to fix the other one. P.S : Everything works but 0.
Code again: if(cmd.getName().equalsIgnoreCase("givespear")) { Mech M = new Mech(plugin); if(sender instanceof Player) { Player p = (Player)...
I tried this, but when i enter just /givespear i get the error...
How would i check to see if they are null, since a length of 0 is null.
I probably put the catch in the wrong place, i put it right under the try. And what about the other error, do you have any suggestions?
This code works much better, except for one problem. I do not get the error but a spear is still added to my inventory. The odd thing is i cannot...
Just did, and what do you mean "around"? Do you mean right before it?
I was going to use a try-catch but i was not sure where to put it in regards to the if statement. Also, i typed only /givespear and i received the...
Currently my code is throwing two types of errors in two different arguments. Main: Player p = (Player) sender; Player tp =...
-_-... thanks. Guess i couldn't figure out how to switch two lines of code on my own.
I have been struggling with this for quite some time. Not too sure what i am doing wrong here. If somebody could point it out that would be great,...
Wait...did you just say... [IMG] ??!?!
Once again, you save the day! Thanks so much :D
Doesn't work. I can only use Object[] and not itemstack[]. If i try casting i get an error. Any ideas? Error: Caused by:...
Separate names with a comma.