SkWorldGuard

Addon SkWorldGuard 2.3.542

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

Contributors
FluffyCat
Supported Skript Version
  1. 2.8
  2. 2.9
  3. 2.10
Supported Minecraft Versions
  1. 1.17
  2. 1.18
  3. 1.19
  4. 1.20
  5. 1.21
21b7e252ee8fb6bb55b3d24bcc65eb8db4712072_0.webp


Skworldguard: Advanced WorldGuard Integration for Skript

Skworldguard is a Skript addon designed to extend the capabilities of WorldGuard within your Minecraft server. This plugin allows you to interact with WorldGuard regions directly through Skript, offering more control and flexibility in managing your server’s protected areas.

Key Features:

1. Region Management: Create and delete WorldGuard regions directly from Skript commands.
Member and Owner Control: Easily add or remove members and owners from specific regions.

2. Flag Manipulation: Set and modify WorldGuard region flags, such as build permissions, directly through Skript.

3. Efficient Integration: Designed to work seamlessly with existing Skript setups, making it easier than ever to automate and customize region management.

Whether you're looking to automate region protection or integrate region-based features into your custom scripts, Skworldguard provides the tools you need to enhance your server’s WorldGuard capabilities.


Events:

Java:
Create Region:
- create region %string% from %location% to %location%

Delete Region:
- delete region %string%

Add Member to Region:
- add %string% as member to region %string%

Remove Member from Region:
- remove %string% from region %string%

Add Owner to Region:
- add %string% as owner to region %string%

Remove Owner from Region:
- remove %string% as owner from region %string%

Set Region Flag:
- set flag %string% of region %string% to %string%




JavaScript:
# Use a gold axe as WorldGuard tool
on rightclick with a gold axe:
    set {regionselect.%player%.loc2} to location of event-block
    send "Second Position set to: %clicked block%" to player
    cancel event

on leftclick with a gold axe:
    set {regionselect.%player%.loc1} to location of event-block
    send "First Position set to: %clicked block%" to player
    cancel event

# Create or delete a region using the selected positions
command /regionskript <text> <text>:
    permission: op
    trigger:
        if arg-1 is "create":
            if arg-2 is set:
                if {regionselect.%player%.loc1} or {regionselect.%player%.loc2} is not set:
                    send "You need to set 2 location with your Axe" to player
                    stop
                create region "%arg 2%" from {regionselect.%player%.loc1} to {regionselect.%player%.loc2}
                send "Region '%arg 2%' got created at %{regionselect.%player%.loc1}% to %{regionselect.%player%.loc2}%!" to player
                delete {regionselect.%player%.loc1}
                delete {regionselect.%player%.loc2}
        if arg-1 is "delete":
            if arg-2 is set:
                delete region "%arg-2%"

# Add or remove players as members or owners of a region
command /addregionowner <player> <text>:
    trigger:
        add "%arg-1%" as owner to region "%arg-2%"
        send "%arg-1% got set as Owner from %arg-2% " to player

command /removeregionowner <player> <text>:
    trigger:
        remove "%arg-1%" as owner from region "%arg-2%"
        send "%arg-1% got removed from owner position from %arg-2% " to player

command /addregionuser <player> <text>:
    trigger:
        add "%arg-1%" as member to region "%arg-2%"
        send "%arg-1% got added as member to %arg-2%" to player

command /removeregionuser <player> <text>:
    trigger:
        remove "%arg-1%" from region "%arg-2%"
        send "member %arg-1% got removed from %arg-2% region" to player

# Set flags for a specific region
command /setregionflag <text> <text> <text>:
    trigger:
        set flag "%arg-1%" of region "%arg-2%" to "%arg-3%"
        send "Flag '%arg-1%' got set in the region %arg-2% to %arg-3%" to player
Author
CodingCat321
Downloads
388
Views
1,019
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from CodingCat321

  • SkProxy
    Addon SkProxy
    Skript Addon to get Proxy infos (Bungeecord / Velocity / Waterfall)