No 2 tools at same time in inventory

Discussion in 'Plugin Requests' started by Aposty, Apr 20, 2020.

Thread Status:
Not open for further replies.
  1. Offline

    Aposty

    Plugin category: Tools/guns

    Minecraft version: 1.12.2

    Suggested name: No2Tools

    What I want: I have a server where the guns are tool hoe , pickaxe, shovels and axes

    I want players to be able to pick weapon of other players they kill but I only want them to have 1 gun/tool at a time.
    So I need a plugin that does not allow the player to have more than 1 tool.

    Ideas for commands: /inventorytoolconfig

    Ideas for permissions: No permission, all player have this including admins, op's.
     
    Last edited: Apr 20, 2020
  2. Offline

    timtower Administrator Administrator Moderator

    @Aposty How should it deal with the player already having a tool and wants to pickup the one of the killed player?
     
  3. Offline

    Aposty

    They would have to drop their actual tool to grab to one of the player they just killed
     
  4. Offline

    timtower Administrator Administrator Moderator

  5. Offline

    Aposty

    To enable or disable the plugin the admin should just type /no2tool enabled or /no2tool disabled

    Also ! Sword is used as a knife so it is not considered a tool

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
  6. Offline

    Aposty

    So can we and my friends have hope for this ? :)
    You can take your time it's just to know if it's possible or if we should just give the hole you can switch guns on the battlefield idea up.
     
  7. Offline

    timtower Administrator Administrator Moderator

    @Aposty Never said that I would be making this though.
     
  8. Offline

    OlliePugh

    Im happy to have a go at this tomorrow / thursday? If you can hold on until then?

    It ended up taking a lot less time than expected, the default config doesnt allow players to have multiple swords but i saw you say that they can, if you go into the config and delete very line that has the swords listed on you will be able to have multiple swords. The permissions are no2tools.admin and the commands are /no2tools (enable/disable), ill update the readme on the github tomorrow. https://github.com/OlliePugh/No-2-Tools/releases/tag/v1.0

    Please post any issues on the github repository. Let me know how you get on :)
     
    Last edited: Apr 21, 2020
  9. Offline

    Aposty

    I installed it on my server typed the command /no2tools enable it says : no2tools is now enabled but I can still pick up 2 different tools though.
     
  10. Offline

    OlliePugh

    Can you show me your config.yml please?
     
  11. Offline

    timtower Administrator Administrator Moderator

  12. Offline

    OlliePugh

    Ah yes that is correct, ill fix that, but it is also enabled by default so it should work regardless that the config doesnt get saved, it just will never turn off currently.

    I have made a small update to the plugin which may fix this issue you have. This is working for me with the most recent spigot version compiled from bulidtools.

    Now i think of it I may know the issue, the plugin only stops users from picking up 2 tools from the ground, you can place them in your inventory.

    I have added that functionality to the new version: https://github.com/OlliePugh/No-2-Tools/releases/tag/v1.02
     
    Last edited: Apr 22, 2020
Thread Status:
Not open for further replies.

Share This Page