#chHelperz aliases.msa ver 1.0
everyone:/repeat [$action] = >>>
case printrepeatcommand:
case printrepeatcmd:
case printrepeat:
case showrepeat:
case hiderepeat:
case showr:
case hider:
case pr:
if(@setting == true,
#disable
store_value('chHelperz.player.'.
@player.
'.command.show', false)
export('chHelperz.player.'.
@player.
'.command.show', false)
die(color(7).
'['.color
(6).
'Command'.color
(7).
'] '.color
(r
).
' The command re-run will be '.color
(c
).
'hidden'.color
(r
).
' and not shown to you in the chat.')
,
#enable
store_value('chHelperz.player.'.
@player.
'.command.show', true)
export('chHelperz.player.'.
@player.
'.command.show', true)
die(color(7).
'['.color
(6).
'Command'.color
(7).
'] '.color
(r
).
' The command re-run will be '.color
(a
).
'shown'.color
(r
).
' only to you in the chat.')
)
case printcommand:
case printcmd:
case print:
case show:
case hide:
case printall:
case p:
assign(@setting, get_value('chHelperz.player.'.
@player.
'.command.show.all'))
if(@setting == true,
#disable
store_value('chHelperz.player.'.
@player.
'.command.show.all', false)
export('chHelperz.player.'.
@player.
'.command.show.all', false)
die(color(7).
'['.color
(6).
'Command'.color
(7).
'] '.color
(r
).
' Any command you run will be '.color
(c
).
'hidden'.color
(r
).
' and not printed back to you in the chat.')
,
#enable
store_value('chHelperz.player.'.
@player.
'.command.show.all', true)
export('chHelperz.player.'.
@player.
'.command.show.all', true)
die(color(7).
'['.color
(6).
'Command'.color
(7).
'] '.color
(r
).
' Any command you run will be '.color
(a
).
'shown'.color
(r
).
', printed back only to you in the chat.')
)
case consolecmd:
case consolecommand:
case cc:
if(@setting == true,
#disable
export('chHelperz.console.command.show', false)
die(color(7).
'['.color
(6).
'Command'.color
(7).
'] '.color
(r
).
' All commands will '.color
(c
).
'NOT broadcast'.color
(r
).
' to the console. This does not affect any command broadcast messages other plugins or the vanilla server may provide.')
,
#enable
export('chHelperz.console.command.show', true)
die(color(7).
'['.color
(6).
'Command'.color
(7).
'] '.color
(r
).
' All commands will '.color
(a
).
' be broadcast'.color
(r
).
' to the console. This does not affect any command broadcast messages other plugins or the vanilla server may provide.')
)
,
die(color(c
).
'['.color
(7).
'Command'.color
(c
).
'] '.color
(3).
'You do not have permissions to use this command.')
)
case nope:
die('\n'.moo
(color(c
).
'['.color
(7).
'Command'.color
(c
).
'] '.color
(3).
'Unexpected action.'.color
(r
)))
}
if(@player == '~console', die('/repeat'))
assign(@lastcmd, import('chHelperz.player.'.
@player.
'.last.command'))
if(@lastcmd == '' || @lastcmd == null,
die(color(c
).
'You have not run a command recently.'.color
(r
).
' Did you just login?')
)
#List cmd used, with CH aliases showing as a different color.
msg(color(3).
'Re-ran your last command.')
if(@showcmd == true,
#CH builds < 2964: Repeat cmd prints back the command to run in color code #7
@cmdcolor = 7
)
msg('> '.color
(@cmdcolor).
@lastcmd)
)
<<<
/. [$action] = >>>
<<<
'/\'' [$action] = >>>
<<<
Language: commandhelper
Posted by CypherNova139 at 10 Jan 2016, 11:14:44 UTC