WiIIiam278 / HuskHomes

The powerful & intuitive homes, warps, and teleportation suite
https://william278.net/project/huskhomes
Apache License 2.0
120 stars 78 forks source link

Add a WorldGuard hook to supply flags #645

Open SnowCutieOwO opened 2 months ago

SnowCutieOwO commented 2 months ago
  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. :)"
  2. 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 commented 2 months ago

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

SnowCutieOwO commented 2 months ago

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

Thanks, hope my suggestion would be useful :)