Created
January 21, 2016 00:33
-
-
Save DenWav/8e5cfd6cf0a70f1d50f2 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
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