Added Region placeholder for Webhook, bumped to v2.1.1
This commit is contained in:
parent
fb9346e814
commit
30497cd335
2 changed files with 3 additions and 1 deletions
2
pom.xml
2
pom.xml
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
<groupId>nl.SBDeveloper</groupId>
|
<groupId>nl.SBDeveloper</groupId>
|
||||||
<artifactId>ThemeParkPlus</artifactId>
|
<artifactId>ThemeParkPlus</artifactId>
|
||||||
<version>2.1</version>
|
<version>2.1.1</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>ThemeParkPlus</name>
|
<name>ThemeParkPlus</name>
|
||||||
|
|
|
@ -23,9 +23,11 @@ public class StatusChangeListener implements Listener {
|
||||||
if (title == null) return;
|
if (title == null) return;
|
||||||
|
|
||||||
String rideName = ChatColor.stripColor(ConfigUtil.makecolored(e.getAttraction().getName()));
|
String rideName = ChatColor.stripColor(ConfigUtil.makecolored(e.getAttraction().getName()));
|
||||||
|
String regionName = ChatColor.stripColor(ConfigUtil.makecolored(e.getAttraction().getRegion().getName()));
|
||||||
String statusAfter = ChatColor.stripColor(ConfigUtil.makecolored(StatusManager.getName(e.getAfter())));
|
String statusAfter = ChatColor.stripColor(ConfigUtil.makecolored(StatusManager.getName(e.getAfter())));
|
||||||
|
|
||||||
title = title.replaceAll("%RideName%", rideName);
|
title = title.replaceAll("%RideName%", rideName);
|
||||||
|
title = title.replaceAll("%Region%", regionName);
|
||||||
String copy = ThemeParkPlus.getSConfig().getFile().getString("DiscordWebhook.Embed.Copyright");
|
String copy = ThemeParkPlus.getSConfig().getFile().getString("DiscordWebhook.Embed.Copyright");
|
||||||
String copyimg = ThemeParkPlus.getSConfig().getFile().getString("DiscordWebhook.Embed.CopyrightImage");
|
String copyimg = ThemeParkPlus.getSConfig().getFile().getString("DiscordWebhook.Embed.CopyrightImage");
|
||||||
Integer color = ThemeParkPlus.getSConfig().getFile().getInt("DiscordWebhook.Embed.Colors." + e.getAfter().toString());
|
Integer color = ThemeParkPlus.getSConfig().getFile().getInt("DiscordWebhook.Embed.Colors." + e.getAfter().toString());
|
||||||
|
|
Reference in a new issue