Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
I personally prefer to manually insert the ChatColor.[whatever] in my code (abbreviated of course) rather than use "&9&lBold blue &b&l but now...
As it turns out, there was zero problem with the code I posted. Apparently I was just passing the wrong values to the method (I was retrieving...
Below is the code. At first, this runs when the player first joins the server, and displays exactly what it's supposed to. Then that player does a...
setCursor(ItemStack) only applies to InventoryClickEvent. I'm concerned with an InventoryCloseEvent.
Title says it all. Normally when you've got an item on your cursor and then close the inventory, you drop that item. How do I prevent that?...
This did the trick. Now it's showing up. I'm not exactly sure why this works so well, considering this is the same exact solution as when I...
No errors show up in console.
That's interesting. I have a piece of code elsewhere that I set to run exactly one tick after the player joins (it displays a scoreboard). So I...
Well this is currently the only inventory that my plugin is creating, so... both?
I wasn't clear, my bad. The inventory still doesn't even open. I'm just saying that nothing after this problematic line of code seems to ever run...
If I insert player.openInventory(inv) directly after defining the inventory object then the rest of the code does not run. It would appear there...
Another update: if I use Inventory.getContents() and add the ItemStacks to the player's inventory, all of the items I added still appear. But the...
I've tried that, it makes zero difference.
@Override public void onDataChange(DataSnapshot data) { String invName = ChatColor.BLUE +""+ ChatColor.BOLD + "Deck: "...
No, nothing shows up in console.
Because I suck at Java
This is more of a Java question than a Spigot question. So I'm using Google Firebase to store data for my plugin. For those who are unaware of...
I'd like to express nothing but extreme confusion in stating that I found a solution to the problem. It seems wrapping the code in a...
"No error shows up in console at all" It just doesn't appear at all to me. From my testing, it seems that no line of code after...