Added a /freeze command for fun

This commit is contained in:
nossr50
2010-12-15 16:22:48 -08:00
parent 53c00d6c55
commit ad29bb2bbb
4 changed files with 46 additions and 1 deletions

View File

@@ -17,6 +17,11 @@ public class vMinecraftListener extends PluginListener {
public void disable() {
log.log(Level.INFO, "vMinecraft disabled");
}
public void onPlayerMove(Player player, Location from, Location to) {
if(vMinecraftSettings.frozenplayers.contains(player)){
player.teleportTo(from);
}
}
//=====================================================================
//Function: onChat
@@ -26,6 +31,7 @@ public class vMinecraftListener extends PluginListener {
// and it is enabled
//Use: Checks for quote, rage, and colors
//=====================================================================
public boolean onChat(Player player, String message){
//Quote (Greentext)