Paprika icon

Paprika -----

Code your plugins in Lua




Enums and static methods that the compiled plugin has access to now get loaded as globals, and they have a "new" function that lets you instantiate them as you would in Java.

upload_2023-1-11_14-42-1.png
----------, Jan 11, 2023

__len is populated for each translated object; previously LuaJ handled this but the new function has handling for objects that have a "values()" getter, like maps.
----------, Jan 10, 2023

- I forgot to bind the arguments from the Command handler to the Command function, so you couldn't do anything with the sender or args. This is in now; the commands can now take the same arguments that the function can, in the exact order: CommandSender, message label, and an array of args.
- I removed the init.lua thing from the last update because it wasn't working anyways, and it's hacky to get working and as far as I can tell it's not part of the Lua standard anyways but something specific to Luarocks and Neovim
----------, Jan 6, 2023

put slightly more work into the "subfolders" thing from the last update then I should have. Lua files from other folders are actually evaluated now and you can include modules by their folder, and if a folder has an "init.lua" file its added to the path, allowing one to include the folder by its name. i also tested it more.
----------, Jan 6, 2023

Minor update that allows the plugin to resolve subfolders in the plugin folder as classes, for better organization.
----------, Jan 6, 2023

This update adds Lua-idomatic shorthands for getters and setters; accessing `field` in a mapped Java object calls `getField` and assigning to `field` calls `setField`
----------, Jan 6, 2023

- better errors shown to command sender
- set the path appropriately so that .lua plugins can include other plugins with the require function
- the reload command wasn't actually working. it works now.
- MinecraftCommand functions with multiple case changes would throw an error upon being executed. this has been fixed.
----------, Jan 5, 2023

Resource Information
Author:
----------
Total Downloads: 283
First Release: Jan 3, 2023
Last Update: Jan 11, 2023
Category: ---------------
All-Time Rating:
1 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings