about summary refs log tree commit diff
path: root/src/com/baitinq/primalmc/commands/StoreCommand.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/baitinq/primalmc/commands/StoreCommand.java')
-rw-r--r--src/com/baitinq/primalmc/commands/StoreCommand.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/com/baitinq/primalmc/commands/StoreCommand.java b/src/com/baitinq/primalmc/commands/StoreCommand.java
new file mode 100644
index 0000000..48d79e5
--- /dev/null
+++ b/src/com/baitinq/primalmc/commands/StoreCommand.java
@@ -0,0 +1,24 @@
+package com.baitinq.primalmc.commands;
+
+import org.bukkit.ChatColor;
+import org.bukkit.command.Command;
+import org.bukkit.command.CommandExecutor;
+import org.bukkit.command.CommandSender;
+import org.bukkit.entity.Player;
+
+public class StoreCommand implements CommandExecutor{
+
+    private String store = "store.primalmc.com";
+
+    @Override
+    public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
+        if(!(sender instanceof Player)){
+            sender.sendMessage(ChatColor.RED+"Only executable by players.");
+        }
+        Player player = (Player) sender;
+        player.sendMessage(ChatColor.YELLOW+"The PrimalMC Store is "+ChatColor.GOLD+ store);
+
+
+        return true;
+    }
+}