mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2025-02-16 20:32:38 +01:00
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();
|
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(
|
return new PanelItemBuilder().name(player.getName()).icon(player.getName()).clickHandler(
|
||||||
(panel, user1, clickType, slot) -> {
|
(panel, user1, clickType, slot) -> {
|
||||||
|
Loading…
Reference in New Issue
Block a user