Skip to content
This repository has been archived by the owner on Jan 26, 2019. It is now read-only.

Bukkit PlayerMoveEvent appears to be doubled up #97

Closed
StargateMC opened this issue Feb 12, 2016 · 33 comments
Closed

Bukkit PlayerMoveEvent appears to be doubled up #97

StargateMC opened this issue Feb 12, 2016 · 33 comments

Comments

@StargateMC
Copy link

PlayerMoveEvent for bukkit appears to be doubled up, causing faction territory change messages to be duplicated.

This is also a bug in KCauldron.... I've looked at the source for Factions and they're doing it right... listening for the event and calling sendMessage to the player once per event.

@sameer
Copy link
Member

sameer commented Feb 12, 2016

What build of Thermos are you using?

@sameer
Copy link
Member

sameer commented Feb 12, 2016

And it is strange...I do not see the doubling of events on my factions server. They only receive the message of moving to another block of land once.

@StargateMC
Copy link
Author

22, your latest one

Sent from my iPhone

On 13 Feb 2016, at 1:09 AM, Sam notifications@github.com wrote:

What build of Thermos are you using?


Reply to this email directly or view it on GitHub.

@sameer
Copy link
Member

sameer commented Feb 12, 2016

So it happens for both Thermos and KCauldron?

@ghost
Copy link

ghost commented Feb 12, 2016

Can confirm this. Happens on dimension change as well.

@StargateMC
Copy link
Author

Yep

Sent from my iPhone

On 13 Feb 2016, at 2:36 AM, Sam notifications@github.com wrote:

So it happens for both Thermos and KCauldron?


Reply to this email directly or view it on GitHub.

@Bogdan-G
Copy link

It may increase the amount of data, so changes are such as this.

@StargateMC
Copy link
Author

What do you mean?

@sameer
Copy link
Member

sameer commented Feb 14, 2016

@Bogdan-G I bumped the delta so there would be fewer move events.

@Bogdan-G
Copy link

@DraksterAU more mods, more traffics, more pool size packet.

@StargateMC
Copy link
Author

Hi @robotia

Can you respond when you've released this for me to test ? :)

@StargateMC
Copy link
Author

@robotia B24 didn't fix this one :( sadface.

@sameer
Copy link
Member

sameer commented Feb 15, 2016

How are you seeing the event doubled up?

@StargateMC
Copy link
Author

Factions/WorldGuard/Towny use the PlayerMoveEvent to detect chunk changes and therefore territory changes.
Every time territory changes in any of these plugins the messages are duplicated.

I've looked at the source for Factions and can see it only fires 1 change message per PlayerMoveEvent that results in a chunk+Territory change.

@sameer
Copy link
Member

sameer commented Feb 15, 2016

@DraksterAU I believe this is an issue unique to you. On my Tekkit Legends server running B23 with Factions, I have never had this problem. 0.o

@StargateMC
Copy link
Author

@robotia on both the post here and with the KCauldron Devs I have people confirming they also have the issue.

I've also tried running JUST Factions with thermos and KCauldron and the issue persists.

@StargateMC
Copy link
Author

What version of thermos + factions are you running?

@ghost
Copy link

ghost commented Feb 15, 2016

I believe this is an issue unique to you. On my Tekkit Legends server running B23?

@StargateMC
Copy link
Author

@Cracks777 your not making sense...

@sameer
Copy link
Member

sameer commented Feb 15, 2016

Copy + paste master
Let me check on my server quick, I'll get a screenshot

@StargateMC
Copy link
Author

@Cracks777 the more important half of that is his version of factions.

@ghost
Copy link

ghost commented Feb 15, 2016

lol just trying to help.

@StargateMC
Copy link
Author

@Cracks777 PS I have tried B23 with @robotia's factions build under fixes here on both a Linux and Windows machine with Java 8 and issue persists.

@sameer
Copy link
Member

sameer commented Feb 15, 2016

Nevermind, you were right @DraksterAU somehow I missed it.

@StargateMC
Copy link
Author

Lol @robotia no worries. Just fending off the others so the issue doesn't get closed prematurely lol

sameer added a commit that referenced this issue Feb 17, 2016
I do not see why the events are being doubled up. 0.o The NetHandler class seems to be the sole caller. If this is the case, and the events appear to be doubled up, this could mean one of two things:
1. The event is being double-called with the EXACT same location, which is pretty bad. This attempts to prune that.
2. The from location has not been updated properly, so Factions interprets this as a double-crossing of the same exact border.
@StargateMC
Copy link
Author

Hi @robotia I tested... doesn't fix :(

@Time6628
Copy link
Member

Can confirm this issue still persists. Also, it appears the second message is sent a bit late. For example, if you /f claim auto: http://prntscr.com/adbcry, you can see it claims the chunk but then also tells you that you already have the chunk. There is a slight delay after the first message, not sure if that helps or not 😸

@StargateMC
Copy link
Author

@Time6628 markehme and I have developed work arounds For v2.8.5 of Factions.

Install the plugin here to resolve the issues;
https://github.com/MarkehMe/MassiveCoreForgeFixes

@Time6628
Copy link
Member

@DraksterAU I have that plugin installed and the messages still appear. 🐱

@StargateMC
Copy link
Author

@Time6628 Please post what version of Thermos, Factions, Massivecore and MassiveCoreForgeFixes you are using?

If there is a bug I'm happy to look into it and update the plugin, but the official 2.8.5 runs fine on my server with MCFF v1.1.0.

If the Fixes plugin fails, try downloading the below and using those;
https://github.com/StargateMC/Server/blob/master/base/plugins/factions.jar?raw=true
https://github.com/StargateMC/Server/blob/master/base/plugins/massivecore.jar?raw=true

@Time6628
Copy link
Member

I am using 2.8.7Beta.

@StargateMC
Copy link
Author

@Time6628 I wouldn't use that with cauldron - and the fixes plugin is only tested with 2.8.6 and below.

2.8.7 is for 1.9

sameer pushed a commit that referenced this issue Mar 12, 2016
@sameer
Copy link
Member

sameer commented Mar 13, 2016

Fixed in B47.

@sameer sameer closed this as completed Mar 13, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants