SmileCoinTorIzz
Активный участник
- Баллы
- 61
- Имя в Minecraft
- SmileCoinTorIzz
Я делаю
private long dayTime;
int playersMax; // max players counted
int x; // thing yo shouldn't touch
int z; // thing yo shouldn't touch
@EventHandler
public void startSleeping(PlayerBedEnterEvent pbee) {
Player players = pbee.getPlayer();
World world = players.getWorld();
dayTime = world.getTime();
p.sendMessage("dayTime");
Где world.getTime должно выдавать то же время что и time query dayTime, но я хз чё оно вообще делает, тк через p.sendMessage("dayTime"); не выводит
Вопроса два: Как получить dayTime и как вывести значение переменной в консоль
private long dayTime;
int playersMax; // max players counted
int x; // thing yo shouldn't touch
int z; // thing yo shouldn't touch
@EventHandler
public void startSleeping(PlayerBedEnterEvent pbee) {
Player players = pbee.getPlayer();
World world = players.getWorld();
dayTime = world.getTime();
p.sendMessage("dayTime");
Где world.getTime должно выдавать то же время что и time query dayTime, но я хз чё оно вообще делает, тк через p.sendMessage("dayTime"); не выводит
Вопроса два: Как получить dayTime и как вывести значение переменной в консоль