Skip to content

Instantly share code, notes, and snippets.

@Limeth
Created December 20, 2014 15:11
Show Gist options
  • Save Limeth/e9f0a54201407faaf4cf to your computer and use it in GitHub Desktop.
Save Limeth/e9f0a54201407faaf4cf to your computer and use it in GitHub Desktop.
@Command
public String tell(EntityRef sender, @CommandParam(value = "target", suggester = SUGGESTER_PLAYER) EntityRef target, String message) {
return "sent.";
}
private final Suggester SUGGESTER_PLAYER = new Suggester() {
public List<EntityRef> suggest() {
return /*all entityrefs of players*/;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment