OK, so this might be a little difficult...

Discussion in 'Plugin Requests' started by BlazeLXIX, Dec 14, 2016.

Thread Status:
Not open for further replies.
  1. Offline



    What I want is a timer.

    That's been done a lot before!, I hear you say.

    Well, what I need is a pretty complex timer. I'm working on a gameshow and this timer is an integral part of it. Without this timer, this gameshow loses its originality. That's how much I need this timer.

    It's not all too complex though...


    I'd like it to be named "ClockTower", as that will be the name of the gameshow and all it will be used for.

    As I said, it will be a timer. For 1.10.2.
    But each player will have their own timer, shown beside their name in the sidebar scoreboard(ideally in minutes:seconds format but just seconds is fine). This will mean that each timer will most likely be different.

    I need to be able to set, add to, subtract from, start, and stop the timers, both all at once and individually, with the push of a button(hooked up to a command block of course).

    I also need an optional parameter in the start command to add a 1-minute delay before the countdown begins, for all timers to stop when one reaches 0, and (optionally) the anvil use sound when the timer starts, stops, or runs out.

    If possible(Absolutely NO pressure here), make it so that only command blocks can run these commands, and players cannot.

    Command ideas:
    /ct [player or target selector(this is important in the first challenge] stop
    /ct [player] add [second to add, can be negative]
    /ct [player] start [either blank or delay]
    /ct @a[some stuff] set 1800

    I don't have a set deadline, but I would very much need it before March 2017, which is, ideally, when the gameshow's first batch will record.

    What's in it for me?:

    Being a gameshow to be put up on YouTube, many people will know you have made the plugin. Your Bukkit username will be displayed in the OPENING credits, the part with the title sequence. Unless you don't want me to, that's fine.
  2. Offline


    I like the idea of this plugin so would be willing to take a look at it for you, i am working on a small project atm but i expect i can complete that either today or tomorrow so i can start work very soon.
    Last edited: Dec 16, 2016
  3. afaik you can't add command block commands, correct me if I'm wrong. Also @a would have to be done through another plugin as an API.

    @BlazeLXIX Actually, I can do this. I'll get started on it later today :)
    Last edited: Dec 15, 2016
    UnseenMC likes this.
  4. Offline


    you dont need to add command block commands.... simply by registering a command on the server you can run it in a command block and i believe all @a does it runn the command for every player on the server, it is not an actual parameter for a command
  5. Never actually tried, I'll test this tonight and see what happens.

    EDIT: @BeeJayMendrinos you are right about the command block running any registered command, but @a etc will obviously not work unless you code it to. It is an actual parameter, just inbuilt to all the premade commands.
    Last edited: Dec 16, 2016
  6. Offline


    Ah okay, i wasnt sure about the @a so thank you for clarifiying that. Even so, it is very simple to code, probably only a further 4 lines
  7. Yeah yeah I know :p want to work on this together so we can get it done super fast? @BeeJayMendrinos
  8. Offline


    Unfortunately I will be away tomorrow so i wont be able to do any work and by the time im back most of the plugin will probably be done so I will leave it for you, thanks for the offer though :)
  9. Ah alright :)

    @BlazeLXIX I'm getting started on it now, I'll update this post when it's finished!

    EDIT: @BlazeLXIX One thing, what do you mean by @a[some stuff]? I don't really want to be adding other people's code if I don't have to. If it's just doing it for all players I can do that, but what else..?
    Last edited: Dec 18, 2016
  10. Offline


    I think the 'and stuff' bit are specific attributes of the player. For example, if he wanted to target all players on the 'Green' team, he would do @a[team=Green]. I'm not sure if they want other options such as @a[r=1] etc, cause if he does it could take a lot of time to program :p
  11. Well yeah I figured that much xD but I need to know what that stuff is, I'm not taking random guesses :p Even teams would be slightly difficult since I'm already using a scoreboard for the timers themselves, I'll just see how it goes I guess. If he doesn't reply soon I'm gonna be getting on with something else though.
  12. Offline


    @BlazeLXIX Okay, so here's the thing. I just coded this to see if I could and I would like to say a few things. First off, making this support @ Whatevers was a pain so I gave up on it and made my own version. Secondly, the version of @ I made is trash. It works but only supports @r and @a in a way that makes sense to me. Thirdly, the @ things are broken... Yeah. @a chooses all players on the server, and @r chooses a random player on the server, I need to fix it to match the description of them in my project's README still. Lastly, my debug for command blocks and stuff is garbage so you may need to reference the README a lot to make this work for you. I also added a "get" command to have the timers printed out to your chat for you if you need them. Lastly, I have not had the chance to fully test this so PLEASE get back to me if you need changes made or if you find bugs. Thank you for allowing me to work on this task, even though I never really asked permission in the first place :D

    The project and all the code can be seen here: https://github.com/JRL1004/-PluginRequest-ClockTower
    The download is here: https://www.dropbox.com/s/m4pf5st5hma8e7e/ClockTower.jar?dl=0

    To anyone who may be able to help with my @ implementation, please get in touch with me, as I would greatly appreciate finding a way to improve my sub-standard version.
  13. Offline

    timtower Administrator Administrator Moderator

  14. Offline


    @timtower thank you. I will try to find a way to integrate this into my current code. Even so, my claim that making the @ notation work still stands in my mind. thank you for linking me to this resource.
    timtower likes this.
Thread Status:
Not open for further replies.

Share This Page