menu
#3068062 A function with return type must return a value

Submitted by PocketMine-MP 3.9.6

General information

Version: 3.9.6
Git commit: d1b70bd4
Plugin involvement: Direct
Report date: 2019-11-06 05:11:38 +0000 UTC

System Information

PHP version: 7.3.8
Operating system: win
System banner: Windows NT DESKTOP-R8GB243 10.0 build 17134 (Windows 10) AMD64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: A function with return type must return a value
File: plugins/DailyLogin/src/Main
Line: #79
Error level: E_COMPILE_ERROR
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
if (!isset($args[0])) {
if ($sender->hasPermission('dailyrewards.claim') AND $this->canClaim($sender->getName())) $args[0] = 'claim';
elseif ($sender->hasPermission('dailyrewards.info')) $args[0] = 'info';
};
if (empty($args[0]) or !isset($args[0])) $args[0] = 'help';
switch (strtolower($args[0])) {
case "claim":
if (!$sender->hasPermission('dailyrewards.claim')) {
$sender->sendMessage(self::msgPerm);
return;
}
$name = $sender->getName();
if (!$this->canClaim($name)) {
$sender->sendMessage(self::prefixInfo . " You have to wait {$this->secToTime($this->getClaimTime($name))} to claim your next prize.");
return;
}
if ($this->streakNeedReset($name)) {
$sender->sendMessage(self::prefixInfo . " Your streak of {$this->getDatDay($name)} have expired {$this->secToTime(abs($this->getClaimTime($name)))} before.");
$this->resetStreak($name);
}

Loaded Plugins

  • Show

Server Settings

  • Show