Updated config management

Updated install

Signed-off-by: Gregory PLANCHAT <g.planchat@gmail.com>
This commit is contained in:
Gregory PLANCHAT 2011-12-14 23:45:09 +01:00
commit fcd1f5b740
58 changed files with 1579 additions and 1695 deletions

View file

@ -50,10 +50,9 @@ $position = isset($session['position']) ? $session['position'] : 0;
$type = isset($session['type']) ? $session['type'] : 0;
$speed = isset($session['speed']) ? $session['speed'] : 10;
$protection = $gameConfig['noobprotection'];
$protectiontime = $gameConfig['noobprotectiontime'];
$protectionmulti = $gameConfig['noobprotectionmulti'];
$protection = Wootook::getGameConfig('game/noob-protection/active');
$protectiontime = Wootook::getGameConfig('game/noob-protection/points-cap');
$protectionmulti = Wootook::getGameConfig('game/noob-protection/multiplier');
if ($protectiontime < 1) {
$protectiontime = 9999999999999999;