I'd just use a hashmap. To set it up: public final HashMap<String, Boolean> PlayingSpleef= new HashMap<String, Boolean>(); To add a player:...
Hey there, More or less what the title says, I'm trying to restrict certain players from equipping certain armor. I can't find a 'ArmorEquip'...
Hey there, So instead of having the classic /help I want the command to give the player a book that lists the commands instead. Does anyone have...
Hey there, While trying to make a simple leveling type plugin I've encountered a small bug. After spending countless hours trying to figure it...
Thank you so much for all the help, you did not only fix my problem but explained in detail why it wasn't working. I am very grateful.
Oh yes, sorry. My bad, I was replying through my phone. You're correct. I misunderstood what you where asking. I meant to say...
Everything is in the main class. The getConfig() method is apart of the configFile class, I did not write the method, it returns a value from a...
You're right, I should use .getName(), but that can't be the issue considering only my plugin is running, and it doesn't tamper with display names.
Hey there, So recently i've been playing around with saving/loading player data from a hashmap to a config file dedicated to that player. I've...
Alright? So I have the following. private MinecraftLegend plugin; // pointer to your main class, unrequired if you don't need methods from the...
I feel really stupid. [IMG] What in gods name am I doing wrong?
I read the whole page, but I'm still having difficulties understanding what I need to do. If you would be so kind, explain it to me like i'm a 4...
How would I do that in code?
Hey there, So inside my main I create a hashmap that stores an integer value. public final HashMap<Player, Integer> PlayerClass = new...
Thanks
That code results in an error. You're right, that's the issue. I just don't know how I would register an event for main?
Hey there, So I'm trying to simply load a config file when a player joins the server, however for some reason the event isn't triggering. I've...
I'll look into that, thanks. How would I put the data read into a hashmap?
I believe a properties file would be the best approach. Any links/resources in regards to reading/writing property files? Also any hash map...
Yes, you're right. I've misunderstood how YAML works.
Separate names with a comma.