I copy and pasted your code and it seems to be working fine https://prnt.sc/15u1dvc EDIT: I think I misunderstood you, are you trying to make...
I have bungeecord set up on my servers. There's data that I need to be saved and accessible on the bungee level. For example, let's say I have a...
I had this same issue, the problem is custom recipe uses Material and not ItemStack. There might be a way to do it, but I haven't found any....
I will in a sec, but here's the issue in depth - I have a constructor that takes a random Int and returns an ItemStack. So I run it 9 times to get...
Ah that's an idea. Let me try that Edit. So wait I'm confused. How would I have a variable that I can change the number in it like that? Unless...
updateInventory wasn't my first choice lol. Just trying everything at this point. When I put my setItem code inside of the runnable it gives error...
So I'm trying to make crate keys... And I want the items to change while the GUI is open. I've tried numerous ways to do this, and I'm out of...
@KarimAKL I see, Thanks for explaining that. I'll do that in my code
What is different about it? I'm unfamiliar with StringBuilder
Very good idea here. I'll add this to my code and edit it on for anyone who visits after. Thanks guys! Edit: Here's how I did it. Didn't want to...
Hi. I have an idea for a TempMute command. I want the format to be /tempmute <player> <time> <reason>. My idea for doing the time to do the int...
I did it like this if(this.getConfig().getConfigurationSection("") != null) { Set<String> set =...
So I'm trying to do this by doing if(this.getConfig().getConfigurationSection("") != null) { Set<String> set =...
How would I do the for loop? It's saved as Player1: Rank: 8 Player2: Rank: 1 Player3: Rank: 4 It's not in the...
@CraftCreeper6 Here's how I wrote it public void onDisable() { for(Map.Entry<UUID, Integer> dRanks : DonatorRanks.donatorRank.entrySet())...
That way of saving could be used for a lot more hashmaps too looks like. I did say my way was very inefficient :) I'll make that change. Thanks....
Typo when I was copying. It's correct in my actual class.
Hi, I am trying to save hashmaps, and it's turning into a nightmare. I have a hashmap<UUID, Integer> named "donatorRank" That saves the donator...
I will do that, Thanks everyone!
I've been working on this for a few weeks and I didn't understand static/nonstatic at the time most of this was written lol. I'll rework that...
Separate names with a comma.