ComponentBlocker

Moved

Total Downloads: 2,275 - First Release: Oct 18, 2015 - Last Update: Feb 4, 2017

5/5, 11 likes
  1. Calytic

    Calytic Community Admin Community Mod

    try this.
    Code:
    [ChatCommand("listiinv")]
    private void cmdListInv(BasePlayer player, string command, string[] args)
    {
        if (player.net.connection.authLevel < 1)
        {
            return;
        }    List<string> prefabs = new List<string>();    foreach (Item item in player.inventory.containerMain.itemList)
        {
            if (item.info.itemMods.Length > 0)
            {
                foreach (ItemMod itemMod in item.info.itemMods)
                {
                    prefabs.Add(itemMod.name);
                }
            }
        }    player.ConsoleMessage("Inventory item prefabs:");
        player.ConsoleMessage(string.Join("\n", prefabs.ToArray()));
        SendReply(player, "Press F1 and open console");
    }
     
  2. Is it on purpose you changed the chat command to /listiinv?
     
  3. Calytic

    Calytic Community Admin Community Mod

    Uhh, no that was a typo
     
  4. Anyway, it still worked. Thanks mate. :D
     
  5. Hey man im trying to remove all guns and building structures past stone from my server but have little experience coding i tried several methods listed on the main page and we tried doing Jumse (just copying and pasting it but it still is not working any chance you could list me a example to remove one of the guns and then maybe i could just copy and paste for other items.
     
  6. Calytic

    Calytic Community Admin Community Mod

    The easiest thing to do is to use the display name of the item

    Code:
    /blocker "Assault Rifle"
    Sometimes you can't do that when multiple items contain the same word (such as most ammunition types). In this case, you can use the internal short names such as

    Code:
    /blocker rifle.ak
    Here is a list curated by the oxide developers of item names and short-names.

    Rust
     
  7. sorry if this sounds dumb man so i go into my clanforge click addons click config then click file.herejson which opens up it up to the right then i would just list like this.

    1./blocker rifle.ak
    2./blocker pistol.revolver

    and so forth until all items i want gone are gone correct?
     
  8. Calytic

    Calytic Community Admin Community Mod

    No, those are in-game commands you can use in-game as an administrator. You can use the /blocker command to add and remove items from the list.

    Running..
    /blocker rifle.ak
    adds the item
    Running the same command again
    /blocker rifle.ak
    removes it from the block list
     
  9. so just use it in the console as a admin ? i did but it is still letting me spawn in aks or does it only affect players?
     
  10. Calytic

    Calytic Community Admin Community Mod

    Its an in-game chat command, not a console command. It affects both players and admins.
     
  11. o sweet man but only admins can do this correct?
    [DOUBLEPOST=1452740226][/DOUBLEPOST]also second question now that i have this on the blocklist do they stay permanently until i remove them do i have to reenter this each wipe also the first question are admins the only one who can add/remove from blocklist
     
  12. Calytic

    Calytic Community Admin Community Mod

    Yes, only admins have permissions to use the /blocker command

    The blocklist is permanent, it will persist between wipes.
     
  13. Hey man is there a way to see whats all on the block list
     
  14. Calytic

    Calytic Community Admin Community Mod

    Thanks for pointing out that wasn't in the documentation. It's updated now.

    The command is /blocklist
     
  15. is there a way to remove everything from the blocklist at once ? also thank you for helping me out man great mod and great help
     
  16. Calytic

    Calytic Community Admin Community Mod

    Calytic updated ComponentBlocker with a new update entry:

    0.0.5


    [DOUBLEPOST=1452826476][/DOUBLEPOST]
    Try that new command I just added. No problem and thank you for your kind words and the feedback.
     
  17. Calytic

    Calytic Community Admin Community Mod

    Calytic updated ComponentBlocker with a new update entry:

    0.0.51

     
  18. when I block pants using shortname it also blocks hide pants
     
  19. Calytic

    Calytic Community Admin Community Mod

    Use the /listinv command to get a more specific name for the pants you want to block. This has already been addressed in the support thread.
     
  20. Jean pants short name is pants and that's what I used but it also blocks hide pants I'm trying to block regular jeans no hide