I will try.
Hm... well this is other problem. OK, ;)
I haven`t a error, I will check this.
I want to add a mute script to my plugin, but here is a problem. I try this (in a listener class): @EventHandler public void...
fireblast709 Thanks for help :)
When I put getConfig().options().copyDefaults(true); in public void onEnable() only the first lines that have the prefix # are copied. If I put...
Thanks :) Onlineids
How I can set a spawn point (universal)? I don't need a plugin, I need code.
bwfcwalshy and AdamQpzm Ok ok, I read something... and I saw this: Because in MainClass the getServer() is defined. But if I put...
So, I will make a public void for getServer()?
I made a secondary .class for a command but, when I put this: for (World world : getServer().getWorlds()) It gave me an error as it does not...
Ok, thanks
Sorry, my mistake,... It is correct as you put. Because playertohide is player (declared) Sir_Mr_Bman
Maybe you need to take location (1 and 2) and see if x1-x2 = 1 or y1 = y2 = 1 or z1-z1 = 1. After that you make a abs (to be positive) or sx =...
Try this: for (Player playertohide : Bukkit.getServer().getOnlinePlayers()) { playertohide.hidePlayer(playertohide); } // now you selected all...
Hi! I have a problem with a code :) for (ItemStack item : player.getInventory().getContents()) { item.setDurability((short)...
Good job.
Good job :)
TheHandfish I try this: if (e.getEntity() != null){ if (e.getEntity() instanceof Player){ Player died = (Player) e.getEntity(); } } And is work :)
TheHandfish If (e.getEntity() instaceof Player){ Player died = (Player) e.getEntity(); } Like this? I will test with this code today :-)
Separate names with a comma.