House.House.onPlayerEditSign C# (CSharp) Méthode

onPlayerEditSign() public méthode

public onPlayerEditSign ( PlayerEditSignEvent Event ) : void
Event PlayerEditSignEvent
Résultat 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);
        }