Skip to content
This repository was archived by the owner on Dec 5, 2021. It is now read-only.

Commit be678bd

Browse files
Merge remote-tracking branch 'origin/master'
Former-commit-id: 6866d2a
2 parents c9e2cb5 + 769e902 commit be678bd

3 files changed

Lines changed: 4 additions & 9 deletions

File tree

src/main/java/org/maxgamer/quickshop/QuickShop.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ public void onEnable() {
587587
/* Process the config */
588588
saveDefaultConfig();
589589
reloadConfig();
590-
getConfig().options().copyDefaults(true); // Load defaults.
590+
getConfig().options().copyDefaults(true).header("Read the example.config.yml file to get commented example config file."); // Load defaults.
591591
saveDefaultConfig();
592592
reloadConfig();
593593
// getConfig().options().copyDefaults(true);

src/main/java/org/maxgamer/quickshop/listener/BlockListener.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public BlockListener(@NotNull final QuickShop plugin, @Nullable final Cache cach
5454
/*
5555
* Removes chests when they're destroyed.
5656
*/
57-
@EventHandler(priority = EventPriority.LOW)
57+
@EventHandler(priority = EventPriority.NORMAL,ignoreCancelled = true)
5858
public void onBreak(BlockBreakEvent e) {
5959

6060
final Block b = e.getBlock();
@@ -102,12 +102,7 @@ public void onBreak(BlockBreakEvent e) {
102102
return;
103103
}
104104

105-
if (!shop.getModerator().isOwner(p.getUniqueId())
106-
&& !QuickShop.getPermissionManager().hasPermission(p, "quickshop.other.destroy")) {
107-
e.setCancelled(true);
108-
MsgUtil.sendMessage(p, MsgUtil.getMessage("no-permission", p));
109-
return;
110-
}
105+
111106
// Cancel their current menu... Doesnt cancel other's menu's.
112107
final Info action = super.getPlugin().getShopManager().getActions().get(p.getUniqueId());
113108

src/main/resources/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ config-version: 106
3838
#zh-CN
3939
#zh-TW
4040

41-
language: en
41+
language: en-US
4242

4343
#After you setup this, quickshop will download items/blocks/enchs and potions translation from MOJANGAPI
4444
#You can find supported language in your Minecraft Client Languages menu, fill this with the language Code.

0 commit comments

Comments
 (0)