Перейти к содержимому

Как сделать наигранное время в titlemanager

  • автор:

Как закодить

# Представим, что мы будем выводить наигранное время в скорборд
Тогда к нашему циклу добавим функцию:
Цикл (time_players, 20):
Выбрать объект — Все игроки
Присв переменную — += — %selected%_наигранно_время
Вызвать функцию "Наигранно время"

Функция "Наиграно время":
Если переменная — Сравнить числа Облег. ( %default%_наигранно_время меньше 60 )
Присв переменную (Объединить текст) — %default%_наигранно_время_show = %default%_наигранно_время
Если переменная — Сравнить числа ( %default%_наигранно_время Больше или равно 60 Меньше или равно 3600 )
Присв переменную (Разделить) — %default%_наигранно_время_минуты = %default%_наигранно_время / 60
Присв переменную (Округлить, к меньшему) — %default%_наигранно_время_минуты, %default%_наигранно_время_минуты, 0
Присв переменную (Найти остаток деления (%) ) — %default%_наигранно_время_секунды, %default%_наигранно_время, 60
Присв переменную (Объединить текст) — # Всё соединяешь, минуты и секунды в переменную %default%_наигранное_время_show
Если переменная — Сравнить числа Облег версия ( %default%_наигранно_время, Больше или равно 3600 )
Присв переменную (Разделить) — %default%_наигранно_время_часы = %default%_наигранно_время / 3600
Присв переменную (Округлить, к меньшему) — %default%_наигранно_время_часы, %default%_наигранно_время_часы, 0
Присв переменную (Округлить, к меньшему) — %default%_наигранно_время_минуты, %default%_наигранно_время_минуты, 3600
Присв переменную (Разделить) — %default%_наигранно_время_минуты = %default%_наигранно_время_минуты / 60
Присв переменную (Найти остаток деления) — %default%_наигранно_время_секунды = %default%_наигранно_время / 3600
Присв переменную (Найти остаток деления) — %default%_наигранно_время_секунды = %default%_наигранно_время_секунды / 60
Присв переменную (Опять всё объединяем)

Игровое действие — Выставить очки в скорборд (любое имя, любое число, во второй слот Присв переменную (Найти остаток деления) — %default%_наигранно_время_show )

Commands

<argument> is a required argument.
[argument] is an optional argument.

Adding % or % will replace the given placeholder with its respected value.
Adding $ will replace the animation in the message with the given animation.
Adding $ will replace the script and input value with a generated animation.

The permissions for the commands can be found here.

Commands

Broadcast

Sends a title message to everyone on the server, put <nl> , or %nl% inside the message, to add a subtitle.

Format

/tm bc [parameters] <message>
/tm broadcast [parameters] <message>

Arguments

[parameters] — The additional parameters.
<message> — The message to be shown.

Supported parameters
  • silent
  • fadein
  • stay
  • fadeout
  • radius
  • world

Actionbar Broadcast

Sends an actionbar message to everyone on the server.

Format

/tm abc [parameters] <message>
/tm abroadcast [parameters] <message>

Supported parameters
  • silent
  • radius
  • world

Message

Sends a title message to the specified player, put <nl> or or %nl% inside of the message, to add a subtitle.

Format

/tm msg [parameters] <player> <message>
/tm message [parameters] <player> <message>

Arguments

[parameters] — The additional parameters.
<player> — The player the message should be sent to.
<message> — The message to be shown.

Supported parameters
  • silent
  • fadein
  • stay
  • fadeout

Actionbar Message

Sends an actionbar message to the specified player.

Format

/tm amsg [parameters] <player> <message>
/tm amessage [parameters] <player> <message>

Arguments

[parameters] — The additional parameters.
<player> — The player the message should be sent to.
<message> — The message to be shown.

Supported parameters
  • silent

Scoreboard Toggle

Toggles the scoreboard on and off.

Format

Animations

Lists all currently loaded animations.

Format

Scripts

Lists all currently loaded scripts.

Format

Reload

Reloads the configuration file, animations and scripts.

Format

Parameters

Silent

