Skip to content

Instantly share code, notes, and snippets.

@lualzockt
Created August 25, 2013 10:22
Show Gist options
  • Save lualzockt/6333136 to your computer and use it in GitHub Desktop.
Save lualzockt/6333136 to your computer and use it in GitHub Desktop.
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