mirror of
https://github.com/BentoBoxWorld/Warps.git
synced 2024-11-25 03:55:25 +01:00
style: added TODO
Currently, `noLevelOrIsland and hasCorrectIslandRank` require the sign to be on an island. Currently this means the flag/level requirement are non-existent in the case of a sign being placed on a non-BSB island. This gives a possible solution if new API comes to light.
This commit is contained in:
parent
1054518831
commit
599a6e1d08
@ -158,6 +158,11 @@ public class WarpSignsListener implements Listener {
|
||||
if (noPerms(user, b.getWorld(), inWorld)) {
|
||||
return;
|
||||
}
|
||||
// TODO: These checks are useless if the sign is placed outside a BSB world.
|
||||
// This will mean level and rank requirements are nil in the case of allow-in-other-worlds: true.
|
||||
// I'm not sure if there is a better way around this without adding new API checking for primary
|
||||
// or last island accessed with relevant permissions.
|
||||
// ignored.
|
||||
if (inWorld && noLevelOrIsland(user, b.getWorld())) {
|
||||
e.setLine(0, ChatColor.RED + addon.getSettings().getWelcomeLine());
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user