Fix issue when reset was blocked if user is in team and is not team owner.
This commit is contained in:
parent
31b2fed8bc
commit
fa6f70dc5b
|
@ -175,7 +175,8 @@ public class ListUsersGUI extends CommonGUI
|
|||
{
|
||||
int lineLength = this.addon.getChallengesSettings().getLoreLineLength();
|
||||
|
||||
if (this.addon.getIslands().hasIsland(this.world, player.getUniqueId()))
|
||||
if (this.addon.getIslands().hasIsland(this.world, player.getUniqueId()) ||
|
||||
this.addon.getIslands().inTeam(this.world, player.getUniqueId()))
|
||||
{
|
||||
return new PanelItemBuilder().name(player.getName()).icon(player.getName()).clickHandler(
|
||||
(panel, user1, clickType, slot) -> {
|
||||
|
|
Loading…
Reference in New Issue