From 26e16e8eac0e0bc20eeb078e8173f80fca4e4ec1 Mon Sep 17 00:00:00 2001 From: Jonathan Williams Date: Sat, 14 Jun 2014 21:27:33 -0700 Subject: [PATCH] Added button file. --- .../hub/server/ui/SelectCSButton.java | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Plugins/Mineplex.Hub/src/mineplex/hub/server/ui/SelectCSButton.java diff --git a/Plugins/Mineplex.Hub/src/mineplex/hub/server/ui/SelectCSButton.java b/Plugins/Mineplex.Hub/src/mineplex/hub/server/ui/SelectCSButton.java new file mode 100644 index 000000000..1034f5689 --- /dev/null +++ b/Plugins/Mineplex.Hub/src/mineplex/hub/server/ui/SelectCSButton.java @@ -0,0 +1,27 @@ +package mineplex.hub.server.ui; + +import org.bukkit.entity.Player; + +import mineplex.core.shop.item.IButton; + +public class SelectCSButton implements IButton +{ + private ServerGameMenu _menu; + + public SelectCSButton(ServerGameMenu menu) + { + _menu = menu; + } + + @Override + public void ClickedLeft(Player player) + { + _menu.openCS(player); + } + + @Override + public void ClickedRight(Player player) + { + ClickedLeft(player); + } +}