X

NOTICE

Are you sure you want to report this?

We've split up the commands, scripting and mods, and add ons category! Please be sure you get your thread in the right place.

11

/sudo

7 Comments

Post a new comment:

Please sign in to leave a comment.

  • 0
    Hori873 commented
    Comment actions Permalink

    sudo is used in UNIX to execute commands as a superuser (sudo = superuser do). I don't see why it would behave the way you describe it.

    sudo, if anything, should execute the command as an op (server operator, as that would be the equivalent of a superuser). But it would be redundant, since you already are an op, if you're able to use that command.

     

    While I can see the point of having a command the way you describe it, sudo is not the right name

  • 5
    Comment actions Permalink

    You can already do this using the /execute as command:

    /execute as @a[name=!YOURNAME] run say Hi

  • 0
    BoogerIsland commented
    Comment actions Permalink

    You can use execute. /execute as @e run say hello

     

  • 0
    ReimarPB commented
    Comment actions Permalink

    (Reply to Hori873)

    I may be wrong but I am pretty sure there are server plugins that do exactly this with the /sudo command. I don't know why the name "sudo" was chosen in the first place but I think that's why OP said that.

  • 0
    TheLudGamr commented
    Comment actions Permalink

    1. Hori873 is correct, if you wanted a pseudonym then use something like /pseudo

    2. the point of making the name in /say different to just typing in chat is to prevent stuff like this

    3. this can still be done with careful usage of /tellraw, as so

    /execute as PlayerYouWantToImpersonate run tellraw @a ["",{"text":"<"},{"selector":"@s","hoverEvent":{"action":"show_entity","value":"@s"}},{"text":"> Your Message"}]

    (you can even pseudo as entities as well)

  • 0
    Comment actions Permalink

    I know, it's been a long time, but I want to say, that sudo in Unix doesn't mean "Superuser Do" it means "Switch User Do" and the default user to switch to is root. Therefore, the name makes perfect sense, it switches user and executes commands.

  • 0
    Comment actions Permalink

    /execute as @a say Hi