diff --git a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/tutorial/tutorials/clans/objective/goals/fields/SellDiamondsGoal.java b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/tutorial/tutorials/clans/objective/goals/fields/SellDiamondsGoal.java index 1ff580789..1a14e6a3c 100644 --- a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/tutorial/tutorials/clans/objective/goals/fields/SellDiamondsGoal.java +++ b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/tutorial/tutorials/clans/objective/goals/fields/SellDiamondsGoal.java @@ -6,6 +6,7 @@ import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import mineplex.core.common.util.F; +import mineplex.core.common.util.UtilInv; import mineplex.core.common.util.UtilPlayer; import mineplex.game.clans.clans.event.ClansPlayerSellItemEvent; import mineplex.game.clans.tutorial.objective.ObjectiveGoal; @@ -34,6 +35,7 @@ public class SellDiamondsGoal extends ObjectiveGoal { // Close Middle Gate getObjective().getPlugin().destroyFences(getObjective().getPlugin().getRegion(player), DyeColor.RED); + // Close Fields Gate getObjective().getPlugin().destroyFences(getObjective().getPlugin().getRegion(player), DyeColor.BLACK); } @@ -45,6 +47,7 @@ public class SellDiamondsGoal extends ObjectiveGoal { if (event.getItem().getType() == Material.DIAMOND) { + UtilInv.removeAll(event.getPlayer(), Material.DIAMOND, (byte) 0); finish(event.getPlayer()); } else