Remove /ungodme
With 1.4.2.2, we no longer need to offer an escape hatch due to the underlying bug involving godmode being permanently applied to local players now having been fixed.
This commit is contained in:
parent
4668ab86a0
commit
6bb4230bc3
2 changed files with 5 additions and 16 deletions
|
|
@ -545,11 +545,6 @@ namespace TShockAPI
|
|||
{
|
||||
HelpText = "Toggles godmode on a player."
|
||||
});
|
||||
add(new Command("", ForceUngod, "ungodme")
|
||||
{
|
||||
HelpText = "Removes godmode from your character.",
|
||||
AllowServer = false
|
||||
});
|
||||
add(new Command(Permissions.heal, Heal, "heal")
|
||||
{
|
||||
HelpText = "Heals a player in HP and MP."
|
||||
|
|
@ -6461,17 +6456,10 @@ namespace TShockAPI
|
|||
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.", args.Player.GodMode ? "now" : "no longer"));
|
||||
playerToGod.SendInfoMessage("Please make sure to disable godmode using /ungodme before disconnecting, otherwise your character may remain in godmode indefinitely, including singleplayer.");
|
||||
}
|
||||
|
||||
private static void ForceUngod(CommandArgs args)
|
||||
{
|
||||
var godPower = CreativePowerManager.Instance.GetPower<CreativePowers.GodmodePower>();
|
||||
|
||||
godPower.SetEnabledState(args.Player.Index, false);
|
||||
|
||||
args.Player.SendSuccessMessage("Journey Godmode has been disabled on your character.");
|
||||
if (!args.Silent || (playerToGod == args.Player))
|
||||
{
|
||||
playerToGod.SendSuccessMessage(string.Format("You are {0} in god mode.", args.Player.GodMode ? "now" : "no longer"));
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Cheat Comamnds
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue