Fixed permission & message issues

This commit is contained in:
Isaac committed 2022-09-18 23:55:42 +01:00
1 parent 00bcd5c8a8
commit 97c23b5dcc
2 files changed
+3 -3

No files matched your search

@@ -113,7 +113,7 @@ public class AssassinCommand implements CommandExecutor {
p.sendMessage(ChatColor.RED + "You already have an assassin contract with this user.");
return false;
}
if (!(Boolean) targetData.get("MercPermission")) {
if (!(Boolean) targetData.get("AssassinPermission")) {
p.sendMessage(ChatColor.RED + "This user is not an assassin.");
return false;
}
@@ -126,7 +126,7 @@ public class AssassinCommand implements CommandExecutor {
// Messaging and logging
p.sendMessage(ChatColor.GREEN + "You have requested an assassin contract with " + target.getDisplayName() + " for " + ChatColor.YELLOW + Main.econ.format(val) + ".");
target.sendMessage(target.getDisplayName() + ChatColor.GREEN + " has requested an assassin contract worth " + ChatColor.YELLOW + Main.econ.format(val) + ".");
target.sendMessage(p.getDisplayName() + ChatColor.GREEN + " has requested an assassin contract worth " + ChatColor.YELLOW + Main.econ.format(val) + ".");
Main.warLogger.log("User " + p.getName() + " requested assassin work from " + p.getName() + ", value " + val);
}
else if (args[0].equalsIgnoreCase("accept")) {
@@ -122,7 +122,7 @@ public class MercCommand implements CommandExecutor {
// Messaging and logging
p.sendMessage(ChatColor.GREEN + "You have requested a contract with " + target.getDisplayName() + " for " + ChatColor.YELLOW + Main.econ.format(val) + ".");
target.sendMessage(target.getDisplayName() + ChatColor.GREEN + " has requested a contract worth " + ChatColor.YELLOW + Main.econ.format(val) + ".");
target.sendMessage(p.getDisplayName() + ChatColor.GREEN + " has requested a contract worth " + ChatColor.YELLOW + Main.econ.format(val) + ".");
Main.warLogger.log("User " + p.getName() + " requested mercenary work from " + p.getName() + ", value " + val);
}
else if (args[0].equalsIgnoreCase("accept")) {