1
0
mirror of https://github.com/BentoBoxWorld/Warps.git synced 2024-11-10 12:59:36 +01:00

fix: fix create warp/sign in non-island world

Currently, you can't create a warp in another world (even with permissions) as it goes into hasCorrectIslandRank. In this case, it is always false as there is no island at the block location meaning it will always go into this whilst creating a warp in other worlds.
This commit is contained in:
TreemanK 2024-06-21 22:51:00 +10:00
parent 0a12a26b06
commit 1054518831

View File

@ -163,7 +163,7 @@ public class WarpSignsListener implements Listener {
return;
}
if(!hasCorrectIslandRank(b, user)) {
if (inWorld && !hasCorrectIslandRank(b, user)) {
e.setLine(0, ChatColor.RED + addon.getSettings().getWelcomeLine());
user.sendMessage("warps.error.not-correct-rank");
return;