Jump to content

Simple Sudo.


JoshG

Recommended Posts

options:
  perm: *
  permmsg: &cNo Permission

command /sudo [<player>] [<text>]:
  permission: {@perm}
  permission message: {@permmsg}
  trigger:
    if arg-1 is not set:
      send "&cInvalid Command usage."
      send "&3/sudo (player) (command)"
    else:
      send "&3Forcing &b%arg-1%&3 To Execute command:"
      send "&b%arg-2%&3."
      make arg-1 execute command "/%arg-2%"

If I helped you at all please consider boosting my account with the follow button!
Minehut ♥ [VIP] 12/19/2020 - Present

I am either extremely active or not lol.

 

Link to comment
Share on other sites

Either im stupid or how would this work? Wouldn't a sudo skript more look like:

command /sudo [<player>] [<text>]:
    usage: &c/sudo <player> <text>
    permission: sudo.use
    permission message: &cInsufficient Permissions
    trigger:
        make arg-1 say "%arg-2%"
Link to comment
Share on other sites

2 minutes ago, SortaCold said:

Either im stupid or how would this work? Wouldn't a sudo skript more look like:

command /sudo [<player>] [<text>]:
    usage: &c/sudo <player> <text>
    permission: sudo.use
    permission message: &cInsufficient Permissions
    trigger:
        make arg-1 say "%arg-2%"

sudo is a command that makes players execute commands. Not a command that makes players say something. That can be done but itll be like /sudo player say hi!, then the player will send a message "hi!" to the server

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

8 minutes ago, BanditEagle said:

sudo is a command that makes players execute commands. Not a command that makes players say something. That can be done but itll be like /sudo player say hi!, then the player will send a message "hi!" to the server

oh i forgot sudo also meant commands lol. im not used to making players do commands.

Link to comment
Share on other sites

13 minutes ago, BanditEagle said:

sudo is a command that makes players execute commands. Not a command that makes players say something. That can be done but itll be like /sudo player say hi!, then the player will send a message "hi!" to the server

With the thing they used, you can stull do /sudo Tarnerd /say hi and it will make then run /say hi. Say can make a player say something or run a command too. As long as it starts with a /, it will run the command. So that skript can sudo players to say something and run a command too. 

Discord - tarna256

In-game name - _Tarna_

Website - https://tarna.dev
Paste Site: https://paste.tarna.dev

---------------------------------------------------------

[VIP] - 7/27/2020

Community Support - 7/8/20 | 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

❤️ - 5/17/21 - now

Moderator - 12/20/22 - now

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...