<?php
/**
 * Event Rankings — Nexora Edition
 */
namespace Plugin\EventRankings;

define('__PATH_EVENTRANKINGS_ROOT__', __PATH_PLUGINS__ . 'eventrankings/');

$extra_admincp_sidebar[] = array(
    'Event Rankings', array(
        array('Settings', 'eventrankings&page=settings')
    )
);

$language = config('language_default', true);
$langFile = __PATH_EVENTRANKINGS_ROOT__ . 'languages/' . $language . '/language.php';
if(!is_file($langFile)) $langFile = __PATH_EVENTRANKINGS_ROOT__ . 'languages/en/language.php';
if(!@include_once($langFile)) throw new \Exception('Error loading language file (eventrankings).');

if(!@include_once(__PATH_EVENTRANKINGS_ROOT__ . 'classes/class.eventrankings.php')) {
    throw new \Exception(lang('eventrankings_error_1', true));
}

addRankingMenuLink(lang('eventrankings_menu_bc'), 'bloodcastle', array('xteam', 'muemu', 'louis'));
addRankingMenuLink(lang('eventrankings_menu_ds'), 'devilsquare', array('xteam', 'muemu', 'louis'));
addRankingMenuLink(lang('eventrankings_menu_cc'), 'chaoscastle', array('xteam', 'muemu', 'louis'));
