MoreCommands

Raptor14

Tree Puncher
#1
Some commands from the plugin MoreCommands

Heal with a 15 minute cooldown:
Code:
cmd create heal Heals you to full health | /heal
cmd add heal load %cool%
cmd add heal if varset(%cool%[%p%]) = %false% then goto 10
cmd add heal let %cooldown2% = %cool%[%p%]
cmd add heal let %elp% = %time% - %cooldown2%
cmd add heal if %elp% >= 900 then goto 10
cmd add heal let %elapse% = 900 - %elp%
cmd add heal let %minutes% = int(%elapse%/60)
cmd add heal message %p% You have %minutes% minutes left until you can use this command again!
cmd add heal exit
cmd add heal treat %p% 20
cmd add heal let %cool%[%p%] = %time%
cmd add heal save %cool%
cmd add heal exit
Feed with a 10 minute cooldown:
Code:
cmd create feed Fills your hunger bar | /feed
cmd add feed load %cooldo%
cmd add feed if varset(%cooldo%[%p%]) = %false% then goto 10
cmd add feed let %coold% = %cooldo%[%p%]
cmd add feed let %elps% = %time% - %coold%
cmd add feed if %elps% >= 600 then goto 10
cmd add feed let %elapse% = 600 - %elps%
cmd add feed let %minutes% = int(%elapse%/60)
cmd add feed message %p% You have %minutes% minutes left until you can use this command again!
cmd add feed exit
cmd add feed treat %p% %health% 0 20
cmd add feed let %cooldo%[%p%] = %time%
cmd add feed save %cooldo%
cmd add feed exit
Gmc, Gms, Gmspc, Gma:
Code:
cmd create gmc Changes you or a player into creative mode | /gmc <player>
cmd add gmc let %player% = %p%
cmd add gmc if varset(%args%[1]) then let %player% = %args%[1]
cmd add gmc /gamemode c %player%
cmd add gmc exit
cmd create gms Changes you or a player into survival mode | /gms <player>
cmd add gms let %player% = %p%
cmd add gms if varset(%args%[1]) then let %player% = %args%[1]
cmd add gms /gamemode s %player%
cmd add gms exit
cmd create gmspc Changes you or a player into spectator mode | /gmspc <player>
cmd add gmspc let %player% = %p%
cmd add gmspc if varset(%args%[1]) then let %player% = %args%[1]
cmd add gmspc /gamemode 3 %player%
cmd add gmspc exit
cmd create gma Changes you or a player into adventure mode | /gma <player>
cmd add gma let %player% = %p%
cmd add gma if varset(%args%[1]) then let %player% = %args%[1]
cmd add gma /gamemode 2 %player%
cmd add gma exit
Slay:
Code:
cmd create slay Slays you or a player | /slay <player>
cmd add slay let %player% = %p%
cmd add slay if varset(%args[1]) then let %player% = %args%[1]
cmd add slay /kill %player%
cmd add slay exit
Let me know if theirs any errors, thank you!