Sorry, I apparently missed a line in the tutorial. Thanks for pointing this out, it has been added:
@Ethan Rocks 365
Wouldn't the use of inv.removeItem(item) be more suitable rather than setting the slot to null?
What happens when you change the single-quote to double-quotes before and after the table name, like so:...
That's called an error, I believe. If you hover over it, it'll tell you why!
Also, you are executing "e.setCancelled()" in a...
Now, how the hell did you get your hands on a private plugin made by a server network? This plugin is most probably copyrighted and/or...
@Ethan Rocks 365
Although the previous fine gents certainly do not appreciate your probable lack of Java experience from what I can see, I will...
You should not be using the Player object as a key inside a Map. Instead, you should be using the player's Unique ID, as per convention, to link...
this is a simple tutorial on how to build your plugins and run your local server directly inside IntelliJ IDEA's console. This...
Okay, just tested it myself, but it does in fact work correctly on my end. It is most certainly not related to the given code, but...
Just to clarify what @I Al Istannen just said, this is what you should be doing:
You need to this that the variable "args" is an...
Could you please ensure player.getKits() returns an array containing at least a positive value? Please debug the array at first so...
Can you please give us any stacktraces you get when executing the code, as well as the line(s) they could be pointing too?
Please provide more details, such as a stacktrace from your console (and the code related to it), so we can assist you further.
onCommand(...) will only fire when the command is registered as part of the current plugin.
Separate names with a comma.