NoobMCBG / ToastBroadcaster

Create toast style notifications for all your players
GNU General Public License v3.0
8 stars 3 forks source link

Как добавить новые сообщения #8

Closed Lolipopkingloli closed 1 year ago

Lolipopkingloli commented 1 year ago

Помогите пожалуйста

NoobMCBG commented 1 year ago

You restart the server and access the ToastBroadcaster data plugin and edit the file config.yml

Lolipopkingloli commented 1 year ago

Еслитменятъ конфиг то оно ламаетс

Lolipopkingloli commented 1 year ago

Оно поломается если я там что-то добовляю

NoobMCBG commented 1 year ago

░████████╗░█████╗░░█████╗░░██████╗████████╗██████╗░██████╗░░█████╗░░█████╗░██████╗░░█████╗░░█████╗░░██████╗████████╗███████╗██████╗░

░╚══██╔══╝██╔══██╗██╔══██╗██╔════╝╚══██╔══╝██╔══██╗██╔══██╗██╔══██╗██╔══██╗██╔══██╗██╔══██╗██╔══██╗██╔════╝╚══██╔══╝██╔════╝██╔══██╗

░░░░██║░░░██║░░██║███████║╚█████╗░░░░██║░░░██████╦╝██████╔╝██║░░██║███████║██║░░██║██║░░╚═╝███████║╚█████╗░░░░██║░░░█████╗░░██████╔╝

░░░░██║░░░██║░░██║██╔══██║░╚═══██╗░░░██║░░░██╔══██╗██╔══██╗██║░░██║██╔══██║██║░░██║██║░░██╗██╔══██║░╚═══██╗░░░██║░░░██╔══╝░░██╔══██╗

░░░░██║░░░╚█████╔╝██║░░██║██████╔╝░░░██║░░░██████╦╝██║░░██║╚█████╔╝██║░░██║██████╔╝╚█████╔╝██║░░██║██████╔╝░░░██║░░░███████╗██║░░██║

░░░░╚═╝░░░░╚════╝░╚═╝░░╚═╝╚═════╝░░░░╚═╝░░░╚═════╝░╚═╝░░╚═╝░╚════╝░╚═╝░░╚═╝╚═════╝░░╚════╝░╚═╝░░╚═╝╚═════╝░░░░╚═╝░░░╚══════╝╚═╝░░╚═╝

title: "§d[ToastBroadcaster]" # Title toast broadcast: delay: 60 # Delay message message: # All message broadcast

Вот пример

NoobMCBG commented 1 year ago

Возможно, вам не хватает символов, чтобы закончить их

Lolipopkingloli commented 1 year ago

[Server thread/CRITICAL]: ErrorException: "Trying to access array offset on value of type null" (EXCEPTION) in "plugins/ToastBroadcaster(1).phar/src/NoobMCBG/ToastBroadcaster/ToastBroadcaster" at line 24

Lolipopkingloli commented 1 year ago

#

░████████╗░█████╗░░█████╗░░██████╗████████╗██████╗░██████╗░░█████╗░░█████╗░██████╗░░█████╗░░█████╗░░██████╗████████╗███████╗██████╗░

░╚══██╔══╝██╔══██╗██╔══██╗██╔════╝╚══██╔══╝██╔══██╗██╔══██╗██╔══██╗██╔══██╗██╔══██╗██╔══██╗██╔══██╗██╔════╝╚══██╔══╝██╔════╝██╔══██╗

░░░░██║░░░██║░░██║███████║╚█████╗░░░░██║░░░██████╦╝██████╔╝██║░░██║███████║██║░░██║██║░░╚═╝███████║╚█████╗░░░░██║░░░█████╗░░██████╔╝

░░░░██║░░░██║░░██║██╔══██║░╚═══██╗░░░██║░░░██╔══██╗██╔══██╗██║░░██║██╔══██║██║░░██║██║░░██╗██╔══██║░╚═══██╗░░░██║░░░██╔══╝░░██╔══██╗

░░░░██║░░░╚█████╔╝██║░░██║██████╔╝░░░██║░░░██████╦╝██║░░██║╚█████╔╝██║░░██║██████╔╝╚█████╔╝██║░░██║██████╔╝░░░██║░░░███████╗██║░░██║

░░░░╚═╝░░░░╚════╝░╚═╝░░╚═╝╚═════╝░░░░╚═╝░░░╚═════╝░╚═╝░░╚═╝░╚════╝░╚═╝░░╚═╝╚═════╝░░╚════╝░╚═╝░░╚═╝╚═════╝░░░░╚═╝░░░╚══════╝╚═╝░░╚═╝

