Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
TravinDreek committed Aug 14, 2021
1 parent c3afb05 commit 6b181b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Spelako.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ class Spelako {
];

const INFO = [
'version' => '2.3.0',
'last_updated' => '2021/8/13',
'version' => '2.3.1',
'last_updated' => '2021/8/14',
'dev' => 'Peaksol',
'link' => 'spelako.github.io'
];
Expand Down
6 changes: 1 addition & 5 deletions commands/HypixelCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,6 @@ public static function execute(array $args) {
$skillLevels['carpentry'],
$skillLevels['runecrafting']
]);
break;
case null:
$placeholder = array();
foreach(array_keys($profiles) as $k => $v) {
Expand All @@ -482,9 +481,7 @@ public static function execute(array $args) {
SpelakoUtils::buildString($placeholder),
$p['displayname']
]);
break;
default:
printf("%d %d %d", $args[3], null,$args[3]==null);
return SpelakoUtils::buildString([
'未知的分类.',
'目前支持的分类可以是下列之一:',
Expand Down Expand Up @@ -609,8 +606,7 @@ private static function fetchRecentGames($playerUuid) {
private static function fetchStatus($playerUuid) {
$src = SpelakoUtils::getURL(self::API_BASE_URL.'/status', ['key' => self::API_KEY, 'uuid' => $playerUuid], 10);
if($src) {
if(($result = json_decode($src, true)['success']) == null) return false;
return $result['session'];
return json_decode($src, true)['session'];
}
return false;
}
Expand Down

0 comments on commit 6b181b0

Please sign in to comment.