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!
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.
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
jsprouts https://www.dropbox.com/s/dp3w5w2c2tugc3c/RegionLeaveCommand.jar Added a message when you create the area added /rlc list, please give me that output
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}"
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.
It checks every 5 sec if somebody is in that area, but I will add some debug things when I have time for it
I still won't work, it will just say Checking the area's and will never say anything else or restore it.
https://www.dropbox.com/s/dp3w5w2c2tugc3c/RegionLeaveCommand.jar This will give more messages, really need to know where the error is, This version will also put in messages at startup!
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.
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
wait you want it so when everyone looses or quits the game that the world resets right? so the map inst completly destroyed.
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
https://www.dropbox.com/s/dp3w5w2c2tugc3c/RegionLeaveCommand.jar Try this, you should get some messages every 5 seconds
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
jsprouts That log really helped me ( Not being sarcastic ) https://www.dropbox.com/s/dp3w5w2c2tugc3c/RegionLeaveCommand.jar
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 good luck on figuring it out (not being sarcastic)
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
jsprouts The spamming works totally fine And I found the error, the plugin isn't loading the area from the config correctly. Or not adding right... new version: https://www.dropbox.com/s/dp3w5w2c2tugc3c/RegionLeaveCommand.jar
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.