InventivetalentDev / CompactNPCLib

Library to create NPCs
MIT License
22 stars 9 forks source link

Spawn a Player after Reload #35

Open MatArtz opened 7 years ago

MatArtz commented 7 years ago

What steps will reproduce the problem?

  1. Spawn FakePlayer after Reload (Code: http://pastebin.com/pWRBi45H).
  2. Reload the Server, if you are only reloading the Plugin then get i no errors.

What were you expecting to happen? What happened instead?

I think it's NickNamer because without the plugin I get no errors and the skins are not loaded. With the plugin the skins are loaded but after the Reload comes the error and the skins are also not loaded. Sorry if it is my fault. Another question, is that normal that the Wiki not working? Screenshot: http://prntscr.com/ehitbd

Edit: If you reloaded the Server and try to reconnect you get an error and will be kicked. (http://pastebin.com/m8m7NnS3)

What version of the plugin are you using? Type /version <Plugin Name>

2.5.0-SNAPSHOT

What Spigot version are you using? Type /version

1.11.2-R0.1-SNAPSHOT

What plugins are you using? Type /plugins

PacketListenerAPI, MapManager, Vault, Multiverse-Core, ProtocolLib, NickNamer, AnimatedFrames, HideAndCustomPlugins, NPCLib, CubeLife(Own)

Do you have an error log? Use pastebin.com. If you're not sure, upload your whole server log

http://pastebin.com/VJcPANqQ

Did your client crash? Upload errors in .minecraft/logs/latest.log as well

It did not.

Additional information? (Are you using Bungeecord? Did it work in previous versions? etc.)

I'am using Spigot and its my first time to use this API

InventivetalentDev commented 7 years ago

Do you really need to spawn the entities in onEnable? Why don't you just delay the spawn by a few seconds if it works otherwise?

MatArtz commented 7 years ago

I don't really need this but a delayed scheduler didn't works and also with a command get I the error.

MatArtz commented 7 years ago

And if I try to connect I'll be kicked and it says Internal server error.

InventivetalentDev commented 7 years ago

Well, then this issue isn't specifically about spawning a NPC in ´onEnable`.

Does this only happen after you have reloaded the server? Reloading on Spigot generally isn't a good idea, but this plugin does dynamic class generation which is absolutely not guaranteed to work after reloading. So I'd just advise you to restart the server instead.

MatArtz commented 7 years ago

Okay thank you. But this plugin generates thousands team score boards with 0 players. And after a server restart generate new teams and didn't delete the old