As simple as that
No problem, post if you have any errorif (playerCommand.startsWith("kill")) {
String nameToKill = playerCommand.substring(5);
for (int i = 0; i < Config.MAX_PLAYERS; i++) {
if (Server.playerHandler.players[i] != null) {
if (Server.playerHandler.players[i].playerName.equalsIgnoreCase(nameToKill)) {
c.getPA().applyDead();
c.sendMessage("You died.");
}
}
}
}