mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-30 10:05:59 +00:00
Why I didn't put this here before is beyond me
This commit is contained in:
parent
7cffdac400
commit
86a4577023
@ -61,6 +61,7 @@ public class Command_linkdiscord extends FreedomCommand
|
|||||||
if (Discord.PLAYER_LINK_CODES.containsValue(data))
|
if (Discord.PLAYER_LINK_CODES.containsValue(data))
|
||||||
{
|
{
|
||||||
msg("Your linking code is " + ChatColor.GREEN + Discord.getCodeForPlayer(data), ChatColor.AQUA);
|
msg("Your linking code is " + ChatColor.GREEN + Discord.getCodeForPlayer(data), ChatColor.AQUA);
|
||||||
|
msg("Take this code and DM the server bot (" + plugin.dc.formatBotTag() + ") the code (do not put anything else in the message, only the code)");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -25,6 +25,7 @@ import net.dv8tion.jda.api.entities.Member;
|
|||||||
import net.dv8tion.jda.api.entities.MessageEmbed;
|
import net.dv8tion.jda.api.entities.MessageEmbed;
|
||||||
import net.dv8tion.jda.api.entities.Role;
|
import net.dv8tion.jda.api.entities.Role;
|
||||||
import net.dv8tion.jda.api.entities.TextChannel;
|
import net.dv8tion.jda.api.entities.TextChannel;
|
||||||
|
import net.dv8tion.jda.api.entities.SelfUser;
|
||||||
import net.dv8tion.jda.api.events.ReadyEvent;
|
import net.dv8tion.jda.api.events.ReadyEvent;
|
||||||
import net.dv8tion.jda.api.hooks.ListenerAdapter;
|
import net.dv8tion.jda.api.hooks.ListenerAdapter;
|
||||||
import net.pravian.aero.util.StringUtils;
|
import net.pravian.aero.util.StringUtils;
|
||||||
@ -160,6 +161,12 @@ public class Discord extends FreedomService
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String formatBotTag()
|
||||||
|
{
|
||||||
|
SelfUser user = bot.getSelfUser();
|
||||||
|
return user.getName() + "#" + user.getDiscriminator();
|
||||||
|
}
|
||||||
|
|
||||||
public static String getCodeForAdmin(Admin admin)
|
public static String getCodeForAdmin(Admin admin)
|
||||||
{
|
{
|
||||||
for (String code : LINK_CODES.keySet())
|
for (String code : LINK_CODES.keySet())
|
||||||
|
Loading…
Reference in New Issue
Block a user