Skip to content

Commit

Permalink
Create method that allows to change ValueObject value.
Browse files Browse the repository at this point in the history
  • Loading branch information
BONNe committed Jan 17, 2019
1 parent 2ae8a5d commit bd48e85
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/main/java/world/bentobox/challenges/panel/CommonGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import org.bukkit.Material;
import org.bukkit.World;
import org.bukkit.inventory.ItemStack;

import java.util.Collections;
import java.util.List;

Expand Down Expand Up @@ -232,5 +231,15 @@ protected PanelItem getButton(CommonButtons button)

return new PanelItem(icon, name, description, false, clickHandler, false);
}


/**
* This method sets new value to ValueObject variable.
* @param value new Value of valueObject.
*/
public void setValue(Object value)
{
this.valueObject = value;
}
}

0 comments on commit bd48e85

Please sign in to comment.