Skip to content

Instantly share code, notes, and snippets.

@minecrafter
Created October 20, 2012 00:53
Show Gist options
  • Save minecrafter/3921514 to your computer and use it in GitHub Desktop.
Save minecrafter/3921514 to your computer and use it in GitHub Desktop.
import org.bukkit.command.CommandSender;
import org.bukkit.Bukkit;
public class FlunkCommandSender implements CommandSender {
public void sendMessage(String message) {
// Shove it to IRC
}
public void sendMessage(String[] messages) {
for(int i=0;i<messages.length;i++) {
sendMessage(messages[i]);
}
}
public Server getServer() {
return Bukkit.getServer();
}
public String getName() {
return "FlunkCommandSender";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment