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
|
|
@ -3964,6 +3964,16 @@ namespace TShockAPI
|
|||
}
|
||||
|
||||
playerToGod.GodMode = !playerToGod.GodMode;
|
||||
|
||||
if (playerToGod == args.Player)
|
||||
{
|
||||
args.Player.SendSuccessMessage(string.Format("You are {0} in god mode.", args.Player.GodMode ? "now" : "no longer"));
|
||||
}
|
||||
else
|
||||
{
|
||||
args.Player.SendSuccessMessage(string.Format("{0} is {1} in god mode.", playerToGod.Name, playerToGod.GodMode ? "now" : "no longer"));
|
||||
playerToGod.SendSuccessMessage(string.Format("You are {0} in god mode.", playerToGod.GodMode ? "now" : "no longer"));
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Cheat Comamnds
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue