mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 01:27:40 +01:00
Prevent players from ignoring themselves (#5488)
Co-authored-by: MD <1917406+mdcfe@users.noreply.github.com>
This commit is contained in:
parent
42071f4ad4
commit
ee1111f6aa
@ -44,6 +44,8 @@ public class Commandignore extends EssentialsCommand {
|
|||||||
} else if (user.isIgnoredPlayer(player)) {
|
} else if (user.isIgnoredPlayer(player)) {
|
||||||
user.setIgnoredPlayer(player, false);
|
user.setIgnoredPlayer(player, false);
|
||||||
user.sendMessage(tl("unignorePlayer", player.getName()));
|
user.sendMessage(tl("unignorePlayer", player.getName()));
|
||||||
|
} else if (user.getUUID().equals(player.getUUID())) {
|
||||||
|
user.sendMessage(tl("ignoreYourself"));
|
||||||
} else {
|
} else {
|
||||||
user.setIgnoredPlayer(player, true);
|
user.setIgnoredPlayer(player, true);
|
||||||
user.sendMessage(tl("ignorePlayer", player.getName()));
|
user.sendMessage(tl("ignorePlayer", player.getName()));
|
||||||
|
@ -532,6 +532,7 @@ ignoreCommandUsage1Description=Ignores or unignores the given player
|
|||||||
ignoredList=\u00a76Ignored\:\u00a7r {0}
|
ignoredList=\u00a76Ignored\:\u00a7r {0}
|
||||||
ignoreExempt=\u00a74You may not ignore that player.
|
ignoreExempt=\u00a74You may not ignore that player.
|
||||||
ignorePlayer=\u00a76You ignore player\u00a7c {0} \u00a76from now on.
|
ignorePlayer=\u00a76You ignore player\u00a7c {0} \u00a76from now on.
|
||||||
|
ignoreYourself=\u00a76Ignoring yourself won''t solve your problems.
|
||||||
illegalDate=Illegal date format.
|
illegalDate=Illegal date format.
|
||||||
infoAfterDeath=\u00a76You died in \u00a7e{0} \u00a76at \u00a7e{1}, {2}, {3}\u00a76.
|
infoAfterDeath=\u00a76You died in \u00a7e{0} \u00a76at \u00a7e{1}, {2}, {3}\u00a76.
|
||||||
infoChapter=\u00a76Select chapter\:
|
infoChapter=\u00a76Select chapter\:
|
||||||
|
Loading…
Reference in New Issue
Block a user