mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-17 12:01:20 +02:00
manpromote and mandemote now correctly sent the notification to the
console if the command was issued there.
This commit is contained in:
@@ -90,3 +90,4 @@ v 1.7:
|
|||||||
v 1.8:
|
v 1.8:
|
||||||
- Changed ServicesManager registration to lowest from normal.
|
- Changed ServicesManager registration to lowest from normal.
|
||||||
- Fixed 'manucheckp' returning a null for the searched node when it's a group/subgroup.
|
- Fixed 'manucheckp' returning a null for the searched node when it's a group/subgroup.
|
||||||
|
- manpromote and mandemote now correctly send the notification to the console if the command was issued there.
|
@@ -415,7 +415,7 @@ public class GroupManager extends JavaPlugin {
|
|||||||
|
|
||||||
// PARECE OK
|
// PARECE OK
|
||||||
auxUser.setGroup(auxGroup);
|
auxUser.setGroup(auxGroup);
|
||||||
if (!sender.hasPermission("groupmanager.notify.other"))
|
if (!sender.hasPermission("groupmanager.notify.other") || (isConsole))
|
||||||
sender.sendMessage(ChatColor.YELLOW + "You changed player '" + auxUser.getName() + "' group to '" + auxGroup.getName() + "'.");
|
sender.sendMessage(ChatColor.YELLOW + "You changed player '" + auxUser.getName() + "' group to '" + auxGroup.getName() + "'.");
|
||||||
|
|
||||||
targetPlayer = this.getServer().getPlayer(auxUser.getName());
|
targetPlayer = this.getServer().getPlayer(auxUser.getName());
|
||||||
@@ -1610,7 +1610,7 @@ public class GroupManager extends JavaPlugin {
|
|||||||
}
|
}
|
||||||
// PARECE OK
|
// PARECE OK
|
||||||
auxUser.setGroup(auxGroup);
|
auxUser.setGroup(auxGroup);
|
||||||
if (!sender.hasPermission("groupmanager.notify.other"))
|
if (!sender.hasPermission("groupmanager.notify.other") || (isConsole))
|
||||||
sender.sendMessage(ChatColor.YELLOW + "You changed " + auxUser.getName() + " group to " + auxGroup.getName() + ".");
|
sender.sendMessage(ChatColor.YELLOW + "You changed " + auxUser.getName() + " group to " + auxGroup.getName() + ".");
|
||||||
|
|
||||||
targetPlayer = this.getServer().getPlayer(auxUser.getName());
|
targetPlayer = this.getServer().getPlayer(auxUser.getName());
|
||||||
@@ -1666,7 +1666,7 @@ public class GroupManager extends JavaPlugin {
|
|||||||
}
|
}
|
||||||
// PARECE OK
|
// PARECE OK
|
||||||
auxUser.setGroup(auxGroup);
|
auxUser.setGroup(auxGroup);
|
||||||
if (!sender.hasPermission("groupmanager.notify.other"))
|
if (!sender.hasPermission("groupmanager.notify.other") || (isConsole))
|
||||||
sender.sendMessage(ChatColor.YELLOW + "You changed " + auxUser.getName() + " group to " + auxGroup.getName() + ".");
|
sender.sendMessage(ChatColor.YELLOW + "You changed " + auxUser.getName() + " group to " + auxGroup.getName() + ".");
|
||||||
|
|
||||||
targetPlayer = this.getServer().getPlayer(auxUser.getName());
|
targetPlayer = this.getServer().getPlayer(auxUser.getName());
|
||||||
|
Reference in New Issue
Block a user