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

Block to player teleportation #2

Open
ungermum opened this issue Feb 16, 2021 · 2 comments
Open

Block to player teleportation #2

ungermum opened this issue Feb 16, 2021 · 2 comments

Comments

@ungermum
Copy link

Hey! Can you add flag to player1 cant teleport to player2, if player2 in certain WG region?

@totemo
Copy link
Member

totemo commented Mar 8, 2021

This depends very much on the teleport plugin in use and I don't think it's practical or desirable to integrate NerdFlags with specific teleport plugins as dependencies.

You could, however, set the entry-commands region flag to deny teleport requests using whatever teleport plugin you are using. Perhaps using the command of that plugin or using custom commands that check that the command sender is the console (OP). How does that sound?

@totemo
Copy link
Member

totemo commented Mar 8, 2021

entry-commands apparently separates multiple commands with the pipe (|) character and escapes that character using the backslash, ''.

private static List<String> parseCommands(String commands) {

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

No branches or pull requests

2 participants