mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-02 14:38:26 +01:00
remove pattern matching
This commit is contained in:
parent
ecdd0181e0
commit
ed97de417e
@ -69,7 +69,8 @@ public class GamemodeCommand extends Command {
|
||||
if (sender.isPlayer()) sender.sendMessage(Component.translatable("argument.entity.notfound.player", NamedTextColor.RED), MessageType.SYSTEM);
|
||||
else sender.sendMessage(Component.text("No player was found", NamedTextColor.RED), MessageType.SYSTEM);
|
||||
} else for (Entity entity : entities) {
|
||||
if (entity instanceof Player p) {
|
||||
if (entity instanceof Player) {
|
||||
Player p = (Player) entity;
|
||||
if (p == sender) {
|
||||
executeSelf(sender.asPlayer(), mode);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user