menu
#2907653 Interface 'provsnoobgaking\NewJoinmsg\Listener' not found

Submitted by PocketMine-MP 3.9.5

General information

Version: 3.9.5
Git commit: f0539f48
Plugin involvement: Direct
Report date: 2019-10-10 02:31:43 +0000 UTC

System Information

PHP version: 7.3.9
Operating system: linux
System banner: Linux f1d114a5-a892-454a-a883-61279b8396aa 3.10.0-1062.1.2.el7.x86_64 #1 SMP Mon Sep 30 14:19:46 UTC 2019 x86_64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Interface 'provsnoobgaking\NewJoinmsg\Listener' not found
File: plugins/NewJoin/src/provsnoobgaming/NewJoinmsg/Main
Line: #10
Error level: E_ERROR
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
namespace provsnoobgaking\NewJoinmsg;

use pocketmine\event\EventListener;
use pocketmine\plugin\PluginBase;
use pocketmine\event\player\PlayerJoinEvemt;
use pocketmine\utils\Config;
use pocketmine\Player;

class Main extends PluginBase implements Listener {
public function onEnable(){
$this->getserver()->getPluginManager()->registerEvents ($this, $this);
}
public function onJoin (PlayerJoinEvent $e) {
$player = $e->getPlayer();
if(!$player->hasPlayedBefore()) {
$message = $this->getConfig()->getNested("messages.firstJoin");
$message = "%p has joined";
$message = str_replace("%p", $player->getDisplayName(), $message);
$this->getServer()->broadcastMessage($message);

Loaded Plugins

  • Show

Server Settings

  • Show