[Creepy/AS3] Godmode Command!
Usage:
/god
ez as fuck to code and add so here it is
Just put this in wserver>realm>commands>admincommands.cs at the bottom
/god
ez as fuck to code and add so here it is
Code:
class GodCommand : Command
{
public GodCommand() : base("god", permLevel: 1) { }
protected override bool Process(Player player, RealmTime time, string args)
{
if (player.HasConditionEffect(ConditionEffects.Invulnerable))
{
player.ApplyConditionEffect(new ConditionEffect()
{
Effect = ConditionEffectIndex.Invulnerable,
DurationMS = 0,
});
player.SendInfo("Godmode Deactivated");
return false;
}
else
{
player.ApplyConditionEffect(new ConditionEffect()
{
Effect = ConditionEffectIndex.Invulnerable,
DurationMS = -1
});
player.SendInfo("Godmode Activated");
}
return true;
}
}
