[Mod] Report Player List [reportlist]

Post Reply
User avatar
Lejo
Member
Posts: 718
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

[Mod] Report Player List [reportlist]

by Lejo » Post

Description:
This is a mod, which allows players to report other in a sorted way.
Players can report other players, but only ones, report will be updated when reporting multiple times

Comands:
/report <name> <reason> | report a player.
This is required to report a player:
  • You must be online for 8 min.
  • The player you want to report must be online too.
  • You have not reported him yet
/reportlist | required ban | Opens a formspec to display the reportcounts of the players
/report_reset <name> | required ban | resets the reports of a player

License: MIT
Optional Depends: You can use Xban2 or Sban if you want to be able to ban the players just right inside the formspec

Recommend: Playtime use it if you want that a player have to play 1h before report someone.(can be changed in init.lua at the top)
Download as zip
Source
Last edited by Lejo on Tue Jun 02, 2020 15:58, edited 10 times in total.

User avatar
rubenwardy
Moderator
Posts: 6977
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

Re: [Mod] Repor Player List [report]

by rubenwardy » Post

There is already a mod called report. So please rename to "reportcount" or something
Looks cool though, I guess. Wouldn't work on CTF as the same good players get reported everytime.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
Lejo
Member
Posts: 718
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

Re: [Mod] Report Player List [reportlist]

by Lejo » Post

rubenwardy wrote:There is already a mod called report. So please rename to "reportcount" or something
Looks cool though, I guess. Wouldn't work on CTF as the same good players get reported everytime.
I renamed the mod to reportlist.
I thought about that I only allow players how played for about 1h to report others, but there is no function to get the playtime yet. May have to create one.
Last edited by Lejo on Sun Nov 26, 2017 11:55, edited 1 time in total.

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] Repor Player List [reportlist]

by azekill_DIABLO » Post

There's a typo on the topic's name:
Report Player List
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
Lejo
Member
Posts: 718
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

Re: [Mod] Repor Player List [reportlist]

by Lejo » Post

azekill_DIABLO wrote:There's a typo on the topic's name:
Report Player List
Oh xD fixed

User avatar
sorcerykid
Member
Posts: 1847
Joined: Fri Aug 26, 2016 15:36
GitHub: sorcerykid
In-game: Nemo
Location: Illinois, USA

Re: [Mod] Repor Player List [report]

by sorcerykid » Post

Lejo wrote: I thought about that I only allow players how played for about 1h to report others, but there is no function to get the playtime yet. May have to create one.
Lately a few other people have asked about a way to get the current and/or total session time of a player, which is something that my new auth mod provides. I should probably tie up the remaining loose ends and release it sooner rather than later :)

User avatar
Lejo
Member
Posts: 718
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

Re: [Mod] Report Player List [reportlist]

by Lejo » Post

I only need the total time the current I can get with:
minetest.get_player_information(playername).connection_uptime

User avatar
the_raven_262
Member
Posts: 343
Joined: Mon Sep 22, 2014 09:30
GitHub: theraven262
IRC: [Discord unfortunately] corvus262

Re: [Mod] Report Player List [reportlist]

by the_raven_262 » Post

Nice idea. Though the number of reports should be limited. You don't want one player to join, play for an hour and start reporting other people.

User avatar
Lejo
Member
Posts: 718
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

Re: [Mod] Report Player List [reportlist]

by Lejo » Post

Update: You can now use my mod playtime, then a player have to play total 1h to report someone.

BBmine
Member
Posts: 3476
Joined: Sun Jul 12, 2015 22:51
GitHub: BBmine
IRC: BBmine
In-game: Baggins
Location: USA

Re: [Mod] Report Player List [reportlist]

by BBmine » Post

I love this mod! I'll have to install it on my servers.

User avatar
Lejo
Member
Posts: 718
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

Re: [Mod] Report Player List [reportlist]

by Lejo » Post

Update: If a player gets baned it's displayed in the log and in the chat.

User avatar
Lejo
Member
Posts: 718
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

Re: [Mod] Report Player List [reportlist]

by Lejo » Post

Complete Rework of the Mod!
Is now independent of other ban mods!
Use the Formspec for report-listing.
You can also directly ban players inside the /reportlist form.
Planned:
Tree-view of all players and their reports
EDIT: Added!

sangeet
Member
Posts: 49
Joined: Sat Feb 13, 2021 12:15

Re: [Mod] Report Player List [reportlist]

by sangeet » Post

Can you please consider adding a possibility to report offline players? There are situations, when a player griefes an area, places a protector and leaves. or protects bones of another player with a protector and leaves. It would be nice if such players could be reported as well.

User avatar
Linuxdirk
Member
Posts: 3219
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [Mod] Report Player List [reportlist]

by Linuxdirk » Post

sangeet wrote:
Fri Jul 09, 2021 07:28
Can you please consider adding a possibility to report offline players?
The API doesn't have access to offline players and thus can't bring up a list of those players.

Only thing you can do is running minetest.player_exists('MyPlayerName') to check if there is a player named MyPlayerName in the database.

sangeet
Member
Posts: 49
Joined: Sat Feb 13, 2021 12:15

Re: [Mod] Report Player List [reportlist]

by sangeet » Post

OK, thanks!

Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests