Skip to content

Instantly share code, notes, and snippets.

@rymate1234
Created June 26, 2011 21:01
Show Gist options
  • Save rymate1234/1047973 to your computer and use it in GitHub Desktop.
Save rymate1234/1047973 to your computer and use it in GitHub Desktop.
BetterHome listener
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Ryan
*/
public class BetterHomeListener extends PluginListener {
public boolean onCommand(Player player, String[] split) {
if (split[0].equalsIgnoreCase("/home") && player.canUseCommand("/home")) {
etc.getServer().messageAll(player.getName() + " went to his home.");
}
return true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment