Commit Graph

133 Commits

Author SHA1 Message Date
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
Panquesito7
579f75769c
Update init.lua 2019-07-18 20:56:06 -05:00
Panquesito7
9fcc62c1fc
Fix typo 2019-07-18 20:43:38 -05:00
Panquesito7
3e8fcf3fc4
Update init.lua 2019-07-17 19:03:00 -05:00
Panquesito7
033f3fbf53
Merge branch 'license_changes' into 'master'
I've changed the license to complete another task from the TODO list (and to make it compatible with MT/MTG and many other games/mods) .

Please decide if it was correct to change the license.
If you do not like this change, please tell me, so, I can revert these changes.
2019-07-17 18:04:52 -05:00
Panquesito7
536a30ff87
Translate log 2019-07-16 14:48:29 -05:00
Panquesito7
0dd475f1dc
Translate params 2019-07-16 14:26:28 -05:00
Panquesito7
736512ee3c
Add intllib support
Tested with MT/MTG 5.0.1 and works fine.
If there is any typo/bug/error, please tell me, so, I can fix it.
2019-07-15 13:52:31 -05:00
Panquesito7
4986742a24
Update init.lua 2019-07-15 11:47:34 -05:00
Panquesito7
0247e31203
Update init.lua 2019-07-15 11:46:14 -05:00
Panquesito7
abcdb44584
Fixed big typo 2019-07-14 20:04:30 -05:00
Panquesito7
11384e2797
Some fixes 2019-07-12 19:30:51 -05:00
Panquesito7
905afd49d2
Tweaked code 2019-07-11 20:59:46 -05:00
Panquesito7
ad57543608
Update init.lua 2019-07-11 20:50:48 -05:00
Panquesito7
8e43351cc4
Fix some bugs
This commit fixes some bugs which could create a crash. 😋
2019-07-11 20:43:42 -05:00
Panquesito7
beed2ea017
Update init.lua 2019-07-10 17:17:57 -05:00
Panquesito7
ff7d99bc3f
Oops 😋 2019-07-08 20:30:16 -05:00
Panquesito7
c921f786d7
Small changes
Completed 2 tasks from the TODO list.
See the "README.md" changes commit.
2019-07-08 20:23:57 -05:00