CanRenameBed
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void CanRenameBed( BasePlayer player, SleepingBag instance, string text )
{
Puts( "CanRenameBed works!" );
}
Location
- SleepingBag::Rename(BaseEntity/RPCMessage msg)
csharp
//---
if (!msg.player.CanInteract())
{
return;
}
string text = msg.read.String(256, false);
if (Interface.CallHook("CanRenameBed", msg.player, this, text) != null)
{
return;
}
text = WordFilter.Filter(text);
if (string.IsNullOrEmpty(text))
//---