WORLDGUARD API DOWNLOAD FREE
While this isn't recommended for other plugins to do, sometimes access to WorldGuard's configuration is required. One way around this problem is to put the offending code in a different class entirely:. One other change is that flags now use WorldEdit generic classes, rather than Bukkit specific classes. For example, if you tried to do: It can be called from any thread, but it will block until completion or error. This is my plugin! To create a new cuboid region, two opposite corners are required.
Uploader: | Muran |
Date Added: | 10 October 2012 |
File Size: | 45.77 Mb |
Operating Systems: | Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X |
Downloads: | 14625 |
Price: | Free* [*Free Regsitration Required] |
WorldGuard may periodically attempt to load the data again. Setting the region group of the use flag:.

Now was the most appropriate time to do this, as 1. Flags For most plugins that integrate with WorldGuard, the first noticed change will be that the DefaultFlag class no longer exists.
Even if your plugin is removed from the server, WorldGuard will keep the flag saved to any regions it was set on, but it will be rendered inert until your plugin is loaded again.
However, this is a concern if you are merely soft-depending on WorldGuard.
Updating WorldGuard to Minecraft 1.13
As of version 6. In every case, a region ID must be passed for the region. The returned value may be null if region support is disabled or region data aip to load. This is illustrated below. A handler is instantiated by a sorldguard method for each session player when it is created. This is done via WorldGuard. If there are existing regions with equivalent IDs, then the new regions will replace the previous regions. The parameter should be an instance of any flag object, whether you use one of the default types or your own type.
It's now accessed through the core, rather than through the Bukkit plugin.
As a Dependency — WorldGuard documentation
Within major versions 5. Hint If you are interested in performing spatial queries on all regions, see Spatial Queries. If you are using WorldGuard as hard dependency, ali do not need to worry about WorldGuard clases potentially not existing at runtime. WorldGuard also uses Sessions to manage god mode, for example. To save a created region, see Managers. The reasoning for this was explained above.
WorldGuard API — WorldGuard documentation
Regions can be removed by identifier using regions. In general, your flags will be used in event handlers by querying values. This allows third-party plugins to create their own flags for WorldGuard regions. Not to be confused with Global Regionglobal regions have no physical area.
It is highly recommended that you inform the user if the UUID lookup does not complete instantly. Running some method periodically on all players in regions with the given flag e.

As of WorldGuard 6. Ask questions on our Discord EngineHub.
Developer Changes Here is where the substantial changes owrldguard to occur. For example, you might use a ProtectedCuboidRegion. An ID immutable Its priority Its optional parent A list of members A list of owners A list of region flags A boolean that automatically tracks whether the worldguuard has been modified Vectors are used for referring to locations — these vector objects are from WorldEdit see From Bukkit Objects for converting from Bukkit locations.
If you need to convert player names into UUIDs, you should try to do it in the background if possible so that you do not pause the server or game. Here is where the substantial changes start to occur.
Warning The returned value may be null if region support appi disabled or region data failed to load.
Комментарии
Отправить комментарий