title: "§d[§6GUARD§4GAME§d]" # Title toast broadcast: delay: 60 # Delay message message: # All message broadcast

Lolipopkingloli commented 1 year ago

Я сменил только имя

NoobMCBG commented 1 year ago

Нужно уточнить, что вы изменили?

Lolipopkingloli commented 1 year ago

Исправьте пожалуйста

Lolipopkingloli commented 1 year ago

Я изменил имя ToastBroadcaster

NoobMCBG commented 1 year ago

Вам разрешено редактировать только файл config.yml

NoobMCBG commented 1 year ago

Пожалуйста, вставьте ошибку сюда

Lolipopkingloli commented 1 year ago

[Server thread/CRITICAL]: ErrorException: "Trying to access array offset on value of type null" (EXCEPTION) in "plugins/ToastBroadcaster(1).phar/src/NoobMCBG/ToastBroadcaster/ToastBroadcaster" at line 24

NoobMCBG commented 1 year ago

я знаю, где ты ошибся

NoobMCBG commented 1 year ago

попробуй исправить так

NoobMCBG commented 1 year ago

Để tôi chỉnh sửa lại code nhé !!! Xin lỗi bạn vì điều này

Lolipopkingloli commented 1 year ago

ни

[14:26:07.548] [Server thread/INFO]: Enabling ToastBroadcaster v1.0.1

[14:26:07.550] [Server thread/CRITICAL]: ErrorException: "Trying to access array offset on value of type null" (EXCEPTION) in "plugins/ToastBroadcaster(1).phar/src/NoobMCBG/ToastBroadcaster/ToastBroadcaster" at line 24

--- Stack trace ---

0 plugins/ToastBroadcaster(1).phar/src/NoobMCBG/ToastBroadcaster/ToastBroadcaster(24): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[51] Trying to access array offset on value of type null, string[96] phar:///home/plugins/ToastBroadcaster(1).phar/src/NoobMCBG/ToastBroadcaster/Toas, int 24)

1 pmsrc/src/plugin/PluginBase(118): NoobMCBG\ToastBroadcaster\ToastBroadcaster->onEnable()

2 pmsrc/src/plugin/PluginManager(454): pocketmine\plugin\PluginBase->onEnableStateChange(true)

