Sueta
SI

Sign Commands

1.0

Add commands to signs!

·Plugin

SIGN COMMANDS

Apply commands to signs!
Custom Arguments :O
Run commands as console/player

Commands

/cmdsign help - Shows the help menu

/cmdsign addcmd <command> - Adds a command to the sign you're looking at

/cmdsign delcmd <command> - Deletes a command from the sign you're looking at

/cmdsign runner <console/player> - Defines if console or the player will run the command!

/cmdsign showcmds Shows all commands of the sign you're looking at.

/cmdsign args - Shows the arguments you can use in a command.

/cmdsign delsign - Enables/disables the sign remover.

/changesign <line> <text> - Changes the sign's specified line (You can use colors :D)s

Args

$player - the player who right-clicked the sign

$runasplayer - Putting this before a command will run the command as the player who clicked the sign!

$runasconsole - Putting this before a command will run the command as the console

Why I added this?

For example, you set the runner to console, so the console will run all commands. Then you put a $runasplayer before a command, and that command will run for the player and not for the console.

DO NOT ADD A SLASH WHEN ADDING A COMMAND!
The slash will be added by itself in the command.

Examples

In this example I make add a command /say Hi
2018-02-16_12.18.52.png

And if we right click we get this:
2018-02-16_12.19.22.png

If we set the runner to console and click it we get this:
2018-02-16_12.23.44.png

Now, lets just say i want to say "Im a arg" as a player AND to run "say Hi" as console
Thats where we use $runasplayer
2018-02-16_12.24.11.png

Now if we click we will get this:
2018-02-16_12.24.24.png

Using $player is not hard, its like @p
So if i want to say "@p clicked" that would be: say $player clicked
2018-02-16_12.25.08.png

And when we click we get:
2018-02-16_12.25.30.png

Similar projects

Plugin →