Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HereAuth crashes server #53

Closed
ChavoJoker opened this issue Jun 27, 2016 · 8 comments
Closed

HereAuth crashes server #53

ChavoJoker opened this issue Jun 27, 2016 · 8 comments

Comments

@ChavoJoker
Copy link

ChavoJoker commented Jun 27, 2016

I have posted this on the Genisys Issue and one person says it's the plugin not the server.
Link should be below for more details on the issue plus the error it gives me on the crash
iTXTech/Genisys#1283

@catgirlinspace
Copy link

Same here.

@ChavoJoker
Copy link
Author

ChavoJoker commented Jun 30, 2016

@Dog2puppy Okay I changed a little thing but it should work now because it works on my server now
https://www.mediafire.com/?y4og6lxi2ljuk0y

@bmlui
Copy link

bmlui commented Jul 2, 2016

@ChavoJoker thank you!

@bmlui
Copy link

bmlui commented Jul 2, 2016

@ChavoJoker it works but now my colored messages are white

@ChavoJoker
Copy link
Author

@biswarm22 the colored messages problem has to do with the chat plugin you are using not HereAuth because my messages are still colored

@bmlui
Copy link

bmlui commented Jul 3, 2016

@ChavoJoker i mean the color messages inside hereauth

@bmlui
Copy link

bmlui commented Jul 3, 2016

Genisys Crash Dump Sun Jul 3 11:02:06 EDT 2016

Error: Call to undefined method pocketmine\Player::getSkinName()
File: /HereAuth_Beta.phar/src/HereAuth/User/User
Line: 177
Type: notice

THIS CRASH WAS CAUSED BY A PLUGIN
此次出错由插件引起
BAD PLUGIN : HereAuth v1.0-Beta#227

Code:
[168] }
[169]
[170] public function onAuth(){ // TODO $method
[171] $this->main->getServer()->getPluginManager()->callEvent(new HereAuthAuthenticationEvent($this));
[172] $this->state = self::STATE_PLAYING;
[173] $this->loginAttempts = 0;
[174] $this->accountInfo->lastUuid = $this->getPlayer()->getUniqueId()->toBinary();
[175] $this->accountInfo->lastLogin = time();
[176] $this->accountInfo->lastSecret = $this->getPlayer()->getClientSecret();
[177] $this->accountInfo->lastSkinHash = HereAuth::hash($this->getPlayer()->getSkinData(), $this->getPlayer()->getSkinName());
[178] $this->accountInfo->lastIp = $this->getPlayer()->getAddress();
[179] if($this->accountInfo->passwordHash){
[180] $this->player->sendMessage($this->getMain()->getMessages()->getNested("Login.Completion", "login"));
[181] }
[182] $this->player->getInventory()->sendContents($this->player);
[183] $this->player->getInventory()->sendArmorContents($this->player);
[184] if($this->origPos instanceof Position){
[185] $this->getPlayer()->teleport($this->origPos);
[186] $this->origPos = null;
[187] }

Backtrace:
#0 /HereAuth_Beta.phar/src/HereAuth/HereAuth(241): HereAuth\User\User->__construct(HereAuth\HereAuth object, pocketmine\Player Player(7), HereAuth\User\AccountInfo object)
#1 /HereAuth_Beta.phar/src/HereAuth/Database/Json/JsonLoadFileTask(49): HereAuth\HereAuth->onUserStart(integer 7, HereAuth\User\AccountInfo object)
#2 /src/pocketmine/scheduler/AsyncPool(151): HereAuth\Database\Json\JsonLoadFileTask->onCompletion(pocketmine\Server object)
#3 /src/pocketmine/scheduler/ServerScheduler(268): pocketmine\scheduler\AsyncPool->collectTasks(boolean)
#4 /src/pocketmine/Server(2982): pocketmine\scheduler\ServerScheduler->mainThreadHeartbeat(integer 327)
#5 /src/pocketmine/Server(2679): pocketmine\Server->tick(boolean)
#6 /src/pocketmine/Server(2557): pocketmine\Server->tickProcessor(boolean)
#7 /src/pocketmine/Server(2122): pocketmine\Server->start(boolean)

@SOF3
Copy link
Collaborator

SOF3 commented Aug 2, 2016

Seems already fixed.

@SOF3 SOF3 closed this as completed Aug 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants