特征

  • 播放器管理员卸妆工具
  • 退款选项
  • 支付选项
  • 使用工具橱柜或/和建筑物所有者或/和实体生成器(见下文)
  • 删除结构
  • 删除可部署项
  • 选择可以删除的实体
  • 支持大多数 Clans 插件
  • 支持 NoEscape
  • 图形用户界面

权限

此插件使用权限系统。若要分配权限,请使用 .若要删除权限,请使用 。oxide.grant <user or group> <name or steam id> <permission>oxide.revoke <user or group> <name or steam id> <permission>

对所有类型、结构类型和外部类型没有限制。请不要将它们授予玩家

  • removertool.normal– 需要使用正常删除
  • removertool.admin– 需要使用管理员删除。在此模式下,可以删除任何实体。
  • removertool.all– 需要使用所有删除。
  • removertool.structure– 需要使用结构删除。
  • removertool.external– 需要使用外部删除。
  • removertool.target– 需要使用“remove.target”命令
  • removertool.override– 需要使用“remove.allow”命令

聊天命令

  • /remove [time (seconds)]— 启用/禁用卸妆工具
  • /remove <admin | a> [time (seconds)]— 启用管理员 RemoverTool。在此模式下,可以删除任何实体。
  • /remove all [time (seconds)]— 从你正在看的地方开始,删除所有相互接触的东西(如果它们彼此太近,将删除多个建筑物)(对于大型建筑物来说可能会很慢)
  • /remove <structure | s> [time (seconds)]— 移除整栋建筑(不会移除彼此靠近或可部署的建筑物)(即使在大型建筑上也非常快)
  • /remove <external | e> [time (seconds)]— 拆除相邻的高外墙
  • /remove <help | h>— 查看帮助

控制台命令

  • remove.toggle— 与 /remove 相同,只能在游戏 F1 游戏机中使用
  • remove.target <disable | d> <player (name or id)>— 禁用播放器的卸妆工具
  • remove.target <normal | n> <player (name or id)> [time (seconds)] [max removable objects (integer)]— 为玩家启用卸妆工具(普通)
  • remove.target <admin | a> <player (name or id)> [time (seconds)]— 为玩家启用卸妆工具(管理员)
  • remove.target <all> <player (name or id)> [time (seconds)]— 为玩家启用卸妆工具(全部)
  • remove.target <structure | s> <player (name or id)> [time (seconds)]— 为玩家启用卸妆工具(结构)
  • remove.target <external | e> <player (name or id)> [time (seconds)]— 为播放器启用卸妆工具(外部)
  • remove.playerentity <all | a> <player id>— 删除播放器的所有实体
  • remove.playerentity <building | b> <player id>— 移除玩家的所有建筑物
  • remove.playerentity <cupboard | c> <player id>— 移除玩家拥有的橱柜的建筑物
  • remove.allow <false/true>— 覆盖玩家的移除工具,如果设置为 false,则只有拥有“removertool.override”权限的玩家才能使用移除工具。这不会在服务器重新启动或插件重新启动后保存!!如果您希望服务器仅在特定时间段内使用卸妆工具,则此功能适用于定时执行
  • remove.building <price / refund> <percentage>— 为所有建筑物设置价格或退款。例如,“remove.building price 50”。以这种方式显示:
"Twigs": {
  "Price": {
    "wood": {
      "amount": 10,
      "skinId": -1
    }
  },
  "Refund": {
    "wood": {
      "amount": 10,
      "skinId": -1
    }
  }
},
  • remove.building <priceP / refundP> <percentage>— 为所有建筑物设置价格或退款。例如,’remove.building priceP 50’。以这种方式显示:
"Twigs": {
  "Price": 50,
  "Refund": 20
},

配置

可以在目录下的文件中配置设置和选项。建议使用编辑器和验证器,以避免格式问题和语法错误。RemoverToolconfig

UI 图像

如果要使用 Image,则必须安装 ImageLibrary 插件

无需添加可部署实体和项的映像;ImageLibrary 已经有了它们。

如果需要添加其他实体的图像,请使用以下格式:

"Image Urls (Used to UI image)": {
  "Entity short prefab name": "Image url",
},

