Closed IAISI closed 3 months ago
It should be updated fork of https://github.com/connection-lost/LockettePro
probably...
https://github.com/NyaaCat/LockettePro https://github.com/GreenSurvivors/LockettePro https://github.com/233Chad/LockettePro
personally I'm using the one from NyanCat, also the one from 233Chad is good, they all use same package names.
My bad I just realized I'm using 233Chad's version.
This should fix the issue.
Would also like to point out that the I suspect original Lockette implementation is wrong:
If block is NOT protected by lockette is would always return false for hasPermission, this is probably not right?
Furthermore booleans are also wrongly negated? So if Lockette#isOwner returns true, hasPermission would actually return false?
Would also like to point out that the I suspect original Lockette implementation is wrong:
` @OverRide public boolean hasPermission(OfflinePlayer p, Location l, Interaction action) { if (action.getType() != ActionType.BLOCK) { return true; }
Block b = l.getBlock(); if (Lockette.isProtected(b)) { BlockState state = b.getState(); if (state instanceof Sign) { return !Lockette.isOwner((Sign) state, p); } else { return !Lockette.isOwner(b, p); } } else return false; }
`
If block is NOT protected by lockette is would always return false for hasPermission, this is probably not right?
Furthermore booleans are also wrongly negated? So if Lockette#isOwner returns true, hasPermission would actually return false?
What you are saying could very well be true, This is why i said on discord to you we do not implement these things since we do not know how their stuff works. This might very well be case of a user like you implementing this wrongly and since we do not the implementation these issues would arrise
I understand, sorry for the confusion, I guess I can just close this?
You dont have to close this we appreciate the PR. We just need to be sure its working.
Marking this as stale. The repo is no merged to the Slimefun org so it should be reviewed faster in the future.
The dependency is not being found, could you double check if it's correct please?
EDIT: Could it be you need one from https://github.com/brunyman/LockettePro rather than NyaaCat's one?