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

Added two new config options and accompanying implementation #43

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

spaceFountain
Copy link

search-area specifies an square around the failed knock back location for one that works.

fix-tp-target when set to true creates a safe knock back location if all else fails.

I'm not sure if this is the best solution, but as it stands we are have large problems with the nether and world border as it is failing too often to knock people back and because we can't allow people to exploit the tp back to spawn we have to kill them.

Other solutions I thought about and rejected as to complicated include traversing the edge of the border/knockback until a valid location is found.

I've tried to stay with your code style. If there's something that bothers you I'll gladly fix it. I'd like to avoid keeping and maintaining our own version of WorldBorder.

@Brettflan
Copy link
Owner

At one point I'd planned to add in something along these lines which would check further X/Z coordinates back in a pattern away from the border, triangular (with the first spot as the point of the triangle, spreading out backwards) or possibly just square, but not checking any closer to the border from the starting point. I never did get around to that.

Regardless of that, this does look mostly reasonable just from a quick glance. One thing that does jump out at me is around line 309 of BorderData.java in your code; is that section below supposed to be encapsulated by that If statement? Something isn't quite right there.

@spaceFountain
Copy link
Author

Thanks I think that may well be the case let me see about fixing it and I'll get back to you.

@spaceFountain
Copy link
Author

This should do it. Sorry about that.

@Brettflan
Copy link
Owner

Have you done much testing on it to make sure it's working correctly? Eventually when I have time I'll need to go over the code more thoroughly and then do a fair amount of in-game testing myself to make sure it's working as intended. I'm not sure when I'll have time.

The code also can't be pulled at this point due to the version change in plugin.yml and pom.xml; you'd do better to omit those, as I pretty much strictly update the version string when making a public or dev release.

@spaceFountain
Copy link
Author

Sorry about taking so long on this. I need to get back to do some intensive
testing. I'm in college and in one of the busier parts of the semester and
basically everything that isn't totally necessary is getting left by the
wayside. I'll try to get to this soon. I did a fair amount on the old one,
but not on this modification to it. Again apologies and I'll try to get to
it within the next week or so.

On Sun, Mar 8, 2015 at 6:08 AM Brett Flannigan [email protected]
wrote:

Have you done much testing on it to make sure it's working correctly?
Eventually when I have time I'll need to go over the code more thoroughly
and then do a fair amount of in-game testing myself to make sure it's
working as intended. I'm not sure when I'll have time.

The code also can't be pulled at this point due to the version change in
plugin.yml and pom.xml; you'd do better to omit those, as I pretty much
strictly update the version string when making a public or dev release.


Reply to this email directly or view it on GitHub
#43 (comment).

@Brettflan
Copy link
Owner

No worries. It will probably be a while before I have free time to spend on properly reviewing it for inclusion anyway.

Thanks again for the code submission, by the way, it should be a good addition to the plugin.

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.

2 participants