[SPIGOT-7680] `/weather` command should use world of sender (if present) Created: 04/Jun/24  Updated: 25/Dec/24  Resolved: 07/Jun/24

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Shane Bee Assignee: md_5
Resolution: Fixed Votes: 1
Labels: None

Version: n/a
Plugin: n/a
Guidelines Read: Yes

 Description   

I just recently noticed the vanilla `/weather` command only works in the overworld.
To verify, I see this in vanilla code in the command class:
`var0.getServer().overworld().setWeatherParameters(...`

I would like to make the suggestion to have this changed to use the world of the sender (if a player) else fallback to overworld.

I would find this useful because I was hanging out in a custom world, and realized (after much too long) that I couldn't stop the rain.



 Comments   
Comment by Shane Bee [ 07/Jun/24 ]

thank you 😊

Comment by md_5 [ 05/Jun/24 ]

It's pretty usual for Spigot to break vanilla logic into per world, so I'm ok with Shane's original proposal. See, eg, gamerule

Comment by Shane Bee [ 04/Jun/24 ]

it doesn't, as per the code I've previously sent, its hardcoded for the overworld

Comment by coll1234567 [ 04/Jun/24 ]

You should be able to do /execute in <dimension> run weather etc.

Comment by Shane Bee [ 04/Jun/24 ]

oh yeah that is fair, I didn't really think about the logic there.
Probably best to just write my own plugin to handle it.

Comment by Janmm14 [ 04/Jun/24 ]

Your proposed change would make this not work like vanilla when executed in default nether or end world - more complex logic or a plugin is needed.

Generated at Tue Apr 15 11:10:05 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.