game = $game;
$this->players = $game->getLib('beta5/player');
}
function getSender() {
return 'LW Moderators';
}
function getSLink() {
return "";
}
function getRecipient() {
return utf8entities($this->players->call('getName', $this->player),ENT_COMPAT);
}
function getRLink() {
return "";
}
function getSubject() {
switch ($this->data['event']) :
case 'WARN ': $s = '/!\\ PLANET NAME WARNING /!\\'; break;
default: $s = '/!\\ PLANET RESET /!\\'; break;
endswitch;
return $s;
}
function getReplyLink() {
return "";
}
function getContents() {
if ($this->data['event'] == 'WARN ') {
$t = "This is an official warning from the Legacy Worlds moderation team.
"
. "One of the planets you own, "
. utf8entities($this->data['p_name'],ENT_COMPAT) . ", has a name that is considered either "
. "vulgar, disrespectful or discriminating (please check the manual for more details).
"
. "The planet will be made neutral and reset to its initial state (2k population, 3 factories "
. "of each type and 3 turrets) if you don't rename it within 24h or if the new name is "
. "found to be offensive as well.";
} elseif ($this->data['event'] == 'NEUT ') {
$t = "Your planet " . utf8entities($this->data['p_name'],ENT_COMPAT) . " has been neutralized and reset "
. "by the Legacy Worlds moderation team; you had been warned regarding its name and renamed it "
. "to something offensive.";
} else {
$t = "Your planet " . utf8entities($this->data['p_name'],ENT_COMPAT) . " has been automatically neutralized "
. "and reset; you had been warned regarding its name and did not rename it within 24h.";
}
return $t;
}
}
?>