peq-quests/plugins/client_functions.pl

13 lines
431 B
Perl
Raw Permalink Normal View History

#::: Author: Akkadius
#::: Description: Returns the client version in text format
2015-03-14 16:18:39 -04:00
sub ClientCheck{
my $client = plugin::val('$client');
my $clientver = $client->GetClientVersion();
2017-08-23 20:36:37 -05:00
if ($clientver == 2){ $ShowClient = "Titanium"; }
if ($clientver == 4){ $ShowClient = "Seeds of Destruction"; }
if ($clientver == 5){ $ShowClient = "Underfoot"; }
if ($clientver == 6){ $ShowClient = "Other"; }
return $ShowClient;
2015-03-14 16:18:39 -04:00
}
return 1;