Skip to content

Commit

Permalink
Fix issue when reset was blocked if user is in team and is not team o…
Browse files Browse the repository at this point in the history
…wner.
  • Loading branch information
BONNe committed Feb 12, 2019
1 parent 31b2fed commit fa6f70d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ private PanelItem createPlayerIcon(Player player)
{
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) -> {
Expand Down

0 comments on commit fa6f70d

Please sign in to comment.