Fix Added text to godmode

Fixed negated permissions
This commit is contained in:
Zack Piispanen 2013-10-01 04:56:18 -04:00
parent 98a282cd2a
commit 6fd6bc9b9c
3 changed files with 32 additions and 13 deletions

View file

@ -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