up
I'm making a lucky block plugin for fun with friends. This is my code now. How can I fix it and make it to drop a random item from the config...
So probably I use the wrong API?
Up
Here my imports import org.bukkit.Location; import org.bukkit.Material; import org.bukkit.block.Block; import org.bukkit.block.BlockState; import...
Which is the right import?
I have a problem to save the blockstate to config and load them when a player place/break a spawner I want to create the same spawner with the...
Okay, I'll try it later, thanks Work but the problem is that I receive the same amount messages as the page int (in my case 64) @EventHandler...
Like this? int max = Main.getInstance().getConfig().getStrign("Max-Vault-Amount"); for (int page = 0; page < max; page++) {
So.. Can't I add unlimited vaults for example?
And how I can fix that?
Using System.out.println("0"); (and "1", "2", etc) No output before the loop And what I can use?
I'm trying to save/load a vault file (/vault <name> is 0.yml, /vault <name> 1 is 1.yml, /vault <name> 2 is 2.yml, etc). I've tried this but not...
And after?
Like: public MessagesFile(Main main){ }
[ATTACH]
It gives me an error during the onEnable on "MessagesFile.createMessagesFile();" if I use " Main.getInstance().getDataFolder() " P.s. I don't...
And why " Main.getInstance().getDataFolder() " not work? In my Main: public static Main instance; public void onEnable() { DisableFly();...
And the "static" can give problem when I reload it from config? I mean using a plugin command not a /reload command
Ok, I'll remove all What do you mean?
Separate names with a comma.