Created
October 20, 2012 00:53
-
-
Save minecrafter/3921514 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
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