diff --git a/src/com/massivecraft/massivecore/command/editor/CommandEditAbstract.java b/src/com/massivecraft/massivecore/command/editor/CommandEditAbstract.java index 78914aba..aa8075aa 100644 --- a/src/com/massivecraft/massivecore/command/editor/CommandEditAbstract.java +++ b/src/com/massivecraft/massivecore/command/editor/CommandEditAbstract.java @@ -158,7 +158,7 @@ public class CommandEditAbstract extends MassiveCommand // Apply // We set the new property value. - this.getProperty().setValue(this.getObject(), after); + this.getProperty().setValue(sender, this.getObject(), after); // After // We inform what the value is after. @@ -245,7 +245,7 @@ public class CommandEditAbstract extends MassiveCommand public V setValue(V value) { - return this.getProperty().setValue(this.getObject(), value); + return this.getProperty().setValue(sender, this.getObject(), value); } public Entry getInheritedEntry() diff --git a/src/com/massivecraft/massivecore/command/editor/CommandEditContainerAbstract.java b/src/com/massivecraft/massivecore/command/editor/CommandEditContainerAbstract.java index aee72350..77251e60 100644 --- a/src/com/massivecraft/massivecore/command/editor/CommandEditContainerAbstract.java +++ b/src/com/massivecraft/massivecore/command/editor/CommandEditContainerAbstract.java @@ -113,7 +113,7 @@ public abstract class CommandEditContainerAbstract extends CommandEditAbst // Apply // We set the new property value. - this.getProperty().setValue(this.getObject(), after); + this.getProperty().setValue(sender, this.getObject(), after); // Create messages List messages = new MassiveList<>(); diff --git a/src/com/massivecraft/massivecore/command/editor/EditSettings.java b/src/com/massivecraft/massivecore/command/editor/EditSettings.java index 8eb74d3e..07611523 100644 --- a/src/com/massivecraft/massivecore/command/editor/EditSettings.java +++ b/src/com/massivecraft/massivecore/command/editor/EditSettings.java @@ -74,7 +74,7 @@ public class EditSettings public void setUsed(CommandSender sender, O used) { - this.getUsedProperty().setValue(sender, used); + this.getUsedProperty().setValue(sender, sender, used); } // -------------------------------------------- // diff --git a/src/com/massivecraft/massivecore/command/editor/Property.java b/src/com/massivecraft/massivecore/command/editor/Property.java index f162505e..98b0e7f0 100644 --- a/src/com/massivecraft/massivecore/command/editor/Property.java +++ b/src/com/massivecraft/massivecore/command/editor/Property.java @@ -85,7 +85,7 @@ public abstract class Property implements Named return this.getRaw(object); } - public V setValue(O object, V value) + public V setValue(CommandSender sender, O object, V value) { // Get Before V before = this.getRaw(object); @@ -105,7 +105,7 @@ public abstract class Property implements Named if (entity != null) entity.changed(); // On Change - this.onChange(object, before, value); + this.onChange(sender, object, before, value); // Return Before return before; @@ -115,7 +115,7 @@ public abstract class Property implements Named // ON CHANGE // -------------------------------------------- // - public void onChange(O object, V before, V after) + public void onChange(CommandSender sender, O object, V before, V after) { }