Как настроить плагин дискорд срв
Discord is going to require users to specify if the bots require advanced information about server members on October 7th. DiscordSRV requires one of these options to be enabled for it to function properly. You will need to enable this for your bot(s) and update DiscordSRV before October 7th.
Note that we updated the Installation instructions on the wiki to already enable this on the 27th of May, so if you've installed DiscordSRV using those instructions you likely already have this option checked. All that's left is updating the plugin to 1.20.0
If you haven't, you can enable it for each bot by doing the following:
- Go to https://discord.com/developers/applications & click on your DiscordSRV bot.
- Click on the "Bot" tab at the left.
- Enable SERVER MEMBERS INTENT option under "Privileged Gateway Intents" and click "Save Changes".
- The broadcast command now accepts legacy (&3, &4, etc.) color codes if the broadcast reserializer is enabled
- Group synchronization debug messages now contain a lot more information about why the bot can't interact with users
- Blacklisted PlayerHandshakeEvent and PlayerChatEvent* events from alerts
- Made events in alerts register only the ones being used
* AsyncPlayerChatEvent is recommended instead. The normal (sync) PlayerChatEvent was causing Paper to switch the entire chat to sync mode which broke a lot of things, one of them being team colors.
- Cleaned up the Russian translation files (Thanks, DelfikPro!)
- The UltimateChat hook now works :)
- Lots of fixes to alerts (including command alerts not triggering, most event alerts not triggering, team colors breaking & getting disconnected with an invalid packet error)
- Fix NPE with reload command & alert listener
- discordsrv.sync.deny. should be discordsrv.sync.deny. in the comments
- Fixed rgb colors not being removed from console messages sent to Discord
If you need any of the following information:
- Discord server invites
- Discord server presences**
- Discord server message reactions
- Discord server message typing
- Direct message reactions
- Direct message typing
You will need to indicate that to DiscordSRV with DiscordSRV.api.requireIntent(intent)
** This intent is privileged, Discord requires that the user enables the intent on the Discord developer portal. This requires the CLIENT_STATUS and/or ACTIVITY cache flag(s), which can be indicated with DiscordSRV.api.requireCacheFlag(cacheFlag)
Under the Settings tab, click Bot , then click Add Bot and confirm with Yes, do it!
Starting up the bot🔗
Copy the bot token🔗
Copy the Token of the bot from the application page. Keep PUBLIC BOT unchecked so only you can invite the bot to the servers you designate.
Enable the Privileged Gateway Intents options🔗
Make sure to enable both the SERVER MEMBERS INTENT and MESSAGE CONTENT INTENT options shown in the video below to avoid running into issues with DiscordSRV later on.
Paste the token into config.yml 🔗
Invite the bot to your guild🔗
Copy the Application ID from the application's General Information page.
Select your guild, then click Authorize
Enable Developer Mode🔗
Go to your Discord settings by clicking on the cog on the bottom left of Discord.
Go to the Advanced tab and enable Developer Mode (Outdated image)
Set up a basic channel relay🔗
Right click the Discord-channel you want to use for chat between Discord and Minecraft and click on Copy ID
Open the config.yml file again.
Search for the option Channels and replace 000000000000000000 with the copied channel ID.
If you use a chat plugin with channel support like HeroChat, LegendChat, LunaChat, TownyChat or VentureChat, you can set up more channels here with their linked Discord channels. For example, if you want to add an "admin" channel it would look like this:
Optionally: Copy the Channel ID of a second Discord-channel for use as console-channel and paste it into config.yml
Give the bot the discord permissions it needs to run🔗
Open your server settings by clicking on the arrow to the right of the server name and choose Server Settings
Go to the Roles tab and create a new role. We've named ours Bot . Add the Administrator permission (or permissions listed below) to the new role.
Switch to the Members tab and add the new Bot role to your bot by clicking on the + next to the bot's name and choosing the role.
(Re)start your server
You're done with installing DiscordSRV!
Now run through all the config options in config.yml . You'll be surprised with how many features this plugin has
Advanced Information🔗
Giving the bot the administrator permission🔗
Usually it's not recommended to give the bot the Administrator permission, since it gives the bot complete control over your server. We recommend it because it makes the installation process easier on the server owner, and DiscordSRV doesn't do anything that would jeopardize the server. The only way this can be abused is by keeping the bot token secure.
If you don't feel comfortable with this, you can define the following permissions that the bot requires for certain features. This list can/will change and new permissions will need to be added for any new features that require them.
Server Permissions🔗
experimental webhook usage (Server-wide permission is recommended, but can be applied on a per-channel basis)
Channel Permissions🔗
Read Text Channels & See Voice Channels and Send Messages
Required for DiscordSRV's channel options (including console and voice lobby), the voice module category and any other channels you want for canned responses
optionally for embedding ingame-posted links and required when embed messages are used death, join/Leave
Mention @everyone, @here and All Roles
Add Reactions and Read Message History
for when the bot reacts with "💬" and "❗" to notify a truncated message is being sent from Discord to Minecraft
Move Members , Mute Members and Manage Permissions
Role Hierarchy🔗
Make sure the new Bot role is above any roles you want to synchronize using our role/nickname synchronization system (eg. if you want Moderators names to synchronize, you need to have the Bot role above the Moderator role)
Group Role Sync🔗
Please make sure to go through the Basic Installation before going through with this setup.
Get the name(s) of the minecraft group(s) you want to sync🔗
the synchronization is case-sensitive so make sure you don't mess up with the capitalization
You can see what groups DiscordSRV can see in the discordsrv-info.txt file of debug reports, which can be accessed through the link generated from /discordsrv debug
Get Role ID(s) for the role(s) you want to sync🔗
If you have Developer Mode enabled (see Basic Installation), you can get the IDs from Server Settings > Roles by right-clicking the role(s)
Role IDs are also in the discordsrv-info.txt file of debug reports, which can be accessed through the link generated from /discordsrv debug
Set the Role ID(s) and group name(s) in the synchronization option🔗
Now that you have both the Role ID(s) and the Minecraft Group Name(s), add them into GroupRoleSynchronizationGroupsAndRolesToSync located inside the synchronization.yml config file.
That's the basics of it! Read the comments for the other options in the synchronization.yml for more control over this system.
Voice Setup🔗
Please make sure to go through the Basic Installation before going through with this setup.
Make sure Voice enabled is set to true in the voice.yml config
Create a category (name doesn't matter) where the voice module will create/delete/move voice channels
Right click on the Category and select Copy ID
In the voice.yml config search for the Voice category option and replace 000000000000000000 with the copied Category ID.
Create a channel (name doesn't matter) underneath the voice category you just made; This will be your "Lobby" voice channel.
Right click on the Channel after moving it and select Copy ID
In the voice.yml config search for the Lobby channel option and replace 000000000000000000 with the copied Channel ID.
(Re)start your server and you're done with configuring the voice module in DiscordSRV!
Require Linking to Join Setup🔗
Please make sure to go through the Basic Installation before going through with this setup.
This allows you to require the player have their discord account linked to their minecraft account before they can play on the server. When a player attempts to join, they get automatically kicked with a message saying that they need to message your DiscordSRV bot a code for them to be able to join.
Once the player is linked, more restrictions can be added, such as:
- The linked player must be in the discord server
- The linked player must have certain role[s] (this can be used to whitelist Twitch subscribers through the subscriber role if the user's twitch is linked to their discord account)
Make sure Enabled is set to true in the linking.yml config to enable this feature, then restart your server.
Each option inside linking.yml is explained using comments, so read through them to get a better understanding of what you can do.
Если вы только начинаете изучать плагины в Дискорде, то вы как раз по адресу. В этой статье рассказываем самое основное, что нужно знать по этой теме. Как установить плагин в Дискорд?
Самый простой и удобный способ установки дополнений – с помощью утилиты BetterDiscord. Это неофициальный софт, поэтому многие пользователи интересуются, могу ли забанить в приложении из-за Better. По нашему опыту, Discord в целом не запрещает пользоваться утилитой. Но может забанить за расширения, которые взаимодействуют с токеном. Так что будьте осторожны.
- Нажмите на синюю кнопку Download .
- Если вы не меняли месторасположение, то файл сохранится в Загрузки .
- Откройте скачанный файл. Он называется BetterDiscord-Windows.exe.
- Примите лицензионное соглашение, поставив галочку напротив пункта I accept… и нажмите Next .
- Выберите пункт Install . Обратите внимание, что на этой же странице вы можете ещё удалить утилиту с компьютера или восстановить её.
- Перейдите к следующему этапу, выберите свою версию мессенджера. Скорее всего, у вас первый вариант. Второй и третий – это публичные альфа и бета версии приложения.
- Кликните Next и дождитесь окончания установки, после чего можете закрыть окно.
Готово! Беттер Дискорд успешно установился. В настройках мессенджера появился одноимённый раздел. Чуть позже вы сами в этом убедитесь.
Где находятся плагины и как их активировать
Где лежат полезные дополнения? Рекомендуем скачивать их также на сайте утилиты во вкладке Plugins. Здесь большой выбор. На плашке каждого дополнения есть кнопка для скачивания.
Ещё один хороший и проверенный ресурс – GitHub. Например, эта страница.
- Скачайте plugin.
- Найдите его в Загрузках или в другое выбранное вами место сохранения.
- Вернитесь в Дискорд, перейдите в настройки – значок шестерёнки слева внизу.
- Прокрутите левое меню вниз до раздела BetterDiscord и кликните на Плагины .
- Здесь отображается список установленных дополнений. Нажмите на синюю кнопку Открыть папку . Это ответ на вопрос, куда кидать плагины для Дискорда.
- В открывшуюся папку скопируйте скачанный файл модуля. Вот где хранятся расширения.
- В списке дополнений в настройках появился модуль, переключите тумблер в положение Включено .
Готово! Можете пользоваться функцией, которую предоставляет конкретное расширение. Если вы знаете другой способ, как поставить плагин в Дискорд, расскажите об этом в комментариях.
Одна из главных трудностей для пользователей Дискорд — настройка сервера «под себя». Не всегда понятно, какие параметры вводить, и можно ли расширить текущие возможности. Эти и другие вопросы рассмотрим ниже.
Как создать Дискорд-сервер
Перед внесением настроек необходимо сначала создать Discord-сервер. Для этого сделайте такие шаги:
- Войдите в программу Дискорд.
- Жмите на символ плюса слева под названиями Discord-серверов.
- Кликните на кнопку Создать …
- Введите название и задайте картинку (минимальный размер 128х128).
- Жмите на кнопку Создать.
Сразу после этого доступно внесение настроек с учетом поставленных задач. Отдельное внимание уделите ролям пользователей и распределению их обязанностей.
Как настроить
Первый вопрос, который возникает после создания — как настроить сервер Дискорд, чтобы всем пользователям было комфортно. Для этого жмите правой кнопкой мышки на Discord-сервер и перейдите в раздел Настройки сервера. Здесь доступны следующие пункты:
- Обзор. В этом разделе внесите следующие настройки — регион, название, изображение. Здесь же можно задать автоматическое перемещение пользователей в канал через определенное время.
- Роли. Это важная секция, где можно настроить управление сервером Дискорд. Для создания новой роли жмите на «плюс», а после задайте название, цвет и определенные права для участника. При желании можно дать пользователю возможности администратора, управления ролями, просмотра журнала аудита и т. д.
- Эмодзи. В бесплатной версии Дискорд доступна загрузка до 50 эмодзи с размером не более 256 КБ.
- Модерация. На этом этапе удается выбрать уровень защиты при общении на публичных серверах. Как вариант, здесь легко задать подтверждение по e-mail, сделать обязательной регистрацию в течение более пяти или 10 минут, установить обязательное наличие подтвержденного телефона и т. д.
- Журнал аудита. Здесь отображаются настройки сервера Дискорд и дата их внесения.
- Виджет. В этом разделе можно выбрать канал для приглашения, найти ID сервера, получить сведения по JSON API, а также взять готовый виджет.
- Шаблон сервера. С помощью этого пункта настроек можно поделиться образцом Дискорд-сервера и помочь другим участникам сделать свой server. Для создания шаблона необходимо задать права, указать название и описание.
- Состояние буста сервера. Здесь приводятся информация о текущем бусте. С помощью инструмента легко получить дополнительные фишки для сервера Дискорд.
В разделе управления участниками можно найти самих подключенных пользователей, получить доступ к списку активных приглашений и посмотреть на баны. Последним в списке стоит пункт Удалить сервер (если в нем нет необходимости).
В дальнейшем можно задать расширенные настройки сервера Discord. Здесь возможны следующие варианты:
- Создание приветственной страницы.
- Установка статуса и региональных тегов.
- Введение специальных региональных каналов.
- Переход к голосовым каналам.
- Создание подканалов и другое.
Получение дополнительных фишек
Много вопросов касается того, как улучшить Дискорд сервер и получить дополнительные опции. Для этого существует буст — опция, позволяющая расширить возможности Discord-сервера. Перечень нововведений зависит от достигнутого уровня. Всего в распоряжении пользователей три уровня:
- Level 1. При его достижении человек получает дополнительные 50 эмодзи, улучшенный звук на 128 кБит/с и видео до 720 р (60 кад/с). Имеется возможность изменения фона для URL приглашения, а также анимированная иконка Discord-сервера. Для получения такого уровня необходимо два буста.
- Level 2. После его присвоения открываются дополнительные настройки и возможности в Дискорд. Так, расширяется число эмодзи до 50 с общим числом 150, а качество аудио составляет 256 кБит/с. Также доступен баннер Discord-сервера, улучшение видео Go Live до 1080р, а также ограничение загрузки до 50 Мб. Для присвоения уровня нужно 15 бустов.
- Level 3. Пользователям доступны все бонусы первого и второго уровней, а также дополнительные 100 слотов и улучшение качества звука до 348 кБ/с. Ограничение загрузки увеличено до 100 Мб. Предоставляется личный URL.
Чтобы получить дополнительные настройки и фишку, необходимо войти в раздел Discord Nitro и после выбора сервера Дискорд оптимизировать его. В дальнейшем легко сделать дополнительный буст и поднять level. При желании в настройках доступны сведения по уровню сервера Дискорд, количеству пользователей и требованиям для дальнейших повышений уровня.
Итоги
Программа Дискорд предлагает большой выбор настроек, как базовых, так и продвинутых. При желании можно купить подписку Nitro и сделать буст Discord-сервера для получения дополнительных фишек.
Want to link your Minecraft Server chat to your Discord Server and vice versa? Then DiscordSRV is the plugin for you! Read the guide below on how to setup DiscordSRV.
Step 1: Download the DiscordSRV plugin, you can do so here. Next go to the DedicatedMC Panel and migrate to the file manager.
Step 2: Next open the Plugins Folder and put the DiscordSRV.jar file you downloaded into the folder
Step 3: Restart your server.
Step 4: Now that we added the plugin it's time for us to create the discord bot.
And click “New application”
You will be promoted to create a name, Name it what you would like your bot to be called.
For this example we will be calling it “Raw Power Bot”
Click “Bot on the side”
You will now have to create the bot. Click “Add Bot”
When you have created the bot, you will need to enable "Server Members Intent" or DiscordSRV won't work!
You can also give it a Profile Picture if you would like.
Go Back to the General Information Tab and find your Client ID, Press copy.
Next Go to this website But replace CLIENTID with the Client ID you copied in the previous step.
Step 5: Add the bot to your Discord Server.
Step 6: After adding, you will realise that the bot is offline. That is normal and it will be online after just a few more steps.
Navigate back to the Developer portal for discord, Go to the “Bot” Tab again. Under token Click “Copy”
Your token is like your password, DO NOT give it to anyone. - if it lands in the wrong person's hands your entire Discord server is under threat.
Now that you have your token go back into your files on the Panel→ go to Plugins → Click Discord SRV → Open Config.yml
On Line 4 you will see BotToken: "BOTTOKEN"
Replace BOTTOKEN With the token you copied earlier.
Step 7: Next go into your discord client, And open settings
Click On Appearance
Now Scroll all the way down and turn “Developer Mode” On It should look like this:
Step 8: Go back to the server you would like the Chat messages to go to, and right click it to show up this menu.
Step 9: Now go back to your DiscordSRV config, and on line 12 you will find the following: Channels:
Replace 000000000000000000 With the numbers you copied from the last step, You can do this for the console channel located underneath.
Once changed, restart your server. As it restarts the bot will go online.
Читайте также: