[SPIGOT-7195] Method #isDataPackEnabled Created: 07/Dec/22  Updated: 25/Dec/24  Resolved: 30/May/23

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

Type: New Feature Priority: Minor
Reporter: Shane Bee Assignee: Doc
Resolution: Fixed Votes: 2
Labels: None

Version: 1.19.3+
Guidelines Read: Yes

 Description   

Due to Minecraft 1.19.3 having data packs to enable "experimental features" and the Bukkit API having methods/classes for things that will only be available on the server is said datapack is enabled, could you please add a method, something along the lines of:
Server#isDatapackEnabled(NamespacedKey)

This way plugins can check if the data pack is enabled, ex: "update_1_20", before attempting to use Camel, or new materials, etc.

Thank you



 Comments   
Comment by Doc [ 07/Dec/22 ]

Yeah this mostly require add a class to represent a resourcepack with the all the current info..

In this days i can take a look for make a PR for this.

Generated at Tue Apr 08 01:21:07 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.