Advertisement
Guest User

Untitled

a guest
Mar 19th, 2015
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. import org.bukkit.plugin.java.JavaPlugin;
  2.  
  3. import com.skionz.pingapi.PingAPI;
  4. import com.skionz.pingapi.PingEvent;
  5. import com.skionz.pingapi.PingListener;
  6.  
  7. public class Main extends JavaPlugin implements PingListener{
  8.  
  9.  
  10. public void onPing(PingEvent arg0) {
  11. PingAPI.registerListener(new PingListener() {
  12. public void onPing(PingEvent event) {
  13. event.getReply().setMOTD("This is an MOTD");
  14. }
  15. }
  16. }
  17. }
  18.  
  19.  
  20. /////////////////YES I DO HAVE PACKAGES.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement