Conflict Worldedit & OverPermissions
LadyCailinBot opened this issue ยท 7 comments
WORLDEDIT-3098 - Reported by Dragoboss
WorldEdit is for some reason conflicting with the OverPermissions plugin.
It is in some way breaking the permissions pre-and-suffixes displayed via TownyChat.
Reproduce:
- Clean CraftBukkit server
- Add Towny, TownyChat, OverPermissions, Vault (dev-build, since OverPermission support has recently been added)
Result: Prefixes & suffixes work. - Add WorldEdit
Result: Prefixes and suffixes will show up as "{permprefix} Playername {permsuffix}"
I've been debugging my server quite a long time,
didn't expect WorldEdit to have to do anything with the issue, but it appears it does.
Any ideas?
Configurations:
WorldEdit --> Clean configuration
Towny --> Clean, except it's connecting to a MySQL back-end instead of flatfile.
OverPermissions --> Permissions and groups set-up in MySQL database. Not much to configure for this plugin.
TownyChat --> Clean, not touched
Vault --> Clean, not touched
Comment by sk89q
That's strange.
Try editing {{wepif.yml}} in your root directory and change resolvers/enabled to show just:
resolvers:
enabled: [FlatFilePermissionsResolver]
(Remove everything else.)
That's a shot in the dark though. If it fixes your problem, then you will have to revert the change and we have to find a proper solution for the problem.
Comment by Dragoboss
Doesn't seem to help, unfortunately.
Found this message in console:
[08:25:07] [Server thread/INFO]: WEPIF: Updated config file
[08:25:07] [Server thread/INFO]: WEPIF: No known permissions plugin detected. Using configuration file for permissions.
So, how exactly does WorldEdit check for Permission plugins?
I mean, Vault started supporting OverPermissions since the latest dev-builds.
OverPermissions runs fully via MySQL at the moment, hope that is any useful information.
WorldEdit version: Currently 5.6.1
CraftBukkit: 1.7.2-R0.3 Beta-build
Anything else I can provide you with to speed up the process of this ticket? ;)
Hope we'll find a way to fix it.
Thanks in advance.
Comment by wizjany
WE doesn't directly support Vault or OverPermissions (I've never even heard of it tbh), so it generally will just fall back to using Bukkit's inbuilt permission API.
The weird thing about this bug is that WE doesn't edit any permissions at all, or touch chat or player prefixes/whatever.
There's no reason that adding WorldEdit should break other plugins' permissions unless the other plugins are looking at WE's permission system for some reason.
Comment by Dragoboss
Thats mainly the reason why I really do not understand how WorldEdit is causing this.
Also, OverPermissions is quite a new/unknown plugin.
First version of the plugin was for 1.6.2.
Tried it yet again on a clean server.
With WorldEdit loaded, it again didn't work.
When I removed WorldEdit the group name showed up again.
Comment by sk89q
Right now, we don't understand either.
zml2008 might know better, or I'll go look at his permissions code in WE to see if it does something funky.
Comment by Dragoboss
I did some messing around with a Plugin Manager, yesterday evening. (I live in Europe, so maybe a bit weird times for you guys :P).
Turns out it is a issue that only seems to happen when both of the plugins are loaded on start-up (and/or reload). I might be wrong, though, but:
What I did was load the server up with Vault, OverPermissions, Towny and TownyChat again. As expected it ran fine at that moment. Then I added WorldEdit to the plugins folder but used the PluginManager to load it in.
The result of this was that WorldEdit ran, as well as TownyChat, and the permissions pre-and-suffixes just worked.
Although:
I didn't try reloading each of the plugins after this, and I didn't have access to the console at the time, so I didn't see if there was any console errors or such.
I shall try and do some more testing with the Plugin Manager installed today and/or tomorrow.