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...
Separate names with a comma.