Replies: 1 comment 1 reply
-
Try something like this EntityFinder ef = context.get(entityArgorWhatever)
ef.find(commandSender)
.stream().filter(e -> e instanceof Player)
.forEach(e -> ((Player)e).setGameMode(GameMode.CREATIVE)); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Just a quick question, what does the
ToggleableType
in the EntityFinder methods mean?It is also used in the
EntityFinder#setName
,EntityFinder#setUuid
andEntityFinder#setEntity
methods.If I just want to set the gamemode of every player in the EntityFinder, what do I set this to?
Beta Was this translation helpful? Give feedback.
All reactions