Merge branch '2.x' into ajmaacc
This commit is contained in:
commit
20ce39249e
|
@ -55,7 +55,7 @@ public class Commandgamemode extends EssentialsLoopCommand {
|
|||
}
|
||||
|
||||
if (isProhibitedChange(user, gameMode)) {
|
||||
user.sendTl("cantGamemode", gameMode.name());
|
||||
user.sendTl("cantGamemode", user.playerTl(gameMode.toString().toLowerCase(Locale.ENGLISH)));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -51,6 +51,11 @@ public class Commandhelpop extends EssentialsCommand {
|
|||
final HelpopMessageSendEvent sendEvent = new HelpopMessageSendEvent(from, recipients, message);
|
||||
ess.getServer().getPluginManager().callEvent(sendEvent);
|
||||
|
||||
final IUser sender = (IUser) from;
|
||||
if(!recipients.contains(sender)){
|
||||
from.sendTl("helpOp", from.getDisplayName(), message);
|
||||
}
|
||||
|
||||
for (IUser recipient : sendEvent.getRecipients()) {
|
||||
recipient.sendTl("helpOp", from.getDisplayName(), message);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue