Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

Fixed Player Closed in Events #1867

Merged
merged 1 commit into from
Sep 5, 2016
Merged

Fixed Player Closed in Events #1867

merged 1 commit into from
Sep 5, 2016

Conversation

dschwartz783
Copy link
Contributor

@dschwartz783 dschwartz783 commented Sep 5, 2016

Description

Fixes #1828 and partially fixes #1865

Reason to modify

Because #1828 needed to be fixed...

Tests & Reviews

Definitely fixes #1828

@SOF3
Copy link
Contributor

SOF3 commented Sep 5, 2016

This only addresses one of the almost infinite problems referred to in #1865. There are PlayerLoginEvent, PlayerJoinEvent, PlayerInteractEvent, EntityDamageEvent, blah blah blah...

@dktapps
Copy link
Contributor

dktapps commented Sep 5, 2016

I believe this mainly targets #1828 actually.

@SOF3
Copy link
Contributor

SOF3 commented Sep 5, 2016

@dktapps According to my tests with a slightly-modified Specter plugin and the script plugin provided in #1865, the output is like this:

$ s s 1dum
2016-09-05 [18:22:01] [Server thread/DEBUG]: Attempted to drop a null crafting inventory
2016-09-05 [18:22:01] [Server thread/INFO]: 1dum[/SPECTER:19133] logged out due to generic reason
2016-09-05 [18:22:01] [Server thread/INFO]: 1dum[/SPECTER:19133] [ClientID: 1] logged in with entity id 1 at (world, 0, 0, 0)
2016-09-05 [18:22:01] [Server thread/INFO]: Session started.
$ list
2016-09-05 [18:22:07] [Server thread/INFO]: There are 0/20 players online:
2016-09-05 [18:22:07] [Server thread/INFO]:

(obviously I added the $ signs)

Therefore I believe that #1828 isn't related to this pull request.

@dschwartz783
Copy link
Contributor Author

Actually, #1865 only mentions PlayerLoginEvent in the description. This is for PlayerPreLoginEvent. I suppose it isn't really related...

@SOF3
Copy link
Contributor

SOF3 commented Sep 5, 2016

@dschwartz783 sorry, my wrong. I edited the issue.

@dschwartz783
Copy link
Contributor Author

Hmm, you're right @dktapps. This does indeed fix that issue too.

@dktapps
Copy link
Contributor

dktapps commented Sep 5, 2016

@SOF3 If you read #1828, his server says 30 players online when it's actually full. That's what I was referring to. I believe this is the bug that causes it.

@dschwartz783 dschwartz783 changed the title Fixed Player Closed in Prelogin Event Fixed Player Closed in Events Sep 5, 2016
@dktapps
Copy link
Contributor

dktapps commented Sep 5, 2016

This looks fine. +1

Approved with PullApprove

@Muqsit
Copy link
Collaborator

Muqsit commented Sep 5, 2016

+1

Approved with PullApprove

@Muqsit Muqsit merged commit d5ada5f into iTXTech:master Sep 5, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants