ProtocolLib

3M Downloads

Get ResourceKey and DimensionManager from a specific world

Haoshoku opened this issue ยท 0 comments

commented

Hi,

is it possible to get the resourcekey and dimensionmanager with ProtocolLib?
I didn't find a method to get the current data. The only thing I can do is to listen to the packet, create an own structuremodifier and cast it. This would be possible but I want the current data.

Without ProtocolLib I could just use (copied from spigot.jar)
WorldServer worldserver1 = ((CraftWorld)location.getWorld()).getHandle();
and get within this method the dimensionmanager.

Is it possible to do it with ProtocolLib or do I need to use NMS again?

Sincerely,