xZeroMCPE / SurvivalGames

A SurvivalGames plugin like no other
58 stars 28 forks source link

Syntax [fix in the comment] #114

Closed ghost closed 7 years ago

ghost commented 7 years ago

heres the crash dump ( im using the "stable" version from the releases section).

Tesseract Crash Dump Wed Mar 15 20:38:04 CST 2017

Error: syntax error, unexpected 'Seems' (T_STRING), expecting ',' or ')' File: /SurvivalGames.phar/src/Andre/SurvivalGames/Main Line: 279 Type: notice

THIS CRASH WAS CAUSED BY A PLUGIN

Code: [270] }else{ [271] $sender->sendMessage(TextFormat::RED . "That command can only be used in-game!"); [272] return true;
[273] } [274] break; [275] case "set": [276] if($sender instanceof Player){ [277] if($this->config->exists("lastpos")) [278] { [279] $sender->sendMessage("TextFormat::BLUE . "Seems like you have already setup an arena"); [280] } [281] else [282] { [283] $name=$sender->getName(); [284] $this->SetStatus[$name]=0; [285] $sender->sendMessage("Tap a sign to set it as join sign!"); [286] } [287] }else{ [288] $sender->sendMessage(TextFormat::RED . "You may only use ths command in-game!"); [289] return true;

Backtrace:

0 (): spl_autoload_call(string Andre\SurvivalGames\Main)

1 /src/pocketmine/plugin/PharPluginLoader(63): class_exists(string Andre\SurvivalGames\Main, boolean 1)

2 /src/pocketmine/plugin/PluginManager(151): pocketmine\plugin\PharPluginLoader->loadPlugin(string phar:///storage/emulated/0/PocketMine/plugins/SurvivalGames.phar)

3 /src/pocketmine/plugin/PluginManager(299): pocketmine\plugin\PluginManager->loadPlugin(string /storage/emulated/0/PocketMine/plugins/SurvivalGames.phar, array Array())

4 /src/pocketmine/Server(1761): pocketmine\plugin\PluginManager->loadPlugins(string /storage/emulated/0/PocketMine/plugins/)

5 /src/pocketmine/PocketMine(468): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string phar:///storage/emulated/0/PocketMine/PocketMine-MP.phar/, string /storage/emulated/0/PocketMine/, string /storage/emulated/0/PocketMine/plugins/, string unknown)

6 (1): require_once(string phar:///storage/emulated/0/PocketMine/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Tesseract version: 0000000000000000000000000000000000000000 [Protocol 102; API 3.0.1] uname -a: Linux localhost 3.10.28-4754501 #1 SMP PREEMPT Wed Apr 22 14:19:31 KST 2015 armv7l PHP version: 7.0.13 Zend version: 3.0.0 OS : Linux, android

Server uptime: 1 seconds Number of loaded worlds: 0 Players online: 0/20

Loaded plugins: DevToolsByMRJAYEDIT MRJAYEDIT by PocketMine Team for API(s) 3.0.0-ALPHA1 WorldFixer 1 by CreeperFace for API(s) 1.12.0 WorldEdit+ 0.01 by for API(s) 2.0.0 SW_svile 0.6dev by svile for API(s) 1.13.0 DevTools 1.11.0 by PocketMine Team for API(s) 2.0.0 PVPlevelRPG 6.9 by ByZikenPE for API(s) 3.0.0 SplatCraft 1.1.1 by for API(s) 1.11.0 LBParticles-Tim_15 0.0.1 by LBSG,EditByTim_15 for API(s) 1.4.0 Bedwars 2.2 by Bluplayz for API(s) 1.14.0 DRDoDo Alpha3_Subs_Non_Monetized by KaitoDoDo for API(s) 3.0.0-ALPHA3 morph 0.1beta by PmHard for API(s) 2.0.0, 3.0.0, 3.0.0-ALPHA1, 3.0.0-ALPHA2, 3.0.0-ALPHA3

ghost commented 7 years ago

found the issue .. its the " in line 279.. just replace line 279 with this correct line:

[279] $sender->sendMessage(TextFormat::BLUE . "Seems like you have already setup an arena");

ghost commented 7 years ago

Use the latest source! Not phar. It has already been fixed!