So I was watching "In Time" for the third time and only now got this idea. Somebody should make a plugin like similar life clocks people have in the movie but in a different way. Here's a description of a plugin (also works for those who haven't even seen the film): When a player joins, he gets a preset time of his life. After that time runs out, the player gets killed. The only way to increase your lifetime lol is to kill somebody else or ask somebody else for time. If you kill the player, you only get half of his time left (or configured the other way). When you donate time, you can donate the full amount of it. This means, that rather than killing him, you should team up or pursue him to give his time to you in return to something. Tough, this might also give a chance to him to kill you or let his other teammates ambush you. This adds a perfect risk factor and suppresses the "kill everything on sight" instinct. That's it. Simple as that. This would work wonders on hardcore servers (getting banned on death) and seasoned servers (like a new map every month or something similar). Scoreboard support highly preferred! Since time is always ticking, this plugin will absolutely need scoreboard support, because checking your time with a command is kind of annoying (or it will get over time) and nobody wants spam in the chat. Config should look like this: Code: #Starting time in minutes startingtime: int #How much to divide the victims time by? divideby: int Permissions: pvptime.player - self explanatory pvptime.donate - able to donate pvptime.receive - able to receive donations pvptime.ignore - no timer Commands: /pvptime check - check yer time /pvptime donate seconds - donate a specified amount of seconds Would be great to have a /pt alias! I want to keep the plugin as simple as possible. Any takers?
I will give this a go. I will update this as I continue with plugin development. -=[]=- Update #1: Scoreboards work with a nice format, sadly still hard corded statistics Image (Move your mouse to reveal the content) Image (open) Image (close)
If I was to make this plugin, who would use it on their server? Just wanting to get sense of how 'flexible' I would have to make the plugin on initial release.
Konkz That looks pretty good. For keeping track of time, I recommend storing the int in seconds in a config or player file. Then, have a schedule that runs every second to increment the stored value by one, etc
What I will be doing is having a config where you insert seconds, then in game it will convert it to HH:MM:SS (HH if it exists).
xbenas rfsantos1996 Konkz One thing though, you have to check for alts, so there's no 'boosting' and your server needs to have a good amount of players..
Konkz Desle rfsantos1996 I was thinking about making a server with entry fee like 1$, so that people would actually value their lives instead of boosting their time. The server I have in mind (or, a part of my main server, whatev) is like i said in the main post, "hardcore" which would mean a ban if you die. I believe people wouldn't want to waste that much money just for virtual time. Killing someone would be just a better alternative. Also, seasoned means a wipe every now and then, so players who die can just return after a week or a few days to try again. "b-b-but no one will pay your 1$ fee!" Yes they might, I can set up a SMS system for things in Europe for east buy&play stuff. Anyways, that's my concern how I will do it. Nope, I see this as PvP only thing. Hence, the title. Konkz Also, if I am correct, the right part of scoreboard is hardcoded to be numbers, right? Maybe the number part should just always display seconds, while the left line should be the other time. The format should be: MONTHAY:HOUR:MINUTE: SECONDS Here's an example:
xbenas But then again.. getting enough players on the server so people can actually live longer, is difficult with 1$ entry fee.
xbenas What also could be cool.. that you have a standard server, although you have this plugin enabled in just one world, where people get banned from for some time on death. In that world you can find loot throughout a map that has been made by you, or your build team or whatever, that you can collect when you've left the world.
xbenas - I'm really sorry, but due to a concern that has struck me that includes real life struggle with school makes me paralyzed towards the bigger project plugins like this one due to lack of time, concetration and patience. I am very sorry about this! I hope that Desle will be able to make this, once again I'm sorry. If nobody does this and I still have time then I will happily fill this again. Sorry!
I know, but I want something more PvP focused without the whole money thing. Also, scoreboard support.
Assist If you're rushing this plugin so you can finish it in a day or so, you're probably not putting enough effort in it. This plugin could make an amazing server, if the developer actually puts some time into it.. I'm sure xbenas would like it if the developer would add some extras in, such as a nice chest GUI instead of the /pvptime donate. Little things like this.
Desle This plugin honestly wouldn't take long at all to create. As for your "little extras", I create only what the OP requests, nothing else.
It will not take a lot of time but if you try to add those 'little extras' as I was going to it does take time. But if it will be fine with Assist then when he finishes the main structure I can add bits to it, if I have time. Up to him.
Assist Konkz I want this as simplistic and minimalistic as possible. No GUIs, only what I've written in the original post. And the scoreboard should look like in my example, no needed extra. Just your left time. Spoiler (Move your mouse to the spoiler area to reveal the content) Show Spoiler Hide Spoiler
xbenas Alright. Unfortunately I hit a head ache earlier today, so I wasn't in the mood of doing anything that requires extra thinking. Tomorrow is Saturday, so I'll have lots of time to work on it. Could you explain the remaining time format? You earlier said "MONTH: DAY: HOUR: MINUTE: SECOND", but the picture seems to be missing one of those units.
Messing around too Show picture Hide picture By the way, Assist, the score on his picture are the seconds.
Assist The red one shows the seconds. Assist Also, the time (in seconds) should be simply stored on a file like the format below: View attachment 17828 Or, if that is not possible, just a separate file for every player: View attachment 17831 EDIT by Moderator: merged posts, please use the edit button instead of double posting.
xbenas Both of them are possible, I'll do whatever you prefer. Edit: I definitely underestimated the size of this project. It has been about a hour now, I just finished the coding. I'm about to test it now to see how many things I have to fix
xbenas Assist Should the time run even when the player is offline? I feel like that's better if you give them more starting time too. This makes them want to play more.