From 4cdbcc053c8fdaef5fa73b725a4f23aa89032f9b Mon Sep 17 00:00:00 2001 From: nossr50 Date: Mon, 20 Dec 2010 03:31:01 -0800 Subject: [PATCH] Sometimes I don't know how I miss stuff like this. --- vMinecraft.java | 6 ++++++ vMinecraftCommands.java | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/vMinecraft.java b/vMinecraft.java index 69cc66381..02f637245 100644 --- a/vMinecraft.java +++ b/vMinecraft.java @@ -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"); + } } diff --git a/vMinecraftCommands.java b/vMinecraftCommands.java index 7f5a65cac..4d05447f9 100644 --- a/vMinecraftCommands.java +++ b/vMinecraftCommands.java @@ -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;