Created
June 26, 2011 21:01
-
-
Save jmurth1234/1047973 to your computer and use it in GitHub Desktop.
BetterHome listener
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
/* | |
* 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