about summary refs log tree commit diff
path: root/src/com/baitinq/primalmc/commands/StoreCommand.java
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2018-03-21 20:52:28 +0000
committerBaitinq <manuelpalenzuelamerino@gmail.com>2018-03-21 20:52:28 +0000
commitf6692f60908b57efc4defb43573dc12c5b1846b8 (patch)
tree7cfa8280bdafc534b470e1ee89744861b89f9f05 /src/com/baitinq/primalmc/commands/StoreCommand.java
downloadPrimalMC-f6692f60908b57efc4defb43573dc12c5b1846b8.tar.gz
PrimalMC-f6692f60908b57efc4defb43573dc12c5b1846b8.tar.bz2
PrimalMC-f6692f60908b57efc4defb43573dc12c5b1846b8.zip
Initial commit HEAD master
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;
+    }
+}