One minute, instead of using setLore() try using im.setLore(Arrays.asList(ChatColor.AQUA + "Right click to hide all players!")
You could have PMed me.... and I don't think prices are allowed to be discussed on this forum. I'll shoot you an email anyways
Haha thanks! ;)
You never applied the ItemMeta back onto the item. item.setItemMeta(im);
Usually an enum like that is fully caps? Not sure though, I usually see that a lot. So it'd be Kind.ERROR rather than Kind.Error - I guess it...
Ewww, MW2.
Did you register the event? I can't see anything wrong with your code atm.
You never registered your listeners.. Add the following code to your onEnable() method. getServer().getPluginManager().registerEvents(this, this);
Location loc = event.getEntity().getLocation; event.getEntity().sendMessage(ChatColor.RED + "You died at:" + loc.getBlockX() + ", " +...
try{ //parse your string } catch(Exception ex){ // string cannot be parsed to an integer // do something else here }
Jhtzb If I'm correct, doesn't player.getDisplayName() return their titles too (if they have any)? I think player.getName() is better.
Forgot about that one xD valon750
Use PlayerInteractEvent and check if the name contains "COOKIE" or something like that, then add a PotionEffect to the player.
Oh, I understand now. Yeah i'm not sure how to go about doing that.
If i'm correct you need to use Scoreboard teams, and setCanSeeFriendlyInvisibles to true.
Isn't there inventory.getHolder() or something?
Off topic, but shouldn't your display pic be Peter Capaldi now? ;)
Yeah, I usually just use an XP orb for things like this because its quite small and unnoticeable.
Read this before continuing. http://wiki.bukkit.org/Event_API_Reference
Couldn't you just set the name to "" instead of null? Also try adding " " to your Lore list and make sure that's the only element in it. - ninja'd
Separate names with a comma.