Vampirism - Become a vampire!

Vampirism - Become a vampire!

16M Downloads

Permission API

maxanier opened this issue ยท 3 comments

commented

Make use of Forge's permission API

commented

net.minecraftforge.server.permission ->registerNode ->hasPermission
For things like sucking blood etc.

Maybe make use of de.teamlapen.vampirism.util to store permission strings, or create a dedicated file in the api packages for the permission strings.

commented

Some basic permissions have been implemented some time ago (1.12+). Just forgot to reference this issue. #442
I think I have verified that those work with Sponge but I am not entirely sure.

The implemented nodes may be deduced from this file: https://github.com/TeamLapen/Vampirism/blob/1.12/src/main/java/de/teamlapen/vampirism/util/Permissions.java
If you want to see any other additional permissions let me know

commented

SpongeForge should support this by now
SpongePowered/SpongeForge#1660