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
This would be a big plugin, maybe people arent interested in putting in time, and getting nothing out of it
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?
Well this would then be hilarious much work to implement. ^^ We need an answer from the requester, I think.
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
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.
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.
Should the Job the Player has be saved permanently? Can a Player have multiple jobs? Can a Player change his Job?
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>
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
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.
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.
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.
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.
You can use it without, I think. Please try it. I never used Essentials, so I did not have any idea what I did. It should work though. If you have any error, please report.