Filled ClickWars (Lightweight mini-mini-game plugin)

Discussion in 'Archived: Plugin Requests' started by billytheDOLPHIN, May 10, 2014.

  1. Offline

    billytheDOLPHIN

    Plugin category: Fun

    Suggested name: ClickWars

    What I want: I want a plugin for my hub servers lobby that players can play a quick round of if they are waiting for a HungerGames server or something like that to restart.

    You would have a stick in your hand that when you walked up to someone you would left click on them sending a message that you would like to play a round of clickwars. (The message would be customizable.) ex.
    %Player has requested you play a game of clickwars!
    (see below) if player were to have clickwars disabled it would say something like "sorry but %Player has clickwars disabled" (fully customizable if possible)

    To join you in a round they would then have lets say, 10 seconds to left click you back with their stick to begin a round.

    Once in a round it would open up a chest like gui (small chest) with a red and blue side divided by some lilly pads (view picture for idea)
    Capture.JPG of course the chest would be named ClickWars. (customizable name if possible)

    Oh and also before the game begins there will be a ten second scrolling countdown. (in yellow, bold)
    10,
    9,
    8,
    etc
    before it start the countdown it says your color in chat. ex. (bold red) You are Red side! (customizable messages if possible)

    The click war would be up to 100, your exp bar counting your clicks.

    The first one to get to 100 clicks wins!

    Also players will be able to toggle whether or not they are playing click wars (see below)

    Also in chat after the game it sends a msg between the two players saying who won and who lost. ex.
    "Congrats you have one this round of clickwars"
    "Aw tough luck, you lost this round of click wars"
    (Again would be nice if fully customizable)

    Thats all, its just for fun, nothing more!


    Ideas for commands: /cw (toggle whether or not you are playing clickwars)
    Click wars is now enabled! Click Wars is now disabled!
    It would be nice if those messages were customizable!

    Ideas for permissions: cw.toggle

    When I'd like it by: I would imagine this could take awhile so just keep me update on progress!

    It would also be nice if you could toggle the sticks name, lore and which slot it is located in. Also it needs to be automatically given on join (and respawn), if not already detected. And it needs to be set in place eg. cant be moved, dropped ("q" or dragged out).

    Bump Crud41 Onlineids ;)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 8, 2016
  2. Offline

    TwoPointDuck

    Just 100 clicks? or do they click something specific?
     
  3. Offline

    billytheDOLPHIN

    First one to get 100 clicks wins the game, nothing more, nothing less ;)
     
  4. Offline

    TwoPointDuck

    billytheDOLPHIN

    Ok, well I would make it so they dont open an inventory, just basically hit with their stick, since inventory clicking (cancelling) is really buggy. Is it ok if when they are in a game it just puts 1 extra stick in their inventory for every click (ill make the itemstack size 100) and there is some kinda item that also starts stacking up in the inventory to show how many points the other player has.

    Hope you get what im proposing :)
     
  5. Offline

    billytheDOLPHIN

    TwoPointDuck That sounds like a great idea. I just want to make sure that the original stick can not be dropped or dragged around.
     
  6. Offline

    TwoPointDuck

    billytheDOLPHIN

    Ye, I was woundering. Do they get this stick with a command or something?
     
  7. Offline

    billytheDOLPHIN

    I was hoping you could set it in the config so i can choose the slot the stick is located in. and make it so you cant drop or move the stick.
     
  8. Offline

    TwoPointDuck

    billytheDOLPHIN

    Do they always have this stick? Do you have a plugin that later removes it again.
    Also, what do you think about me adding more than 1 mini-minigame? Maybe a tick-tack-toe using a virtual chest, and some other things?
     
  9. Offline

    billytheDOLPHIN

    TwoPointDuck That sounds great. And yes they always have the stick.
     
  10. Offline

    TwoPointDuck

  11. Offline

    billytheDOLPHIN

  12. Offline

    Alster551

    Why do you keep tagging onlineids and crud in your post?
     
  13. Offline

    Onlineids

    Cuz im special ;)
     
  14. Offline

    TwoPointDuck

    billytheDOLPHIN

    Aito man, I'm already well into coding it, this is fun to code. I'm making it very configurable. Also, if you think of any more minigames that'd be great :)
     
  15. Offline

    billytheDOLPHIN

    TwoPointDuck Sounds perfect man, I always have crazy ideas haha!
     
  16. Offline

    TwoPointDuck

    billytheDOLPHIN

    Im getting close to being done-ish. But it got super complex considering that players can either be ingame/being challenged (by multiple people) or waiting (10s) for the game to start. It might take me some time to debug and make sure that it doesn't break for some reason.
     
  17. Offline

    billytheDOLPHIN

    Cuz they are my go to guys for plugins. :p I better add TwoPointDuck to that list now ;)

    I'm glad you are making it work! You rock haha :)

    TwoPointDuck hows the coding going? I'm super excited haha :)

    <merged by Iroh>
     
  18. Offline

    TwoPointDuck

    billytheDOLPHIN Having issues testing it, since it needs 2 people to test :p

    Think I should have a working version of the stick click thing by tmrw evening :)

    EDIT: Done with the hard part, putting in the minigames now. Maybe done today, let's see.
     
  19. Offline

    billytheDOLPHIN

    TwoPointDuck That's awesome dude! I can't wait to see what you have come up with!
     
  20. billytheDOLPHIN
    Great idea, I might use this too if you don't mind!

    TwoPointDuck
    I'm interested in seeing how you coded the match invites, are you going to release the source for the plugin? I'd personally appreciate it!
     
  21. Offline

    billytheDOLPHIN

    RAFA_GATO_FOFO Of course you can use it! Private plugins aren't allowed here on the forums!
     
  22. Offline

    TwoPointDuck

    RAFA_GATO_FOFO

    I only create public plugins anyway (if I'm not creating one for a specific player)

    On that note, I just made the invites be: If you hit sm1, you invite them to duel. If they hit you back within 30 seconds, they accept. :)

    EDIT: Gonna post the dropbox in a sec.

    EDIT 2: You will have to use a 3rd party program to fetch the code though. Not gonna github it.

    RAFA_GATO_FOFO billytheDOLPHIN

    Here's a (very likely in some way buggy) version that only has the Click Wars minigame atm.

    https://www.dropbox.com/s/rodxjoe0kmdt9yk/LobbyMinigames.jar

    Some stuff to note:
    • If you try dropping it while not op or without permission "lobbymg.nope" the item will move to the first available open slot. I did not intend this to happen, it's a Bukkit glitch and can only be fixed by them. So try keeping it in a slot that has no free slots to the LEFT of it.
    • You can config 2 things: Which minigames are enabled and which slot the stick is in.
    • If you right click with the stick it'll show you the option to pick between 2 minigames, that menu doesn't do anything yet, just ignore it.
    • Try not using this on a populated server, there might be a server stopping bug in there somewhere :)
    EDIT: After I add in the tick-tack-toe minigame I shall put it through some tough testing and remove any possible bugs.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 8, 2016
  23. Offline

    billytheDOLPHIN

  24. Offline

    TwoPointDuck

    billytheDOLPHIN

    Download it again, had to make a change. Otherwise anyone hitting anyone else will result in them challenging that person :p

    Thought of that while dreaming...
     
    IHasKojemby likes this.

Share This Page