What do you mean? Auto-generate?
@veggis make a hashmap HashMap<Player, Boolean>, and set it to true when a player types /randomquest start Then on the event, check if the hashmap...
How to save, and be able to edit and restore? And all should be done very fast?
@Betagear That is a completely new code.. lel never mind, didn't scroll down to the bottom :)
@mine-care You are absolutely right! i forgot that part.. I edited my first reply! @NickDEV
Create a HashMap<Player, String> Check if the hashmap is null, and does not compare to the latest message from the player Then if it's null, and...
Try using LeavesDecayEvent
Kevin DiTraglia from stackoverflow had a solution that might work.. But it's for removing from the arraylist, but might be worth a try link to...
try checking if the array you are adding the player to is empty aswell
You could replace [ and ] with nothing.. like this settings.getData().getConfigurationSection("warps").getKeys(false).replace("[",...
Looks like you are getting a player out of numbers.. check your looping
@au2001 Very messy, but thats when cmd.getName is handy.. I always make a class for each command..
I register the command in onEnable, like this getCommand("cmdName").setExecutor(commandClass); instead of checking it with...
Well, it should not return air, then it would just return null. So the only thing you need to check is if the block is null.
You could try ProjectileHitEvent, check if the entity instanceof Arrow, and get the arrows location to remove blocks.
Removing every Block? Or just the first? If you remove every block in front of the moving arrow, then it would just go on till it reaches the...
BTW, you don't have to check if the block is air.. transparent - HashSet containing all transparent block IDs (set to null for only air) if the...
Probably like this EntityType ET = event.getEntity().getType(); if (ET == EntityType.BAT || ET == EntityType.COW) { // Basically the same way.. }
Ok, thats fine.. I think i just saw what the error is.. Loc.getBlock().setTypeId(2); getBlock(), if i'm right, then you can't get Air as a...
Can you show us the error?
Separate names with a comma.