Filled Simple World Reset.

Discussion in 'Archived: Plugin Requests' started by jsprouts, Aug 23, 2013.

  1. Offline

    jsprouts

    timtower can you please work on the plugin, I need this really bad for my server
     
  2. Online

    timtower Administrator Administrator Moderator

    Working on it
    EDIT: Done, https://www.dropbox.com/s/dp3w5w2c2tugc3c/RegionLeaveCommand.jar
    Permission to use it: regionleavecommand.use
    Command: /rlc <create/delete> <name>
    Dependency's
    WorldEdit for creating the selections
    http://dev.bukkit.org/bukkit-plugins/pylamo-restoration-system/ For restoring

    Important note: The name of the area has to be the same as the one of the pylamo restore plugin!
     
  3. Offline

    jsprouts

    Thank you so much!

    timtower When I try to make a region with this it does not say anything in the chat and will not restore anything

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 4, 2016
    timtower likes this.
  4. Online

    timtower Administrator Administrator Moderator

    Can you check the config? And I forgot to add the messages XD
     
  5. Offline

    jsprouts

    This is the config:

    arena:
    Potato:
    p1: BCTF,569.0,-3.0,-13.0
    p2: BCTF,577.0,11.0,-1.0
     
  6. Online

    timtower Administrator Administrator Moderator

    Did you also made a region with pylamo with the same name?
     
  7. Offline

    jsprouts

    yes

    RestorationRegion:
    name: Potato
    world: BCTF
    startx: 568.0
    starty: 0.0
    startz: -17.0
    endx: 580.0
    endy: 10.0
    endz: 0.0
    timer enabled: false
    timer time: 10
     
  8. Online

    timtower Administrator Administrator Moderator

  9. Offline

    jsprouts

    Ok I am trying it out

    Edit: Typing "rlc list" says the available commands for the plugin and will not work.
    Also, the restoration will still not start when you leave the region.
    Maybe it should give you the option to add whatever command you want when you leave a region, so you could kill someone when you leave somewhere to say. You could then activate the restoration by using the command "prs restore {name}"
     
  10. Online

    timtower Administrator Administrator Moderator

    Are you sure that you have the right version?
     
  11. Offline

    jsprouts

    Yes I am, it will say that "rlc list" is a command but it doesn't work.

    BTW: I edited the last post a bit.

    Also, will the plugin work and regenerate the region if you are tped out of the region, instead of walking out?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 4, 2016
  12. Online

    timtower Administrator Administrator Moderator

    It checks every 5 sec if somebody is in that area, but I will add some debug things when I have time for it
     
  13. Offline

    jsprouts

    When I leave the area I wait awhile and it still will not reset.
     
  14. Online

    timtower Administrator Administrator Moderator

  15. Offline

    jsprouts

  16. Online

    timtower Administrator Administrator Moderator

  17. Offline

    jsprouts

    Well I tested it out, and the problem is that even while I am in the area, it will still detect 0 players in the area. Also, the /rlc list command still does not work.
     
  18. Online

    timtower Administrator Administrator Moderator

    What do you get on startup?
     
  19. Offline

    jsprouts

    Well I just figured out that it does not make an area within, the two positions. It will only detect a player if they are directly in the position 1 or 2. Not between.

    My area name is p. Instead of running "/prs restore p" it ran "/prs restore null".

    The startup was:
    2013-09-02 14:20:36 [INFO] [RegionLeaveCommand] Loading RegionLeaveCommand v0.0.1
    2013-09-02 14:21:02 [INFO] [RegionLeaveCommand] Enabling RegionLeaveCommand v0.0.1
    2013-09-02 14:21:02 [INFO] [RegionLeaveCommand] Loading area p
     
  20. Offline

    georgsterman567

    wait you want it so when everyone looses or quits the game that the world resets right? so the map inst completly destroyed.
     
  21. Online

    timtower Administrator Administrator Moderator

    Just a restore when nobody is in the region, if you want to work on it then I can give you my source if you want
     
  22. Offline

    jsprouts

    Do you know what the problem is?
     
  23. Online

    timtower Administrator Administrator Moderator

  24. Offline

    jsprouts

    It does not work:

    I just figured out that it does not make an area within, the two positions. It will only detect a player if they are directly in the position 1 or 2. Not between.

    My area name is p. Instead of running "/prs restore p" it ran "/prs restore null".

    The startup was:
    2013-09-02 14:20:36 [INFO] [RegionLeaveCommand] Loading RegionLeaveCommand v0.0.1
    2013-09-02 14:21:02 [INFO] [RegionLeaveCommand] Enabling RegionLeaveCommand v0.0.1
    2013-09-02 14:21:02 [INFO] [RegionLeaveCommand] Loading area p

    I made 2 areas and it would only detect one area and only when you are in the specific block that you set as p1 or p2. It will not detect the area in between and it will only detect one area.

    2013-09-02 14:54:51 [INFO] [RegionLeaveCommand] Main plugin is checking the area's
    2013-09-02 14:54:51 [INFO] [RegionLeaveCommand] Number of area's to check: 1
    2013-09-02 14:54:51 [INFO] [RegionLeaveCommand] Number of players in area null, 1
    2013-09-02 14:54:56 [INFO] [RegionLeaveCommand] Checking the area's
    2013-09-02 14:54:56 [INFO] [RegionLeaveCommand] Main plugin is checking the area's
    2013-09-02 14:54:56 [INFO] [RegionLeaveCommand] Number of area's to check: 1
    2013-09-02 14:54:56 [INFO] [RegionLeaveCommand] Number of players in area null, 0
    2013-09-02 14:54:56 [INFO] [RegionLeaveCommand] Running command: 'prs restore null', true
     
  25. Online

    timtower Administrator Administrator Moderator

  26. Offline

    jsprouts

  27. Offline

    georgsterman567

    no i dont wanna work on it ive never made a plugin in my life XD.
    it would be great if you finished this im gonna use it too when it works :D
    good luck on figuring it out (not being sarcastic)
     
    timtower likes this.
  28. Offline

    jsprouts

    timtower I tested it out and it will not detect me:
    2013-09-02 16:07:06 [INFO] [RegionLeaveCommand] Checking the area's
    2013-09-02 16:07:06 [INFO] [RegionLeaveCommand] Main plugin is checking the area's
    2013-09-02 16:07:06 [INFO] [RegionLeaveCommand] Number of area's to check: 0
    2013-09-02 16:07:11 [INFO] [RegionLeaveCommand] Checking the area's
    2013-09-02 16:07:11 [INFO] [RegionLeaveCommand] Main plugin is checking the area's
    2013-09-02 16:07:11 [INFO] [RegionLeaveCommand] Number of area's to check: 0
    2013-09-02 16:07:16 [INFO] [RegionLeaveCommand] Checking the area's
    2013-09-02 16:07:16 [INFO] [RegionLeaveCommand] Main plugin is checking the area's
    2013-09-02 16:07:16 [INFO] [RegionLeaveCommand] Number of area's to check: 0
    2013-09-02 16:07:21 [INFO] [RegionLeaveCommand] Checking the area's
    2013-09-02 16:07:21 [INFO] [RegionLeaveCommand] Main plugin is checking the area's
    2013-09-02 16:07:21 [INFO] [RegionLeaveCommand] Number of area's to check: 0
    2013-09-02 16:07:26 [INFO] [RegionLeaveCommand] Checking the area's
    2013-09-02 16:07:26 [INFO] [RegionLeaveCommand] Main plugin is checking the area's
    2013-09-02 16:07:26 [INFO] [RegionLeaveCommand] Number of area's to check: 0
    2013-09-02 16:07:31 [INFO] [RegionLeaveCommand] Checking the area's
    2013-09-02 16:07:31 [INFO] [RegionLeaveCommand] Main plugin is checking the area's
    2013-09-02 16:07:31 [INFO] [RegionLeaveCommand] Number of area's to check: 0
    2013-09-02 16:07:36 [INFO] [RegionLeaveCommand] Checking the area's
    2013-09-02 16:07:36 [INFO] [RegionLeaveCommand] Main plugin is checking the area's
    2013-09-02 16:07:36 [INFO] [RegionLeaveCommand] Number of area's to check: 0
     
  29. Online

    timtower Administrator Administrator Moderator

  30. Offline

    jsprouts

    I know the spamming isn't broken, but can be annoying to spam up the server log. I was thinking that you could add an option to turn it off. Also, it still says that there are 0 areas to check even after I make an area.
     

Share This Page