mirror of
https://github.com/BentoBoxWorld/Warps.git
synced 2024-11-22 02:25:31 +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:
parent
0a12a26b06
commit
1054518831
@ -163,7 +163,7 @@ public class WarpSignsListener implements Listener {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!hasCorrectIslandRank(b, user)) {
|
if (inWorld && !hasCorrectIslandRank(b, user)) {
|
||||||
e.setLine(0, ChatColor.RED + addon.getSettings().getWelcomeLine());
|
e.setLine(0, ChatColor.RED + addon.getSettings().getWelcomeLine());
|
||||||
user.sendMessage("warps.error.not-correct-rank");
|
user.sendMessage("warps.error.not-correct-rank");
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user