Fix issue when reset was blocked if user is in team and is not team owner.

This commit is contained in:
BONNe 2019-02-12 19:43:55 +02:00
parent 31b2fed8bc
commit fa6f70dc5b

View File

@ -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) -> {