mirror of
https://github.com/PikaMug/Quests.git
synced 2025-01-13 11:41:21 +01:00
Ignore OPs when checking for limited access
This commit is contained in:
parent
5004e0c930
commit
cb0793e0d4
@ -4195,7 +4195,7 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if conversable is player in trial mode
|
||||
* Checks if conversable is non-OP player in trial mode
|
||||
*
|
||||
* @param conversable the editor user to be checked
|
||||
* @return {@code true} if user is a Player with quests.mode.trial permission
|
||||
@ -4204,7 +4204,11 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
|
||||
if (!(conversable instanceof Player)) {
|
||||
return false;
|
||||
}
|
||||
return ((Player)conversable).hasPermission("quests.mode.trial");
|
||||
final Player player = ((Player)conversable);
|
||||
if (player.isOp()) {
|
||||
return false;
|
||||
}
|
||||
return player.hasPermission("quests.mode.trial");
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user