menu
#3237892 Constant expression contains invalid operations

Submitted by PocketMine-MP 3.9.7

General information

Version: 3.9.7
Git commit: 0c91d568
Plugin involvement: Direct
Report date: 2019-12-01 11:18:10 +0000 UTC

System Information

PHP version: 7.3.11
Operating system: win
System banner: Windows NT LAPTOP-TRIGHB92 10.0 build 18362 (Windows 10) AMD64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Constant expression contains invalid operations
File: plugins/ReveriaFocus/src/ReveriaFocus/Main
Line: #15
Error level: E_COMPILE_ERROR
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
use pocketmine\event\player\PlayerQuitEvent;
use pocketmine\Player;
use pocketmine\command\Command;
use pocketmine\command\CommandSender;
use pocketmine\command\CommandExecutor;
use pocketmine\utils\TextFormat as C;

class Main extends PluginBase {

public $nicks = ["§4§o§l". $player->getDisplayName() . ""];

public function action_nick_on($player){

if(count($this->nicks) === 1){

$player->setDisplayName($this->nicks[0]);

$player->setNameTag($this->nicks[0]);

$pName = $player->getDisplayName();

Loaded Plugins

  • Show

Server Settings

  • Show