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;