Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [id] = 'exampleplugin' -- properties about the plugin
- [path] = 'com.example.exampleplugin' -- lua comment syntax
- [name] = 'ExamplePlugin'
- [version] = '1.0.0'
- [description] = 'An example plugin.' -- single quotes for string
- Logger logger >>injected -- >> is sort of an annotation
- Event GameState|Initialization (
- logger:info['Game initialized!']
- )
- Command test >>autoregistered[args = { make|arg|string["playername"] } ( -- automatically register this command
- string name = arg|singular['playername']~ -- tilde is .get() without checking
- #source:sendMessage["$(color.green)Hello world, $[name]!"] -- #name is variables in a specific construct like commands, double quotes for Text
- result|success -- the command result
- )
Add Comment
Please, Sign In to add comment