[Mod] Report Player List [reportlist]

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

[Mod] Report Player List [reportlist]

by Lejo » Sat Nov 11, 2017 11:03

Description:
This is a mod, which create a report count in the xban.db.
Players can report other players, but only ones(checked per ips from xban2)
The Counts are based on ip-Groups.
Reports of players with kick counts 5 and of players with ban 10.
After 10 reports a player gets baned for three days.(can be disabled in init.lua at the top)
After 20 reports a player gets baned for ever.(can be disabled in init.lua at the top)
If a player gets baned it will be displayed in the chat.(can be disabled in init.lua at the top)

A player also gets reported when he cheats(dig_unbreakable, dug_to_fast, finish_unknown_dig)(can be disabled in init.lua at the top)
The player gets an message when he cheats(can be disabled in init.lua at the top)
Message in global chat when a player cheats(can be disabled in init.lua at the top)

Comands:
/report <name> | 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 with any account of your ip-Group.
  • You have not reported someone out of his ip-Group.
/report_get <name> | required ban | returns the report count of a ip-Group.
/report_set <name> <amount> | required ban | setts the report count.
/xban_wl add <name> | required ban | use it to save a player from autoban.

License: CC0
Depends: xban2 | Here is a xban2 fork with report lists in the xban_gui.
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 Sun Nov 26, 2017 12:13, edited 9 times in total.
 

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

Re: [Mod] Repor Player List [report]

by rubenwardy » Sat Nov 11, 2017 16:45

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.
 

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

Re: [Mod] Report Player List [reportlist]

by Lejo » Sun Nov 12, 2017 08:47

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: 7454
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

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

Re: [Mod] Repor Player List [reportlist]

by Lejo » Sun Nov 12, 2017 11:45

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

Oh xD fixed
 

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

Re: [Mod] Repor Player List [report]

by sorcerykid » Sun Nov 12, 2017 14:47

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: 455
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

Re: [Mod] Report Player List [reportlist]

by Lejo » Sun Nov 12, 2017 17:23

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: 315
Joined: Mon Sep 22, 2014 09:30
GitHub: theraven262
IRC: the_raven_262 Raven262 Corvus262 corvus
In-game: the_raven_262 Raven262 Nevermore

Re: [Mod] Report Player List [reportlist]

by the_raven_262 » Sun Nov 12, 2017 17:40

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.
[amber] [conjuration] [warzone] | Why is #minetest-mod-dev so empty?
 

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

Re: [Mod] Report Player List [reportlist]

by Lejo » Mon Nov 13, 2017 16:49

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

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

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


Return to Mod Releases



Who is online

Users browsing this forum: No registered users and 6 guests