Hey! What should I put in the Main.php if I want to make a plugin that sends a private message to a player like the /tell but that can be use with the NPCs of slapper and don't have the name of [Server] in the chat. I don't know almost nothing about plugin development but I want to learn I only have this: <? php namespace masterkiller\SlapperChat; use pocketmine\plugin\PluginBase; use pocketmine\command\Command; use pocketmine\\CommandSender; use pocketmine\Player; use pocketmine\utils\TextFormat; class SlapperChat extends PluginBase { public function SlapperChat
Here is the link: https://poggit.pmmp.io/ci/isPops/PrivateMessenger/PrivateMessenger Command For Slapper ( slaptell ) Command to setup slapper ( /slapper edit slapperID addcommand rca {player} slaptell ) That's it
Then do /slapper id and smack npc then do /slapper edit npcID addcommand rca {player} slaptell just like that
I put the command with the message I want it to say in the space of (message), like this "/slapper edit 235 addcommand rca {player} but when I click the slapper, it tells me to write the name of the player, then I write it and it says the player doesn't exists.
Ooohhh, I think you got wrong what I want to do from the beginning, I just want to use the command tell {player} with the slapper, but when it sends the message, to the player that hit it, don't have the name of [Server] and use the name of the slapper. For example: I put this command on the slapper, /slapper edit (slapperid) addcommand tell {player} (message), with this command the slapper sends a message to the player that hit it, but the message appears like this: [Server --> (Playerx)] (message). And I just want that instead of that just appears the name of the slapper and the message