Created
August 25, 2013 10:22
-
-
Save lualzockt/6333136 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package de.Timpa.Hilfe.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; | |
import de.Timpa.Hilfe.Hilfe; | |
public class CommandTeam implements CommandExecutor { | |
Hilfe hilfe; | |
public CommandTeam(Hilfe hilfe) { | |
this.hilfe = hilfe; | |
} | |
@Override | |
public boolean onCommand(CommandSender sender, Command cmd, String cmdLabel, String[] args){ | |
Player p = (Player)sender; | |
if(args.length == 0) { | |
p.sendMessage(ChatColor.translateAlternateColorCodes('&', "&4&l[]&c============ &b&lTeam &c============&4&l[]")); | |
String status; | |
if(hilfe.getServer().getPlayer("Timpa1971") !=null) { | |
status = "§a§l✓") | |
} else { | |
status = "§4§lˣ"; | |
} | |
p.sendMessage("§4§l[§cMM-System§4§l]§4 Timpa1971: " + status)); | |
return true; | |
} | |
return false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment