• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • Minecraft 1.16.220 Update + Bug/Crash Fixes
    Added MCPE 1.16.220 version and fixed crashes for multiple plugins. You can view the full changelist here.
  • Forum Updates - 4/11/2021
    Various changes have been made to the forums and a few categories. You can view the full changelist here.

Heal players but op only gets saturation

Warning!
Hello , there have been no replies in this thread for more than 30 days.
Please make sure you have a valid reason before you reply to this thread or you may face moderation action.
#2
Srry about the second message my phone acted up but what I'm trying to say when someone does /heal they only get the regeneration but not the saturation
 
#3
cmd delete heal
cmd create heal heal someone
cmd add heal if varset(%args%[1]) = %false% then message %p% you need to choose a player!
cmd add heal if varset(%args%[1]) = %false% then exit
cmd add heal let %player% = %args%[1]
cmd add heal if %player% notin onlineplayers() then message %p% Player can not be found.
cmd add heal if %player% notin onlineplayers() then exit
cmd add heal let %st% = playerstatus(%player%)
cmd add heal let %sat% = %st%["saturation"]
cmd add heal treat %player% 20 %sat%
cmd add heal message %player% you have been healed.


I hope this works.
 
#4
and you need to add in the first lines:
cmd add heal let %pst% = playerstatus(%p%)
cmd add heal if %pst%["op"] = %false% then message %p% you do not have permissions
cmd add heal if %pst%["op"] = %false% then exit