Useful for voting commands as the console won’t be spammed by messages anymore.

Makes it so that the command won’t return any response text.

Format

Fade in

Sets the fade-in time it takes for the title to fade onto the screen (measured in ticks).

Format
Example

-fadein=20 Will set the fade-in time to 20 ticks (1 second).

Sets the stay time it takes for the title to stay on the screen (measured in ticks).

Format
Example

-stay=40 Will set the stay time to 40 ticks (2 seconds).

Fade out

Sets the fade-in time it takes for the title to fade off of the screen (measured in ticks).

Format
Example

-fadeout=20 Will set the fade-in time to 20 ticks (1 second).

World

Limits broadcasts to the given world, if no world is chosen and the sender is a player, the world will be the world the player is currently located in.

Format
Example

Radius

Limits broadcasts to the given amount of blocks around of the sending player. If the sender is not a player, then this parameter doesn’t do anything.

[Minecraft] Плагин TitleManager. Как указать в правом табло сколько наиграно времени?

Все значение наигранного времени в titlemanager:
%statistic_days_player% (сколько игрок наиграл дней на сервере)
%statistic_hours_played_remaining% (сколько игрок наиграл часов на сервере)
%statistic_minutes_played_remaining% (сколько игрок наиграл минут на сервере)
%statistic_seconds_played_remaining% (сколько игрок наиграл секунд на сервере)

Месяцев вроде не возможно, тем более если на сервере есть вайпы, то бесмыслено писать месяцев.
Когда все выполнили пишем /tm reload
Все.

Minecrafter.Форум

Главная › Форум › Сервера › Помощь › titleManager как можно сделать сколько времени и как сделать две доски?

Решено titleManager как можно сделать сколько времени и как сделать две доски?

Zakh01

Расскажите плиз, как в titleManager как можно сделать сколько времени проведенно в игре и как сделать чтоб было сразу два таких “досак” (типо на одной донат, на другой статистика)

MrFice

Что насчёт 1 вопроса: вставляешь этот код:

И потом эту команду:

/papi ecloud download Statistic

А ответ на второй вопрос я не знаю.

Модератор minecrafter.pro с 8.07.2020

Сказали спасибо: 1

Zakh01

Что насчёт 1 вопроса: вставляешь этот код:

%statistic_time_played%

И потом эту команду:

/papi ecloud download Statistic

И потом:

/papi reload

А ответ на второй вопрос я не знаю.

Спасибо за 1 вопрос, а не знаешь где можно найти плагин для 2-вух досок?

MrFice

Если мне память не изменяет, то плагин называется SystemBord, ссылку прикрепить не могу т.к. сижу с телефона. Я думаю ты сможешь найти.

Модератор minecrafter.pro с 8.07.2020

Сказали спасибо: 1

Тема «titleManager как можно сделать сколько времени и как сделать две доски?» закрыта для новых ответов

  • Публично
  • Все участники
  • Мои друзья
  • Только я
  • Публично
  • Все участники
  • Мои друзья
  • Только я
  • Публично
  • Все участники
  • Мои друзья
  • Только я

Поиск по форуму

Наш Discord

Наши друзья

Активность пользователей

Profile photo of McDogTral

Profile photo of Dwwer99z

Последние ответы

Последние темы

топ 10 репутаций

  • MrFice 265 репутаций
  • Raidark 104 репутаций
  • Lux 50 репутаций
  • kosnag 34 репутаций
  • WhiTe-Yak 20 репутаций
  • wavez 16 репутаций
  • ukrsalo 13 репутаций
  • m1xmou7e 13 репутаций
  • ImilkoAB 12 репутаций
  • Asakura-Yo 9 репутаций

Статистика

Пользователи:
Категории:
Сообщения:

Онлайн

Пожаловаться
Block Member?

Please confirm you want to block this member.

You will no longer be able to:

  • See blocked member's posts
  • Mention this member in posts
  • Invite this member to groups
  • Message this member
  • Add this member as a connection

Please note: This action will also remove this member from your connections and send a report to the site admin. Please allow a few minutes for this process to complete.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *