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

Update 1.0.10 #42

Closed
wants to merge 9 commits into from
Closed

Update 1.0.10 #42

wants to merge 9 commits into from

Conversation

UnknownNull
Copy link
Contributor

Fix spectator bug #40
Adedd Bossbar Color in Config #14

Copy link

@nicholass003 nicholass003 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will create an error

src/sergittos/bedwars/listener/GameListener.php Outdated Show resolved Hide resolved
}
}

if ($entity instanceof Player and $entity->getGamemode() === GameMode::SPECTATOR){
Copy link

@xwertxy xwertxy May 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That will return error, pmmp uses in gamemode of the dynamic dummy functions. It should be GameMode::SPECTATOR()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't think this will produce an error, because pmmp does the same thing
https://github.com/pmmp/PocketMine-MP/blob/fb9a74e8799c71ed8292cfa53abe7a4c9204629d/src/player/Player.php#L1199

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't think this will produce an error, because pmmp does the same thing https://github.com/pmmp/PocketMine-MP/blob/fb9a74e8799c71ed8292cfa53abe7a4c9204629d/src/player/Player.php#L1199

In that case, it will be removed soon... once they get rid of that.

@@ -284,7 +284,9 @@ public function hideBossBar(): void {
}

public function sendDataPacket(ClientboundPacket $packet): void {
$this->player->getNetworkSession()->sendDataPacket($packet);
if(Server::getInstance()->getPlayerExact($this->player->getName()) !== null and Server::getInstance()->getPlayerExact($this->player->getName())->getNetworkSession() !== null){
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change this to

Suggested change
if(Server::getInstance()->getPlayerExact($this->player->getName()) !== null and Server::getInstance()->getPlayerExact($this->player->getName())->getNetworkSession() !== null){
if ($this->player->isConnected() && $this->player->spawned) {

@xwertxy
Copy link

xwertxy commented May 28, 2024

Also, use php-cs-fixer to fix code standards and the code format.

@Sergittos
Copy link
Owner

I won't merge this because everything will be added on a new big update (2.0.0), you can check it out on the branches

@UnknownNull
Copy link
Contributor Author

I won't merge this because everything will be added on a new big update (2.0.0), you can check it out on the branches

👍👍

@UnknownNull
Copy link
Contributor Author

I am closing this pull because the next update is coming and hopefully this will be fixed in the next update.

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

Successfully merging this pull request may close these issues.

None yet

4 participants