Skip to content

Commit

Permalink
Added 1.19 support. Changed plugin version to 2.5.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
BuildTools committed Jun 11, 2022
1 parent c893455 commit 033a69e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>me.loving11ish</groupId>
<artifactId>RedLightGreenLight</artifactId>
<version>2.5.0</version>
<version>2.5.1</version>
<packaging>jar</packaging>

<name>RedLightGreenLight</name>
Expand Down Expand Up @@ -70,7 +70,7 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.18.2-R0.1-SNAPSHOT</version>
<version>1.19-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ public void onEnable() {
//Server version compatibility check
if (!(Bukkit.getServer().getVersion().contains("1.13")||Bukkit.getServer().getVersion().contains("1.14")||
Bukkit.getServer().getVersion().contains("1.15")||Bukkit.getServer().getVersion().contains("1.16")||
Bukkit.getServer().getVersion().contains("1.17")||Bukkit.getServer().getVersion().contains("1.18"))){
Bukkit.getServer().getVersion().contains("1.17")||Bukkit.getServer().getVersion().contains("1.18")||
Bukkit.getServer().getVersion().contains("1.19"))){
logger.warning(ChatColor.RED + "-------------------------------------------");
logger.warning(ChatColor.RED + "RedLightGreenLight - This plugin is only supported on the Minecraft versions listed below:");
logger.warning(ChatColor.RED + "RedLightGreenLight - 1.13.x");
Expand All @@ -45,6 +46,7 @@ public void onEnable() {
logger.warning(ChatColor.RED + "RedLightGreenLight - 1.16.x");
logger.warning(ChatColor.RED + "RedLightGreenLight - 1.17.x");
logger.warning(ChatColor.RED + "RedLightGreenLight - 1.18.x");
logger.warning(ChatColor.RED + "RedLightGreenLight - 1.19.x");
logger.warning(ChatColor.RED + "RedLightGreenLight - Is now disabling!");
logger.warning(ChatColor.RED + "-------------------------------------------");
Bukkit.getPluginManager().disablePlugin(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ public static String translateColorCodes(String text){
StringBuilder finalText = new StringBuilder();
for (int i = 0; i < texts.length; i++){
if (texts[i].equalsIgnoreCase("&")){
//get the next string
i++;
if (texts[i].charAt(0) == '#'){
finalText.append(net.md_5.bungee.api.ChatColor.of(texts[i].substring(0, 7)) + texts[i].substring(7));
Expand Down

0 comments on commit 033a69e

Please sign in to comment.