ClockIn/ClockOut plugin

Discussion in 'Archived: Plugin Requests' started by C0nsole, Mar 31, 2012.

  1. Offline

    C0nsole

    I am looking for a plugin where when a person right clicks a sign with [ClockIn] on the first line, it starts their job for th day, and when they leave, they right click the sign with [ClockOut] and it signs them out. BUT, here is the thing, I want to make it so that u get to set how much money u get per second while you are clocked in (I use essentialsECO) and there should be different amounts of money per second for different jobs.
    You should be able to make new jobs in the plugin folder in the file jobs.yml.
    U should be able to join a job with /job join <name>
    The permission (yes only one) would be job.use
    Thanks,
    Garrett2smart87
     
  2. Offline

    C0nsole

    please guys... 115 views and no responses?
    at least say if it is possible....
     
  3. Offline

    -_Husky_-

    This would be a big plugin, maybe people arent interested in putting in time, and getting nothing out of it
     
  4. Offline

    Pinkishu

    Uhm how would it be big?
     
  5. Offline

    -_Husky_-

    because of the jobs implemented into it >.<
     
  6. Offline

    Pinkishu

    Hm well sounds like he only wants so theres a list of jobs you can set? XD Or did i miss something
     
  7. Offline

    tobiyas

    I don't get what would be that hard.
    You provide a yml reader and the jobs have to have a certain structure like:

    Code:
    jobs:
      Miner:
        messageStart: "Hello some strange Miner, welcome in the Mine please start working, or you will get killed"
        messageEnd: "That was a Hard day. Please come back tomorrow"
        gainedMoney: 42
        everySeconds: 2
      SomeOtherJob:
        messageStart: "I am some fancy welcoming message"
        messageEnd: "Bye, I hate you"
        gainedMoney: 9001
        everySeconds: 3
    ...
    Therefore you only have to itterate through the Jobs.

    Signs would look like:

    [ClockIn]
    Jobname
    money
    everySeconds

    Or did I miss anything?
     
  8. Offline

    Pinkishu

    Yeah, I think Husky maybe thought the OP wants that it also checks of people do their jobs or so
     
  9. Offline

    tobiyas

    Well this would then be hilarious much work to implement. ^^
    We need an answer from the requester, I think.
     
  10. Offline

    C0nsole

    What info do y'all need?
     
  11. Offline

    Pinkishu

    I guess if it should also check if they do their job...

    So if the plugin should check if e.g. a miner actually mines
    or if its just checkin/checkout
     
  12. Offline

    C0nsole

    Well yeah, I guess so
     
  13. Offline

    tobiyas

    Well therefore please tell me, how you want to make dynamik jobs? Means. How should you control if someone does his job or not.
    The only thing I would know would be an Dynamik job-plugin system. Meaning you write for each job a module which checks if the person does his job right.
    This would be so freaking much work and I guess way to much for a simple plugin like this.

    I would give you the advice to think of a total different system.
     
  14. Offline

    C0nsole

    Well it would be fine if it did NOT moniter how much you work or even work at all, just what was in the original request.
     
  15. Offline

    tobiyas

    This should be easy and possible.
    I'll get on it.
     
  16. Offline

    C0nsole

    Cool :)
     
  17. Offline

    tobiyas

    Should the Job the Player has be saved permanently?
    Can a Player have multiple jobs?
    Can a Player change his Job?
     
  18. Offline

    C0nsole

    No permanent jobs. You can leave use job with /job leave
    No multiple jobs.
    Yes they can change their job with /job leave followed by /job join <job>
     
  19. Offline

    tobiyas

    I got another question.
    For creating a sign, which Permission should the Person need?
    And even more important, which Permission-System do you use? =P
     
  20. Offline

    C0nsole

    the permission for a sign would be job.sign.create
    and I use groupmanager
     
  21. Offline

    tobiyas

    Well haven't worked with that, but that should be no problem.
    I guess the job-typ (not actual work itself) should be saved at a server reload / server stop, right?
    The running jobs will have to be ended at a reload / stop. Sorry, but can't do this on an other way, because of abuse.

    Just to give you a statement on the current developement stage:
    What works:
    -Job creation in the jobs.yml file
    -creating a sign for CheckIn, CheckOut
    -clicking on the sign for starting a counter
    -saving the job a person has after reload/stop

    What doesn't work:
    -adding money to EssencialsECO
    -Permissions


    So I guess the big part should be done.
    There is only integration in other plugins left. (and testing of corse)

    I've got a question left. Would you consider installing Vault?
    I can make it without, would just be easier with it.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 25, 2016
  22. Offline

    C0nsole

    uh i guess i COULD...... but ive never used it b4.... whatever u want
     
  23. Offline

    tobiyas

    Oh well.. I just made a great mistake... I looked into the sourcecode of Group Manager...
    Now I want to jump out of the window. :D
     
    TripleXPenguin likes this.
  24. Offline

    tobiyas

    Well I guess I've finished.
    It is a test-build, so you can find bugs.
    I tried it a bit, but I don't know, which plugin config you have.
    Try it please. The jobs.yml is like in the first post I made.

    PermissionNodes are: -checkin.sign.create
    -checkin.job.use

    Creating a sign is easy:
    just write in the first line: checkin or checkout
    in the second line write the name of the job (for example Mining)
    The rest will be filled according to the jobs.yml

    commands are:
    /job join jobname : lets you join the job jobname if you don't have any job
    /job leave : sets your current job to none.

    /joblist : lists all jobs and tells you when you have a job, which one.


    Please tell me when you find bugs.
    (I hope, you see the file, because I don't)

    please answer as soon as possible.
     

    Attached Files:

  25. Offline

    C0nsole

    Ok... I'll try it, two things though....
    1) how do you make a new job?
    2) where is the download?
     
  26. Offline

    tobiyas

    1)
    Code:
    jobs:
      Miner:
        messageStart: "Hello some strange Miner, welcome in the Mine please start working, or you will get killed"
        messageEnd: "That was a Hard day. Please come back tomorrow"
        gainedMoney: 42
        everySeconds: 2
      SomeOtherJob:
        messageStart: "I am some fancy welcoming message"
        messageEnd: "Bye, I hate you"
        gainedMoney: 9001
        everySeconds: 3
      newJob:
        messageStart: "message here."
        messageEnd: "message here"
        gainMoney: 0.3
        everySeconds: 10
    This makes 3 jobs: Miner, SomeOtherJob, newJob.
    I hope, you get how its done.

    2) CheckIn.zip Just unzip it.
     

    Attached Files:

  27. Offline

    C0nsole

    Ok, got it... one thing.... did u end up making it so u have to use vault or not?
     
  28. Offline

    tobiyas

    You can use it without, I think. Please try it. I never used Essentials, so I did not have any idea what I did. :D
    It should work though.
    If you have any error, please report.
     
  29. Offline

    C0nsole

    I'll try in a sec and give u feedback...
    but at the moment i got school stuff
     
  30. Offline

    tobiyas

    Sure. Take your time.
     

Share This Page