menu
#7034638 rename(/home/Handyserver/plugin_data/Rewards/messages.yml,/home/Handyserver/plugin_data/Rewards/messages-.yml): No such file or directory

Submitted by PocketMine-MP 4.5.1

General information

Version: 4.5.1
Git commit: d641812c
Plugin involvement: Direct
Report date: 2022-06-23 12:54:10 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 1 seconds

System Information

PHP version: 8.0.19
Operating system: linux
System banner: Linux 9199 4.15.0-187-generic #198-Ubuntu SMP Tue Jun 14 03:23:51 UTC 2022 x86_64

Error information

Warning: the Rewards plugin was directly involved in this crash. Please contact the plugin author.
Message: rename(/home/Handyserver/plugin_data/Rewards/messages.yml,/home/Handyserver/plugin_data/Rewards/messages-.yml): No such file or directory
File: plugins/Rewards.phar/src/Wertzui123/Rewards/Main
Line: #117
Error level: ErrorException
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
        if (!file_exists($this->getDataFolder() . 'config.yml')) {
$this->saveResource('config.yml');
$this->saveResource('messages.yml');
return;
}
if ($this->getConfig()->get('config-version') !== self::CONFIG_VERSION) {
$config_version = $this->getConfig()->get('config-version');
$this->getLogger()->info("Your Config isn't the latest. Rewards renamed your old config to §bconfig-" . $config_version . ".yml §6and created a new config. Have fun!");
rename($this->getDataFolder() . 'config.yml', $this->getDataFolder() . 'config-' . $config_version . '.yml');
rename($this->getDataFolder() . 'messages.yml', $this->getDataFolder() . 'messages-' . $config_version . '.yml');
$this->saveResource('config.yml');
$this->saveResource('messages.yml');
}
}

/**
* Converts seconds to hours, minutes and seconds
* @param int $seconds
* @param string $message
* @return string
#0 (): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[137] rename(/home/Handyserver/plugin_data/Rewards/messages.yml,/home/Handyserver/plug, string[77] phar:///home/Handyserver/plugins/Rewards.phar/src/Wertzui123/Rewards/Main.php, int 117)
#1 plugins/Rewards.phar/src/Wertzui123/Rewards/Main(117): rename(string[50] /home/Handyserver/plugin_data/Rewards/messages.yml, string[51] /home/Handyserver/plugin_data/Rewards/messages-.yml)
#2 plugins/Rewards.phar/src/Wertzui123/Rewards/Main(27): Wertzui123\Rewards\Main->ConfigUpdater()
#3 pmsrc/src/plugin/PluginBase(117): Wertzui123\Rewards\Main->onEnable()
#4 pmsrc/src/plugin/PluginManager(448): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#5 pmsrc/src/Server(1419): pocketmine\plugin\PluginManager->enablePlugin(object Wertzui123\Rewards\Main#28824)
#6 pmsrc/src/Server(1024): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#25761)
#7 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#3, object pocketmine\utils\MainLogger#2, string[18] /home/Handyserver/, string[26] /home/Handyserver/plugins/)
#8 pmsrc/src/PocketMine(327): pocketmine\server()
#9 pmsrc(11): require(string[62] phar:///home/Handyserver/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show