Jump to content

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%"

Link to post
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 post
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 post
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 post
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#8675

In-game name - _Tarna_

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

[VIP] - 7/27/2020

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

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

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

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

Link to post
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...