#9649117 Implicit conversion from float 0.6 to int loses precision
Submitted by PocketMine-MP 5.8.2
General information
Version: | 5.8.2 |
---|---|
Git commit: | c3c81b09 |
Plugin involvement: | Direct |
Report date: | 2023-11-21 02:43:15 +0000 UTC |
Server uptime: | 0 days 0 hours 0 minutes 0 seconds |
System Information
PHP version: | 8.1.25 |
---|---|
JIT status: | Not available |
Operating system: | linux |
System banner: | Linux 047a8892-b8ee-48f8-a2cf-8c0f2228bb13 5.15.0-88-generic #98-Ubuntu SMP Mon Oct 2 15:18:56 UTC 2023 x86_64 |
Error information
Warning: the Guardian plugin was directly involved in this crash. Please contact the plugin author.
Thread: | Main |
---|---|
Message: | Implicit conversion from float 0.6 to int loses precision |
File: | plugins/Guardian-AntiCheat.phar/src/veroxcode/Guardian/Checks/Check |
Line: | #34 |
Type: | ErrorException |
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**
* @param string $name
*/
public function __construct(string $name)
{
$this->name = $name;
$config = Guardian::getInstance()->getSavedConfig();
$this->maxViolations = $config->get($name . "-MaxViolations") == 42 ? false : $config->get($name . "-MaxViolations");
$this->notify = $config->get($name . "-notify") == null ? false : $config->get($name . "-notify");
$this->punishment = $config->get($name . "-Punishment") == null ? "Block" : $config->get($name . "-Punishment");
}
public function onJoin(PlayerJoinEvent $event, User $user) : void {}
public function onAttack(EntityDamageByEntityEvent $event, User $user) : void {}
public function onMove(Player $player, PlayerAuthInputPacket $packet, User $user) : void {}
public function onMotion(EntityMotionEvent $event, User $user) : void {}
public function onBlockBreak(BlockBreakEvent $event, User $user) : void {}
#0 plugins/Guardian-AntiCheat.phar/src/veroxcode/Guardian/Checks/Check(34): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 8192, string[57] Implicit conversion from float 0.6 to int loses precision, string[94] phar:///home/container/plugins/Guardian-AntiCheat.phar/src/veroxcode/Guardian/Ch, int 34)
#1 plugins/Guardian-AntiCheat.phar/src/veroxcode/Guardian/Checks/Movement/Timer(20): veroxcode\Guardian\Checks\Check->__construct(string[5] Timer)
#2 plugins/Guardian-AntiCheat.phar/src/veroxcode/Guardian/Checks/CheckManager(26): veroxcode\Guardian\Checks\Movement\Timer->__construct()
#3 plugins/Guardian-AntiCheat.phar/src/veroxcode/Guardian/Guardian(46): veroxcode\Guardian\Checks\CheckManager->__construct()
#4 pmsrc/src/plugin/PluginBase(119): veroxcode\Guardian\Guardian->onEnable()
#5 pmsrc/src/plugin/PluginManager(454): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#6 pmsrc/src/Server(1391): pocketmine\plugin\PluginManager->enablePlugin(object veroxcode\Guardian\Guardian#45169)
#7 pmsrc/src/Server(1034): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#44782)
#8 pmsrc/src/PocketMine(341): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#9 pmsrc/src/PocketMine(364): pocketmine\server()
#10 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)
Loaded Plugins
-
Show
Server Settings
-
Show
Installed Composer Dependencies
-
Show
Installed PHP Extensions
-
Show