- Баллы
- 16
Всем привет! Использую плагин chatty и в нем есть такая вещь как JSON... На фото со спигота видел там разные переменные, но в конфиге работает только {player} что делать? Или где взять список всех работающих переменных?
Следуйте инструкциям в видео ниже, чтобы узнать, как установить наш сайт как веб-приложение на главный экран вашего устройства.
Примечание: Эта функция может быть недоступна в некоторых браузерах.
Всё это есть, но не работаетДля полноценной работы тебе требуется скачать в PAPI дополнения с требуемыми плейсхолдерами. Список здесь.
Довольно странно - у меня все работает. Обратись в местную тему Chatty с проблемой.Всё это есть, но не работает
может я в конфиге чёто не так вписал? Можешь скинуть как у тебя там сделано?Довольно странно - у меня все работает. Обратись в местную тему Chatty с проблемой.
А, понял в чем дело. Вместо %% используй <>, аля <player_name>может я в конфиге чёто не так вписал? Можешь скинуть как у тебя там сделано?
Не работает...А, понял в чем дело. Вместо %% используй <>, аля <player_name>
Отправь твой конфиг, я сравнюДовольно странно - у меня все работает. Обратись в местную тему Chatty с проблемой.
Отправь твой конфиг, я сравню
chats:
admin:
enable: true
format: '&b[{player}&b] &e>&b {message}'
range: -2
cooldown: -1
local:
enable: true
format: '&8[&e&lЛ&r&8]&r {prefix}{player}{suffix}&r &8»&f {message}'
range: 200
cooldown: -1
global:
enable: true
format: '&8[&b&lГ&r&8]&r {prefix}{player}{suffix}&r &8»&f {message}'
range: -2
symbol: '!'
cooldown: -1
# * JSON.
# Formatting chat messages with JSON.
# 1.7.10+.
json:
# 1.7.10+
enable: true
# Command that executes (by player) when you click on the player's name.
# Supports PlaceholderAPI.
# *** You should use "command" OR "suggest_command" OR "link" and cannot combine.
#
# You can use "{player}" variable here.
#command: ''
# Command that suggests when you click on the player's name.
# Supports PlaceholderAPI.
# *** You should use "command" OR "suggest_command" OR "link" and cannot combine.
#
# You can use "{player}" variable here.
suggest_command: '/m {player} '
# URL that opens when when you click on the player's name.
# You must use "http://" or "https://" prefix, else you will crash Minecraft client :D
#
# Supports PlaceholderAPI.
#
# You can use "{player}" variable here.
#link: 'http://google.com'
# Hover tooltip for the player's name.
# Supports PlaceholderAPI.
#
# You can use "{player}" variable here.
tooltip:
- ' <javascript_theGrade> {player}'
- ' &7Баланс: &a$<vault_eco_balance_fixed>'
- ' &7Время игры: &6<statistic_hours_played> часов'
- ' &7Убийств: &c<statistic_player_kills>'
- ' &7Смертей: &c<statistic_deaths>'
- ' &7Брак: <javascript_marry>'
Ого, я на спиготе PAPI другие переменные брал... Заранее спасибоКод:chats: admin: enable: true format: '&b[{player}&b] &e>&b {message}' range: -2 cooldown: -1 local: enable: true format: '&8[&e&lЛ&r&8]&r {prefix}{player}{suffix}&r &8»&f {message}' range: 200 cooldown: -1 global: enable: true format: '&8[&b&lГ&r&8]&r {prefix}{player}{suffix}&r &8»&f {message}' range: -2 symbol: '!' cooldown: -1 # * JSON. # Formatting chat messages with JSON. # 1.7.10+. json: # 1.7.10+ enable: true # Command that executes (by player) when you click on the player's name. # Supports PlaceholderAPI. # *** You should use "command" OR "suggest_command" OR "link" and cannot combine. # # You can use "{player}" variable here. #command: '' # Command that suggests when you click on the player's name. # Supports PlaceholderAPI. # *** You should use "command" OR "suggest_command" OR "link" and cannot combine. # # You can use "{player}" variable here. suggest_command: '/m {player} ' # URL that opens when when you click on the player's name. # You must use "http://" or "https://" prefix, else you will crash Minecraft client :D # # Supports PlaceholderAPI. # # You can use "{player}" variable here. #link: 'http://google.com' # Hover tooltip for the player's name. # Supports PlaceholderAPI. # # You can use "{player}" variable here. tooltip: - ' <javascript_theGrade> {player}' - ' &7Баланс: &a$<vault_eco_balance_fixed>' - ' &7Время игры: &6<statistic_hours_played> часов' - ' &7Убийств: &c<statistic_player_kills>' - ' &7Смертей: &c<statistic_deaths>' - ' &7Брак: <javascript_marry>'
Нет... не работает... Какие версии плагинов PAPI и chatty ты используешь?Код:chats: admin: enable: true format: '&b[{player}&b] &e>&b {message}' range: -2 cooldown: -1 local: enable: true format: '&8[&e&lЛ&r&8]&r {prefix}{player}{suffix}&r &8»&f {message}' range: 200 cooldown: -1 global: enable: true format: '&8[&b&lГ&r&8]&r {prefix}{player}{suffix}&r &8»&f {message}' range: -2 symbol: '!' cooldown: -1 # * JSON. # Formatting chat messages with JSON. # 1.7.10+. json: # 1.7.10+ enable: true # Command that executes (by player) when you click on the player's name. # Supports PlaceholderAPI. # *** You should use "command" OR "suggest_command" OR "link" and cannot combine. # # You can use "{player}" variable here. #command: '' # Command that suggests when you click on the player's name. # Supports PlaceholderAPI. # *** You should use "command" OR "suggest_command" OR "link" and cannot combine. # # You can use "{player}" variable here. suggest_command: '/m {player} ' # URL that opens when when you click on the player's name. # You must use "http://" or "https://" prefix, else you will crash Minecraft client :D # # Supports PlaceholderAPI. # # You can use "{player}" variable here. #link: 'http://google.com' # Hover tooltip for the player's name. # Supports PlaceholderAPI. # # You can use "{player}" variable here. tooltip: - ' <javascript_theGrade> {player}' - ' &7Баланс: &a$<vault_eco_balance_fixed>' - ' &7Время игры: &6<statistic_hours_played> часов' - ' &7Убийств: &c<statistic_player_kills>' - ' &7Смертей: &c<statistic_deaths>' - ' &7Брак: <javascript_marry>'
скинь версии плагиновКод:chats: admin: enable: true format: '&b[{player}&b] &e>&b {message}' range: -2 cooldown: -1 local: enable: true format: '&8[&e&lЛ&r&8]&r {prefix}{player}{suffix}&r &8»&f {message}' range: 200 cooldown: -1 global: enable: true format: '&8[&b&lГ&r&8]&r {prefix}{player}{suffix}&r &8»&f {message}' range: -2 symbol: '!' cooldown: -1 # * JSON. # Formatting chat messages with JSON. # 1.7.10+. json: # 1.7.10+ enable: true # Command that executes (by player) when you click on the player's name. # Supports PlaceholderAPI. # *** You should use "command" OR "suggest_command" OR "link" and cannot combine. # # You can use "{player}" variable here. #command: '' # Command that suggests when you click on the player's name. # Supports PlaceholderAPI. # *** You should use "command" OR "suggest_command" OR "link" and cannot combine. # # You can use "{player}" variable here. suggest_command: '/m {player} ' # URL that opens when when you click on the player's name. # You must use "http://" or "https://" prefix, else you will crash Minecraft client :D # # Supports PlaceholderAPI. # # You can use "{player}" variable here. #link: 'http://google.com' # Hover tooltip for the player's name. # Supports PlaceholderAPI. # # You can use "{player}" variable here. tooltip: - ' <javascript_theGrade> {player}' - ' &7Баланс: &a$<vault_eco_balance_fixed>' - ' &7Время игры: &6<statistic_hours_played> часов' - ' &7Убийств: &c<statistic_player_kills>' - ' &7Смертей: &c<statistic_deaths>' - ' &7Брак: <javascript_marry>'
> version placeholderapiскинь версии плагинов
Спасибо!А, понял в чем дело. Вместо %% используй <>, аля <player_name>