mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Pretend like the player is offline when he is vanished
Part 1 of fixing #1745
This commit is contained in:
parent
f096e915cf
commit
53fdf750f4
@ -90,6 +90,10 @@ public final class CommandUtils {
|
|||||||
*/
|
*/
|
||||||
public static boolean checkPlayerExistence(CommandSender sender, String playerName, McMMOPlayer mcMMOPlayer) {
|
public static boolean checkPlayerExistence(CommandSender sender, String playerName, McMMOPlayer mcMMOPlayer) {
|
||||||
if (mcMMOPlayer != null) {
|
if (mcMMOPlayer != null) {
|
||||||
|
if (CommandUtils.hidden(sender, mcMMOPlayer.getPlayer(), false)) {
|
||||||
|
sender.sendMessage(LocaleLoader.getString("Commands.Offline"));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user