Author Topic: Global Watchlist  (Read 3882 times)

Force

  • Developer
  • Full Member
  • *****
  • Posts: 204
  • Karma: +6/-2
    • View Profile
Global Watchlist
« on: November 15, 2011, 10:54:19 pm »
Liberty Unleashed Global Watchlist Module

With the help of AdTec_224 and VRocker I have created a module for the global watchlist that stormeus set up a few days ago. The basic idea is that it will grab the watchlist from the Liberty Unleashed site every 6 hours and on server start.

This module allows server owners to plug it in and decide what they want to do with anyone found on the watchlist, such as kick or ban the player. The watchlist will be updated and mainted by the Liberty Unleashed Staff meaning that you don't need to worry about the data being wrong.

The scripting functions that this module includes are:

Watchlist_CheckName( string name );

This will check the specified name against the cached watchlist, if theres a match it will return true.

Code: [Select]
function onPlayerJoin( pPlayer )
{
local check = Watchlist_CheckName( pPlayer.Name );

if ( check )
{
// Do something with the player.
}
return 1;
}

Watchlist_ForceUpdate( void );

This will force the server to update the watchlist, we have made it so that you can only do this one every six hours.

Code: [Select]
function onPlayerJoin( pPlayer )
{
Watchlist_ForceUpdate();
}

Watchlist_SetUpdateInterval( int interval )

This will set the automatic update interval, the minimum and default time is 6 hours.

Code: [Select]
function onScriptLoad()
{
Watchlist_SetUpdateInterval( 21600000 ); // This will set the update interval to every six hours (in ticks). 1 second is 1000 ticks.
}

The source code for this module can be found http://force.vrocker-hosting.co.uk/downloads/watchlist/sourcecode.zip.
To download the modules click http://force.vrocker-hosting.co.uk/downloads/watchlist/modules.zip.

Installing this module is as easy as adding LU_Watchlist.(dll/so) to your modules folder and calling LoadModule( "LU_Watchlist" ); on the onScriptLoad event.

We will try and maintain this module as best as we can and might even expand on its functionality in the future.

If you find any bugs let us know as soon as possible!
« Last Edit: November 15, 2011, 10:56:09 pm by Force »
Quote
[Tue - 20:09:35] <&VRocker> CRAP!
[Tue - 20:09:43] <&VRocker> i think i just followed through...
Quote
[Sat - 22:11:56] <~Smapy> [R3V]breSt12 killed [R3V]Jack_Bauer. (Splat)

Vortrex

  • Full Member
  • ***
  • Posts: 265
  • Karma: +54/-73
    • View Profile
Re: Global Watchlist
« Reply #1 on: November 16, 2011, 06:20:23 am »
Awesome man, thanks!

VetalYA

  • Guest
Re: Global Watchlist
« Reply #2 on: November 16, 2011, 10:15:39 pm »
Good work, and thanks for linux version included.

 :)

Demi God

  • Newbie
  • *
  • Posts: 20
  • Karma: +1/-1
    • View Profile
Re: Global Watchlist
« Reply #3 on: December 26, 2011, 05:33:31 am »
What if the play uses a different nick?
Liberty Unleashed daily user!
[DW] Clan owner!
[DW] || Battle-Grounds server owner!
Click here to join us!

SugarD

  • Argonath RPG Dev/Manager
  • Tester
  • Sr. Member
  • ****
  • Posts: 819
  • Karma: +37/-74
  • STOP IN THE NAME OF THE COLESLAW!
    • View Profile
    • Clan Xperience
Re: Global Watchlist
« Reply #4 on: December 27, 2011, 04:06:18 am »
What if the play uses a different nick?
IP's can catch him/her then.

Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-16
    • View Profile
Re: Global Watchlist
« Reply #5 on: April 08, 2013, 10:57:46 am »
They both work fine for me..

SugarD

  • Argonath RPG Dev/Manager
  • Tester
  • Sr. Member
  • ****
  • Posts: 819
  • Karma: +37/-74
  • STOP IN THE NAME OF THE COLESLAW!
    • View Profile
    • Clan Xperience
Re: Global Watchlist
« Reply #6 on: April 08, 2013, 11:35:16 am »
Sorry for revive the theme, but links are down.
I think you were trying to access them earlier when the server was having some issues. Please try again, and let us know if they work for you now. :)

 

© Liberty Unleashed Team.