Only Once (Very Simple)

Discussion in 'Archived: Plugin Requests' started by MinopolisMc, Nov 28, 2012.

  1. Offline

    MinopolisMc

    Only Once
    The ability to perform a command only once

    Basically I'd like to have a command which triggers another command performed by the console with a variable for the players' name.

    The tricky part is that the player should only be able to perform the command once a lifetime.

    Example
    1. Player types /command
    2. Console does /say <PLAYER> just typed "/command"!
    3. Player types /command again
    4. Nothing happens.
    Config
    Code:
    Triggers:
    1: example
    2: more
    3: evenmore
    (...)
    Commands:
    1: say <PLAYER> typed "/example"!
    2: give <PLAYER> 1 64
    3: kill <PLAYER>
    (...)
    Permissions
    onlyonce.use


    I would really appreciate if someone could make this or recommend me a plugin.
    I would need it in a week or less.
     
  2. Offline

    Dark_Riddles

    What would this plugin be use for?
     
  3. Offline

    MinopolisMc

    I have a town on my server.
    Players should pay a certain amount of money to enter it because it's only for wealthy people.
    The problem is if they want to leave the town and come in again, they have to pay the money again.
    It would be much better if they only had to pay it once.
    If they just ran a command of this plugin every time they enter the town, everything would be fine.
     
  4. Offline

    Dark_Riddles

    Well I may be wrong but if you leave a town why would you want to join back once you left? I think you have a good idea But why would you want them to join a town for free that like a way to grief the town
     
  5. Offline

    MinopolisMc

    For example if they want to go mining, visiting their friends etc.
    You once paid for joining the town so it's ok.
     
  6. Offline

    LaxWasHere

    I think variable triggers can do this. LexLaiden
     
  7. Offline

    LexLaiden

    Yes this can be done with VariableTriggers among many many other things. Get it and read docs and visit VT forum to see script examples and ask for help from the forum.
     
  8. Offline

    MinopolisMc

    Intresting, I already had VT installed once. Will give it a go. I just think having such a big plugin for only one feature... meh
     
  9. Offline

    LexLaiden

    It is big but not cpu intensive. Plus you can do so many things with it. Whatever your imagination can come up with. Of course you will have to write some scripts to do all the wonderful things you dream up. ;)
     

Share This Page