Per life Command Limiter

Discussion in 'Archived: Plugin Requests' started by xcele, Aug 24, 2014.

  1. Offline

    xcele

    Plugin category: Admin

    Suggested name: PerLifeLimiter

    What I want: Example; i have a kit pvp server and my kit commands are /pvp, /archer, /soup (etc...) but the players can spam them and keep getting new kits, so i want a plugin that limits the command(s) to one per life, so say if "John" did /pvp and got his kit, he then ran away to seek shelter and gain a new kit, he gets the new kit and the fight goes on for ever, but now that this plugin has been introduced, John can no longer get another kit until he dies.

    Ideas for commands: /pll <command> <limit>

    Ideas for permissions: PerLifeLimiter.*

    When I'd like it by: ASAP (IF A PLUGIN LIKE THIS HAS BEEN MADE THAT WOULD BE APPRECIATED TOO)
     
  2. Offline

    Darkpicasa

    In the past, I've used the plugin KingKits. In the config of it, there is a choice of "One kit per life" :)
     
  3. Offline

    xcele

    i already have a custom kit plugin but i sadly forgot to add the per life line
     
  4. Offline

    connorlinfoot


    If you want to post the source code or project file's for your current KitPVP plugin I can try and add this for you.
     
    Rmarmorstein likes this.
  5. Offline

    Rmarmorstein

    This is probably the easiest option. Probably better for the long run as well.
     
  6. Offline

    MomsKnife


    [​IMG]
     
  7. Offline

    Darkpicasa

    Didn't he say it was his own custom plugin?
     
  8. Offline

    MomsKnife

    No, he said that about someone else's plugin.
     
  9. Offline

    connorlinfoot


    He did say he already has a 'custom' kit plugin. Not one from Bukkit Dev
     
  10. Offline

    Darkpicasa

    MomsKnife connorlinfoot Okay, now I'm slightly confused. I'm not sure if he meant "I made this plugin" or "This plugin isn't from Bukkit"
    xcele could you please clarify?

    Thing is, he says "I just forgot to add the custom KitPvP line" I implied from that statement that he was coding it and he screwed it up
     
  11. Offline

    xcele

    i made my own plugin, yes, but i want a separate plugin for the per life limit, i did not know how not how/where to add that since i kept getting errors and gave up eventually and decided to get another plugin..

    It's a pretty big file considering it has 3 packages, it's not just for kits, it's for warps, kits, ban mgmt, and other basic stuff..

    I own the plugin, hence i said "CUSTOM PLUGIN"

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 10, 2016
  12. Offline

    connorlinfoot


    That's not very big, just push it to github or ZIP it.
     
  13. Offline

    xcele

    I rather have another plugin so i can have more than just kit commands set to one line
     
  14. Offline

    timtower Administrator Administrator Moderator

    xcele I believe that Booscooldown is able to do this
     
  15. Offline

    connorlinfoot


    Never mind then, much easier to just edit the current plugin instead of checking the command before it reaches your plugin.
     
  16. Offline

    ZenithPvP

    He needs source code so he can disallow /pvp ect. Once he has it he can send it to you with the 1KitPerLife
     
  17. Offline

    timtower Administrator Administrator Moderator

    No need for source code. PlayerCommandPreProcessEvent.
     
  18. Offline

    ZenithPvP

    But he needs to see code to see where to stop line if already used.
     
  19. Offline

    timtower Administrator Administrator Moderator

    No we don't..... Please learn to program in Bukkit before making such statements.
     
  20. Offline

    xcele

    I tried but it doesn't :/
     
  21. Offline

    timtower Administrator Administrator Moderator

    xcele
    Code:
    clear_uses_on_death: false
    Set that to true
     
  22. Offline

    xcele

    i've tried but it doesn't read the command, timtower are you willing to make me a fairly large plugin?
     
  23. Offline

    timtower Administrator Administrator Moderator

    Not that large, might add it to MiniLikeMe, easiest thing for me to do. Will add command groups so this so that all kit commands are in the same list.
     
  24. Offline

    xcele

    by large i mean lots of simple features in one plugin, explained;

    i want a kit pvp plugin, where the kits can be customized in config or made in game, has the feature that soup heals a configurable amount of hearts, one kit per life, /spawn and /setspawn, /warp and /setwarp /delwarp, /mute ( if possible ) and when items are dropped they disappear, like if i drop a soup bowl the bowl will disappear
     
  25. Offline

    timtower Administrator Administrator Moderator

    xcele You never talked about that. You just wanted commands limited per life.
     
  26. Offline

    xcele

    i did but recently my plugin starting bugging out and eventually became unusable, i am not using anything ant the moment :/
     
  27. Offline

    timtower Administrator Administrator Moderator

    May sound offending but: not my problem, get in touch with the developer of the plugin, I won't make a full size pvp server manager.
     
  28. Offline

    xcele

    I understand, thanks for your help tim
     

Share This Page