Vault

Vault

7M Downloads

Vault 1.5.0 - net.milkbowl.vault.chat.Chat.class returns null.

Chozo4 opened this issue ยท 4 comments

commented

The issue does not exist in the v1.4.1 [and earlier builds] thus have had continue using it for the time being as a result. I've been using the chat provider via Buscript to access PermissionsEx data such as the player prefix/tags as needed as part of a custom chat script. I have been accessing it via the following (.class is omitted due to already being treated as such):

PEX=server.getServicesManager().getRegistration(net.milkbowl.vault.chat.Chat).getProvider();

This has worked fine until 1.5.0 which when attempting to access will state the following via console:
[04:49:16 WARN]: [Buscript] Error running script: TypeError: Cannot call method "getProvider" of null (plugins\Buscript\startup-script.txt#30).

It is being run on the latest 1.8.1 Spigot Buildtools build.

commented

Having same issue, thx for posting it.

commented

I'll look into this later today, Vault 1.5 was built against PEX 1.22 and nothing has changed recently that I'm aware of in the registration handling.

commented

For reference sakes the following builds of PermissionsEx were also used with identical results. Both work without issue in earlier versions as I'd just updated to build # 116 but still fail under 1.5.0.

PermissionsEx build # 5 for 1.8 Spigot
https://hub.spigotmc.org/jenkins/job/PermissionsEx/
PermissionsEx build # 116 . ZML's (Author's) Repository
http://ci.nixium.com/view/PEX/job/PermissionsEx/116/

commented

can't duplicate this and can't find it as an issue. neither repository is current. Make sure you're using official builds. PEX 1.22 specifically.