Jump to content

CanEntityTakeDamage

Pending 1.2.28

Craft
Craft

Posted

Does not work, can damage the building

Craft

Posted

After annotating this hook, it will not cause any damage to the building

ZEODE

Posted (edited)

100% does work, I don't know what you mean by annotating the hook, do you mean you have removed/commented it out? If you have done this, it is not correct. Rather, you should fix the reason why you are having these issues. It sounds to me like your config is not set correctly. The hook is important because it prevents PVE plugins such as TruePVE and other similar from interfering with how this plugin works. My plugin controls damage properly for the correct functioning of the plugin. This is specified in the config for my plugin. If you remove that hook then this plugin will not function correctly. So let's work out what your issue is rather than just remove portions of code which are there for a reason.

Edited by ZEODE
ZEODE

Posted (edited)

Upload your config file please, or send in DM, or show me what you have for the following config setting for the profile or profiles where there is an issue:

        "Only owner can damage (and team if enabled)"
        "Allow Helicopter to target other players"
        "Block damage to calling players bases"
        "Block damage to other players bases"
        "Block damage to other players"
        "Block damage ALWAYS to entities in the protected prefab list"

 

Edited by ZEODE
Craft

Posted

I sent you a message file

ZEODE

Posted

Please explain what you have done. What is annotating the hook> You have commented it out? removed it?

Are you using the most up to date version? When did this issue start happening? Did it work correctly before?

Craft

Posted (edited)

5 hours ago, ZEODE said:

Please explain what you have done. What is annotating the hook> You have commented it out? removed it?

Are you using the most up to date version? When did this issue start happening? Did it work correctly before?

After installing the latest version, it appeared,After giving up this hook, everything is normal

image.png.678adde774bc3437e2343ad8d5c34aa2.png

Edited by Craft
Craft

Posted

Everything was normal before the new version

1.8m

Downloads

Total number of downloads.

8.5k

Customers

Total customers served.

128.5k

Files Sold

Total number of files sold.

2.7m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.