EnableOwner not workingBug

Players are able to chop down trees even though this is set to false.

will take a look at this for you

Same here. Players can chop down trees from owner. But cfg setting is right as always.

"EnableOwner (enables owners to chop down trees)": true,  -  does not work 😞

jhReWzVTdYtpSJK.png Bazz3l

will take a look at this for you

Dear Bazz3l. I wrote you -now over 2 Months ago due to the Tree Planter Plugin error, and you said, you will have a look. But today nothing is fixed. Other players than the TC owner, which places a tree, can chop down its trees. Nothing protects a tree from getting chopped down by someone. And yes, i set the cfg correct, but its still an issue. Please have a look. We are running PVE Servers and your Plugin is one of the nicest one. Greetz, Maxxx

The thread EnableOwner Not Working currently has state "This thread is stale" but isn't still solved or answered.

Is this plugin still under meintenance? A short answer would be nice, thanks.

hqroim8Msfq2wXh.jpg DrDBug

The thread EnableOwner Not Working currently has state "This thread is stale" but isn't still solved or answered.

Is this plugin still under meintenance? A short answer would be nice, thanks.

The author hasn't been on in a couple months, but eventually the plugin would be marked as unmaintained for someone else to maintain.

Looking at the code though, I don't see why this check wouldn't work as the owner ID is being set and checked. The only possibility I can see is if with the ID comparision, with the ulong being checked against an int.
You could try changing the below to see if that resolves it though:

if (entity == null || entity.OwnerID == 0)

To:

if (entity == null || entity.OwnerID == 0uL)




Thanks for your hint.πŸ‘
I'll try to test this before todays wipe and let you know.🀞



Merged post

I tried this in the code but unfortunately it does'nt work.
Anybody can still chop all the trees 😞

hqroim8Msfq2wXh.jpg DrDBug

Thanks for your hint.πŸ‘
I'll try to test this before todays wipe and let you know.🀞



Merged post

I tried this in the code but unfortunately it does'nt work.
Anybody can still chop all the trees 😞

Yeah, didn't think it's make a difference, just didn't see anything that stood out.

@Bazz3l
Β Will there be an update for this at some point?

It's frustrating for a base owner, when he plants trees which everyone else can shop them down again

pls help πŸ™

are you using clans / teams setting ?

jhReWzVTdYtpSJK.png Bazz3l

are you using clans / teams setting ?

nope, just playing standalone

jhReWzVTdYtpSJK.png Bazz3l

are you using clans / teams setting ?

@Bazz3lΒ this is still broken

A fix till an update gets posted, replace:

private bool IsEntityOwner(ulong userID, ulong ownerID)
{
    if (_config.EnableOwner && userID == ownerID)
        return true;

    if (_config.EnableClan && !SameClan(userID, ownerID))
        return false;

    return true;
}

with

private bool IsEntityOwner(ulong userID, ulong ownerID)
{
    if (_config.EnableOwner && userID == ownerID)
        return true;

    if (_config.EnableClan && SameClan(userID, ownerID))
        return true;

    return false;
}
5YFeanDLUiEdhkc.png beee

A fix till an update gets posted, replace:

private bool IsEntityOwner(ulong userID, ulong ownerID)
{
    if (_config.EnableOwner && userID == ownerID)
        return true;

    if (_config.EnableClan && !SameClan(userID, ownerID))
        return false;

    return true;
}

with

private bool IsEntityOwner(ulong userID, ulong ownerID)
{
    if (_config.EnableOwner && userID == ownerID)
        return true;

    if (_config.EnableClan && SameClan(userID, ownerID))
        return true;

    return false;
}

This is working great, thank you beee!!