Fix Added text to godmode
Fixed negated permissions
This commit is contained in:
parent
98a282cd2a
commit
6fd6bc9b9c
3 changed files with 32 additions and 13 deletions
|
|
@ -2959,6 +2959,11 @@ namespace TShockAPI
|
|||
if (TShock.Players[id] == null)
|
||||
return true;
|
||||
|
||||
if (TShock.Players[id].GodMode)
|
||||
{
|
||||
TShock.Players[id].Heal(args.TPlayer.statLifeMax);
|
||||
}
|
||||
|
||||
if (dmg > TShock.Config.MaxDamage && !args.Player.Group.HasPermission(Permissions.ignoredamagecap) && id != args.Player.Index)
|
||||
{
|
||||
args.Player.Disable(String.Format("Player damage exceeded {0}.", TShock.Config.MaxDamage));
|
||||
|
|
@ -2995,11 +3000,6 @@ namespace TShockAPI
|
|||
return true;
|
||||
}
|
||||
|
||||
if (args.Player.GodMode)
|
||||
{
|
||||
args.Player.Heal(args.TPlayer.statLifeMax);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue