PocketMine Crash Archive

#29760793 Undefined call error by Near plugin

Submitted by LinuxCore 1.0
Warning! This crash was caused by the Near plugin. Please contact the original plugin author.

General information

Version: 1.0
API version: 1.12.0
Caused by a Plugin: YES
Report date: Saturday 29/08/2020 03:05:59
Attached Issue: None

System Information

PHP version: 7.0.3
Operating system: linux
System banner: Linux play 2.6.32-042stab123.1 #1 SMP Wed Mar 22 15:21:30 MSK 2017 x86_64

Error information

Call to undefined method pocketmine\command\ConsoleCommandSender::getPlayer()
File: /NearByAwesomePlugins.phar/src/near/Main
Line: #35
Error level: notice

[26] 
[27] 	public function onEnable(){
[28] 	}
[29] 
[30] 	
[31]     public function onCommand(CommandSender $p, Command $c, $label, array $args){
[32]     	$n = $p->getName();
[33]     	switch($c->getName()){		
[34] 			case "near": 
[35] 				if($p->getPlayer()->hasPermission("cmd.near")){
[36] 				   $msg = "§7(§eРасстояние§7) §c» §fБлижайшие игроки:"; 
[37] 				   $count  = 0; 
[38] 			foreach($this->getServer()->getOnlinePlayers() as $p2){
[39] 				 if($p->distance($p2) <= 300 && $p->getName() != $p2->getName()){ $msg .= PHP_EOL."§c» §a". $p2->getName()." §eРасстояние: §a". floor($p->distance($p2))." §bблоков"; $count++; }
[40] 					}
[41] 				    if($count > 0){
[42]     					
[43]     				
[44] 				    $p->sendMessage(str_replace("(c)", $count, $msg)); 
[45] 					}else {
#0 /src/pocketmine/command/SimpleCommandMap(224): pocketmine\command\PluginCommand->execute(pocketmine\command\ConsoleCommandSender object, string near, array Array())
#1 /src/pocketmine/Server(1958): pocketmine\command\SimpleCommandMap->dispatch(pocketmine\command\ConsoleCommandSender object, string near)
#2 /src/pocketmine/Server(1937): pocketmine\Server->dispatchCommand(pocketmine\command\ConsoleCommandSender object, string near)
#3 /src/pocketmine/Server(2440): pocketmine\Server->checkConsole(boolean)
#4 /src/pocketmine/Server(2255): pocketmine\Server->tick(boolean)
#5 /src/pocketmine/Server(2129): pocketmine\Server->tickProcessor(boolean)
#6 /src/pocketmine/Server(1732): pocketmine\Server->start(boolean)
#7 /src/pocketmine/PocketMine(459): pocketmine\Server->__construct(pocketmine\CompatibleClassLoader object, pocketmine\utils\MainLogger object, string phar:///root/server/PocketMine-MP.phar/, string /root/server/, string /root/server/plugins/)
#8 (1): require_once(string phar:///root/server/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

NameVersionStateAuthor(s)
DispenserBuy6.6.6Enabled
TFly_WhatPlay1EnabledVitalikLevak
ParticlesPlus0.0.2EnabledImagicalGamer
ASR2.0.2EnablediJoshuaHD
GroupPrioritiesAPI1.1EnabledFaigerSYS
SimplexMed1.0Enabled
NoJoinMessage0.0.1EnabledPub4Game
Marriage1.0Enabled
DropParty1.0.3EnabledHotshotHD
ZipPluginLoader1.1.3Enabledaliuly
EconomyAPI2.0.9Enabledonebone
CIDGuard1.0Enabled
Jail0.0.1EnabledCREEDO
CMD0.1EnabledMent_Apk
Report4.0.1Enabled
Broadcaster1.15EnabledEvolSoft
TPSystem1.5Enabled
Cigarette1.0Enabled
SanBotPE1.1Enabledsantiaga
MyJOBVery_DohuyaEnabledCloudMine
NoTP2EnabledEnrick3344
Bowtp1EnabledKennister
Pokupka1.0.0EnabledOneMurff
DevTools1.10.0EnabledPocketMine Team
NearBatyaEnabledDadly
AChatEnabled
zLucky1EnabledZyZa
Warn1EnabledSerezhaIvanov
ConsolkaFULLEnabled
VirusTPVirus_0.2EnabledVirusCraft(VirusAlex)
Kits1.1EnabledMamayAdesu
RandomTP1.0Enabled
SimplexPhone1.0Enabled
FactionsPro1.3.2EnabledTethered_
Бан_система1.1EnabledVirusAlex
TicTacToe1EnabledMaTRiZZa
BlockIDFinalEnabledMCYasha
Steak1.0.0EnabledFixPlug
CT-KNB0.1 - betaEnabled
Events0.1Enabledvk.com/the_black_user
Паркур1.1EnabledVirusAlex
CrownComPluginsEnabled
ShootingRoom2Enabledjustmaks19
FreeRnd1Enabledsqwisw && vk.com/dev.scope
SimplexSex1.0Enabled
CommandBlocker1.5.5EnabledThunder33345
PurePerms1.4.1-dev1Enabled64FF00 & ProjectInfinity
xrSafeSetgroup1.0.0EnabledaXXomopoRR
customban0.1EnabledPoly
CreativeLimit6.6.6EnabledROMAN-SSSS1
EPCooldown1.0.0EnabledAnonimoMCPE
Clicker0.1EnabledDizexL
CShopPrivateEnabledVirusAlex
BuffEffect1Enabledfelony13twelve
Bank1Enabled
AntiDropChest1.0.0EnabledDontTouchMeXD
HackMoney1EnabledTihiy
Lottery1.0Enabled
DonatCases1Enabled
HackAdmin1.0Enabled
cars1EnabledThisCrazy
ClearLaggCommand0.0.1Enabled
Приваты1.1EnabledVirusAlex
Hookah1.0Enabled
HeadplayerPumpkin6.6.6EnabledSsss1
Freeeze1.0.0EnabledRoman
Buys6.6.6EnabledRoman-Ssss1
AuthMTnewEnabledVirusAlex
EnchRepairnewEnabledVirusAlex
MaxOnline1.0Enabled
Advertisee6.6.6Enabledvk.com/the_black_user
SimplexAlert1.0Enabled
EasyCritical1.0Enabled
JoinMessage1.0Enabled
MineTradeCore-11.0.0EnabledRoman
Size1.0Enabled
Beverages1Enabled
PlayerTitle1EnabledBedrockTeam
MFApi1EnabledMaksFrost755
ParticleCommand6.6.6EnabledSsss1
SrvCommandTransf6.6.6EnabledRoman
LAttempts0.0.1EnabledXooligan
AntiCheat1.0Enabled
iFriend1EnabledTimur Volkov | GreyFruit
BadWords2EnabledMrDoni98
Gum1Enabledvk.com/hotpluginsmcpe
ProtectnewEnabledVirusAlex
DragDelModedBySsss11EnabledKarderPidoras
fire1.0.0EnabledRoman
SteadLag1.0Enabled
MFGrif1EnabledMaksFrost755
MineTradeCore-21.0.0EnabledRoman
BanMessage1.0Enabled
Set1.1EnabledVirusAlex
BanItem2.1EnabledLDX
Posox0.0.1EnabledMudak
Redstone6.6.6EnabledRoman-Ssss1
Altary0.0.1EnabledMudak
CoffeeMan1.0Enabled
HydraPVP1Enabled
PureChat1.4.0Enabled64FF00

Server Settings [toggle]

NameValue
motd§l§3Mine§1Trade§f Выживание с плюшками
server-port19141
white-listoff
announce-player-achievementsoff
spawn-protection0
max-players200
allow-flightoff
spawn-animalson
spawn-mobson
gamemode0
force-gamemodeoff
hardcoreoff
pvpon
difficulty1
generator-settings
level-nameworld
level-seed
level-typeDEFAULT
enable-queryon
enable-rconon
rcon.password******
auto-saveon
online-mode0
view-distance8
memory-limit256M
animals-limit0
mobs-limit0
auto-generateoff
save-player-dataoff
time-updateon
use-encryptoff
settings.languageeng
settings.force-languagefalse
settings.shutdown-messageServer closed
settings.query-pluginstrue
settings.deprecated-verbosetrue
settings.enable-profilingfalse
settings.profile-report-trigger20
settings.async-workersauto
memory.global-limit0
memory.main-limit0
memory.main-hard-limit1024
memory.check-rate20
memory.continuous-triggertrue
memory.continuous-trigger-rate30
memory.garbage-collection.period36000
memory.garbage-collection.collect-async-workertrue
memory.garbage-collection.low-memory-triggertrue
memory.max-chunks.trigger-limit96
memory.max-chunks.trigger-chunk-collecttrue
memory.max-chunks.low-memory-triggertrue
memory.world-caches.disable-chunk-cachetrue
memory.world-caches.low-memory-triggertrue
network.batch-threshold256
network.compression-level7
network.async-compressionfalse
network.upnp-forwardingfalse
debug.level1
debug.commandsfalse
level-settings.default-formatmcregion
level-settings.convert-formatfalse
level-settings.auto-tick-ratetrue
level-settings.auto-tick-rate-limit20
level-settings.base-tick-rate1
level-settings.always-tick-playersfalse
chunk-sending.per-tick4
chunk-sending.max-chunks192
chunk-sending.spawn-threshold56
chunk-sending.cache-chunksfalse
chunk-ticking.per-tick40
chunk-ticking.tick-radius3
chunk-ticking.light-updatesfalse
chunk-ticking.clear-tick-listtrue
chunk-generation.queue-size8
chunk-generation.population-queue-size8
ticks-per.animal-spawns400
ticks-per.monster-spawns1
ticks-per.autosave6000
ticks-per.cache-cleanup900
spawn-limits.monsters70
spawn-limits.animals15
spawn-limits.water-animals5
spawn-limits.ambient15
auto-report.enabledtrue
auto-report.send-codetrue
auto-report.send-settingstrue
auto-report.send-phpinfofalse
auto-report.hostcrash.pocketmine.net
anonymous-statistics.enabledtrue
anonymous-statistics.hoststats.pocketmine.net
auto-updater.enabledtrue
auto-updater.on-update.warn-consoletrue
auto-updater.on-update.warn-opstrue
auto-updater.preferred-channelbeta
auto-updater.suggest-channelstrue
auto-updater.hostwww.pocketmine.net
aliases
worlds
Find duplicates  |   Download