Suggestion: /grant all priv or similar

Post Reply
AmyMoriyama
Member
Posts: 85
Joined: Wed Jun 30, 2021 14:53
GitHub: AmyMoriyama

Suggestion: /grant all priv or similar

by AmyMoriyama » Post

The frustration of forgetting a priv when starting a server (or adding mods after a server has launched) has led me to this post.

There should be some way to easily grant a priv to every player. Using command blocks and external scripts and such is clunky and odd. Logically, there should be a command like:
/grant all somepriv
or
/grant --all somepriv (in case there is a player named "all")

or something.

User avatar
Wuzzy
Member
Posts: 4302
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

Re: Suggestion: /grant all priv or similar

by Wuzzy » Post

But "--all" is also a valid player name because dashes and underscore are allowed. Needs a better syntax.
My creations. My webcomic. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH

AmyMoriyama
Member
Posts: 85
Joined: Wed Jun 30, 2021 14:53
GitHub: AmyMoriyama

Re: Suggestion: /grant all priv or similar

by AmyMoriyama » Post

Wuzzy wrote:
Thu Jul 29, 2021 15:33
But "--all" is also a valid player name because dashes and underscore are allowed. Needs a better syntax.
I was not aware of that. Personally, I don't care what the command looks like, so long as it works. I'm sure most who end up in my situation would agree.

User avatar
Minix
Member
Posts: 128
Joined: Thu Nov 12, 2020 13:51
In-game: Minix

Re: Suggestion: /grant all priv or similar

by Minix » Post

Implementing globbing (from UNIX shells) could be an alternative, but I do not know if that is difficult to develop.

bzt
Member
Posts: 175
Joined: Tue Sep 24, 2019 14:26

Re: Suggestion: /grant all priv or similar

by bzt » Post

How about "/grantall somepriv"? Similar to the "/grantme" command which already exists.

Cheers,
bzt

twoelk
Member
Posts: 1476
Joined: Fri Apr 19, 2013 16:19
GitHub: twoelk
IRC: twoelk
In-game: twoelk
Location: northern Germany

Re: Suggestion: /grant all priv or similar

by twoelk » Post

wouldn't it be better to asign all players some group on join, and be it a tourist label for the casual non-interact-visitor, to be able to change privs for large groups? similar like some student monitoring mods.

User avatar
Hybrid Dog
Member
Posts: 2790
Joined: Thu Nov 01, 2012 12:46
GitHub: HybridDog

Re: Suggestion: /grant all priv or similar

by Hybrid Dog » Post

You can use the more_chatcommands mod: https://github.com/red-001/more_chatcommands/
It adds the /grantall command and more, e.g. /run_as to run a chat command as another player.

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest