Error code:
Source code:
I don't write in Java, so I can't really say much about it.
But somehow I don't see a place where the void is called
SpawnEntity spawns the entity and returns the spawned entity at the same time
There you are trying to spawn an entity asynchronously. Apparently that is not possible.
Try it like this:
Bukkit.getScheduler (). ScheduleRepeatSyncTask (Bukkit.getPluginManager (). GetPlugin ("PLUGINNAME"), () → {
Entity skelleton = p.getWorld (). SpawnEntity (p.getLocation (), EntityType.SKELETON);
}, 1000L, 30000L);
(Or something like xd
I did not copy the class in which I call the class "vassals", because otherwise it could be too much