Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CommandHome.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ public AllowedCaller AllowedCaller
public void Execute(IRocketPlayer caller, string[] bed)
{
UnturnedPlayer playerid = (UnturnedPlayer)caller;
Vector3 bedPos;
byte bedRot;
if (!BarricadeManager.tryGetBed(playerid.CSteamID, out bedPos, out bedRot))
{
UnturnedChat.Say(playerid, String.Format(HomeCommand.Instance.Configuration.Instance.NoBedMsg, playerid.CharacterName));
return;
}
Rocket.Core.Logging.Logger.Log(playerid.IsAdmin.ToString() + " is admin");
Rocket.Core.Logging.Logger.Log(playerid.Features.GodMode.ToString() + " is god mode");
HomePlayer homeplayer = playerid.GetComponent<HomePlayer>();
Expand Down