From 21211b404fd10b68e8a8958b6cf0d43f9369869b Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Tue, 15 Mar 2016 23:30:50 +0100 Subject: [PATCH] Better methods in MassiveCommandToggle --- .../massivecore/command/MassiveCommandToggle.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/com/massivecraft/massivecore/command/MassiveCommandToggle.java b/src/com/massivecraft/massivecore/command/MassiveCommandToggle.java index 43806cc3..6d8ab413 100644 --- a/src/com/massivecraft/massivecore/command/MassiveCommandToggle.java +++ b/src/com/massivecraft/massivecore/command/MassiveCommandToggle.java @@ -36,9 +36,9 @@ public abstract class MassiveCommandToggle extends MassiveCommand // ABSTRACT // -------------------------------------------- // - public abstract boolean get(); + public abstract boolean getValue(); - public abstract void set(boolean value); + public abstract void setValue(boolean value); // -------------------------------------------- // // GET NAME @@ -58,7 +58,7 @@ public abstract class MassiveCommandToggle extends MassiveCommand public void perform() throws MassiveException { // Args - boolean before = this.get(); + boolean before = this.getValue(); boolean after = this.readArg( ! before); String afterDesc = TypeBoolean.getOn().getVisual(after, sender); @@ -72,7 +72,7 @@ public abstract class MassiveCommandToggle extends MassiveCommand } // Apply - set(after); + this.setValue(after); // Inform String message = Txt.parse("%s is now %s.", this.getName(), afterDesc);