about summary refs log tree commit diff
path: root/src/com/baitinq/primalmc/commands/TeamspeakCommand.java
blob: f9d2cc0f021c6174cf4ed60a945a66bec0fc32c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 TeamspeakCommand implements CommandExecutor{

    public String teamspeak = "ts.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 Teamspeak is "+ChatColor.GOLD+ teamspeak);


        return true;
    }
}