mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-03 14:38:56 +00:00
Fixed permission & message issues
This commit is contained in:
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.");
|
p.sendMessage(ChatColor.RED + "You already have an assassin contract with this user.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!(Boolean) targetData.get("MercPermission")) {
|
if (!(Boolean) targetData.get("AssassinPermission")) {
|
||||||
p.sendMessage(ChatColor.RED + "This user is not an assassin.");
|
p.sendMessage(ChatColor.RED + "This user is not an assassin.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -126,7 +126,7 @@ public class AssassinCommand implements CommandExecutor {
|
|||||||
|
|
||||||
// Messaging and logging
|
// Messaging and logging
|
||||||
p.sendMessage(ChatColor.GREEN + "You have requested an assassin contract with " + target.getDisplayName() + " for " + ChatColor.YELLOW + Main.econ.format(val) + ".");
|
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);
|
Main.warLogger.log("User " + p.getName() + " requested assassin work from " + p.getName() + ", value " + val);
|
||||||
}
|
}
|
||||||
else if (args[0].equalsIgnoreCase("accept")) {
|
else if (args[0].equalsIgnoreCase("accept")) {
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ public class MercCommand implements CommandExecutor {
|
|||||||
|
|
||||||
// Messaging and logging
|
// Messaging and logging
|
||||||
p.sendMessage(ChatColor.GREEN + "You have requested a contract with " + target.getDisplayName() + " for " + ChatColor.YELLOW + Main.econ.format(val) + ".");
|
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);
|
Main.warLogger.log("User " + p.getName() + " requested mercenary work from " + p.getName() + ", value " + val);
|
||||||
}
|
}
|
||||||
else if (args[0].equalsIgnoreCase("accept")) {
|
else if (args[0].equalsIgnoreCase("accept")) {
|
||||||
|
|||||||
Reference in new issue
Block a user