mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Sometimes I don't know how I miss stuff like this.
This commit is contained in:
parent
4629d0467c
commit
4cdbcc053c
@ -13,6 +13,12 @@ public class vMinecraft extends Plugin {
|
|||||||
vMinecraftSettings.getInstance().loadSettings();
|
vMinecraftSettings.getInstance().loadSettings();
|
||||||
vMinecraftUsers.getInstance().loadUsers();
|
vMinecraftUsers.getInstance().loadUsers();
|
||||||
vMinecraftCommands.loadCommands();
|
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");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -189,7 +189,7 @@ public class vMinecraftCommands{
|
|||||||
String cx = Double.toString(etc.getServer().getSpawnLocation().x);
|
String cx = Double.toString(etc.getServer().getSpawnLocation().x);
|
||||||
String cy = Double.toString(etc.getServer().getSpawnLocation().y);
|
String cy = Double.toString(etc.getServer().getSpawnLocation().y);
|
||||||
String cz = Double.toString(etc.getServer().getSpawnLocation().z);
|
String cz = Double.toString(etc.getServer().getSpawnLocation().z);
|
||||||
String cxyz = x + "," + y + "," + z;
|
String cxyz = cx + "," + cy + "," + cz;
|
||||||
vMinecraftUsers.getProfile(player).setTpback(cxyz);
|
vMinecraftUsers.getProfile(player).setTpback(cxyz);
|
||||||
player.sendMessage(Colors.Rose + "/tpback data reset to spawn");
|
player.sendMessage(Colors.Rose + "/tpback data reset to spawn");
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
|
Loading…
Reference in New Issue
Block a user