TestBike logo

Worldguard custom flags api. 1 you can create custom flags that save custom values from your own cla...

Worldguard custom flags api. 1 you can create custom flags that save custom values from your own classes. This version supports Minecraft 1. You can also browse through the JavaDocs. The order of registration is very important, so WorldGuard must load before your plugin for this to work. Flags Region Commands ¶ For a list of other (non-region protection related) commands, see the Commands page. All my plugins will be updated to use the WorldGuard API instead and this project will be abandoned after some time Inject custom WorldGuard flags | Manage WorldGuard regions This API allows you to inject custom flags into WorldGuard and offers some useful methods for WorldGuard regions. This allows third-party plugins to create their own flags for WorldGuard regions. As a user you just need to download this if a plugin requires it, it does not do anything on its own. The list of active background commands can be viewed with /wg running. We recommend ApexHosting! Made with Sphinx and Shibuya theme. Some uses of flags include: Blocking player versus player combat with the pvp flag Denying entry to a region using the entry flag Disabling the melting of snow using the snow-melt flag Blocking players within the region from receiving chat using the receive-chat flag Halting the growth of vines by using the vine-growth flag A region can have As a Dependency Working with Regions Managers Regions Custom Flags and Session Handlers Spatial Queries Flag Calculation Querying Protection Region Events From Bukkit Objects Internal APIs WorldGuard Custom Flags allows modders to create, set and get custom flags on WorldGuard regions. Correct code in your context: Code: @EventHandler(priority = EventPriority. But the real solution for modern WG: ️ Use the "Custom Flags" system + RegionQuery. 16. When this gets released I will update this plugin a last time to be used as a bridge for any other WorldGuard Custom Flags plugin that has not been updated at that moment. WorldGuard Custom Flags allows modders to create, set and get custom flags on WorldGuard regions. Now that WorldGuard natively supports a custom flags API, third-party plugins will have to update to the new API before they work again. 11, and will mostly function as far back as 1. If priorities and child inheritance are properly configured . Querying Flags ¶ One issue with query flags given a list of regions is that there may be several regions with the same flag assigned (and with different values). HIGHEST, ignoreCancelled = true) Flag Calculation ¶ To check flags, an instance of ApplicableRegionSet (which contains a list of regions) must have been retrieved. Permissions for these commands is detailed on the Permissions page. Since 1. Custom Flags and Session Handlers As of WorldGuard 6. Region Flags ¶ Regions can have flags set upon it. Apr 26, 2016 · The future / WorldGuard 6 In a future update of WorldGuard the plugin will support custom flags by default. 9 through 1. 2. Your marshal method should return a type that can be saved in databases, otherwise WorldGuard will send errors. Some of these commands may run in the background and then later return results. Aug 17, 2019 · WorldGuard Custom Flags allows modders to create, set and get custom flags on WorldGuard regions. Setup Apr 4, 2021 · 1. testState (), and don't let WorldGuard cancel your action if the flag is set. It automatically uses the same database as WorldGuard (if specified), but you need to create the table manually using an included sql-file. There is a hard limit to the number of running and queued commands Although WorldGuard will attempt to preserve the flags, they will likely be non-functional. 2, custom flags and session handlers are supported. That is documented in Spatial Queries. You can access WorldGuard’s data through its API, as documented here. Jul 24, 2025 · BEFORE WorldGuard, or listen at a higher priority and stop the cancellation. 5 Creating Custom WorldGuard Flags Discussion in ' Spigot Plugin Development ' started by Poofyjerry, Apr 4, 2021. Although WorldGuard will attempt to preserve the flags, they will likely be non-functional. Registering New Flags ¶ Make sure that you have added WorldGuard as a As a Dependency first. As a Dependency Build Checks Working with Regions Managers Regions Custom Flags and Session Handlers Spatial Queries Flag Calculation Querying Protection Region Events From Bukkit Objects Custom Flags and Session Handlers ¶ As of WorldGuard 6. This allows third-party plugins to create their own flags for WorldGuard regions. Nov 1, 2025 · An advanced WorldGuard extension that adds over 30+ extra region flags for full control of player behavior, teleportation, and region rules — featuring Folia support, item blocking (Mace, Firework, Wind Charge, Totem), and fully customizable messages. Examples Inject a custom Flag About Example Bukkit plugin showing how to use my new experimental WorldGuard API for custom region flags. 7. Make sure that you have added WorldGuard as a As a Dependency first. uvfog hdpbqb qqudg hfsll uuidw xxml tymben thayg iotuej aakibru