I solve it Thx :D The error was in the if in line 2 if(effect.getType()!= PotionEffectType.POITION NAME){ i only need to change...
Hi, i want to get all the PotionEffects and remove all less a specific potion. I try this: for (PotionEffect effect :...
Now when i look to a chest it say the error only and dont say the message if it a simple or double chest
Hi i try to get the block who a player is looking, i have this code : BlockIterator bit = new BlockIterator(p, 10); Block b;...
Thx Work !
Hi, I try to block the command when the console use it, i have this command class: Player p = (Player) sender; if(sender...
And why can i get it ?? Because i need get it from the configpublic long Intervall = getConfig().getInt("Autoguardado")
Hi i have this code for create a custom config: package me.peti446.example; import java.io.File; import java.io.FileOutputStream; import...
Your ondisable it ok but in your onenable you must do any change : try{ for(String key :...
Thx It works now :D
Hi i have this code for cooldwon: public HashMap<String, Long> cooldowns = new HashMap<String, Long>(); int cooldownTime = 86400;...
How can i get a player inventory an later put it in another inventory who i create ?
in my config i have this '' in every string!! Example: Config: Example String: 'Example' My loadconfiguration: private void loadConfig(){...
Hi, I tried to pass an instance of the subclass, to the mainclass I used this code in the mainclass: private SPIMenuInv menu; public...
Hi i have create a inventory witch 2 items (1 enderchest and 1 skull_item) they have a custom display name but when i click on the enderches or...
My SignWitcgLink This is not all code its only the code who have args[1] and args[2] if(args[0].equalsIgnoreCase("add")){...
I have a args in my.class and then i have a Listener.class and i need to use the args who are my.class in listener.class why can i do it ?
So why can i import a args who i created in main.class to listener.class ?
i coppy all but ther are any block but dont copy normally 3-5 block the blocks who dont pasted normally must be pasted because i copied it but...
You can use http://dev.bukkit.org/server-mods/mytablist/
Separate names with a comma.