fix search permission for filter menu (Closes #78)

Took 2 minutes
This commit is contained in:
Kiran Hart 2023-12-06 15:26:52 -05:00
parent 98d3f865ff
commit 77af181a79
No known key found for this signature in database
GPG Key ID: 5F36C7BC79D3EBC3

View File

@ -76,7 +76,7 @@ public class GUIFilterSelection extends AbstractPlaceholderGui {
setButton(1, 5, ConfigurationItemHelper.createConfigurationItem(this.player, Settings.GUI_FILTER_ITEMS_SEARCH_ITEM.getString(), Settings.GUI_FILTER_ITEMS_SEARCH_NAME.getString(), Settings.GUI_FILTER_ITEMS_SEARCH_LORE.getStringList(), new HashMap<String, Object>() {{
put("%filter_search_phrase%", auctionPlayer.getCurrentSearchPhrase());
}}), e -> {
if (e.player.hasPermission("auctionhouse.cmd.search")) {
if (!e.player.hasPermission("auctionhouse.cmd.search")) {
AuctionHouse.getInstance().getLocale().getMessage("commands.no_permission").sendPrefixedMessage(e.player);
return;
}