This is how I do it in my plugin:
privatevoidschematicPaste(World world,File file, com.sk89q.worldedit.Vector origin)throws...
Gamesareme I mean the worldedit api, and make a command to save a location to the config file where the arena schematic will be automatically...
if action is right click block
if clicked block is [whatever]
parat26 put this in your onEnable()
final ArrayList<PotionEffect> myPots = new ArrayList<PotionEffect>();
spacemoehre Change the skin? wat
LordTherd Maybe you've loaded the plugin twice? (check your plugins folder) I'm sure this doesn't make sense but I cannot see why you get that...
parat26 If you still have the repeating task, can you post it?
LordTherd If teleporting the player to spawn is your problem, I cannot see why that happens because when I test the code, it works
parat26 In the repeating task, add if(p.getActivePotionEffects().contains())
LordTherd Post your Listener Class
LordTherd What's the error? I tested it and it works just fine
DirtyReignbow modify it a bit:
for(Player online :...
Gamesareme Why don't you use worldedit and paste the arena schematic every time you want to reset it :P
Dragonphase wouldn't my suggestion work?
PixeledCow add an (!if p.isOP())
HashMap<String, Long> cooldown = new HashMap<String, Long>();
Creeoer Full class with [s.yntax=java]code[/s.yntax] pls (it adds numbers to the lines so we can see where's the error) (no dots in syntax ofc lol)
FiberSprite Try checking if the item has the name "Blunt" instead of referring to the main class' itemstack
FiberSprite Just move it out of the onEnable again, I'm sure it'll still work.
Separate names with a comma.