Add much more configuration ability to spam module. Fixes #247

This commit is contained in:
h31ix committed 2013-10-14 12:53:12 -04:00
1 parent e474be703e
commit bd2fd0952f
14 files changed
+214 -90

No files matched your search

@@ -36,9 +36,9 @@ public class XRayListener implements Listener {
@EventHandler
public void onBlockBreak(BlockBreakEvent event) {
if (config.getConfig().logXRayStats.getValue()) {
if (config.getConfig().checkXRay.getValue()) {
Player p = event.getPlayer();
if (p.getGameMode() == GameMode.CREATIVE && !config.getConfig().trackCreativeXRay.getValue()) {
if (p.getGameMode() == GameMode.CREATIVE && !config.getConfig().checkCreativeXRay.getValue()) {
return;
}
String player = p.getName();