House.House.onPlayerEditSign C# (CSharp) Method

onPlayerEditSign() public method

public onPlayerEditSign ( PlayerEditSignEvent Event ) : void
Event PlayerEditSignEvent
return void
        public override void onPlayerEditSign(PlayerEditSignEvent Event)
        {
            Player player = Server.GetPlayerByName(Event.Sender.Name);
            if (IsInsideAnotherHouse(player.Name, (int)Event.Sign.x, (int)Event.Sign.y, CHECK_SIGN_LOCK) &&
                !player.Op)
            {
                Event.Cancelled = true;
                player.sendMessage("You cannot edit this sign, it's locked and inside someone else's house", chatColor);
            }
            base.onPlayerEditSign(Event);
        }