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

Prevent mobtp to world guard regions #1

Closed
divios opened this issue Aug 20, 2020 · 1 comment · Fixed by #3
Closed

Prevent mobtp to world guard regions #1

divios opened this issue Aug 20, 2020 · 1 comment · Fixed by #3
Assignees
Labels
Enhancement New feature or request Resolved Issue/question has been addressed

Comments

@divios
Copy link

divios commented Aug 20, 2020

Just as the title says, I want to stop players from taking any mob and placing it on the spaw of the server, which is a world guard region

@divios divios changed the title Prevent monto Prevent mobtp to world guard regions Aug 20, 2020
CoolLord22 added a commit that referenced this issue Aug 21, 2020
This adds in the feature request from #1. We will now check before teleporting if the player is teleporting into a region that is defined as blocked.

This commit also adds code to first check if certain config values exist before we try to parse them. Overall just optimization changes.
@CoolLord22 CoolLord22 self-assigned this Aug 21, 2020
@CoolLord22 CoolLord22 added the Enhancement New feature or request label Aug 21, 2020
@CoolLord22 CoolLord22 mentioned this issue Dec 5, 2021
@CoolLord22
Copy link
Owner

Just adding documentation in case someone comes across this in the future:

#######################
# List of regions to deny teleporting animals into and out of. Requires world and region name separated by @
#
# The format is "worldName@regionName" where worldName is the name of world containing the regionName. Note if a 
# region cannot be found it will be logged in console so please check that the name and region are written correctly! 
#
# Ex. blocked_regions: ["world@region1", "world@region2"]
blocked_regions: []

@CoolLord22 CoolLord22 added the Resolved Issue/question has been addressed label Dec 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Resolved Issue/question has been addressed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants