Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Model Engine Model Engine
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 35
    • Issues 35
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • Model EngineModel Engine
  • Issues
  • #62

Closed
Open
Created Mar 21, 2023 by aaa8881@aaa8881

renaming mechanism seems to not checking event being cancelled properly

  1. can be slightly complicated to explain
  2. I code too, I know what I'm talking

plugins involved : McPets , Lands , Meg

Problem: /pets doesn't open GUI properly

Why the hell are you writing issue of McPets in here? -> let me explain

Facts

  1. issue found that /pets command makes indexOutOfBound Exception
  2. found out this is caused by malformed saved data of McPets
  3. McPets save pet name in flatfile such as "petId;petCustomName" , ex ) "bear;myCuteBear"
  4. McPets use meg rename mechanism to rename its pet
  5. Lands is a protection plugin, and it has lands chat functionality whereas, it will cancel event AsncChatEvent, and send message to land members

Reproduce

  1. enter lands chat mode ( /lands chat )
  2. rename pet
  3. breaks ( pet data is formed in "petid;" , name empty

My thinking

  1. McPet should handle this exception , and put some default string if it can't read name properly -> problem: dev claims he's unavailable till April , and this issue was there for damn 2 months
  2. Lands Chat is not culprit, as he's just doing his job
  3. It probably could be handled by checking if event.isCanclled() return; by not renaming model name if chat is cancelled. -> obviously won't fix malformed data of McPets, but they could be handled. just need this not to be happening more.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking