本帖最后由 kevin2000 于 2014-12-27 09:05 编辑
希望删除点击玩家获得信息那部分或者修改一下
严重导致崩服bug一天崩了10几次-----------------------------------------
PocketMine-MP Crash Dump Fri Dec 26 23:48:10 UTC 2014
Error: Call to undefined method pocketmine\entity\PrimedTNT::getName()
File: /home/minecraft/multicraft/servers/server448/plugins/[查熊]ServerLog_v2.2.0.phar/src/ServerLog/ServerLog
Line: 118
Type: E_ERROR
THIS CRASH WAS CAUSED BY A PLUGIN
BAD PLUGIN: ServerLog v2.2.0
Code:
[109] $player = $event->getPlayer();
[110] $name = $player->getDisplayName();
[111] $commandInfo = $event->getMessage();
[112] $this->log->set($name, $commandInfo);
[113] $this->log->save();
[114] }
[115] public function onEntityDamageByEntity(EntityDamageByEntityEvent $event){
[116] $entity = $event->getEntity();
[117] $player = $event->getDamager();
[118] if($this->mode[$player->getName()] == true){
[119] $log = $this->log->get($entity->getName());
[120] $player->sendMessage('玩家:'.$entity->getName());
[121] $player->sendMessage('血量:'.$entity->getHealth().'/'.$entity->getMaxHealth());
[122] $player->sendMessage('游戏模式:'.$entity->getgamemode());
[123] $player->sendMessage('近期使用过的命令:'.$log);
[124] //被攻击玩家各项资料
[125] $event->setCancelled();
[126] //最后别忘了SetCancelled
[127] }else{
[128] }
Backtrace:
PocketMine-MP version: Alpha_1.4dev #855 [Protocol 20; API 1.8.0]
Git commit: 0000000000000000000000000000000000000000
uname -a: Linux s3.minegame.cc 3.13.0-38-generic #65~precise1-Ubuntu SMP Thu Oct 9 19:24:01 UTC 2014 x86_64
PHP Version: 5.6.3
Zend version: 2.6.0
OS : Linux, linux
Loaded plugins:
ServerMail 0.0.1 by tschrock (
tschrock123@gmail.com) for API(s) 1.0.0
TimerBan 2.0 by onebone for API(s) 1.2.0, 1.2.1
EconomyJob 2.0.0汉化by风歌青天 by onebone for API(s) 1.0.0, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1
SimpleHelp 1.0.0 by 18wyj2 for API(s) 1.0.0
DevTools 1.8.0 by PocketMine Team, shoghicp for API(s) 1.0.0
ALLSurvival 1.2.1 by PMPCT-Zzm for API(s) 1.0.0
EconomyAPI 2.0.1汉化by风歌青天 by onebone for API(s) 1.0.0, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1
WorldBorder 1.0.0 by Topic for API(s) 1.0.0
SignCommand Build_1 by 18WYJ2 for API(s) 1.0.0
VoteReward 2.1 by LDX for API(s) 1.0.0, 1.1.0, 1.2.0, 1.3.0
TouchHome 2 by LDX for API(s) 1.1.0
EconomyAirport 2.0.0汉化by风歌青天 by onebone for API(s) 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1
QuitandJoinmsg 1.0.0 by for API(s) 1.0.0
GeoLocation 3.0.2 by DarkN3ss & boybook & zzm客窜 for API(s) 1.1.0
Broadcaster 1.01 by EvolSoft for API(s) 1.2.0
KeepInventory 1.1.0 by boybook for API(s) 1.0.0
SimpleVIP Build_1 by 18wyj2 for API(s) 1.0.0
xPermissions 1.3.1 by 64FF00 for API(s) 1.2.0
TimeCommander 2 by LDX for API(s) 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0
essentialsTP 1.0.9 by for API(s) 1.0.0
PeacefulSpawn 2.4 by LDX for API(s) 1.3.1, 1.4.0
SimpleBanItem 1.1.0 by 18wyj2 for API(s) 1.0.0
PocketGuard 2.1 by MinecrafterJPN for API(s) 1.6.0
EconomyLand 2.0.1汉化by风歌青天 by onebone for API(s) 1.0.0, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1
ServerLog 2.2.0 by 18wyj2 for API(s) 1.0.0
EconomyShop 2.0.0汉化by风歌青天 by onebone for API(s) 1.3.0, 1.3.1, 1.4.0, 1.4.1
SimpleAuth 1.6.0 by PocketMine Team, shoghicp for API(s) 1.8.0
iControlU 1.3 by Falkirks for API(s) 1.6.0
EconomySell 2.0.1汉化by风歌青天 by onebone for API(s) 1.3.0, 1.3.1, 1.4.0, 1.4.1