ChestShop-3/com/Acrobot/ChestShop/Protection/Plugins/SCLplugin.java
Acrobot a49d51ce97 - Changed to the new, more robust event system
- Added partial transactions (You have 5 items, shop wants 10 - you can sell your items for half the price)
- Added a warning to the HTML generator
- Fixed Towny integration
- Fixed occasional ArrayOutOfBoundsExceptions
- Fixed an error when a shop couldn't be created because a sign (not shop sign) was on other side of the block
- Added SCL (SimpleChestLock) protection plugin to supported plugins
- Updated Metrics (and added a new asynch thread for startup)
- Removed Bukkit-1.0 workaround
- Fixed plugin.yml formatting
2012-02-16 19:09:37 +01:00

26 lines
645 B
Java

package com.Acrobot.ChestShop.Protection.Plugins;
import com.Acrobot.ChestShop.Protection.Protection;
import com.webkonsept.bukkit.simplechestlock.SCL;
import org.bukkit.block.Block;
import org.bukkit.entity.Player;
/**
* @author Acrobot
*/
public class SCLplugin implements Protection {
public static SCL scl;
public boolean isProtected(Block block) {
return scl.chests.isLocked(block);
}
public boolean canAccess(Player player, Block block) {
return scl.chests.getOwner(block).equalsIgnoreCase(player.getName());
}
public boolean protect(String name, Block block) {
return false;
}
}