dumptruckman/FirstSpawn — Issue #1: Teleports everyone after every restart
Author: JayEffKay
Created: 2012-02-01 16:10:09+00:00
State: open

Hi, I was the one who requested this piece of code and I promised to get back on you with the results. I'm sorry, but better late then never.
I did not use this method and instead falled back on checking if the player's dat-file exists or not. This is because after some testing I found that the method Player.hasPlayedBefore() will return false the first time a player enters EVERY SESSION. That means that after a restart of the server (which happens regularly in this case) all players who join will be teleported again and that obviously not what I want.
Eventually I've been able to completely mangle the HeroSpawn script and make it work on our server, still for the feature to actually work some tricks with custom commands and permissions were needed as well. I might some day do a complete remake of the script, although something like it has actually been released a while ago, called AcceptRules.
Anyway, thanks again for the effort, if anything happens I'll let you know,

JFK