How do you restrict Players Click-Rate?

Post Reply
L-Dog
Member
Posts: 481
Joined: Sat Jun 19, 2021 12:49
GitHub: N-nec
In-game: L-Dog

How do you restrict Players Click-Rate?

by L-Dog » Post

My server runs with little lag... until a player joins with 'an adjusted click-rate (sometimes they can place 19 nodes a second)... i ban them on sight, i dont want them type players trying ruin the gameplay of another player.

How do i restrict it Server-Side?

'click_interval = 0.3' ... or something?

sometimes they create lag spikes of 100 seconds and it makes all players 'Time Out'... i need a solution

User avatar
Desour
Member
Posts: 1469
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: Desour
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

Re: How do you restrict Players Click-Rate?

by Desour » Post

You need to overwrite minetest.item_place_node or a similar function.
he/him; Codeberg; GitHub; ContentDB; public personal TODO list; "DS" is preferred (but often too short)

L-Dog
Member
Posts: 481
Joined: Sat Jun 19, 2021 12:49
GitHub: N-nec
In-game: L-Dog

Re: How do you restrict Players Click-Rate?

by L-Dog » Post

DS-minetest wrote:
Mon Oct 03, 2022 16:55
You need to overwrite minetest.item_place_node or a similar function.
Thanks bro ill look into how to code it

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests