v0.3.1 - Finalizing banned_items.yml and cancelling their events.
This commit is contained in:
parent
ad81bce92a
commit
f33319e235
2
pom.xml
2
pom.xml
|
@ -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>
|
||||
|
|
|
@ -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!"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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!"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue