mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-10-05 16:24:47 +00:00
manpromote and mandemote now correctly sent the notification to the
console if the command was issued there.
This commit is contained in:
parent
afe8ecd3df
commit
7c8c40c790
|
@ -89,4 +89,5 @@ v 1.7:
|
|||
- Removed op permissions from admins in the default GloblaGroups.yml.
|
||||
v 1.8:
|
||||
- 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
|
||||
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() + "'.");
|
||||
|
||||
targetPlayer = this.getServer().getPlayer(auxUser.getName());
|
||||
|
@ -1610,7 +1610,7 @@ public class GroupManager extends JavaPlugin {
|
|||
}
|
||||
// PARECE OK
|
||||
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() + ".");
|
||||
|
||||
targetPlayer = this.getServer().getPlayer(auxUser.getName());
|
||||
|
@ -1666,7 +1666,7 @@ public class GroupManager extends JavaPlugin {
|
|||
}
|
||||
// PARECE OK
|
||||
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() + ".");
|
||||
|
||||
targetPlayer = this.getServer().getPlayer(auxUser.getName());
|
||||
|
|
Loading…
Reference in a new issue