Players are able to chop down trees even though this is set to false.
EnableOwner not workingBug
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 π
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.
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 π
Yeah, didn't think it's make a difference, just didn't see anything that stood out.DrDBug
Thanks for your hint.π
I'll try to test this before todays wipe and let you know.π€
Merged postI tried this in the code but unfortunately it does'nt work.
Anybody can still chop all the trees π
@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 ?
Bazz3l
are you using clans / teams setting ?
nope, just playing standalone
@Bazz3lΒ this is still brokenBazz3l
are you using clans / teams setting ?
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;
}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!!