This might be a duplicate, or I am completely shooting in the weeds here, however - I received a report today where a player was placing and picking up buildable's and receiving XP each time.
Put down door +5xp
Pickup door
Put down door +5xp
Pickup door
It is the same door being placed in the same position over and over again. I briefly checked plugin code and it seems between line 8661:8667 is where the XP for placing buildable is granted and no other check but the cooldown is performed.
if (config.xpBuilding.buildxpdelay && (GetPlayerCooldown(player.userID, "build") != 0))
{
_buildCooldowns[player.userID] = CurrentTime + config.xpBuilding.buildxpdelayseconds;
allowxp = false;
}
_buildCooldowns[player.userID] = CurrentTime + config.xpBuilding.buildxpdelayseconds;
if (allowxp) GainExp(player, addxp);
I can cause a cooldown to help with this, though this seems like I just have to wait a bit longer to exploit the mechanics. Is this a bug? Intended? Am I over-reacting? Thank you.