lwb5-in-2025/scripts/game/beta5/library/leaveVacation.inc

24 lines
387 B
PHP
Raw Normal View History

2016-01-10 11:01:49 +01:00
<?php
class beta5_leaveVacation {
function beta5_leaveVacation($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}
// Called when a player leaves vacation mode
function run($player) {
if ($this->lib->game->params['novacation'] == 1) {
return;
}
$this->db->query("UPDATE planet SET vacation='NO' WHERE owner=$player");
// FIXME: Send messages
}
}
?>