v0.3.1 - Finalizing banned_items.yml and cancelling their events.

This commit is contained in:
WildInterloper 2024-03-05 10:58:50 -05:00
parent ad81bce92a
commit f33319e235
3 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@
<groupId>me.NVus</groupId>
<artifactId>NVus_Prison_Setup</artifactId>
<version>0.3.1-SNAPSHOT</version>
<version>0.3.9-SNAPSHOT</version>
<packaging>jar</packaging>
<name>PrisonSetup</name>

View File

@ -19,7 +19,7 @@ public class PlayerArmor implements Listener {
// Check if the player is an actual prisoner before cancelling ;)
if (player.hasPermission("nvus.prisoner")) {
event.setCancelled(true);
player.sendMessage(ChatColor.translateAlternateColorCodes('&',"&c&lSorry inmate! &cYou're a prisoner and cannot touch your armor!"));
player.sendMessage(ChatColor.translateAlternateColorCodes('&',"&c&lSorry inmate! &cYou're a &6&lprisoner &cand cannot change your armor!"));
}
}
}

View File

@ -31,7 +31,7 @@ public class PlayerItems implements Listener {
if (item != null && isBannedItem(item.getType())) {
if (player.hasPermission("nvus.prisoner")) {
event.setCancelled(true);
player.sendMessage(ChatColor.translateAlternateColorCodes('&',"&c&lSorry inmate! &cYou're a prisoner and cannot use this tool!"));
player.sendMessage(ChatColor.translateAlternateColorCodes('&',"&c&lSorry inmate! &cYou're a &6&lprisoner &cand use this tool!"));
}
}
}
@ -48,7 +48,7 @@ public class PlayerItems implements Listener {
if (player.hasPermission("nvus.prisoner")) {
// Cancel the event to prevent interaction with banned items
event.setCancelled(true);
player.sendMessage(ChatColor.RED + "Sorry inmate! You're a prisoner and cannot use this tool!");
player.sendMessage(ChatColor.translateAlternateColorCodes('&',"&c&lSorry inmate! &cYou're a &6&lprisoner &cand use this tool!"));
}
}
}