Skip to content

Check Methods

RedstoneFuture edited this page Mar 4, 2026 · 2 revisions

Check by Restriction-Plugin API Handling

The goal of the framework is to help plugin developers perform restriction checks without each plugin having to implement and update its own processes for handling Restriction Plugin API queries.

Currently, this framework is new and under development. The following restriction systems are already supported:

Note

More will follow in the future.

Check by Bukkit Fake-Event Call

This framework supports a different approach to checking building rights: A restriction check by send a fake-event call to the server.

Querying all rights plugins is currently inperformant and not completely correct due to the different scenarios (e.g. custom WorldGuard flags like allow-break-blocks of RedWorldGuardFlags or custom features via add-ons for BentoBox). At the end, we are interested in whether the player is allowed to build / interact at the corresponding location or not. So, it's possible to use a test event to check whether the player is allowed to build at the target locations.

Judging by the latest tests, this check works well to verify the permission of the player for the specified location with the target Action-Type. The new check may be more correct for some cases, as it simply reflects the test result and does not refer to the theoretical processes of the individual restriction plugins.

I would like to point out that I am primarily looking for the best and safest option. In this case, it also seems to be the simplest solution. Provided it works equally well with all supported plugins. ▪ RedstoneFuture

Clone this wiki locally