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

Add a WorldGuard hook to supply flags #645

Open
SnowCutieOwO opened this issue Jun 22, 2024 · 2 comments
Open

Add a WorldGuard hook to supply flags #645

SnowCutieOwO opened this issue Jun 22, 2024 · 2 comments
Labels
type: feature request This issue is about a new feature or request type: hook This issue relates to an internal plugin hook

Comments

@SnowCutieOwO
Copy link
Contributor

SnowCutieOwO commented Jun 22, 2024

  1. Safer /back:
    • If player dies at some dangerous places like lava or void, plugin could try to find a closet place (with a range) to make players back-ed at that place.
    • If plugin failed to found a safe place in range, when players type /back, plugin will teleport them to the actual position of death.
back-protection:
    # search a safe point for players to back, if no places could found within this, then send a message to player to mention that they need to face the dangerous situation on back.
    range: 10 
    action: "notify"
    # notify, deny, teleport
    # in messages file:
    #     back-notify: "The place you want to go is not safe. Continue by typing command \"/back confirm\""
    #     back-denied: "You've died at a dangerous place and you can't back to there. Sorry :("
    #     back-teleport: "The place you want to go is not safe, however we teleported you there. :)"
  1. Region limit:
    • Intergrate with WorldGuard or Residence.
      • WorldGuard: add flags, named huskhome-{commands}
      • {commands} should be replaced by command name, like back or tpaccept or sethome.
      • flag type: string, you could set three values:
        • notify: player will be notified if they performed this action at this area, meanwhile they need extra commands to confirm their action.
        • normal (the default value if not present): do nothing
        • deny: player will be denied if they try to perform this action.
      • Example:
        • To prevent some player wrongly set their waypoints (homes) at the world spawn, I created an area called spawn-region and set huskhomes-sethome flag to notify, so if a player typed /sethome in this region, they will be notified and need to type /sethomeconfirm or something else to confirm set their home there.
      • The Residence is same as WorldGuard, you could consider as you like. :)
@WiIIiam278
Copy link
Owner

Your first request is a duplicate of #36, the second is valid though

@WiIIiam278 WiIIiam278 changed the title New function suggestion: Add a WorldGuard hook to supply flags Jun 24, 2024
@WiIIiam278 WiIIiam278 added type: feature request This issue is about a new feature or request type: hook This issue relates to an internal plugin hook labels Jun 24, 2024
@SnowCutieOwO
Copy link
Contributor Author

Your first request is a duplicate of #36, the second is valid though

Thanks, hope my suggestion would be useful :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature request This issue is about a new feature or request type: hook This issue relates to an internal plugin hook
Projects
None yet
Development

No branches or pull requests

2 participants