So when i add this code $item->setCustomName(TF::RESET . TF::BOLD . TF::GOLD . "Note"); when i give myself the item that i add custom name to it the item didnt get rename but when i use it for example i use one xp bottle from stack the item change from default to custom name. XP Bottle -> Note is there a way to make the item get custom name without using the item in order to get custom name
If that's how you're going to conclude your future posts too, then you shouldn't be writing a thread to begin with. This is a forum. The future visitors are going to judge this thread by the title expecting to get help and wouldn't like to see the thread get solved in a private discussion.
Have you tried resending the item like @jasonwynn10 said (set the item in player's inventory after modifying it)?
You can't directly do that. Items are isolated from clients. Item instances have no idea who is holding them or are able to see them. There's no other way than to set the item back in the right slot and right inventory once you modify it.