Skip to content

Commit

Permalink
move !sit command from Players to Donors
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSkout001 committed Nov 30, 2024
1 parent 57fd74c commit b1bd4b9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
16 changes: 15 additions & 1 deletion MainModule/Server/Commands/Donors.luau
Original file line number Diff line number Diff line change
Expand Up @@ -390,5 +390,19 @@ return function(Vargs, env)
end
};

Sit = {
Prefix = Settings.PlayerPrefix;
Commands = {"sit"};
Args = {};
Description = "Makes your character sit";
Donors = true;
AdminLevel = "Players";
Function = function(plr: Player, args: {string})
local humanoid = plr.Character and plr.Character:FindFirstChildOfClass("Humanoid")
if humanoid then
humanoid.Sit = true
end
end
};
}
end
end
13 changes: 0 additions & 13 deletions MainModule/Server/Commands/Players.luau
Original file line number Diff line number Diff line change
Expand Up @@ -1224,18 +1224,5 @@ return function(Vargs, env)
return args
end
};

Sit = {
Prefix = Settings.PlayerPrefix;
Commands = {"sit"};
Args = {};
Description = "Makes your character sit";
AdminLevel = "Players";
Function = function(plr: Player, args: {string})
if plr.Character and plr.Character:FindFirstChildOfClass("Humanoid") then
plr.Character.Humanoid.Sit = true
end
end
};
};
end

0 comments on commit b1bd4b9

Please sign in to comment.