MZ Noob and need help with getting a plugin to work

Hello folks! I'm very new to RPG Maker, using plugins, and working with JavaScript, so I'm looking for the "explain like I'm 10" version of the answer to my query if you don't mind 😅

I want to use the plugin script from this thread to limit what the shopkeepers in my game buy, but I can't figure out how to add it to my game properly. I copied all of the text from the script author's comment, put it in Notepad, saved it as a .js, and added it to my plugin manager. The author instructs the OP to use "BUY_ONLY" as a plugin command, but when I look at my plugin commands, this plugin isn't present. Further, when I open the plugin manager window, it says the plugin might not be compatible with MZ. [I checked and made sure I wasn't in the MV-specific thread - is there a way to tell which version of the game a given plugin is for in threads like the linked one?]

Just as a sanity check I tried using the Script feature in the event dialogue box but of course it made my game crash. I'm guessing there's some obvious noob stuff I'm missing to get scripts like this to work? Before this, I've only downloaded .js files from itch or Github and they've worked "out of the box," as it were.
Ah, it's likely the plugin was made for RPG Maker MV and not MZ. You can use the plugin FOSSIL as your first plugin in the list to allow some MV plugins to work fine in MZ. You can use the event Plugin Command, choose FOSSIL, and it should have an option to use MV-style plugin commands where you type them in (such as BUY_ONLY).
OH MY GOSH THIS IS AMAZING, thank you!! It worked like a charm and I'm so excited to delve into the MV plugin library!

...I should control myself for now though while I'm still learning, but EVENTUALLY I'll dive into the MV plugin library 😀

Original thread: https://forums.rpgmakerweb.com/threads/noob-and-need-help-with-getting-a-plugin-to-work.145243/