v0.3.9 - Final testing. Message correction!
This commit is contained in:
parent
8a3ad27fa2
commit
db91d3ee1c
|
@ -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 &6&lprisoner &cand use this tool!"));
|
||||
player.sendMessage(ChatColor.translateAlternateColorCodes('&',"&c&lSorry inmate! &cYou're a &6&lprisoner &cand cannot 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.translateAlternateColorCodes('&',"&c&lSorry inmate! &cYou're a &6&lprisoner &cand use this tool!"));
|
||||
player.sendMessage(ChatColor.translateAlternateColorCodes('&',"&c&lSorry inmate! &cYou're a &6&lprisoner &cand cannot use this tool!"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue