mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-12-26 09:57:35 +01:00
Add option to turn off hopper protection
This commit is contained in:
parent
8a9f1c52c7
commit
baed82be29
@ -181,7 +181,6 @@ public class ChestShop extends JavaPlugin {
|
|||||||
registerEvent(new ChestBreak());
|
registerEvent(new ChestBreak());
|
||||||
|
|
||||||
registerEvent(new BlockPlace());
|
registerEvent(new BlockPlace());
|
||||||
registerEvent(new ItemMoveListener());
|
|
||||||
registerEvent(new PlayerConnect());
|
registerEvent(new PlayerConnect());
|
||||||
registerEvent(new PlayerInteract());
|
registerEvent(new PlayerInteract());
|
||||||
registerEvent(new PlayerInventory());
|
registerEvent(new PlayerInventory());
|
||||||
@ -191,6 +190,10 @@ public class ChestShop extends JavaPlugin {
|
|||||||
|
|
||||||
registerEvent(new RestrictedSign());
|
registerEvent(new RestrictedSign());
|
||||||
registerEvent(new ShortNameSaver());
|
registerEvent(new ShortNameSaver());
|
||||||
|
|
||||||
|
if (!Properties.TURN_OFF_HOPPER_PROTECTION) {
|
||||||
|
registerEvent(new ItemMoveListener());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void registerShopRemovalEvents() {
|
private void registerShopRemovalEvents() {
|
||||||
|
@ -114,6 +114,9 @@ public class Properties {
|
|||||||
@ConfigurationComment("Do you want to turn off the default sign protection? Warning! Other players will be able to destroy other people's shops!")
|
@ConfigurationComment("Do you want to turn off the default sign protection? Warning! Other players will be able to destroy other people's shops!")
|
||||||
public static boolean TURN_OFF_SIGN_PROTECTION = false;
|
public static boolean TURN_OFF_SIGN_PROTECTION = false;
|
||||||
|
|
||||||
|
@ConfigurationComment("Do you want to disable the hopper protection, which prevents the hoppers from taking items out of chests?")
|
||||||
|
public static boolean TURN_OFF_HOPPER_PROTECTION = false;
|
||||||
|
|
||||||
@ConfigurationComment("Do you want to protect shop chests with LWC?")
|
@ConfigurationComment("Do you want to protect shop chests with LWC?")
|
||||||
public static boolean PROTECT_CHEST_WITH_LWC = false;
|
public static boolean PROTECT_CHEST_WITH_LWC = false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user