Why is there no mobile version of this forum website? I find it very laggy to use the whole desktop version for basic viewing off threads.
HashMap<String, Inventory> inv = new HashMap<>(); inv.put(player.getUniqueId(),player.getInventory());
getConfig().set(Object obj, null);
Random rnd = new Random(); player.teleport(w, x + (rnd.nextInt(10) )+ 1), y, z + (rnd.nextInt(10) + 1))
. So let's say there is a guy named John. John joins the hub and is given a ghast tear. John then enters a minigame and is given a new...
You would create a new inventory on join and save to config. Then after a person puts something in their inventory, you should overwrite the...
I see. I'd have to agree with you; I don't think developers will change the shortcut although even if they did, I guess it would be ineffectual...
Hello Bukkit Developers, I have come to ask what the difference is between using "ChatColor.<Color> in plugins versus using "§<number>" in...
I'm going to give you some psuedo code. 1) Check if the command's name is "givegold". 2) Check if the user has the permission node to execute...
I'm glad it worked! Thank you for offering your code but I've actually become inspired to write my own arena/dueling plugin based off this thread xD.
You could either hook onto mcMMO within your plugin or use this: Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "mcmmo give " + p.getName() +...
That was EXACTLY what I needed. It's all clear to me now. Thank you so much!
@mythbusterma gave me an example of how I should properly reference other classes and I made a more detailed example to see if I got the concept...
@mythbusterma Alright, I think I get it but I want to make sure. public class mainClass extends JavaPlugin { CommandClass cmds = new...
In your configuration file, you have "Arenas" not "arenas". Java is case-sensitive. int size =...
Can you show us how your configuration file looks like? Do you absolutely need a period? If not, can you change it to a comma (assuming it's a...
Could you show me an example? (Sorry if it looks like I'm hijacking the thread but your response to my question may help the OP as well)....
But how can you call getConfig() without getting an instance from the main class (which extends JavaPlugin)? (Assuming that the main class...
@ZomBlade_Shadow Could I see how your configuration file looks like when you set an arena? If your configuration file looked like this: arenas:...
So does that mean instead of declaring a FileConfiguration variable, Bowser would write "this.instance.getConfig()" whenever he needs to access...
Separate names with a comma.