vacation mode but i will disable it just implemented but will be disabled

This commit is contained in:
Shadow
2014-03-12 08:40:43 +02:00
parent e50a8a905a
commit e641d9e9d4
10 changed files with 155 additions and 4 deletions
+5
View File
@@ -148,6 +148,11 @@ class Units {
$id = $generator->getBaseID($coor['x'],$coor['y']);
if (!$database->getVillageState($id)){
$form->addError("error","Coordinates do not exist");
//check vaction mode- by advocaite
if($database->getvacmodexy($id)){
$form->addError("error","User is on vacation mode");
}
//END Vaction mode check
}
}
if (!empty($coor)) {