3 pmsrc/src/Server(1418): pocketmine\plugin\PluginManager->enablePlugin(object NoobMCBG\ToastBroadcaster\ToastBroadcaster#22159)

4 pmsrc/src/Server(1031): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#21903)

5 pmsrc/src/PocketMine(339): pocketmine\Server->__construct(object BaseClassLoader#4, object pocketmine\utils\MainLogger#5, string[6] /home/, string[14] /home/plugins/)

6 pmsrc/src/PocketMine(362): pocketmine\server()

7 pmsrc(11): require(string[65] phar:///GameServer/Software/PocketMine-MP.phar/src/PocketMine.php)

--- End of exception information ---

[14:26:07.550] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump

[14:26:07.554] [Server thread/EMERGENCY]: Please upload the "/home/crashdumps/Thu_Jan_26-14.26.07-MSK_2023.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.

[14:26:07.555] [Server thread/EMERGENCY]: Forcing server shutdown

NoobMCBG commented 1 year ago

Download new link: https://github.com/NoobMCBG/ToastBroadcaster/releases/download/1.0.1/ToastBroadcaster.phar

NoobMCBG commented 1 year ago

Как вы? они работают?

Lolipopkingloli commented 1 year ago

Нет не работает

Lolipopkingloli commented 1 year ago

[Server thread/CRITICAL]: ErrorException: "Trying to access array offset on value of type null" (EXCEPTION) in "plugins/ToastBroadcaster (3).phar/src/NoobMCBG/ToastBroadcaster/ToastBroadcaster" at line 24

--- Stack trace ---

0 plugins/ToastBroadcaster (3).phar/src/NoobMCBG/ToastBroadcaster/ToastBroadcaster(24): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[51] Trying to access array offset on value of type null, string[97] phar:///home/plugins/ToastBroadcaster (3).phar/src/NoobMCBG/ToastBroadcaster/Toa, int 24)

1 pmsrc/src/plugin/PluginBase(118): NoobMCBG\ToastBroadcaster\ToastBroadcaster->onEnable()

2 pmsrc/src/plugin/PluginManager(454): pocketmine\plugin\PluginBase->onEnableStateChange(true)

3 pmsrc/src/Server(1418): pocketmine\plugin\PluginManager->enablePlugin(object NoobMCBG\ToastBroadcaster\ToastBroadcaster#22215)

4 pmsrc/src/Server(1031): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#21903)

5 pmsrc/src/PocketMine(339): pocketmine\Server->__construct(object BaseClassLoader#4, object pocketmine\utils\MainLogger#5, string[6] /home/, string[14] /home/plugins/)

6 pmsrc/src/PocketMine(362): pocketmine\server()

7 pmsrc(11): require(string[65] phar:///GameServer/Software/PocketMine-MP.phar/src/PocketMine.php)

--- End of exception information ---

[14:50:29.478] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump

[14:50:29.483] [Server thread/EMERGENCY]: Please upload the "/home/crashdumps/Thu_Jan_26-14.50.29-MSK_2023.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.

[14:50:29.483] [Server thread/EMERGENCY]: Forcing server shutdown

Lolipopkingloli commented 1 year ago

if you don't touch config, then everything is fine, but if I change at least one letter there, everything breaks

NoobMCBG commented 1 year ago

Để tôi thử lại lần cuối

Lolipopkingloli commented 1 year ago

Хорошо

NoobMCBG commented 1 year ago

https://github.com/NoobMCBG/ToastBroadcaster/releases/download/1.0.1/ToastBroadcaster.1.phar

NoobMCBG commented 1 year ago

Please delete plugin_data ToastBroadcaster

NoobMCBG commented 1 year ago

Restart and edit in plugin_data/ToastBroadcaster/config.yml

NoobMCBG commented 1 year ago

надеюсь в этот раз получится 😦😦😦

Lolipopkingloli commented 1 year ago

Я каждый раз удалял конфиг

Lolipopkingloli commented 1 year ago

Щас проверю

NoobMCBG commented 1 year ago

Время ожидания пришло

NoobMCBG commented 1 year ago

Попробуйте отредактировать их, как раньше, и посмотрите, как они выглядят.

Lolipopkingloli commented 1 year ago

[Server thread/CRITICAL]: ErrorException: "Trying to access array offset on value of type null" (EXCEPTION) in "plugins/ToastBroadcaster.1 (1).phar/src/NoobMCBG/ToastBroadcaster/ToastBroadcaster" at line 24

--- Stack trace ---

0 plugins/ToastBroadcaster.1 (1).phar/src/NoobMCBG/ToastBroadcaster/ToastBroadcaster(24): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[51] Trying to access array offset on value of type null, string[99] phar:///home/plugins/ToastBroadcaster.1 (1).phar/src/NoobMCBG/ToastBroadcaster/T, int 24)

1 pmsrc/src/plugin/PluginBase(118): NoobMCBG\ToastBroadcaster\ToastBroadcaster->onEnable()

2 pmsrc/src/plugin/PluginManager(454): pocketmine\plugin\PluginBase->onEnableStateChange(true)

3 pmsrc/src/Server(1418): pocketmine\plugin\PluginManager->enablePlugin(object NoobMCBG\ToastBroadcaster\ToastBroadcaster#22371)

4 pmsrc/src/Server(1031): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#21906)

5 pmsrc/src/PocketMine(339): pocketmine\Server->__construct(object BaseClassLoader#4, object pocketmine\utils\MainLogger#5, string[6] /home/, string[14] /home/plugins/)

6 pmsrc/src/PocketMine(362): pocketmine\server()

7 pmsrc(11): require(string[65] phar:///GameServer/Software/PocketMine-MP.phar/src/PocketMine.php)

--- End of exception information ---

[15:07:15.233] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump

[15:07:15.238] [Server thread/EMERGENCY]: Please upload the "/home/crashdumps/Thu_Jan_26-15.07.15-MSK_2023.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.

[15:07:15.238] [Server thread/EMERGENCY]: Forcing server shutdown

Lolipopkingloli commented 1 year ago

Всё так же ломает

NoobMCBG commented 1 year ago

скинь мне свой конфиг

NoobMCBG commented 1 year ago

._.

Lolipopkingloli commented 1 year ago

#

░████████╗░█████╗░░█████╗░░██████╗████████╗██████╗░██████╗░░█████╗░░█████╗░██████╗░░█████╗░░█████╗░░██████╗████████╗███████╗██████╗░

░╚══██╔══╝██╔══██╗██╔══██╗██╔════╝╚══██╔══╝██╔══██╗██╔══██╗██╔══██╗██╔══██╗██╔══██╗██╔══██╗██╔══██╗██╔════╝╚══██╔══╝██╔════╝██╔══██╗

░░░░██║░░░██║░░██║███████║╚█████╗░░░░██║░░░██████╦╝██████╔╝██║░░██║███████║██║░░██║██║░░╚═╝███████║╚█████╗░░░░██║░░░█████╗░░██████╔╝

░░░░██║░░░██║░░██║██╔══██║░╚═══██╗░░░██║░░░██╔══██╗██╔══██╗██║░░██║██╔══██║██║░░██║██║░░██╗██╔══██║░╚═══██╗░░░██║░░░██╔══╝░░██╔══██╗

░░░░██║░░░╚█████╔╝██║░░██║██████╔╝░░░██║░░░██████╦╝██║░░██║╚█████╔╝██║░░██║██████╔╝╚█████╔╝██║░░██║██████╔╝░░░██║░░░███████╗██║░░██║

░░░░╚═╝░░░░╚════╝░╚═╝░░╚═╝╚═════╝░░░░╚═╝░░░╚═════╝░╚═╝░░╚═╝░╚════╝░╚═╝░░╚═╝╚═════╝░░╚════╝░╚═╝░░╚═╝╚═════╝░░░░╚═╝░░░╚══════╝╚═╝░░╚═╝

title: "§d[GUARDGAME]" # Title toast broadcast: delay: "60" # Delay message message: # All message broadcast

NoobMCBG commented 1 year ago

Để tôi thử lần nữa :)

Lolipopkingloli commented 1 year ago

Хорошо, я готов с тобой работать, пока мы не победим его, ты хороший человек)

NoobMCBG commented 1 year ago

https://github.com/NoobMCBG/ToastBroadcaster/releases/download/1.0.1/ToastBroadcaster.2.phar

NoobMCBG commented 1 year ago

Спасибо за комплимент

Lolipopkingloli commented 1 year ago

Буду пробовать

NoobMCBG commented 1 year ago

На этот раз вам просто нужно установить плагин

Lolipopkingloli commented 1 year ago

Хорошо

Lolipopkingloli commented 1 year ago

Не хочу разочаровывать

NoobMCBG commented 1 year ago

они работают?

Lolipopkingloli commented 1 year ago

Нужно попытаться снова

Lolipopkingloli commented 1 year ago

[Server thread/CRITICAL]: ErrorException: "Trying to access array offset on value of type null" (EXCEPTION) in "plugins/ToastBroadcaster.2.phar/src/NoobMCBG/ToastBroadcaster/task/ToastBroadcasterTask" at line 21

--- Stack trace ---

0 plugins/ToastBroadcaster.2.phar/src/NoobMCBG/ToastBroadcaster/task/ToastBroadcasterTask(21): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[51] Trying to access array offset on value of type null, string[104] phar:///home/plugins/ToastBroadcaster.2.phar/src/NoobMCBG/ToastBroadcaster/task/, int 21)

1 pmsrc/src/scheduler/TaskHandler(123): NoobMCBG\ToastBroadcaster\task\ToastBroadcasterTask->onRun()

2 pmsrc/src/scheduler/TaskScheduler(141): pocketmine\scheduler\TaskHandler->run()

3 pmsrc/src/plugin/PluginManager(530): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(int 1)

4 pmsrc/src/Server(1812): pocketmine\plugin\PluginManager->tickSchedulers(int 1)

5 pmsrc/src/Server(1701): pocketmine\Server->tick()

6 pmsrc/src/Server(1062): pocketmine\Server->tickProcessor()

7 pmsrc/src/PocketMine(339): pocketmine\Server->__construct(object BaseClassLoader#4, object pocketmine\utils\MainLogger#5, string[6] /home/, string[14] /home/plugins/)

8 pmsrc/src/PocketMine(362): pocketmine\server()

9 pmsrc(11): require(string[65] phar:///GameServer/Software/PocketMine-MP.phar/src/PocketMine.php)

--- End of exception information ---

[15:15:31.980] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump

[15:15:31.985] [Server thread/EMERGENCY]: Please upload the "/home/crashdumps/Thu_Jan_26-15.15.31-MSK_2023.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.

[15:15:31.985] [Server thread/EMERGENCY]: Forcing server shutdown

NoobMCBG commented 1 year ago

:(