Error on: cooldown.add(p.getName()); and Error on: Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable(){ :(
Okay lol i get it now but it still doesnt work. It doesnt execute but it doesnt add the cooldown to it or sends the message. No errors...
I got this and I'm still having an errors. public class Test20 extends JavaPlugin{ HashMap<String, Integer> cooldown = new HashMap<String,...
Yea but if I do final Player p = event1.getPlayer(); I get an error on getPlayer -.-
I'm trying to make a cooldown on a potioneffect which you activate by clicking a bone, but I can't figure out how to make this to work, I'm having...
Could you provide me a code example please?
I get an error on player in the public void run. why?
How do you mean? Sorry I dont have much Java or Bukkit knowledge
Im trying to make a cooldown on the potioneffect, so you cant use it within 25 seconds. This is the Listener where ive tried to make a cooldown...
I got this, but it won't work, can any1 help me?: public class PlayerListener implements Listener { public HashMap<String, Long> cooldowns =...
Lol these are exactly the classes from SavageRealms Raid
I tried to do it with a scheduler and a HashMap but it didn't work out... Can anyone tell me what I did wrong? @EventHandler public void...
yea Ow nevermind tried this and it worked: package com.gmail.oldmeulejan.test20; import java.util.HashMap; import org.bukkit.ChatColor;...
Why are you puttin 'pl' in pm.registerEvents(this.pl, this); I got this now but i can't figure out what I did wrong? Test20.class: package...
I don't have much Java knowledge, but i just tried to get a Potioneffect when you click a bone. I really need help and I wonder if someone knows...
aren't these just some of the classes of the SavageRealms Raid server?
Thanks for the help, I think I can figure it out now.
I want to execute the command when left-clicking with a bone. This is what i got, This may be pretty easy to fix, but I dont have a lot of Java...
Could you just bind a command to an item, so everyone could use it? If they have permission maybe? Can anyone explain how it should be added to a...
Separate names with a comma.