Sometimes I don't know how I miss stuff like this.

This commit is contained in:
nossr50 2010-12-20 03:31:01 -08:00
parent 4629d0467c
commit 4cdbcc053c
2 changed files with 7 additions and 1 deletions

View File

@ -13,6 +13,12 @@ public class vMinecraft extends Plugin {
vMinecraftSettings.getInstance().loadSettings();
vMinecraftUsers.getInstance().loadUsers();
vMinecraftCommands.loadCommands();
if (etc.getServer().getTime() == 0){
vMinecraftChat.gmsg(Colors.Rose + "The sun has risen, it is now safe to punch trees");
}
if (etc.getServer().getTime() == 13000){
vMinecraftChat.gmsg(Colors.Rose + "What a terrible night to have a curse");
}
}

View File

@ -189,7 +189,7 @@ public class vMinecraftCommands{
String cx = Double.toString(etc.getServer().getSpawnLocation().x);
String cy = Double.toString(etc.getServer().getSpawnLocation().y);
String cz = Double.toString(etc.getServer().getSpawnLocation().z);
String cxyz = x + "," + y + "," + z;
String cxyz = cx + "," + cy + "," + cz;
vMinecraftUsers.getProfile(player).setTpback(cxyz);
player.sendMessage(Colors.Rose + "/tpback data reset to spawn");
return EXIT_SUCCESS;