删除访问权限

  • 使用工具柜(强烈不推荐)
    这将允许 TC 授权玩家移除 TC 范围内的实体。换言之,Player 只能在构建受阻时删除实体。强烈不推荐意味着不建议单独使用
  • 使用建筑锁
    这是 tc 检查中的附加检查。因此,您必须启用 tc 检查 ->“使用工具柜”。当您没有被建筑物挡住时,它会检查您是否已对建筑物中的所有锁进行身份验证。
  • 使用实体所有者
    这将允许实体所有者删除实体
  • 使用建筑物所有者(您将需要建筑物所有者插件)
    这将允许拥有建筑物(在基地中建造第一个地基的建筑物)的玩家删除
  • 使用好友、使用团队和使用军团
    :根据您之前选择的选项(实体所有者或建筑物所有者),它将允许这些人(朋友/队友/军团成员)删除

例如:如果同时启用了以下两项。玩家需要是实体所有者,并具有 TC 授权才能删除实体

"Use Entity Owners": true,
"Use Tool Cupboards (Strongly unrecommended)": true,

价格/退款

经济学和服务器奖励

将其用作价格或退款。例如:

"Price": {
    "scrap": {
      "amount": 30,
      "skinId": -1
    },
    "Economics": {
      "amount": 30,
      "skinId": -1
    },
    "ServerRewards": {
      "amount": 30,
      "skinId": -1
    }
},
"Refund": {
    "scrap": {
      "amount": 30,
      "skinId": -1
    },
    "Economics": {
      "amount": 30,
      "skinId": -1
    },
    "ServerRewards": {
      "amount": 30,
      "skinId": -1
    }
}

按初始费用的百分比退款

适用于建筑物,不适用于可部署对象。(所以木头、树枝、金属、石头和顶级)

"Twigs": {
  "Price": 50,  //Pay 50% of the initial cost
  "Refund": 60   //Refund 60% of the initial cost
},

“删除”按钮

FORWARD,
BACKWARD,
LEFT,
RIGHT,
JUMP,
DUCK,
SPRINT,
USE,
FIRE_PRIMARY,
FIRE_SECONDARY,
RELOAD,
FIRE_THIRD

实体生成时间限制:因为插件不会保存实体生成的时间。因此,这仅用于加载插件后生成的实体。

配置

