Zrips / Residence

Residence Bukkit Plugin
135 stars 85 forks source link

Not working custom flag #940

Open Inf1n1ty202 opened 2 years ago

Inf1n1ty202 commented 2 years ago

Hello. We have a problem with setting custom flags in residence. This flag is called "bending" and is added by a plugin called project korra. We first discussed this issue with the developer from project korra and none of his more recent builds worked. The problem is that although the flag is added there in the /res set gui, it cannot be enabled or disabled and when /res set bending false/true is used it says it is an invalid flag. It will say the same thing even if we add a residence name to the command.

StrangeOne101 commented 2 years ago

To add to this, custom flags registered with FlagPermissions.addFlag(String flag) as referenced on the wiki are buggy. They don't appear in the /res flags list, nor do they appear in GUIs. Setting them seems to only work if you mention the residence name, or else the flag is "unknown". You also can't run the check command on the flag unless it is already set on a residence (as the flag is also not known)

The above support mentioned in ProjectKorra works in some test environments but not others. The code used to register the flag can be seen here: https://github.com/StrangeOne101/ProjectKorra/blob/d039878948895dbbb15737c450ac1ac3fd8b1117/src/com/projectkorra/projectkorra/region/Residence.java