← Назад к ресурсам

SkWorldGuard

Most Worldguard effects/events in skript

Modrinth library utility

Описание

![Banner of SkWorldGuard](https://cdn.modrinth.com/data/cached_images/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.** ## **Effects Added:** ```html Create Region: - create region %string% from %location% to %location% Delete Region: delete region %string% ``` ```html 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% ``` ```html Set Region Flag: - set flag %string% of region %string% to %string% ``` **-Template.sk** ```html # 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 : 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%" ``` ```html # Add or remove players as members or owners of a region command /addregionowner : trigger: add "%arg-1%" as owner to region "%arg-2%" send "%arg-1% got set as Owner from %arg-2% " to player command /removeregionowner : 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 : trigger: add "%arg-1%" as member to region "%arg-2%" send "%arg-1% got added as member to %arg-2%" to player command /removeregionuser : 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 : 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 ``` --- ## 📢 Community & Support [![Discord](https://img.shields.io/discord/1415668646981800032?label=Join%20our%20Discord&logo=discord&logoColor=white&color=5865F2&style=for-the-badge)](https://discord.gg/bvAF3fA8zG) ![NEW](https://img.shields.io/badge/-NEW-ff4757?style=for-the-badge) Join my Discord server for support, questions, or just to hang out! ---