Add canchat permission as well as godmode being a toggle command.
This commit is contained in:
parent
4e9698b6ee
commit
ce73b0c0b5
6 changed files with 71 additions and 16 deletions
|
|
@ -1322,7 +1322,7 @@ namespace TShockAPI
|
|||
args.Player.PlayerData.maxHealth = max;
|
||||
}
|
||||
|
||||
if (args.Player.Group.HasPermission(Permissions.godmode) && (cur < max))
|
||||
if (args.Player.GodMode && (cur < max))
|
||||
{
|
||||
args.Player.Heal(args.TPlayer.statLifeMax);
|
||||
}
|
||||
|
|
@ -2937,7 +2937,7 @@ namespace TShockAPI
|
|||
return true;
|
||||
}
|
||||
|
||||
if (args.Player.Group.HasPermission(Permissions.godmode))
|
||||
if (args.Player.GodMode)
|
||||
{
|
||||
args.Player.Heal(args.TPlayer.statLifeMax);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue