Помогите как в команде /help вместо помощи по плагинам написать телепорты или правила на сервере

MrExemple

Активный участник
Пользователь
Баллы
88
Ник в Minecraft
MrExemple
Всем привет, как в команде /help вместо помощи по плагинам написать телепорты или правила на сервере , такую штуку видел на серверах .
 
Всем привет, как в команде /help вместо помощи по плагинам написать телепорты или правила на сервере , такую штуку видел на серверах .
В конфиге поройся, там такое возможно.
В КОНФИГЕ ЯДРА (bukkit.yml/mcpc.yml/spigot.yml)
 
В конфиге поройся, там такое возможно.
В КОНФИГЕ ЯДРА (bukkit.yml/mcpc.yml/spigot.yml)
Код:
# This is the main configuration file for Spigot.
# As you can see, there's tons to configure. Some options may impact gameplay, so use
# with caution, and make sure you know what each option does before configuring.
# For a reference for any variable inside this file, check out the Spigot wiki at
# http://www.spigotmc.org/wiki/spigot-configuration/
#
# If you need help with the configuration or have any questions related to Spigot,
# join us at the IRC or drop by our forums and leave a post.
#
# IRC: #spigot @ irc.esper.net ( http://webchat.esper.net/?channel=spigot )
# Forums: http://www.spigotmc.org/forum/

config-version: 1
commands:
  tab-complete: true
  log: true
  spam-exclusions:
  - /skill
listeners:
- port: default
  host: default
  netty: true
settings:
  netty-threads: 3
  log-filters:
  - ^(.*)(/login)(.*)$
  bungeecord-addresses:
  - 127.0.0.1
  bungeecord: true
  timeout-time: 60
  restart-on-crash: true
  restart-script: ./start.sh
  prevent-proxies: true
messages:
  whitelist: Вас нет в белом списке сервера!
  unknown-command: Неизвестная команда. Используйте "/help" для просмотра доступных команд.
  server-full: Сервер заполнен!
world-settings:
  default:
    verbose: true
    view-distance: 10
    merge-radius:
      exp: 3.0
      item: 2.5
    chunks-per-tick: 650
    anti-xray:
      enabled: true
      engine-mode: 2
      blocks:
      - 1
      - 5
      - 14
      - 15
      - 16
      - 21
      - 48
      - 49
      - 54
      - 56
      - 73
      - 74
      - 82
      - 129
      - 130
    ticks-per:
      hopper-check: 8
      hopper-transfer: 8
    random-light-updates: false
    mob-spawn-range: 4
    entity-activation-range:
      animals: 32
      monsters: 32
      misc: 16
    growth:
      cactus-modifier: 100
      cane-modifier: 100
      melon-modifier: 100
      mushroom-modifier: 100
      pumpkin-modifier: 100
      sapling-modifier: 100
      wheat-modifier: 100
    entity-tracking-range:
      players: 48
      animals: 48
      monsters: 48
      misc: 32
      other: 64
Поройся для начала сам =/
 
Код:
# This is the main configuration file for Spigot.
# As you can see, there's tons to configure. Some options may impact gameplay, so use
# with caution, and make sure you know what each option does before configuring.
# For a reference for any variable inside this file, check out the Spigot wiki at
# http://www.spigotmc.org/wiki/spigot-configuration/
#
# If you need help with the configuration or have any questions related to Spigot,
# join us at the IRC or drop by our forums and leave a post.
#
# IRC: #spigot @ irc.esper.net ( http://webchat.esper.net/?channel=spigot )
# Forums: http://www.spigotmc.org/forum/

config-version: 1
commands:
  tab-complete: true
  log: true
  spam-exclusions:
  - /skill
listeners:
- port: default
  host: default
  netty: true
settings:
  netty-threads: 3
  log-filters:
  - ^(.*)(/login)(.*)$
  bungeecord-addresses:
  - 127.0.0.1
  bungeecord: true
  timeout-time: 60
  restart-on-crash: true
  restart-script: ./start.sh
  prevent-proxies: true
messages:
  whitelist: Вас нет в белом списке сервера!
  unknown-command: Неизвестная команда. Используйте "/help" для просмотра доступных команд.
  server-full: Сервер заполнен!
world-settings:
  default:
    verbose: true
    view-distance: 10
    merge-radius:
      exp: 3.0
      item: 2.5
    chunks-per-tick: 650
    anti-xray:
      enabled: true
      engine-mode: 2
      blocks:
      - 1
      - 5
      - 14
      - 15
      - 16
      - 21
      - 48
      - 49
      - 54
      - 56
      - 73
      - 74
      - 82
      - 129
      - 130
    ticks-per:
      hopper-check: 8
      hopper-transfer: 8
    random-light-updates: false
    mob-spawn-range: 4
    entity-activation-range:
      animals: 32
      monsters: 32
      misc: 16
    growth:
      cactus-modifier: 100
      cane-modifier: 100
      melon-modifier: 100
      mushroom-modifier: 100
      pumpkin-modifier: 100
      sapling-modifier: 100
      wheat-modifier: 100
    entity-tracking-range:
      players: 48
      animals: 48
      monsters: 48
      misc: 32
      other: 64
Поройся для начала сам =/
а в bukkit как?
 
Всем привет, как в команде /help вместо помощи по плагинам написать телепорты или правила на сервере , такую штуку видел на серверах .
Смотри как делал я.
Пишешь "/help", залазишь в ядро сервера, ищешь те строчки, которые показало у тебя при вводе "/help", заменяешь на свои. In Class Translator в помощь.
Я например, нашёл и перевёл вот это сообщение.
Код:
I'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error.
------------------------------------------------------------------------
Мне очень жаль, но у вас нет разрешения на выполнение этой команды. Пожалуйста, свяжитесь с администратором сервера, если вы считаете, что это ошибка.
 
Насколько я знаю, все сообщения в ядре, НО не уверен, что поменять их так просто. Никто не замечал, что с установкой новых плагинов добавляются и строки в хелпе? Значит, в настройках ядра прописано, что считывать информацию надо из папки plugins. З.Ы. Русифицировать ядро это гуд 🙂
 
Нужно просто написать плагин перехвата этой команды и выводить своё сообщение.
 
Назад
Верх Низ