blob: aaa2e6b6b6b36479bca6f3b6e0848863aaf1c0ba (
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 WebsiteCommand implements CommandExecutor{
private String website = "www.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 Website is "+ChatColor.GOLD+ website);
return true;
}
}
|