Lightweight discord integration to synchronize ranks and reward your donors!
Report Bug
·
Request Feature
Extremely lightweight plugin to synchronize in-game ranks with Discord roles! It also allows cross-platform chatting between Discord and Minecraft!
Here's why you should use this plugin:
This shows how you install the plugin.
OAuth2
> URL Generator
applications.commands
& bot
under Scopes
Bot Permissions
Generated URL
and invite the bot to your discord server./plugins
folderconfig.yml
is created, insert the bot token which you have copied and restart the server/discord link
!This is a list of commands available in the plugin and their respective permissions required.
Command | Description | Permission |
---|---|---|
/discord |
Displays the Discord server's invite link | None |
/discord help |
Displays the command help menu in game | None |
/discord link |
Generates a code for you to link with your Discord account | None |
/discord unlink |
Unlinks with your Discord account | None |
/discord chat |
Toggles your Discord / Minecraft chat | None |
/discord whois <player> |
Displays the target's Discord user information | None |
/discord reload |
Reloads the plugin configuration | drs.reload |
/discord update |
Force update roles of online players | drs.update |
This section is for developers who want to make use of this plugin's API.
package net.evilkingdom.discordranksync.api;
import org.bukkit.OfflinePlayer;
import javax.annotation.Nullable;
public interface DiscordRankSyncAPI {
/**
* Returns whether player is linked with a discord user
*
* @param player ~ The player to check if its linked
* @return ~ Returns true if the player is linked with a discord user else false
*/
boolean isLinked(OfflinePlayer player);
/**
* Get the discord ID of a player, if the player is linked
*
* @param player ~ The player to query for its discord ID
* @return ~ Returns the discord ID as a string if the player is linked, else null
*/
@Nullable
String getDiscordId(OfflinePlayer player);
}
To get the API implementation:
DiscordRankSyncAPI api = ((DiscordRankSync) Bukkit.getPluginManager().getPlugin("DiscordRankSync")).getInstance().getApi();
Distributed under the MIT License. See LICENSE.txt
for more information.
TheTrustyPwo - Pwo#0001 - thetrustypwo@gmail.com
Project Link: https://github.com/EvilKingdom/DiscordRankSync