IntellectualSites / PlotSquared

PlotSquared - Reinventing the plotworld
GNU General Public License v3.0
543 stars 747 forks source link

Could not pass event PlayerTeleportEvent to PlotSquared v6 #3081

Closed mibby closed 3 years ago

mibby commented 3 years ago

Server Implementation

Tested with the following;

Paper dev 769 Tuinity dev 235 Purpur dev 1161 Airplane purpur branch build 226

Server Version

1.16.5

Describe the bug

I wasn't really sure about opening a ticket for PlotSquared v6 issues on the issue tracker until it was merged into main, but wanted to let you know of an issue I came across testing various plugins before 1.17 is out.

PlotSquared v6 compiled as of commit https://github.com/IntellectualSites/PlotSquared/commit/24945efc7d51e32ae87db4caf4041ced01f2bbfb Citizens v2.0.27-SNAPSHOT (build 2317) Java 16.0.1

PlotSquared seems to output PlayerTeleportEvent NoSuchPlayerExceptions at start-up initialization, assuming for each Citizens2 NPC that is loaded. There is no full exception in the log, just the truncated lines. This happens before the server is done loading and before anyone connects.

[14:04:35] [Server thread/ERROR]: Could not pass event PlayerTeleportEvent to PlotSquared v6.0.0-SNAPSHOT
com.plotsquared.core.util.PlayerManager$NoSuchPlayerException: There is no online player with UUID '1436a43e-51a4-213e-93c0-16ee1e2b0732'
[14:04:35] [Server thread/ERROR]: Could not pass event PlayerTeleportEvent to PlotSquared v6.0.0-SNAPSHOT
com.plotsquared.core.util.PlayerManager$NoSuchPlayerException: There is no online player with UUID '9d2423a7-c81e-2642-ac55-a810cba4110b'
[14:04:35] [Server thread/ERROR]: Could not pass event PlayerTeleportEvent to PlotSquared v6.0.0-SNAPSHOT
com.plotsquared.core.util.PlayerManager$NoSuchPlayerException: There is no online player with UUID 'd6fe980d-f345-26bc-a869-0e12cbb763b7'
[14:04:35] [Server thread/ERROR]: Could not pass event PlayerTeleportEvent to PlotSquared v6.0.0-SNAPSHOT
com.plotsquared.core.util.PlayerManager$NoSuchPlayerException: There is no online player with UUID '2644ec12-03c2-2f86-b8d6-83e3e50797d1'
[14:04:35] [Server thread/ERROR]: Could not pass event PlayerTeleportEvent to PlotSquared v6.0.0-SNAPSHOT
com.plotsquared.core.util.PlayerManager$NoSuchPlayerException: There is no online player with UUID '1d6b65f5-4fd2-2de0-b3d8-4be0b9df2f54'
[14:04:35] [Server thread/ERROR]: Could not pass event PlayerTeleportEvent to PlotSquared v6.0.0-SNAPSHOT
com.plotsquared.core.util.PlayerManager$NoSuchPlayerException: There is no online player with UUID 'e726d912-b502-2976-bd49-f447ebbd86f1'
[14:04:35] [Server thread/ERROR]: Could not pass event PlayerTeleportEvent to PlotSquared v6.0.0-SNAPSHOT
com.plotsquared.core.util.PlayerManager$NoSuchPlayerException: There is no online player with UUID '72c27899-89ca-2106-8210-3228325c04dd'
[14:04:35] [Server thread/ERROR]: Could not pass event PlayerTeleportEvent to PlotSquared v6.0.0-SNAPSHOT
com.plotsquared.core.util.PlayerManager$NoSuchPlayerException: There is no online player with UUID 'cc97a9c9-6a73-2e3b-bdaf-ec5bc8a46d84'
[14:04:35] [Server thread/ERROR]: Could not pass event PlayerTeleportEvent to PlotSquared v6.0.0-SNAPSHOT
com.plotsquared.core.util.PlayerManager$NoSuchPlayerException: There is no online player with UUID 'b4d79fd4-ab65-20cd-95c2-6670c81b6b76'
[14:04:35] [Server thread/ERROR]: Could not pass event PlayerTeleportEvent to PlotSquared v6.0.0-SNAPSHOT
com.plotsquared.core.util.PlayerManager$NoSuchPlayerException: There is no online player with UUID 'c67f7391-bc20-2074-85c0-4a992935d809'
[14:04:35] [Server thread/ERROR]: Could not pass event PlayerTeleportEvent to PlotSquared v6.0.0-SNAPSHOT
com.plotsquared.core.util.PlayerManager$NoSuchPlayerException: There is no online player with UUID '372e23fb-1e63-2f5f-b669-7f9dea18894d'
[14:04:35] [Server thread/ERROR]: Could not pass event PlayerTeleportEvent to PlotSquared v6.0.0-SNAPSHOT
com.plotsquared.core.util.PlayerManager$NoSuchPlayerException: There is no online player with UUID 'bf0a267e-1a8e-2651-a13f-223327fe9896'
[14:04:35] [Server thread/INFO]: [Citizens] Loaded 17 NPCs.

To Reproduce

  1. Start server.
  2. Look at initialization logs.
  3. See exception warnings before "done" line.

Expected behaviour

No NoSuchPlayerException errors caused by NPCs?

Screenshots / Videos

No response

Error log (if applicable)

No response

Plot Debugpaste

Irrelevant to report.

PlotSquared Version

PlotSquared v6.0.0-SNAPSHOT

Checklist

Anything else?

This is not an issue and doesn't occur with v5 on Java 11 with the same environment, plugins & dev versions. Using default generated configs for testing.

NotMyFault commented 3 years ago

Don't modify the template and take the time to fill it out properly.