Gingerbread Posted November 24, 2015 Share Posted November 24, 2015 Hello guys, I wonder, if devs can work on a system to enable servers to ban people temporarily. If you ban someone and if you do not wanna ban him permanently you have to keep track of his KU id and the duration that you wanna ban. This is really hard for admins I guess and if we can have an option to ban some people temporarily that would be awesome. Link to comment Share on other sites More sharing options...
jacklul Posted November 24, 2015 Share Posted November 24, 2015 Probably someone could mod it in. Link to comment Share on other sites More sharing options...
ToNiO55 Posted November 24, 2015 Share Posted November 24, 2015 unfortunatly Mr PolarBeer don't like mod Link to comment Share on other sites More sharing options...
Gingerbread Posted November 24, 2015 Author Share Posted November 24, 2015 unfortunatly Mr PolarBeer don't like mod Link to comment Share on other sites More sharing options...
Developer V2C Posted November 24, 2015 Developer Share Posted November 24, 2015 Hey guys, this function already exists:TheNet:BanForTime( user_id, time_in_seconds ) Link to comment Share on other sites More sharing options...
Gingerbread Posted November 24, 2015 Author Share Posted November 24, 2015 Hey guys, this function already exists:TheNet:BanForTime( user_id, time_in_seconds ) Thanks for the reply!where to write this function? Inside blocklist? Link to comment Share on other sites More sharing options...
Developer V2C Posted November 24, 2015 Developer Share Posted November 24, 2015 The easiest way would be to enter this as a console command in game. Link to comment Share on other sites More sharing options...
Gingerbread Posted November 24, 2015 Author Share Posted November 24, 2015 The easiest way would be to enter this as a console command in game. so this works for someone who left game? Link to comment Share on other sites More sharing options...
Gingerbread Posted November 24, 2015 Author Share Posted November 24, 2015 when you declare variables as KU id it does not accept KU id as an argument ConsoleInput: "TheNet:BanForTime( KU_xxxxx, 120 )" │[string "TheNet:BanForTime( KU_xxxxx, 120 )"]:1: variable 'KU_xxxxx' is not declared So I also tried to use steam id as: TheNet:BanForTime( 76561198194237113 , 120 ) │ConsoleInput: "TheNet:BanForTime( 76561198194237113 , 120 )" This time it accepts all arguments but does not ban. Link to comment Share on other sites More sharing options...
Developer PeterA Posted November 24, 2015 Developer Share Posted November 24, 2015 @PolarBeer, the user_id should be a string, so you need it in quotes. Try something like this TheNet:BanForTime( "KU_aabbccdd", 120 ) Link to comment Share on other sites More sharing options...
Gingerbread Posted November 25, 2015 Author Share Posted November 25, 2015 @PolarBeer, the user_id should be a string, so you need it in quotes. Try something like this TheNet:BanForTime( "KU_aabbccdd", 120 )Well it worked thanks.... But a thing to note is, you should enter command to both servers. Link to comment Share on other sites More sharing options...
Developer V2C Posted November 25, 2015 Developer Share Posted November 25, 2015 Bans only go on the master server, it will not use the slave settings when it is sharded. Link to comment Share on other sites More sharing options...
Gingerbread Posted November 25, 2015 Author Share Posted November 25, 2015 Bans only go on the master server, it will not use the slave settings when it is sharded. I was in caves and i was trying to write this on overworld shard. Somehow it was not banning me. I did not get why. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.