16 Commits

Author SHA1 Message Date
octacian
f4b3158521 Fix do_not_move
Would send message stating that the teleportation was interrupted but the player would still be teleported. This adds a check just before teleportation to make sure that the player hasn't moved.
2017-03-22 22:35:52 -07:00
octacian
f343dcae3d Add /spawnpoint command
Displays spawnpoint if set.
2017-03-22 22:30:12 -07:00
octacian
e400c183d6 Throw error if no spawnpoint set
Prevents attempting to teleport the player if no spawnpoint is set. Instead returns a message saying "No spawnpoint set!"
2017-03-22 22:27:12 -07:00
octacian
5051305c51 Fix description on /setspawn chatcommand 2017-03-22 22:26:05 -07:00
octacian
10e61f6da4 Fix crash on game exit
Game would crash entirely on exit if `spawnpoint.pos` was `nil` because `minetest.pos_to_string` would fail.
2017-03-22 22:25:45 -07:00
octacian
018d1050d7 Fix crash on new worlds
Because spawnpoint.conf did not exist, the game would not load. This was previously attempted to be fixed in 4de1fd23bcc15253fee1bfac440ee884eb515549 but the fix was not successful.
2017-03-22 22:21:04 -07:00
octacian
4de1fd23bc Fix crash if spawnpoint.conf does not exist 2017-03-14 20:46:02 -07:00
octacian
5844868589 Add teleportation countdown 2017-03-08 20:51:37 -08:00
octacian
faf9e2824f Remove after decimal before saving positions
Adds helper function, spawnpoint.pos_clean, to strip off everything past the decimal point when saving a new spawnpoint position.
2017-03-08 17:47:26 -08:00
octacian
fb42e1c504 Add screenshot 2017-03-08 14:40:54 -08:00
octacian
6a9b006558 Update README 2017-03-08 14:20:56 -08:00
octacian
d1a9c7ffa8 Add chatcommands 2017-03-08 14:01:17 -08:00
octacian
2761dd5128 Fixes 2017-03-08 14:00:58 -08:00
octacian
6a62b2bd56 Add basic helpers
Allows loading, saving, setting, and bringing player to spawnpoint.
Includes save and bring code on respawnplayer.
2017-03-08 12:48:08 -08:00
octacian
8bff3bf0b1 Add logger 2017-03-08 12:47:19 -08:00
octacian
a87c06ae0d Initial Commit 2017-03-08 12:33:22 -08:00