add /toggleOwnership /to

This commit is contained in:
Redo
2025-07-18 17:38:38 -07:00
parent dd049be341
commit bd51faa3e7
2 changed files with 19 additions and 4 deletions

View File

@ -1,4 +1,3 @@
//bls 3
// General server commands used to control the new duplicator.
// -------------------------------------------------------------------
@ -587,6 +586,22 @@ function serverCmdOwnership(%client) {
function serverCmdOwn(%client) { serverCmdOwnership(%client); }
function serverCmdO(%client) { serverCmdOwnership(%client); }
function serverCmdToggleOwnership(%client) {
if(!%client.isAdmin) {
ndmessageClient(%client, '', "\c6Ownership plant is admin only.");
return;
}
%client.ndOwnershipPerma = !%client.ndOwnershipPerma;
%client.ndOwnership = %client.ndOwnershipPerma;
if(%client.ndOwnership) {
ndmessageClient(%client, '', "\c6Bricks will now always be planted in the group of the original owner.");
} else {
ndmessageClient(%client, '', "\c6Bricks will now always be planted in your own group.");
}
%client.ndUpdateBottomPrint();
}
function serverCmdTO(%client) { serverCmdToggleOwnership(%client); }
//Force plant
///////////////////////////////////////////////////////////////////////////