change game mode with timer

Discussion in 'Archived: Plugin Requests' started by racertwist, Oct 15, 2012.

  1. Offline

    racertwist

    Hi i just joined bukkit i am familiar with bukkit and plugins but i havnt found a plugin i need.
    i need a plugin that will allow me to change the game mode on timer (or world ticks). for example: if a player enters a world he is in survival. he gets the whole day to build and then at night time his game mode is changed to adventure mode. But it wont be changed back until he dies, when all players die or leave the world then the game mode is set back to survival. so when the players enter the world again they come in the survival mode and the process repeats.

    command ideas:
    /gmtimer [when gm changes] [gm] [world]


    it would help if i get the plugin soon but i dont have a dead line right now.
    Please make this plugin it woll make me very happy :D
     
  2. Offline

    oman9589

    If you simply want a plugin that gives a user a gamemode for a certain amount of time, this should be relatively easy.
    Contact me either through PM or Skype (oman95891) to talk more.
     
  3. Offline

    IcyRelic

  4. Offline

    racertwist

    he is working on it but thankyou :D
     
  5. Offline

    racertwist

    ok its been a freaking month and no reply so can someone else make this for me?
     
  6. Offline

    eccentric_nz

    So do you want it so that the game mode is switched after a set amount of time (e.g. one minecraft day) or at a set time (e.g. a soon as it is night)?
     
  7. Offline

    racertwist

    when it is midnight, as soon at it is
     
  8. Offline

    Kiakaha

    He wants
    1. "At nightfall, any player on server who is in Survival is switched to Adventure"
    2. "At player respawn (After deaths) player is given Survival"
    3. He probably also would like a permission to exempt certain players from the changes (my own addition)
    He's trying to achieve.

    Players have a limited time to build each day before i guess a mass pvp battle occurs each night?

    Then i guess the game would be. who can stay in Adventure mode the longest (king of the hill style)

    I reckon this would make for a really fun world where its omfg build faster because at night noone has anything better to do than FIGHT!

    eccentric_nz
    I don't know enough about coding but... this http://dev.bukkit.org/server-mods/extra-events/ seems like it was made for this exact kind of task and so hooking into it would save you some of the coding time? that was my impression anyway.

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

    racertwist

    its for a zombie survival :p and 1. at nightfall any player in the specified world is switched to adventure from survival
     
  10. Offline

    Kiakaha

    yeah, sounds fun. I'd come have a go :)
     
  11. Offline

    racertwist

    :D thanks dude
     
  12. Offline

    eccentric_nz

  13. Offline

    racertwist

    :D success!!! now it would be better if you can make it that its always night until all players in the world leave, plus when a player limit reaches then no more players can join, this will help alot!
    ps: thankyou for helping out a bro!
     
  14. Offline

    eccentric_nz

    1. I should be able to adapt code from my All day or all of the night plugin: http://dev.bukkit.org/server-mods/all-day-and-all-night/ for this.
    2. How do players join/arrive at the world? do they TP there or use a portal of some kind?
     
  15. Offline

    racertwist

    they teleport and thats great news! thanks mate!
     
  16. Offline

    eccentric_nz

    racertwist likes this.
  17. Offline

    racertwist

    tested
    i found 2 bugs,
    one is that in adventure mode you can build but cant break
    and 2 the /gmt set_morning command doesnt work


    and another thing is that when you set how many players can you make it so that you cant join until the last one dies? so when the limit is reached other players cant join until they last player dies XP
    this is such a great plugin for my server thankyou! really appreciate it!
     
  18. Offline

    eccentric_nz

    Adventure mode does allow building and crafting, and you can break blocks if you use the right tool see: Adventure - Minecraft Wiki

    Will start the other stuff now

    Just checked the
    Code:
    /gmt set_morning [world] [true|false]
    and seems to be working fine

    When a player dies they respawn in the same world.

    If the player limit has been reached, when they die shouldn't they be teleported to another world so that you end up with a last man standing scenario?

    Then once the last player dies, they could be added to a leader board with their survival time since the game mode switch, and then everything is reset and players can join again...

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

    racertwist

    my server makes it so that when they die it already sends the player to spawn, even if they slept in a bed or /sethome
    and i like the leader board idea!
     
  20. Offline

    racertwist

    hi again i'm so close to finishing my server! how close are you to finishing?
    and i thought that adventure would disable building and breaking entirely, so can you replace adventure with no build permission? thanks!
    (merry xmas and a happy new year btw)
     
  21. Offline

    racertwist

    oh and
    eccentric_nz
    can you make this a little more private i want my server to be really unique
     

Share This Page