Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public List<String> onTabComplete(
@NotNull final Player sender, @NotNull final String commandLabel, @NotNull final CommandParser parser) {

if(parser.getArgs().size() == 1) {
return List.of("add", "remove");
return List.of("add", "remove", "query");
}
if(parser.getArgs().size() == 2) {
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ public void onCommand(@NotNull final Player sender, @NotNull final String comman
plugin.text().of(sender, "not-looking-at-shop").send();
return;
}
if(!targetShop.playerAuthorize(sender.getUniqueId(), BuiltInShopPermission.OWNERSHIP_TRANSFER)) {
if (!targetShop.playerAuthorize(sender.getUniqueId(), BuiltInShopPermission.OWNERSHIP_TRANSFER)
&& !plugin.perm().hasPermission(sender, "quickshop.transferownership.other")) {
plugin.text().of(sender, "no-permission").send();
return;
}
Expand Down
2 changes: 1 addition & 1 deletion quickshop-bukkit/src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ permissions:
quickshop.alerts: true
quickshop.create.admin: true
quickshop.history.*: true
quickshop.transferownershop.other: true
quickshop.transferownership.other: true
quickshop.other.changeitem: true
quickshop.other.changeamount: true
quickshop.other.staff: true
Expand Down