EDIT: I fixed my problem, please delete. Thank you.
Thank you, I fixed it.
Updated my old post to further explain, but here's my code and errors. public static HashMap<Player, CraftanPlayer> players = new HashMap<Player,...
You mean like storing a HashMap and linking every player to a new CraftanPlayer on join? I tried that and when I try to create a new CraftanPlayer...
So, I have a class called CraftanPlayer, because I would like to easily get more data about players from my server such as ranks, etc....
@Zombie_Striker I think I understand what you mean now by passing the instance around. @CodePlaysMinecraft I'll try that. Thanks. None of this...
I hadn't converted that back because I deleted some try/catch statements before and had to use the variable before them. Will fix now and try your...
Whatever your plugin code is doing, it's not defining a new AbstractModularInventory and initiating your variable. The game can't open a...
Ok, I'm writing a method to get a file and return the YamlConfiguration. In my main JavaPlugin class, I have this method. public...
Listen for a StructureGrowEvent. It has a boolean (isFromBonemeal()) that lets you check if it was an artificial growth. If this boolean is true...
https://www.dropbox.com/s/jwuhl7xv10f2i66/hide.jar?dl=0
Try putting save and reload after you copy defaults.
It worked!! Thanks!
Okay, so I'm tryingto use Vault to deposit money into a player's account when they break a block. I'm using Craftconomy 3 for econ. Economy...
Ok. So I'm developing a small plugin for my server and I've made all my permissions. When I run the commands, they all pass because I have put...
Just wondering how I could turn an inventory from an array of ItemStacks to something I could save to a file or config.
p.teleport(New Location(w, x, y, z, 0, 0)) Try that.
You must also define pitch in that method. p.teleport(new Location(w, x, y, z, yaw, pitch))
I'll try it. How do you want it to tell you how far away someone is? Like "{Person} is <x> blocks away
You could say something like if(player.isFlying() && player.getGameMode != GameMode.CREATIVE){ } and inside punish them however
Separate names with a comma.