- Fixed bug when creating a shop locked by LWC/Lockette
This commit is contained in:
parent
c64627205e
commit
77bbf5de00
|
@ -44,7 +44,7 @@ public class pluginEnable extends ServerListener {
|
||||||
if (!methods.hasMethod()) {
|
if (!methods.hasMethod()) {
|
||||||
if (methods.setMethod(event.getPlugin())) {
|
if (methods.setMethod(event.getPlugin())) {
|
||||||
Economy.economy = methods.getMethod();
|
Economy.economy = methods.getMethod();
|
||||||
System.out.println("[ChestShop] " + Economy.economy.getName() + ' ' + Economy.economy.getVersion() + " loaded.");
|
System.out.println(lineStart + Economy.economy.getName() + ' ' + Economy.economy.getVersion() + " loaded.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -103,7 +103,7 @@ public class signChange extends BlockListener {
|
||||||
}
|
}
|
||||||
|
|
||||||
Block chestBlock = chest.getBlock();
|
Block chestBlock = chest.getBlock();
|
||||||
boolean canAccess = !Security.isProtected(chestBlock) || !Security.canAccess(player, chestBlock);
|
boolean canAccess = !Security.isProtected(chestBlock) || Security.canAccess(player, chestBlock);
|
||||||
|
|
||||||
if (!(Security.protection instanceof Default) && canAccess) {
|
if (!(Security.protection instanceof Default) && canAccess) {
|
||||||
Default protection = new Default();
|
Default protection = new Default();
|
||||||
|
|
|
@ -2,7 +2,7 @@ name: ChestShop
|
||||||
|
|
||||||
main: com.Acrobot.ChestShop.ChestShop
|
main: com.Acrobot.ChestShop.ChestShop
|
||||||
|
|
||||||
version: 3.00
|
version: 3.01
|
||||||
|
|
||||||
|
|
||||||
author: Acrobot
|
author: Acrobot
|
||||||
|
|
Loading…
Reference in New Issue