Skip to content

Instantly share code, notes, and snippets.

@DenWav
Created January 21, 2016 00:33
Show Gist options
  • Save DenWav/8e5cfd6cf0a70f1d50f2 to your computer and use it in GitHub Desktop.
Save DenWav/8e5cfd6cf0a70f1d50f2 to your computer and use it in GitHub Desktop.
plugin.getServer().getScheduler().runTask(plugin, new Runnable() {
@Override
public void run() {
final String response = command.playerStatResponse(player, secondaryArgsList);
if (finalPublicCmd) {
String endResponse = ChatColor.valueOf(plugin.config().colors.public_identifier)
+ "@" + sender.getName() + ChatColor.WHITE + ": " + response;
plugin.getServer().broadcastMessage(endResponse);
} else {
sender.sendMessage(response);
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment