AcmeProject / WildernessTp

My WildernessTP plugin from spigot
GNU General Public License v3.0
13 stars 16 forks source link

Suggestion: Ability to set Min/MaxXY per world #86

Open RapidGravy opened 4 years ago

RapidGravy commented 4 years ago

Currently when you set Min/MaxXY in the config the plugin will use these limits in the overworld, end, and nether.

Suggestion: Ability to set Min/MaxXY to different values per world. The plugin does respect the worldboarder if they are different however I would like to be able to set these to different values for the following example:

Overworld, Nether, and End all have a world boarder of +/- 20k I would like to set the Wild MaxXY to 20k in the overworld, but only 5k in the Nether and End while leaving the nether and end wordlboarders set to 20k.

RoboMWM commented 4 years ago

Mind giving an example of a config with multiworld limits?

RapidGravy commented 4 years ago

Sure how about something like this:

Worldlimits:
  Server_overworld:
    MinXY: -20000
    MaxXY: 20000
  Server_nether:
    MinXY: 5000
    MaxXY: 5000
  Server_the_end:
    MinXY: -5000
    MaxXY: 5000
RoboMWM commented 4 years ago

Look like that works - but what about those who don't care about per-world limits and want a global limit?

RapidGravy commented 4 years ago

How about then changing the orginal one to default or global_limit then using world names if you dont want default. Something like this:

Worldlimits:
  Global_limit:
    MinXY: -20000
    MaxXY: 20000
  #Server_nether:
    #MinXY: 5000
    #MaxXY: 5000
  #Server_the_end:
    #MinXY: -5000
    #MaxXY: 5000

Then in the default config you can leave them commented out and only use the global limit while also making it clear for those who wish to use seperate values. If only the default/global limit is set then all worlds will use those values.

RoboMWM commented 4 years ago

Ok, that looks good, but I just thought of another way were we just keep the existing min max xy, and then that config option can be added manually (I guess can be suggested in the default config comments).

RapidGravy commented 4 years ago

Yeah sounds excellent!