This lets me plant bricks, but not force plant
Oh, duh. I left that line alone from your code. Didn't notice.
function serverCmdFPToggle(%client) {
if(isObject(%client.player))
{
if(%client.isForcePlacing){
%client.chatmessage("<color:ffffff>ForcePlace is on!");
%client.isForcePlacing = 0;}
else {
%client.chatmessage("<color:ffffff>ForcePlace is off!");
%client.isForcePlacing = 1;}
}
}
package forcePlant {
function serverCmdPlantBrick(%client)
{
if(%client.isForcePlanting)
{
%temp = %client.player.tempBrick;
%temp.setName("CopyBrick");
%brick = new fxDTSBrick(:CopyBrick)
{
isPlanted = 1;
};
%tempBrick.setName("");
%brick.setTrusted(1);
%brick.plant();
return;
}
Parent::servercmdPlantbrick(%client);
}
};
activatePackage(forcePlant);
This works for me (I fixed a small issue but it should have still planted). Are you sure you're toggling FP on?