Radio

Плагин Radio 1.0.2-beta

Создайте и подтвердите аккаунт для скачивания
Поддерживаемые версии
  1. 1.12
  2. 1.13
  3. 1.14
  4. 1.15
  5. 1.16
  6. 1.17
  7. 1.18
Исходный код
https://github.com/vie10/radio
Radio
Radio это плагин для Spigot предоставляющий полезные инструменты вещания

Преимущества:
  • Настраиваемая система прав (управление командами и стилями которые могут использовать игроки).
  • Система предложений (игроки сервера могут предложить новость для вещания).
  • Легкая настройка (каждое сообщение, используемое плагином, можно настроить в конфигурации).
  • Разные стили под любой вкус (создайте столько, сколько вам угодно).
  • Открытый код (полный доступ к коду плагина, и возможность сделать его лучше).
  • Умная система конфигурации (обьявляйте переменные и используйте их, для быстрых изменений в будущем).


YAML:
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# User placeholders.
# Use existent by enter {{name}} or declare a new yourself.
# Don't use placeholders in placeholders because of that will not work.
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
permission-prefix: "radio.execute"
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

broadcast:
  # /radio <name>.
  name: "broadcast"
  # The permission required for execute the command.
  permission: "{{permission-prefix}}.broadcast"

suggest:
  name: "suggest"
  permission: "{{permission-prefix}}.suggest"

suggestions:
  name: "suggestions"
  permission: "{{permission-prefix}}.suggestions"

approve:
  name: "approve"
  permission: "{{permission-prefix}}.approve"

decline:
  name: "decline"
  permission: "{{permission-prefix}}.decline"

styles:
  name: "styles"
  permission: "{{permission-prefix}}.styles"

reload:
  name: "reload"
  permission: "{{permission-prefix}}.reload"
YAML:
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Every message related a player has {target} placeholder for the player nickname.
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# User placeholders.
# Use existent by enter {{name}} or declare a new yourself.
# Don't use placeholders in placeholders because of that will not work.
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
white: "§f"
red: "§c"
blue: "§9"
yellow: "§e"
gold: "§6"
gray: "§7"
dark-purple: "§5"

accent: "§f"
primary: "§7"

server-name: "FM"
server-block: "§9[§fFM§9]"
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #


# Common messages.
common:
  # {millis} — measured time of config reload in millis.
  reloaded:
    - "{{server-block}} {{primary}}Config reloaded in {{accent}}{millis}{{primary}} millis."
  unableOpenGUI:
    - "{{server-block}} {{accent}}{target}{{primary}}, unable open GUI outside the game!"
  # {id} — id of the suggestion that was approved.
  # {from} — sender the of suggestion.
  # {content} — content of the suggestion.
  # {created} — date of creation the suggestion.
  approved:
    - "{{server-block}} {{primary}}Suggestion {{accent}}{id} {{primary}}approved."
  # {id} — id of the suggestion that was approved.
  # {from} — sender the of suggestion.
  # {content} — content of the suggestion.
  # {created} — date of creation the suggestion.
  declined:
    - "{{server-block}} {{primary}}Suggestion {{accent}}{id} {{primary}}declined."
  # {id} — id of the suggestion that not found.
  suggestion-not-found:
    - "{{server-block}} {{primary}}Suggestion with id {{accent}}{id} {{primary}}not found."
  no-suggestions:
    - "{{server-block}} {{primary}}Good work, {{accent}}{target}{{primary}}! No more suggestions has found."
  # {id} — id of the suggestion.
  # {from} — id of the player that suggest it.
  # {created} — the creation date and time in "dd.MM hh:mm:ss" format.
  # {content} — the suggestion content.
  suggestion:
    - "{{blue}}[{{accent}}{id}{{blue}}] {{accent}}{from} {{gray}}{created} {{primary}}suggest broadcast {{accent}}'{content}'."
  # {max-count} — max count of suggestions.
  you-have-reached-max-suggestions:
    - "{{server-block}} {{accent}}{target}{{primary}}, you already have {{accent}}{max-count} {{primary}}suggestions, please, wait a bit before suggest one more."
  unexpected-exception:
    - "{{server-block}} {{primary}}Sorry, but seems unexpected exception has occurred. Please, try again later!"
  you-do-not-have-perm:
    - "{{server-block}} {{accent}}{target}, {{primary}}you don't have permission to do that."
  # {style} — style name.
  style-not-exists:
    - "{{server-block}} {{primary}}Style {{accent}}{style} {{primary}}not exists. Use {{accent}}/radio styles {{primary}}to see existing styles."
  broadcast-sent:
    - "{{server-block}} {{primary}}The broadcast sent to {{accent}}{{server-name}} Radio{{blue}."
  suggestion-sent:
    - "{{server-block}} {{primary}}Your suggestion sent to {{accent}}{{server-name}} Radio {{primary}}and will be processed in near time."

