anyone can help me to show the JoinMessage: Broadcast: theres no error! i already input the private $config; PHP: public function onPlayerJoin(PlayerJoinEvent $sender){ /** TAGS PLAYERNAME */ $seahjoinmsg = str_replace("{name}", $sender->getName(), $seahjoinmsg); /** GP JOIN MESSAGE */ $config = $this->getConfig->get('GPJoinMessage'); /** JOIN MESSAGE */ $sender->sendMessage($this->getConfig()->get("JoinMessage")); /** BROADCAST MESSAGE */ $broadcast = $this->getConfig()->get("Broadcast"); $sender->getServer()->broadcastMessage($broadcast); } heres my config.yml PHP: # NOTE NOTE NOTE ! ! !## dont remove or edit this "GPJoinMessage" or else you got a server crashGPJoinMessage: #version 3.0.0# Color Codes# §0 = Black §1 = DarkBlue §2 = DarkGreen §3 = DarkAqua §4 = DarkRed §5 = DarkPurple §6 = Gold §7 = Gray §8 = DarkGray §9 = Blue a = Green §b = Aqua §c = Red §d = LightPurple §e = Yellow §f = White# Format# §k = Obfuscated §l = Bold §m = StrikeThrough §n = Underline §o = Italic §r = Reset# JoinMessage## tags {player} , {server_name}## {player} = show Player Name## {server_name} = show Server NameJoinMessage: "JoinMessage"# Broadcast## tags {player} , {server_name}## {player} = show Player Name## {server_name} = show Server NameBroadcast: "BroadcastMessage"# GPJoinMessage by SeahStar
sorry PHP: <?phpdeclare(strict_types=1);namespace SeahStar\GPJoinMessage;use pocketmine\event\Listener;use pocketmine\event\player\PlayerJoinEvent;use pocketmine\Player;use pocketmine\plugin\PluginBase;use pocketmine\utils\TextFormat;use pocketmine\utils\Config;class Main extends PluginBase implements Listener{ private $config; public function onEnable(){ $this->saveDefaultConfig(); $this->reloadConfig(); $this->getLogger()->info("GPJoinMessage by SeahStar has been enabled!");}public function onPlayerJoin(PlayerJoinEvent $sender){ /** TAGS PLAYERNAME */ $seahjoinmsg = str_replace("{name}", $sender->getName(), $seahjoinmsg); /** GP JOIN MESSAGE */ $config = $this->getConfig->get('GPJoinMessage'); /** JOIN MESSAGE */ $sender->sendMessage($this->getConfig()->get("JoinMessage")); /** BROADCAST MESSAGE */ $broadcast = $this->getConfig()->get("Broadcast"); $sender->getServer()->broadcastMessage($broadcast); }public function onDisable(){ $this->getLogger()->info("GPJoinMessage by SeahStar has been disabled!"); } } this is my whole main.php