Skip to content

Commit

Permalink
Update PistonCrystal
Browse files Browse the repository at this point in the history
  • Loading branch information
IUDevman committed Jan 4, 2021
1 parent a383490 commit 2e0efdb
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ public PistonCrystal(){
Setting.Boolean antiWeakness;
Setting.Boolean chatMsg;


public void setup(){

ArrayList<String> breakTypes = new ArrayList<>();
breakTypes.add("Swing");
breakTypes.add("Packet");
Expand All @@ -81,7 +79,7 @@ public void setup(){
crystalDelay = registerInteger("Crystal Delay", "Crystal Delay", 2, 0, 20);
hitDelay = registerInteger("Hit Delay", "HitDelay", 2, 0, 20);
supBlocksDelay = registerInteger("Surround Delay", "SurroundDelay", 4, 0, 20);
maxYincr = registerInteger("max Y incr", "maxYincr", 3, 0, 5);
maxYincr = registerInteger("Max Y", "MaxY", 3, 0, 5);
rotate = registerBoolean("Rotate", "Rotate", false);
blockPlayer = registerBoolean("Trap Player", "TrapPlayer", true);
confirmBreak = registerBoolean("No Glitch Break", "NoGlitchBreak", true);
Expand Down Expand Up @@ -158,15 +156,15 @@ public void onDisable(){

if (chatMsg.getValue()){
if (yUnder) {
printChat(String.format("Sorry but you cannot be under 2+ blocks the enemy or %d above... PistonCrystal turned OFF!", maxYincr.getValue()), true);
printChat(String.format("Sorry but you cannot be 2+ blocks under the enemy or %d above... PistonCrystal turned OFF!", maxYincr.getValue()), true);
}else if (noMaterials){
printChat("No Materials Detected... PistonCrystal turned OFF!", true);
}else if (!isHole) {
printChat("The enemy is not in a hole... PistonCrystal turned OFF!", true);
}else if(!enoughSpace) {
printChat("Not enough space... PistonCrystal turned OFF!", true);
}else if(hasMoved) {
printChat("He moved away from the hole... PistonCrystal turned OFF!", true);
printChat("Out of range... PistonCrystal turned OFF!", true);
}
else {
printChat("PystonCrystal turned OFF!", true);
Expand Down

0 comments on commit 2e0efdb

Please sign in to comment.