# Messages related to command (like help for command etc.).
commands:
  help:
    - "{{primary}}/radio suggest <your radio message> {{accent}}— suggest a message to broadcast."
    - "{{primary}}/radio broadcast <style> <your radio message> {{accent}}— broadcast a message."
    - "{{primary}}/radio styles {{accent}}— show broadcast styles."
    - "{{primary}}/radio suggestions {{accent}}— show suggestions."
    - "{{primary}}/radio approve <suggestion id> <style> {{accent}}— approve suggestion."
    - "{{primary}}/radio decline <suggestion id> {{accent}}— decline suggestion."
    - "{{primary}}/radio reload {{accent}}— reload plugin config."
  # Help for /radio suggest.
  suggest-help:
    - "{{server-block}} {{primary}}/radio suggest <your radio message>."
  broadcast-help:
    - "{{server-block}} {{primary}}/radio broadcast <style> <your radio message>."
  styles-help:
    - "{{server-block}} {{primary}}/radio styles."
  suggestions-help:
    - "{{server-block}} {{primary}}/radio suggestions."
  approve-help:
    - "{{server-block}} {{primary}}/radio approve <suggestion id> <style>."
  decline-help:
    - "{{server-block}} {{primary}}/radio decline <suggestion id>."
  reload-help:
    - "{{server-block}} {{primary}}/radio reload."

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Original by vie10.
# If you're a translator just put your nickname here in "Translated to *language* by *your
# nickname*" format.
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
YAML:
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# User placeholders.
# Use existent by enter {{name}} or declare a new yourself.
# Don't use placeholders in placeholders because of that will not work.
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
green: "§a"
dark-green: "§2"
gray: "§7"
dark-red: "§4"
white: "§f"
yellow: "§e"
permission-prefix: "radio.styles"
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

# Styles for radio.
styles:
  # An example how to declare style.
  info:
    # Permission that broadcaster should to have for use the style.
    permission: "{{permission-prefix}}.info"
    # Sets date format for {date} placeholder.
    date-format: "yyyy-MM-dd"
    # Sets time format for {time} placeholder.
    time-format: "hh:mm:ss"
    # Use {lines} placeholder for mark the line from which lines will start.
    # Use {date} placeholder for provide current date in your format.
    # Use {time} placeholder for provide current time in your format.
    format:
      - "{{green}}┌──────────────────────────────────"
      - "{{green}}│ {{gray}}Open-source radio, {date} {time}."
      - "{{green}}│ {{dark-green}}Information wave"
      - "{{green}}├──────────────────────────────────"
      - "{lines}"
      - "{{green}}└──────────────────────────────────"
    # Format for every line.
    line-format: "{{green}}│ {{white}}{content}"
    # Settings about wrap lines.
    line-wraps:
      # True or false.
      enabled: true
      # The length over that requires line wrap.
      length: 50

  warn:
    permission: "{{permission-prefix}}.warn"
    date-format: "yyyy-MM-dd"
    time-format: "hh:mm:ss"
    format:
      - "{{dark-red}}┌──────────────────────────────────"
      - "{{dark-red}}│ {{gray}}Open-source radio, {date} {time}."
      - "{{dark-red}}│ {{yellow}}Warning wave!"
      - "{{dark-red}}├──────────────────────────────────"
      - "{lines}"
      - "{{dark-red}}└──────────────────────────────────"
    line-format: "{{dark-red}}│ {{white}}{content}"
    line-wraps:
      enabled: true
      length: 50
YAML:
# The maximum count of suggestions per player.
max-per-player: 1
# Format for created date and time.
date-time-format: "dd-MM hh:mm:ss"
Команды и права
В списке предоставлены полностью настраиваемые подкоманды /radio.
broadcast <style> <message> — broadcast a message in the style.
suggest <message> — suggest a message to broadcast (require approve by admin).
suggestions — list of suggestions in declared format.
approve <suggestion id> <style> — broadcast suggested message in the style.
decline <suggestion id> — decline suggestion with the id.
reload — reload config without server reload require.
styles — list of declared in config styles with their examples.
Все права настраиваются в соответствующей конфигурации.
radio.execute — исполнение /radio.
radio.execute.subscommand — исполнение /radio subcommand.
radio.styles.stylename — использование стиля с названием "stylename".
Автор
vie10
Скачивания
18
Просмотры
1 691
Первый выпуск
Обновление
Оценка
0.00 звёзд 0 оценок

Поделиться ресурсом

Последние обновления

  1. Метрики и мелкие фиксы

    В этом патче были добавлены метрики, которые вы можете выключить по вашему усмотрению, а также...
  2. Небольшой патч 1.0.1-beta

    В патче содержится: Улучшения качества кода. Удалено неиспользуемое поле из конфигурации...
Назад
Сверху Снизу