public static function unshortcut($word) { if ('' === ($word = strtolower(trim($word)))) { return 'root'; } $shortcuts = array('def' => 'defense', 'dmg' => 'damage', 'skill' => 'skills', 'attribute' => 'attributes', 'bmi' => 'body_mass', 'die' => 'death'); $shortcuts = array_merge($shortcuts, Shadowcmd::getCommandShortcutMap(), SR_Player::$ATTRIBUTE, SR_Player::$SKILL, SR_Player::$KNOWLEDGE, SR_Player::$MOUNT_STATS); if (true === isset($shortcuts[$word])) { return $shortcuts[$word]; } return $word; }