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

24 lines
379 B
PHP
Raw Normal View History

2016-01-10 11:01:49 +01:00
<?php
class beta5_leaveVacation {
2024-12-31 10:42:58 +01:00
function __construct($lib) {
2016-01-10 11:01:49 +01:00
$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
}
}
?>