Jak dodać nagrodę za Discord na serwerze Minecraft How to Add a Discord Reward to Your Minecraft Server
Chcesz, by gracze odbierali nagrody za użycie Waszego Discorda? Poniżej kompletny setup wtyczki q1zZ-DiscordRewards: pobranie, bot, bezpieczna konfiguracja i testy.
Want players to claim rewards by using your Discord? This guide sets up q1zZ-DiscordRewards end-to-end: download, bot setup, secure configuration, and testing.
1) Pobierz wtyczkę
- Najnowsze wydanie na SpigotMC: spigotmc.org/resources/q1zz-discordrewards.96024.
- Unikaj nieoficjalnych mirrorów — mogą zawierać malware.
2) Instalacja na serwerze
- Wgraj plik JAR do
/plugins. - Zrestartuj serwer, żeby wtyczka utworzyła folder i domyślne pliki.
3) Utwórz bota Discord
- Przejdź do Discord Developer Portal: discord.com/developers/applications.
- Utwórz nową Application → zakładka Bot → Add Bot.
- Włącz MESSAGE CONTENT INTENT.
- Kliknij Reset Token (jeśli trzeba) i skopiuj Bot Token — wkleisz go do konfiguracji.
- (Rekomendowane) Zaproś bota na serwer: OAuth2 → URL Generator → zakres bot (opcjonalnie applications.commands), uprawnienia: View Channels, Send Messages, Read Message History. Otwórz wygenerowany link i dodaj bota do gildii.
4) Konfiguracja wtyczki
Wejdź do /plugins/q1zz-DiscordRewards/ i otwórz configuration.yml. Uzupełnij bazę, token, kanał oraz komendy nagrody.
Baza danych
host: localhost
port: 3306
database: db_name
username: root
password: password
use-ssl: false
Token bota
ID kanału Discord do odbierania nagrody
Komendy nagrody (uruchamiane na serwerze Minecraft)
W komendach {PLAYER} zostanie podmienione na nick gracza. Najpierw przetestuj komendy ręcznie w konsoli.
- give {PLAYER} diamond 1
- say Gratulacje {PLAYER}, odebrano nagrodę za Discord!
Broadcast (ogłoszenie na serwerze)
- ' '
- '&8» &fGracz &9{PLAYER} &fodebrał nagrodę za Discord!'
- '&8» &fDiscord: &9&nhttps://discord.com/yourinvite'
- ' '
(Opcjonalnie) Tylko komendy — bez itemów
Zostaw listę przedmiotów pustą:
items: []
Dodatkowe wiadomości/embedy edytujesz w messages.yml w tym samym folderze.
5) Restart i test
- Zrestartuj serwer Minecraft.
- Sprawdź, czy bot jest online na Discordzie, a wtyczka ładuje się bez błędów.
- Przejdź cały proces odbierania nagrody i potwierdź, że nagroda uruchamia się w grze.
FAQ i wskazówki
Bot jest offline lub nie odpowiada.
- Zweryfikuj poprawność token w
configuration.yml. - Sprawdź uprawnienia bota do czytania i pisania w wybranym kanale.
- Upewnij się, że włączone jest MESSAGE CONTENT INTENT w Dev Portal.
Komendy się nie wykonują.
- Sprawdź składnię i użycie
{PLAYER}. - Przejrzyj konsolę przy starcie i podczas odbierania nagrody.
1) Download the Plugin
- Grab the latest release on SpigotMC: spigotmc.org/resources/q1zz-discordrewards.96024.
- Avoid unofficial mirrors — they can contain malware.
2) Install on Your Server
- Upload the JAR to
/plugins. - Restart the server once so the plugin generates its folder and defaults.
3) Create Your Discord Bot
- Open the Discord Developer Portal: discord.com/developers/applications.
- Create a new Application → go to Bot → Add Bot.
- Enable MESSAGE CONTENT INTENT.
- Click Reset Token (if needed) and copy your Bot Token — you’ll paste it into the config.
- (Recommended) Invite the bot: OAuth2 → URL Generator → scopes bot (optionally applications.commands), permissions: View Channels, Send Messages, Read Message History. Open the generated link and add the bot to your guild.
4) Configure the Plugin
Go to /plugins/q1zz-DiscordRewards/ and open configuration.yml. Fill in the database, Discord token, target channel, and reward commands.
Database connection
host: localhost
port: 3306
database: db_name
username: root
password: password
use-ssl: false
Discord bot token
Discord channel for claiming rewards
Reward commands (run on the Minecraft server)
Commands run with {PLAYER} replaced by the player’s name. Test commands manually first, then paste here.
- give {PLAYER} diamond 1
- say Congrats {PLAYER}, you claimed the Discord reward!
Broadcast message (server-wide)
- ' '
- '&8» &fPlayer &9{PLAYER} &freceived the discord reward!'
- '&8» &fDiscord link: &9&nhttps://discord.com/yourinvite'
- ' '
(Optional) Disable item-based rewards
If you prefer command-only rewards, leave the items list empty:
items: []
You can also customize embeds and messages in messages.yml in the same plugin folder.
5) Restart & Test
- Restart your Minecraft server.
- Confirm the bot is online in Discord and the plugin loads without errors.
- Follow the claim flow (in the configured channel) and verify in-game rewards trigger correctly.
FAQ & Tips
The bot is offline or not responding.
- Double-check the token in
configuration.yml. - Ensure the bot can view/send messages in your reward channel.
- Confirm MESSAGE CONTENT INTENT is enabled in the Dev Portal.
Commands don’t run on the server.
- Validate syntax and
{PLAYER}usage. - Check the console on startup and when claiming the reward.