VeroxCode / Guardian-AntiCheat

GNU Lesser General Public License v3.0
20 stars 4 forks source link

Form save bug #26

Closed Nat392 closed 4 months ago

Nat392 commented 8 months ago

Hi there!

I have a problem saving the data in the /guardian panel (it doesn't save them), and I get this error:

[Player: OrBuilder] Failed to validate form veroxcode\Guardian\FormAPI\CustomForm: Invalid type given for element 0
[14:07:53.570] [Server thread/CRITICAL]: pocketmine\form\FormValidationException: "Invalid type given for element 0" (EXCEPTION) in "plugins/Guardian-AntiCheat/src/veroxcode/Guardian/FormAPI/CustomForm" at line 39
--- Stack trace ---
  #0 plugins/Guardian-AntiCheat/src/veroxcode/Guardian/FormAPI/Form(44): veroxcode\Guardian\FormAPI\CustomForm->processData(array[11])
  #1 pmsrc/src/player/Player(2139): veroxcode\Guardian\FormAPI\Form->handleResponse(object pocketmine\player\Player#112357, array[11])
  #2 pmsrc/src/network/mcpe/handler/InGamePacketHandler(973): pocketmine\player\Player->onFormSubmit(int 13, array[11])
  #3 pmsrc/vendor/pocketmine/bedrock-protocol/src/ModalFormResponsePacket(63): pocketmine\network\mcpe\handler\InGamePacketHandler->handleModalFormResponse(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket#216849)
  #4 pmsrc/src/network/mcpe/NetworkSession(462): pocketmine\network\mcpe\protocol\ModalFormResponsePacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#281949)
  #5 pmsrc/src/network/mcpe/NetworkSession(400): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket#216849, string[32] e...[0,0,0,0,0,0,0,0,0,0,10.0]..)
VeroxCode commented 4 months ago

Sorry I need more information. Can't really do much with this.