Can I change any block or item texture using plugin? And how to code it? /texture | The grass texture changes | (For example)
What in the world are you talking about?? You can't change client sided textures without sending a texture pack to the client. Yes you can. As stated above, it's done using texture packs. Currently, there is no API to add a custom pack to the stack without using some hacks, so thats exactly what needs done. All the code shown in the onEnable function does what you want if the mcpack file is in the plugin's resources area (internal to the phar).