Skip to content

Commit 033a69e

Browse files
author
BuildTools
committed
Added 1.19 support. Changed plugin version to 2.5.1.
1 parent c893455 commit 033a69e

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>me.loving11ish</groupId>
88
<artifactId>RedLightGreenLight</artifactId>
9-
<version>2.5.0</version>
9+
<version>2.5.1</version>
1010
<packaging>jar</packaging>
1111

1212
<name>RedLightGreenLight</name>
@@ -70,7 +70,7 @@
7070
<dependency>
7171
<groupId>org.spigotmc</groupId>
7272
<artifactId>spigot-api</artifactId>
73-
<version>1.18.2-R0.1-SNAPSHOT</version>
73+
<version>1.19-R0.1-SNAPSHOT</version>
7474
<scope>provided</scope>
7575
</dependency>
7676
</dependencies>

src/main/java/me/loving11ish/redlightgreenlight/RedLightGreenLight.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ public void onEnable() {
3636
//Server version compatibility check
3737
if (!(Bukkit.getServer().getVersion().contains("1.13")||Bukkit.getServer().getVersion().contains("1.14")||
3838
Bukkit.getServer().getVersion().contains("1.15")||Bukkit.getServer().getVersion().contains("1.16")||
39-
Bukkit.getServer().getVersion().contains("1.17")||Bukkit.getServer().getVersion().contains("1.18"))){
39+
Bukkit.getServer().getVersion().contains("1.17")||Bukkit.getServer().getVersion().contains("1.18")||
40+
Bukkit.getServer().getVersion().contains("1.19"))){
4041
logger.warning(ChatColor.RED + "-------------------------------------------");
4142
logger.warning(ChatColor.RED + "RedLightGreenLight - This plugin is only supported on the Minecraft versions listed below:");
4243
logger.warning(ChatColor.RED + "RedLightGreenLight - 1.13.x");
@@ -45,6 +46,7 @@ public void onEnable() {
4546
logger.warning(ChatColor.RED + "RedLightGreenLight - 1.16.x");
4647
logger.warning(ChatColor.RED + "RedLightGreenLight - 1.17.x");
4748
logger.warning(ChatColor.RED + "RedLightGreenLight - 1.18.x");
49+
logger.warning(ChatColor.RED + "RedLightGreenLight - 1.19.x");
4850
logger.warning(ChatColor.RED + "RedLightGreenLight - Is now disabling!");
4951
logger.warning(ChatColor.RED + "-------------------------------------------");
5052
Bukkit.getPluginManager().disablePlugin(this);

src/main/java/me/loving11ish/redlightgreenlight/utils/ColorUtils.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ public static String translateColorCodes(String text){
1515
StringBuilder finalText = new StringBuilder();
1616
for (int i = 0; i < texts.length; i++){
1717
if (texts[i].equalsIgnoreCase("&")){
18-
//get the next string
1918
i++;
2019
if (texts[i].charAt(0) == '#'){
2120
finalText.append(net.md_5.bungee.api.ChatColor.of(texts[i].substring(0, 7)) + texts[i].substring(7));

0 commit comments

Comments
 (0)