可以在目录下的文件中配置设置和选项。建议使用编辑器和验证器,以避免格式问题和语法错误。RemoverToolconfig
{
  "Settings": {
    "Use Teams": true,
    "Use Clans": true,
    "Use Friends": true,
    "Use Entity Owners": true,
    "Use Tool Cupboards (Strongly unrecommended)": false,
    "Use Building Owners (You will need BuildingOwners plugin)": false,
    "Remove Button": "FIRE_PRIMARY",
    "Remove Interval (Min = 0.2)": 0.5,
    "Only start cooldown when an entity is removed": false,
    "RemoveType - All/Structure - Remove per frame": 20,//Reducing it can reduce server lag, but take longer to remove
    "RemoveType - All/Structure - No item container dropped": true,//If false, it will drop
    "RemoveType - Normal - Max Removable Objects - Exclude admins": true,
    "RemoveType - Normal - Cooldown - Exclude admins": true,
    "RemoveType - Normal - Check stash under the foundation": false,
    "RemoveType - Normal - Entity Spawned Time Limit - Enabled": false,//If true, the spawned entity before installing the plugin cannot be removed
    "RemoveType - Normal - Entity Spawned Time Limit - Cannot be removed when entity spawned time more than it": 300.0, //Seconds
    "Default Entity Settings (When automatically adding new entities to 'Other Entity Settings')": {
      "Default Remove Allowed": true
    }
  },
  "Container Settings": {
    "Storage Container - Enable remove of not empty storages": true,
    "Storage Container - Drop items from container": false,
    "Storage Container - Drop a item container from container": true,
    "IOEntity Container - Enable remove of not empty storages": true,
    "IOEntity Container - Drop items from container": false,
    "IOEntity Container - Drop a item container from container": true
  },
  "Remove Damaged Entities": {
    "Enabled": false,
    "Exclude Building Blocks": true,
    "Percentage (Can be removed when (health / max health * 100) is not less than it)": 90.0
  },
  "Chat Settings": {
    "Chat Command": "remove",
    "Chat Prefix": "[RemoverTool]: ",
    "Chat Prefix Color": "#00FFFF",
    "Chat SteamID Icon": 0
  },
  "Permission Settings (Just for normal type)": {//You can add more permissions here. but "removertool.normal" is necessary
    "removertool.normal": {
      "Priority": 0,
      "Distance": 3.0,
      "Cooldown": 60.0,
      "Max Time": 300,
      "Remove Interval (Min = 0.2)": 1.0,
      "Max Removable Objects (0 = Unlimited)": 50,//Maximum removable object each time the remover tool is enabled
      "Pay": true,
      "Refund": true,
      "Reset the time after removing an entity": false
    },
    "removertool.vip": { // vip permission
      "Priority": 1,
      "Distance": 5.0,
      "Cooldown": 30.0,
      "Max Time": 300,
      "Remove Interval (Min = 0.2)": 0.5,
      "Max Removable Objects (0 = Unlimit)": 100,
      "Pay": false,
      "Refund": true,
      "Reset the time after removing a entity": true
    }
  },
  "Remove Type Settings": {
    "Normal": {
      "Display Name": "Normal",
      "Distance": 3.0,
      "Default Time": 60,
      "Max Time": 300,
      "Gibs": true,
      "Reset the time after removing an entity": false
    }
  },
  "Remove Mode Settings (Only one model works)": {
    "No Held Item Mode": true, //Prevents the player from holding any item
    "No Held Item Mode - Disable remover tool when you have any item in hand": true, //remover tool disabled if player holds item
    "Melee Tool Hit Mode": false,
    "Melee Tool Hit Mode - Item shortname": "hammer",
    "Melee Tool Hit Mode - Item skin (-1 = All skins)": -1,
    "Melee Tool Hit Mode - Auto enable remover tool when you hold a melee tool": false,
    "Melee Tool Hit Mode - Requires a melee tool in your hand when remover tool is enabled": false,
    "Melee Tool Hit Mode - Disable remover tool when you are not holding a melee tool": false,
    "Specific Tool Mode": false,
    "Specific Tool Mode - Item shortname": "hammer",
    "Specific Tool Mode - Item skin (-1 = All skins)": -1,
    "Specific Tool Mode - Auto enable remover tool when you hold a specific tool": false,
    "Specific Tool Mode - Requires a specific tool in your hand when remover tool is enabled": false,
    "Specific Tool Mode - Disable remover tool when you are not holding a specific tool": false
  },
  "NoEscape Settings": {
    "Use Raid Blocker": false,
    "Use Combat Blocker": false
  },
  "Image Urls (Used to UI image)": {
    "economics": "https://i.imgur.com/znPwdcv.png",
    "serverrewards": "https://i.imgur.com/04rJsV3.png"
  },
  "GUI": {  },
  "Remove Info (Refund & Price)": {
    "Price Enabled": true,
    "Refund Enabled": true,
    "Refund Items In Entity Slot": true,//What is "Entity Slot": e.g. Code lock on the cupboard
    "Allowed Building Grade": {
      "Twigs": true,  //Allow removal of Twigs
      "Wood": true,
      "Stone": true,
      "Metal": true,
      "TopTier": true
    },
    "Display Names (Refund & Price)": {
        "telephone_5566": "Telephone", // item shortname    skin id // If empty, the default item name will be displayed
        "economics": "Economics", // custom currency
    },
    "Building Blocks Settings": {
      "Foundation": {
        "Display Name": "Foundation", //The name displayed on the RemoverToolUI
        "Building Grade": {
          "Twigs": {
            "Price": {
              "wood": {
                "amount": 15,
                "skinId": -1 // If less than 0, will ignore skin to take items
              }
            },
            "Refund": {
              "wood": {
                "amount": 10,
                "skinId": -1  // If less than 0, the item skin ID will be set based on the entity skin Id
              }
            }
          }
        }
      }
    },
    "Other Entity Settings": {//If you want to add other entities, you can do so here
      "fogmachine": {  //entity short prefab name
        "Remove Allowed": true, //Allows the entity to be remove
        "Display Name": "Fogger-3000", //The name displayed on the RemoverToolUI
        "Price": {},
        "Refund": {
          "fogmachine": {
            "amount": 1,
            "skinId": -1
          }
        }
      }
    }
  }
}

private object canRemove(BasePlayer player, BaseEntity entity)
private void OnNormalRemovedEntity(BasePlayer player, BaseEntity entity)  // Called when deleting an entity in normal remove mode
private object OnDropContainerEntity(BaseEntity entity) // Called when the container is about to drop
private void OnRemoverToolActivated(Baseplayer player) // Called only in normal remove mode
private void OnRemoverToolDeactivated(Baseplayer player) // Called only in normal remove mode

自定义实体删除设置

通过外部插件自定义实体删除设置,换句话说,您可以通过其他插件修改实体的价格或退款商品

下面给出了一个例子(通过卸妆工具移除无人机并退还无人机物品)

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。