menu
#5037715 Cannot redeclare formatMoney() (previously declared in phar:///home/container/plugins/IHScoreHud_v1-2 (2).phar/src/ihscorehud/main/OtherFunctions.php:10)

Submitted by PocketMine-MP 3.22.0

General information

Version: 3.22.0
Git commit: c32c2146
Plugin involvement: Direct
Report date: 2021-07-21 21:48:08 +0000 UTC
Server uptime: 0 days 0 hours 5 minutes 49 seconds

System Information

PHP version: 7.4.7
Operating system: linux
System banner: Linux 2e89c2ed-4e01-45f9-863e-5eed5d705129 4.15.0-147-generic #151-Ubuntu SMP Fri Jun 18 19:21:19 UTC 2021 x86_64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Cannot redeclare formatMoney() (previously declared in phar:///home/container/plugins/IHScoreHud_v1-2 (2).phar/src/ihscorehud/main/OtherFunctions.php:10)
File: plugins/IHScoreHud_v1-2 (2).phar/src/ihscorehud/main/OtherFunctions
Line: #10
Error level: E_COMPILE_ERROR
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php


///////// ANTIGOOOOOO

declare(strict_types=1);

const SPACE = 1;

function formatMoney(int $number) : string
{
$format = number_format($number);
$explode = explode(",", $format);
if($number >= 1000000000){
return (string) $explode[0].".".$explode[1]."B";
}
if($number >= 1000000){
return (string) $explode[0].".".$explode[1]."M";
}
if($number >= 100000){

Loaded Plugins

  • Show

Server Settings

  • Show