WorldGuardDuels icon

WorldGuardDuels -----

Enables 1v1 duels in WorldGuard regions with custom spawn points.




Enables 1v1 duels in WorldGuard regions with custom spawn points.

** You will need WorldGuard & WorldEdit | Click Here **

Any issues or bugs report -> Here

Features
  • Integration with WorldGuard: Uses WorldGuard's regions to determine where duels can take place.
  • Custom Flag: Introduces a "duels" flag to WorldGuard regions to enable or disable dueling.
  • Inventory Management: Saves and restores player inventories, armor, health, and hunger before and after duels.
  • Custom Spawn Points: Allows administrators to set custom spawn points for duels in each region.

Commands
  • /duel <player>
    • Description: Challenge a player to a duel.
    • Usage: /duel <player>
  • /duelaccept
    • Description: Accept a duel challenge.
    • Usage: /duelaccept
  • /dueldeny
    • Description: Deny a duel challenge.
    • Usage: /dueldeny
  • /setduelspawn <region_id> <player1|player2>
    • Description: Set the spawn location for player1 or player2 in a specified duel region.
    • Usage: /setduelspawn <region_id> <player1|player2>
    • Permission: worldguardduels.setduelspawn

How It Works
  • Duel Requests: Players use /duel <player> to challenge another player. The challenged player receives a notification and can accept with /duelaccept or deny with /dueldeny.
  • Starting a Duel: When a duel is accepted, both players' current inventories, armor, health, and hunger levels are saved. Their inventories and armor are cleared, and their health and hunger are reset to ensure a fair duel. Players are teleported to their designated spawn points in the duel region.
  • Ending a Duel: After the duel, players' inventories, armor, health, and hunger are restored to their pre-duel states.
  • Setting Spawn Points: Administrators can set custom spawn points for player1 and player2 in each duel region using /setduelspawn <region_id> <player1|player2>. These locations are stored in a JSON file for persistence across server restarts.

Data Persistence
  • Duel States: Player states (inventories, armor, health, and hunger) are saved to and loaded from a JSON file (duels.json).
  • Duel Locations: Custom spawn points for each region are saved to and loaded from a JSON file (duel_locations.json).
Resource Information
Author:
----------
Total Downloads: 30
First Release: Jul 9, 2024
Last Update: Jul 9, 2024
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings