Code error

Status
This thread has been locked.

Venux

CEO | Owner of multiple servers | Developer |
Banned
Feedback score
9
Posts
562
Reactions
90
Resources
0
Hey mc market,
I get this error for the Worldguard API:
Code:
    public static boolean allowsPVP(@NotNull Location loc) {
        if(isEnabled())return true;
        ApplicableRegionSet set = com.sk89q.worldguard.bukkit.WGBukkit.getPlugin().getRegionManager(loc.getWorld())
                .getApplicableRegions(loc);
        if (set.queryState(null, DefaultFlag.INVINCIBILITY) != StateFlag.State.ALLOW) {
            set.queryState(null, DefaultFlag.PVP);
        } else return false;
        return true;
I get the error at set.queryState. It says its undefined....
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

PTech

Feedback score
6
Posts
422
Reactions
261
Resources
0
Then you either:
- skidded
- tried to invoke a non-existent method.
 

Venux

CEO | Owner of multiple servers | Developer |
Banned
Feedback score
9
Posts
562
Reactions
90
Resources
0
Then you either:
- skidded
- tried to invoke a non-existent method.
No this is a normal method... just search worldguard API and you find this... but this doesnt work for me.
 
Banned forever. Reason: Scamming (https://builtbybit.com/threads/venux-scam-report.458594/)

Venux

CEO | Owner of multiple servers | Developer |
Banned
Feedback score
9
Posts
562
Reactions
90
Resources
0
Banned forever. Reason: Scamming (https://builtbybit.com/threads/venux-scam-report.458594/)

Venux

CEO | Owner of multiple servers | Developer |
Banned
Feedback score
9
Posts
562
Reactions
90
Resources
0
Yes, and then try it. You also might be looking at old documentation so check that.
The jar is updated so I dont know what I do wrong
 
Banned forever. Reason: Scamming (https://builtbybit.com/threads/venux-scam-report.458594/)
Status
This thread has been locked.
Top