Add Region to the slack logging
This commit is contained in:
parent
474c2e78f2
commit
670e9db9d2
@ -7,6 +7,7 @@ import mineplex.core.slack.SlackAPI;
|
|||||||
import mineplex.core.slack.SlackMessage;
|
import mineplex.core.slack.SlackMessage;
|
||||||
import mineplex.core.slack.SlackTeam;
|
import mineplex.core.slack.SlackTeam;
|
||||||
import mineplex.gemhunters.loot.rewards.LootItemReward;
|
import mineplex.gemhunters.loot.rewards.LootItemReward;
|
||||||
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import java.net.MalformedURLException;
|
import java.net.MalformedURLException;
|
||||||
@ -34,10 +35,10 @@ public class SlackRewardBot
|
|||||||
{
|
{
|
||||||
SlackAPI.getInstance().sendMessage(SlackTeam.DEVELOPER, SLACK_CHANNEL_NAME, new SlackMessage(SLACK_USERNAME, new URL(SLACK_ICON),
|
SlackAPI.getInstance().sendMessage(SlackTeam.DEVELOPER, SLACK_CHANNEL_NAME, new SlackMessage(SLACK_USERNAME, new URL(SLACK_ICON),
|
||||||
"Rewarding a " + reward.getClass().getSimpleName() +
|
"Rewarding a " + reward.getClass().getSimpleName() +
|
||||||
"\nName: " + reward.getItemStack().getItemMeta().getDisplayName() +
|
"\nName: " + ChatColor.stripColor(reward.getItemStack().getItemMeta().getDisplayName()) +
|
||||||
"\nPlayer: " + player.getName() +
|
"\nPlayer: " + player.getName() +
|
||||||
"\nStatus: *" + status + "*" +
|
"\nStatus: *" + status + "*" +
|
||||||
"\nServer: " + UtilServer.getServerName() +
|
"\nServer: " + UtilServer.getServerName() + " " + UtilServer.getRegion().toString() +
|
||||||
"\nTPS: " + FORMAT.format(_lag.getTicksPerSecond())),
|
"\nTPS: " + FORMAT.format(_lag.getTicksPerSecond())),
|
||||||
true);
|
true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user