mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-25 18:09:48 -05:00
Merge remote-tracking branch 'origin/master'
Former-commit-id: 6866d2a192112072a975f11f8621a6b06c148d75
This commit is contained in:
commit
be678bdbf4
3 files changed
+4
-9
No files matched your search
@@ -587,7 +587,7 @@ public class QuickShop extends JavaPlugin {
|
||||
/* Process the config */
|
||||
saveDefaultConfig();
|
||||
reloadConfig();
|
||||
getConfig().options().copyDefaults(true); // Load defaults.
|
||||
getConfig().options().copyDefaults(true).header("Read the example.config.yml file to get commented example config file."); // Load defaults.
|
||||
saveDefaultConfig();
|
||||
reloadConfig();
|
||||
// getConfig().options().copyDefaults(true);
|
||||
|
||||
@@ -54,7 +54,7 @@ public class BlockListener extends ProtectionListenerBase {
|
||||
/*
|
||||
* Removes chests when they're destroyed.
|
||||
*/
|
||||
@EventHandler(priority = EventPriority.LOW)
|
||||
@EventHandler(priority = EventPriority.NORMAL,ignoreCancelled = true)
|
||||
public void onBreak(BlockBreakEvent e) {
|
||||
|
||||
final Block b = e.getBlock();
|
||||
@@ -102,12 +102,7 @@ public class BlockListener extends ProtectionListenerBase {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!shop.getModerator().isOwner(p.getUniqueId())
|
||||
&& !QuickShop.getPermissionManager().hasPermission(p, "quickshop.other.destroy")) {
|
||||
e.setCancelled(true);
|
||||
MsgUtil.sendMessage(p, MsgUtil.getMessage("no-permission", p));
|
||||
return;
|
||||
}
|
||||
|
||||
// Cancel their current menu... Doesnt cancel other's menu's.
|
||||
final Info action = super.getPlugin().getShopManager().getActions().get(p.getUniqueId());
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ config-version: 106
|
||||
#zh-CN
|
||||
#zh-TW
|
||||
|
||||
language: en
|
||||
language: en-US
|
||||
|
||||
#After you setup this, quickshop will download items/blocks/enchs and potions translation from MOJANGAPI
|
||||
#You can find supported language in your Minecraft Client Languages menu, fill this with the language Code.
|
||||
|
||||
Reference in new issue
Block a user