Skip to content
An object oriented admin script intended to represent the advantages of Lunar.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Commander
.gitattributes
.gitignore
.lunarconfig
README.md
rojo.json

README.md

Commander

Note: This is meant to be a proof of concept for Lunar's usability!

We have taken advantage of the following Lunar features (at the time of writing)

Syntax

The Lexer class attempts to group your message based on its syntax. If you write "hello world", you get back hello world as one single object.

By default, we have a @ prefix which signals to Commander that your message invokes a command.

The first object is the alias, which can be in the following format: test or "hello world", both of which is one alias.

Although every arguments in Commander is an array of objects, we support multiple objects in one single argument, which takes the syntax: one, two, three, four. This is all one argument that has four objects. So with @teleport one, two, "player three", four me, its first object: teleport, first argument is an object which is an array of objects: one, two, "player three", four, and second argument is one object: me.

Examples

So these are valid commands for Commander: @kill others, @"send message" random "hehe lol", @teleport one, two, "player three", four me.

You can’t perform that action at this time.