PocketMine Crash Archive

#29757656 Undefined call error by PocketSex plugin

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

General information

Version: 1.0
API version: 1.12.0
Caused by a Plugin: YES
Report date: Sunday 21/06/2020 21:05:49
Attached Issue: None

System Information

PHP version: 7.0.19
Operating system: linux
System banner: Linux gs77785 4.15.0-54-generic #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 x86_64

Error information

Call to a member function isOnline() on null
File: /plugins/PocketSex-1.phar/src/PocketSex/Main
Line: #58
Error level: notice

[49] 	}
[50] 	
[51] 	
[52] 	public function onCommand(CommandSender $sender, Command $command, $label, array $args){
[53] 		switch($command->getName()){
[54] 			case "sex":
[55] 			if(!isset($args[0])){
[56] 				$sender->sendMessage("§7>§f Пожалуйста, укажите своего партнёра");
[57] 				return false;
[58] 			} if(!isset($this->partner[$sender->getName()]) && $this->status[$sender->getName()] != 1 && isset($args[0]) && $this->getServer()->getPlayer($args[0])->isOnline() && !in_array($this->status[$this->getServer()->getPlayer($args[0])->getName()], array('1', '2', '3')) && $this->partner[$this->getServer()->getPlayer($args[0])->getName()] == null){
[59] 				 $this->status[$sender->getName()] = 1;
[60] 				 $this->partner[$sender->getName()] = $args[0];
[61] 				$sender->sendMessage("§7>§f Заявка на половой акт была успешно отправлена игроку§a " .$args[0]);
[62] 				 $this->status[$this->getServer()->getPlayer($args[0])->getName()] = 3;
[63] 				 $this->partner[$this->getServer()->getPlayer($args[0])->getName()] = $sender->getName();
[64] 				$this->getServer()->getPlayer($args[0])->sendMessage("§7>§f Игрок§a " .$sender->getName(). " §fпредлагает вам заняться сексом§c!§f Если вы хотите принять запрос, то напишите в чат §e+§f, а если нет, то напишите в чат §e-");
[65] 				return false;
[66] 			} if(isset($this->partner[$sender->getName()]) && $this->status[$sender->getName()] == 1 && isset($args[0]) && $this->getServer()->getPlayer($args[0])->isOnline() && !in_array($this->status[$this->getServer()->getPlayer($args[0])->getName()], array('1', '2', '3')) && $this->partner[$this->getServer()->getPlayer($args[0])->getName()] == null){
[67] 				$sender->sendMessage("§7>§f Вы не можете сейчас отправлять запросы§c!");
[68] 				return false;
#0 /src/pocketmine/command/SimpleCommandMap(244): pocketmine\command\PluginCommand->execute(pocketmine\Player Player(6), string sex, array Array())
#1 /src/pocketmine/Server(1958): pocketmine\command\SimpleCommandMap->dispatch(pocketmine\Player Player(6), string sex ii)
#2 /src/pocketmine/Player(5363): pocketmine\Server->dispatchCommand(pocketmine\Player Player(6), string sex ii)
#3 /src/pocketmine/Player(1572): pocketmine\Player->processCommand(string sex ii)
#4 /src/pocketmine/level/Level(596): pocketmine\Player->onUpdate(integer 34526)
#5 /src/pocketmine/Server(2351): pocketmine\level\Level->doTick(integer 34526)
#6 /src/pocketmine/Server(2455): pocketmine\Server->checkTickUpdates(integer 34526)
#7 /src/pocketmine/Server(2255): pocketmine\Server->tick(boolean)
#8 /src/pocketmine/Server(2129): pocketmine\Server->tickProcessor(boolean)
#9 /src/pocketmine/Server(1732): pocketmine\Server->start(boolean)
#10 /src/pocketmine/PocketMine(459): pocketmine\Server->__construct(pocketmine\CompatibleClassLoader object, pocketmine\utils\MainLogger object, string /home/, string /home/, string /home/plugins/)

Loaded Plugins

NameVersionStateAuthor(s)
DisableWeather1.0.0EnabledKairus Dark Seeker
PocketSexDefaultEnabledfoxlife_
WalkingSign3EnabledMrDoni98
aFloatingText1.2EnabledAlexBrin
TapToDo2.0.0EnabledFalk
ManyWorlds2.0.3Enabledaliuly

Server Settings [toggle]

NameValue
server-name§l§9EdgeWorld §fGrief
motd§l§9EdgeWorld §fGrief
server-port19133
memory-limit2048M
white-list1
announce-player-achievementsoff
spawn-protection0
max-players300
allow-flightoff
spawn-animalson
spawn-mobson
gamemode0
force-gamemodeoff
hardcoreoff
pvpon
difficulty1
generator-settings
level-nameob
level-seed
level-typeDEFAULT
enable-queryon
enable-rconon
rcon.password******
auto-saveon
xbox-authoff
online-modeoff
view-distance8
animals-limit0
mobs-limit0
auto-generateoff
save-player-dataoff
time-updateon
use-encryptoff
settings.languagerus
settings.force-languagefalse
settings.shutdown-messageСервер закрыт
settings.query-pluginstrue
settings.deprecated-verbosetrue
settings.enable-profilingfalse
settings.profile-report-trigger20
settings.async-workersauto
settings.enable-testingfalse
memory.global-limit0
memory.main-limit0
memory.main-hard-limit1024
memory.check-rate20
memory.continuous-triggertrue
memory.continuous-trigger-rate30
memory.garbage-collection
memory.period36000
memory.collect-async-workertrue
memory.low-memory-triggertrue
memory.max-chunks.chunk-radius4
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-level2
network.async-compressiontrue
network.upnp-forwardingfalse
debug.assertions.warn-if-enabledtrue
debug.assertions.throw-exceptionfalse
debug.level1
debug.commandstrue
player.save-player-datatrue
player.anti-cheat.allow-movement-cheatstrue
player.anti-cheat.allow-instabreaktrue
level-settings.default-formatpmanvil
level-settings.auto-tick-ratefalse
level-settings.auto-tick-rate-limit20
level-settings.base-tick-rate1
level-settings.always-tick-playersfalse
chunk-sending.per-tick2
chunk-sending.spawn-radius4
chunk-sending.cache-chunkstrue
chunk-sending.async-chunk-requestfalse
chunk-ticking.per-tick16
chunk-ticking.tick-radius3
chunk-ticking.light-updatesfalse
chunk-ticking.clear-tick-listtrue
chunk-ticking.disable-block-ticking
chunk-generation.queue-size2
chunk-generation.population-queue-size2
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-phpinfotrue
auto-report.hostcrash.pocketmine.net
anonymous-statistics.enabledtrue
anonymous-statistics.hoststats.pocketmine.net
commands.defaulttrue
timings.hosttimings.pmmp.io
aliases
worlds
Find duplicates  |   Download