Commit Graph

150 Commits

Author SHA1 Message Date
David Leal
215fd428cd
Update copyright notices to 2021 2021-01-12 14:24:17 -06:00
David Leal
a11e162bf7
Complete 1 task from TODO list (#30)
- Area owners can now accept area requests from other users.
- Various message improvements.
- Translation updates.

Only compatible with `areas` mod (https://github.com/minetest-mods/areas).
2020-04-07 10:48:22 -05:00
David Leal
ccd6044b19
Senders can deny their own requests (#32) 2020-03-04 10:41:01 -06:00
David Leal
b418b67920
Add new warp sound (#29)
Co-authored-by: ChaosWormz <ChaosWormz@users.noreply.github.com>
2020-01-21 15:31:11 -06:00
David Leal
4d609719ed
Add Factorio Luacheck (#25)
See https://github.com/marketplace/actions/factorio-mod-luacheck for more information.
2020-01-16 14:10:15 -06:00
David Leal
390ce2d199
Divide into various files
Commands, privileges and functions are divided into various files.
2020-01-09 21:13:59 -06:00
Panquesito7
6fd408f5dd
Adjust various lines of code 2020-01-08 14:04:38 -06:00
Panquesito7
2620063046
Fix compatibility with beerchat
Tested; works.
2020-01-05 14:25:15 -06:00
coil
9f99764820 Fix compatibility with beerchat muting (#21) 2020-01-02 18:30:53 -06:00
Panquesito7
065d59ca6b
Fix beerchat compatibility
Untested.
2020-01-01 20:50:00 -06:00
Panquesito7
95b44fde7d
Improve the code 2020-01-01 20:00:50 -06:00
Panquesito7
c8a67de651
Update copyright notices to 2020 2020-01-01 13:50:42 -06:00
OgelGames
bb15b744ff check if node is registered before checking if walkable 2019-12-30 18:49:22 +11:00
Panquesito7
06c076a885
Various improvements
Small changes; and improvements on readability
2019-12-01 19:11:07 -06:00
Panquesito7
723a0ad42d
Add support for gamehub (UNTESTED)
By @shivajiva101.
2019-11-22 13:50:10 -06:00
Panquesito7
50619558ce
Various readability improvements 2019-11-22 13:02:50 -06:00
Panquesito7
ed265b0dfb
Update init.lua 2019-09-05 20:04:19 -05:00
Panquesito7
c86beab20d
Update init.lua 2019-08-16 12:09:41 -05:00
Panquesito7
e4ed515d1f
Add chat2 support
This commit adds chat2 support (https://github.com/minetest-mods/chat2).
Tested with MT/MTG 5.0.1 and works pretty well.

If there's any bug/error/typo, please tell me, so, I can fix it.
2019-08-06 22:19:30 -05:00
Panquesito7
6c0f492fc2
Update init.lua 2019-08-05 23:07:02 -05:00
Panquesito7
d6cf756769
Support for beerchat (UNTESTED)
Thanks to @6r1d for the idea!
This commit also improves the mod and makes the mod better.
2019-08-05 23:04:38 -05:00
Panquesito7
c6b8df9d6f
Big improvement
Almost done, looking into some issues that needs fixing.
2019-08-02 19:31:03 -05:00
Panquesito7
5f424b9b1f
Update init.lua 2019-07-31 22:05:14 -05:00
Panquesito7
2f31f0c317
Add a new function
This commit improves "/tpy" command:
When a player receives more than 1 teleport request and types /tpy, a message will be sent to the receiver telling him the list of the requests sent to him. He must use the player name as a param, so, he will teleport to the specified player (e.g.: /tpy foo).

THIS IS AN UNTESTED FUNCTION. IT MAY RESULT IN A CRASH OR MAY CAUSE ANOTHER BUGS. CHECK IT AT YOUR OWN RISK.
2019-07-31 19:43:40 -05:00
Panquesito7
9aa68848c8
Update init.lua 2019-07-31 17:41:45 -05:00
Panquesito7
56bdc0e30c
Improve "/tpn"
This commit warns the player when they denied a request.
It also tells players what "/tpn" does, the usage.

Tested with MT/MTG 5.0.1 and works fine (no errors/bugs found).
If there's any bug/error/typo, please tell me, so, I can fix it.
2019-07-28 23:11:54 -05:00
Panquesito7
b583c5c637
Add "return" to "tpn"...
...function.
2019-07-28 21:31:24 -05:00
Panquesito7
ea41ff5654
Update init.lua 2019-07-28 18:03:32 -05:00
Panquesito7
07128f83c8
Add "enable_immediate_teleport" 2019-07-27 19:41:04 -05:00
Panquesito7
f09fde8995
Tell both players (sender...
...and receiver) that the request sent timed out.
Tested with MT/MTG 5.0.1 and works fine.

The functions "clear_tpr_list" and "clear_tphr_list" are not used due to a crash while sending the message to both players.
Sorry for any inconveniences. I'll (soon?) probably create a fix for this.
If anyone has a fix for this, it would be greatly appreciated. You may comment on my PR.
2019-07-26 18:51:52 -05:00
Panquesito7
8555e135a6
Remove duplicated code 2019-07-25 23:51:04 -05:00
Panquesito7
fb0ec6ca24
Add "find_free_position_near"...
...function to "tpp_teleport_player" function.
2019-07-25 21:19:18 -05:00
Panquesito7
28b84a69d2
Update init.lua 2019-07-25 19:50:28 -05:00
Panquesito7
fa423ed2f7
Update init.lua 2019-07-25 19:38:31 -05:00
Panquesito7
2a2ba65182
Tidied & tweaked code 2019-07-25 17:50:03 -05:00
Panquesito7
9b4112ab44
Update init.lua 2019-07-25 17:06:13 -05:00
Panquesito7
6e8e997fab
Tidied code 2019-07-25 16:59:37 -05:00
Panquesito7
45943d662a
Update init.lua 2019-07-25 16:07:39 -05:00
Panquesito7
bcd67b8038
Update init.lua 2019-07-25 15:59:21 -05:00
Panquesito7
2ebd3983e4
Oops!
This commit fixes a crash.
2019-07-25 15:57:54 -05:00
Panquesito7
6f407e1629
Tweaked code 2019-07-25 15:46:52 -05:00
Panquesito7
2551dd6f9a
Update init.lua 2019-07-25 14:57:22 -05:00
Panquesito7
4108156118
Update init.lua 2019-07-25 14:53:20 -05:00
Panquesito7
4e050feaa7
Tidied code 2019-07-25 14:16:48 -05:00
Panquesito7
6054324e72
Tweaked code 2019-07-25 13:39:40 -05:00
coil
d7ef3bf706 Minimize unnecessary closures
A closure is previously created and allocated every time tpr_send
or tphr_send is called. Instead, we define the function once
and reuse it.
2019-07-25 02:20:50 -04:00
coil
5d56e134d2 Fix request timeout 2019-07-24 22:22:43 -04:00
Panquesito7
255b19f545
Add "return" to "tpp" command
Forgot to add a missing function!
2019-07-21 00:32:39 -05:00
Panquesito7
809b301898
Complete another task from TODO list
- Add a [different] sound effect at the source coords when a TP takes place (so other players hear it when to teleport away):
This was finished in this commit (tested with MT/MTG 5.0.1 and works fine).

If there's any error/bug/typo, please tell me, so, I can fix it.
2019-07-19 17:06:06 -05:00
Panquesito7
8aef6b783e
Move functions...
...to "config.lua" and register privileges in "config.lua".
This makes it easier for people to know where they can personalize TPR to their like.
2019-07-19 15:53:49 -05:00