Essentials icon indicating copy to clipboard operation
Essentials copied to clipboard

How do I Give Everyone Something?

Open Techno3600 opened this issue 9 years ago • 11 comments

Hello,

I was wondering how I could give everyone on my server an item. Like /give @a wooden_cloud 1 or something like that?

Thanks Techno3600

Techno3600 avatar Jul 30 '17 22:07 Techno3600

As far as I can see, /msg does support a /msg ** <text> syntax which messages everybody on the server. However, /give doesn't seem to have this implemented currently.

You can still try one of those two options:

  1. Insert give @a paper 1 into a command block, it worked fine for me and targeted every player on the server while still using Essentials-/give
  2. Use /minecraft:give @a paper 1 instead, but bear in mind that this command uses a different syntax for defining item meta and that it requires different permissions

Antivalent avatar Jul 31 '17 02:07 Antivalent

Maybe /give all should be a new thing implement in the next version?

Techno3600 avatar Jul 31 '17 02:07 Techno3600

/give ** would be a more consistent and useful implementation, since "all" is a valid player name (looking at you, /msg console), but there are already ways around it. If you're having trouble with /minecraft:give, I can offer you my help.

Antivalent avatar Jul 31 '17 03:07 Antivalent

But is it possible the developers of this plugin could add this feature?

Techno3600 avatar Jul 31 '17 03:07 Techno3600

probably the quiest way is to use the kit options where all playeres or a group

smmmadden avatar Jul 31 '17 03:07 smmmadden

Okay, but I'm asking how I could pitch this idea to the developers.

Techno3600 avatar Jul 31 '17 22:07 Techno3600

It's been labelled enhancement, so the feature request has been noted.

mdcfe avatar Aug 01 '17 08:08 mdcfe

Awesome!

Techno3600 avatar Aug 01 '17 15:08 Techno3600

Is this feature still able to be implemented?

Techno3600 avatar Jul 19 '18 02:07 Techno3600

As a workaround currently, you can use /execute to make use of @a. I believe the following should work:

/execute as <player> run essentials:give @a ...

mdcfe avatar Jul 27 '18 06:07 mdcfe

This can easily be done with the vanilla give command on its own, and if you want a more essentials-like format, using what md mentioned above. Someone could feel free to PR this, but I feel like anyone who needs to give everyone an item is already using vanilla commands for this.

pop4959 avatar Apr 30 '20 04:04 pop4959