bergerhealer / BKCommonLib

An extensive library used in bergerhealer's plugins
Other
181 stars 45 forks source link

Can't create a entity?? #106

Closed ChefBierfles closed 1 year ago

ChefBierfles commented 4 years ago
BkCommonLib version: 1.16.2-v1
Spigot version: Paper spigot build 189 (Latest for 1.16.2)

Problem or bug: I cannot seem to create an player entity it throws an error and i've tried multiple spigot / commonlib versions.

Error message: https://pastebin.pl/view/23ce8055 Code: https://pastebin.pl/view/a1848c0c. PlayerQuitHandler is called when a player drops an item (Debug purposes)

Thanks in advance! I really can't wrap my head arround it.

bergerkiller commented 4 years ago

What type of entity are you creating? Creating (hooked) entity players is not something that works I think

ChefBierfles commented 4 years ago

Yeah Entity players seems broken. Once I change the EntityType to something like a villager it works flawless. Thanks in advance! I've also found that once you want to remove a entity you have to clear the controllers first with CommonEntity.clearControllers() otherwise it will throw all sorts of exceptions.

bergerkiller commented 4 years ago

Since all I really use it for are minecart entities, it's not something that is being tested a lot. But it's good to document issues like this. I don't think I can make hooked player entities work, since they require a lot of extra logic, like the network connection and stuff.

bbayu123 commented 1 year ago

Closing issue, yes it's not possible to create player entities.