Cuberite Forum

Full Version: cPlayer function
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So, I'm updating a plugin called: Battle of Minecraft.

The documentation doesn't really explain things clearly.

I'm asking about the AddEntityEffect function for cPlayer.
The problem is that I have put the thing correctly, but I don't know its parameters.
On the documentation it says, EffectType and then cEntityEffect. I don't know what EffectType is.

Can anyone help? Thanks.
An effectType is one of the constants from cEntityEffect. There listed here: http://mc-server.xoft.cz/LuaAPI/cEntityEffect.html
Another problem could be that the current API doesn't seem to allow creating the cEntityEffect class from Lua, so you can't really use the AddEntityEffect function. I guess we'll need to change this API somewhat. I think it would be better to leave out the cEntityEffect class from it, and just pass all the needed info to AddEntityEffect() directly as parameters.
The required parameter is EffectType. This is no documentation for EffectType.

[u]EDIT:[/uI just saw what you said. Smile
Thanks! I'll start testing it.