Code: sender.sendMessage(sender.getName()); if(sender.getName()=="Roan") sender.sendMessage("you are Roan"); but plugin don't write me "you are Roan". So... Who wants to see some magic? Help me please Ooooh, I found a solution. Code: Bukkit.getServer().getPlayer("Roan").sendMessage("you are Roan"); EDIT by Moderator: merged posts, please use the edit button instead of double posting.
When using Strings, always do string.eqauls(otherString) or string.eqaulsIgnoreCase(otherString). Never == because you are comparing the object and not that data.