From e9aceb4fef2453fadfca3747127788789ab30735 Mon Sep 17 00:00:00 2001 From: Evenprime Date: Thu, 20 Oct 2011 16:45:41 +0200 Subject: [PATCH] Changed some default settings --- .../nocheat/config/DefaultConfiguration.java | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/cc/co/evenprime/bukkit/nocheat/config/DefaultConfiguration.java b/src/cc/co/evenprime/bukkit/nocheat/config/DefaultConfiguration.java index a1bc8247..1923aa83 100644 --- a/src/cc/co/evenprime/bukkit/nocheat/config/DefaultConfiguration.java +++ b/src/cc/co/evenprime/bukkit/nocheat/config/DefaultConfiguration.java @@ -92,17 +92,19 @@ public class DefaultConfiguration extends Configuration { setValue(BLOCKBREAK_REACH_LIMIT, 485); ActionList reachActionList = new ActionList(); - reachActionList.setActions(0, action.getActions("reachLog blockbreakCancel".split(" "))); + reachActionList.setActions(0, action.getActions("blockbreakCancel".split(" "))); + reachActionList.setActions(5, action.getActions("reachLog blockbreakCancel".split(" "))); setValue(BLOCKBREAK_REACH_ACTIONS, reachActionList); setValue(BLOCKBREAK_DIRECTION_CHECK, true); - setValue(BLOCKBREAK_DIRECTION_CHECKINSTABREAKBLOCKS, false); + setValue(BLOCKBREAK_DIRECTION_CHECKINSTABREAKBLOCKS, true); setValue(BLOCKBREAK_DIRECTION_PRECISION, 50); setValue(BLOCKBREAK_DIRECTION_PENALTYTIME, 300); ActionList directionActionList = new ActionList(); - directionActionList.setActions(0, action.getActions("directionLog blockbreakCancel".split(" "))); + directionActionList.setActions(0, action.getActions("blockbreakCancel".split(" "))); + directionActionList.setActions(10, action.getActions("directionLog blockbreakCancel".split(" "))); setValue(BLOCKBREAK_DIRECTION_ACTIONS, directionActionList); } @@ -114,13 +116,15 @@ public class DefaultConfiguration extends Configuration { setValue(BLOCKPLACE_REACH_LIMIT, 485); ActionList reachActionList = new ActionList(); - reachActionList.setActions(0, action.getActions("reachLog blockplaceCancel".split(" "))); + reachActionList.setActions(0, action.getActions("blockplaceCancel".split(" "))); + reachActionList.setActions(5, action.getActions("reachLog blockplaceCancel".split(" "))); setValue(BLOCKPLACE_REACH_ACTIONS, reachActionList); setValue(BLOCKPLACE_ONLIQUID_CHECK, true); ActionList onliquidActionList = new ActionList(); - onliquidActionList.setActions(0, action.getActions("onliquidLog blockplaceCancel".split(" "))); + onliquidActionList.setActions(0, action.getActions("blockplaceCancel".split(" "))); + onliquidActionList.setActions(3, action.getActions("onliquidLog blockplaceCancel".split(" "))); setValue(BLOCKPLACE_ONLIQUID_ACTIONS, onliquidActionList); } @@ -170,10 +174,8 @@ public class DefaultConfiguration extends Configuration { w = new BufferedWriter(new FileWriter(file)); - w(w, "# This file contains the definitions of the default actions of NoCheat."); - w(w, "# DO NOT EDIT THIS FILE DIRECTLY. If you want to change any of these, copy"); - w(w, "# them to your \"actions.txt\" file and modify them there. If an action with"); - w(w, "# the same name exists here and in your file, yours will be used."); + w(w, "# This file contains the definitions of your personal actions for NoCheat."); + w(w, "# Look at the file default_actions.txt for inspiration on how it works."); w(w, ""); w.flush(); w.close();