mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Fixes FS-137
This commit is contained in:
parent
57b3351047
commit
f85f3e32ea
@ -83,6 +83,7 @@ public enum ConfigEntry
|
|||||||
DISCORD_NEW_ADMIN_ROLE_ID(String.class, "discord.admin_role_id"),
|
DISCORD_NEW_ADMIN_ROLE_ID(String.class, "discord.admin_role_id"),
|
||||||
DISCORD_SENIOR_ADMIN_ROLE_ID(String.class, "discord.senior_admin_role_id"),
|
DISCORD_SENIOR_ADMIN_ROLE_ID(String.class, "discord.senior_admin_role_id"),
|
||||||
DISCORD_DEVELOPER_ROLE_ID(String.class, "discord.developer_role_id"),
|
DISCORD_DEVELOPER_ROLE_ID(String.class, "discord.developer_role_id"),
|
||||||
|
DISCORD_ASSISTANT_EXECUTIVE_ROLE_ID(String.class, "discord.assistant_executive_role_id"),
|
||||||
DISCORD_EXECUTIVE_ROLE_ID(String.class, "discord.executive_role_id"),
|
DISCORD_EXECUTIVE_ROLE_ID(String.class, "discord.executive_role_id"),
|
||||||
DISCORD_SERVER_OWNER_ROLE_ID(String.class, "discord.server_owner_role_id"),
|
DISCORD_SERVER_OWNER_ROLE_ID(String.class, "discord.server_owner_role_id"),
|
||||||
//
|
//
|
||||||
|
@ -119,6 +119,11 @@ public class DiscordToAdminChatListener extends ListenerAdapter
|
|||||||
{
|
{
|
||||||
return Title.EXECUTIVE;
|
return Title.EXECUTIVE;
|
||||||
}
|
}
|
||||||
|
// Assistant Executives
|
||||||
|
else if (member.getRoles().contains(server.getRoleById(ConfigEntry.DISCORD_ASSISTANT_EXECUTIVE_ROLE_ID.getString())))
|
||||||
|
{
|
||||||
|
return Title.ASSTEXEC;
|
||||||
|
}
|
||||||
// Senior Admins
|
// Senior Admins
|
||||||
else if (member.getRoles().contains(server.getRoleById(ConfigEntry.DISCORD_SENIOR_ADMIN_ROLE_ID.getString())))
|
else if (member.getRoles().contains(server.getRoleById(ConfigEntry.DISCORD_SENIOR_ADMIN_ROLE_ID.getString())))
|
||||||
{
|
{
|
||||||
|
@ -84,6 +84,11 @@ public class DiscordToMinecraftListener extends ListenerAdapter
|
|||||||
{
|
{
|
||||||
return Title.EXECUTIVE.getColoredTag();
|
return Title.EXECUTIVE.getColoredTag();
|
||||||
}
|
}
|
||||||
|
// Assistant Executives
|
||||||
|
else if (member.getRoles().contains(server.getRoleById(ConfigEntry.DISCORD_ASSISTANT_EXECUTIVE_ROLE_ID.getString())))
|
||||||
|
{
|
||||||
|
return Title.ASSTEXEC.getColoredTag();
|
||||||
|
}
|
||||||
// Senior Admins
|
// Senior Admins
|
||||||
else if (member.getRoles().contains(server.getRoleById(ConfigEntry.DISCORD_SENIOR_ADMIN_ROLE_ID.getString())))
|
else if (member.getRoles().contains(server.getRoleById(ConfigEntry.DISCORD_SENIOR_ADMIN_ROLE_ID.getString())))
|
||||||
{
|
{
|
||||||
|
@ -78,6 +78,8 @@ discord:
|
|||||||
senior_admin_role_id: ''
|
senior_admin_role_id: ''
|
||||||
# Developer role ID
|
# Developer role ID
|
||||||
developer_role_id: ''
|
developer_role_id: ''
|
||||||
|
# Assistant Executive role ID
|
||||||
|
assistant_executive_role_id: ''
|
||||||
# Executive Admin role ID
|
# Executive Admin role ID
|
||||||
executive_role_id: ''
|
executive_role_id: ''
|
||||||
# Owner role ID
|
# Owner role ID
|
||||||
|
Loading…
Reference in New Issue
Block a user