Velt icon

Velt -----

Interact with Spigot easily



Velt is a plugin in its alpha stages that allows you to create simple scripts to customize your server.

With Velt's builtin utilities, it's extremely easy to get started and add in what you want, even for people who don't are just starting Javascript, and even for people migrating from Skript, Velt isn't too hard to learn..

Examples
Code (Text):
commands.create('feed', {
    permission: 'velt.feed',
    playerOnly: c`&cOnly players can run the feed command`
}, sender => {
    sender.setFoodLevel(20);
    sender.sendMessage(c`&6You have been saturated!`);
});
Code (Text):
//Works with /teleport coords and /teleport player
commands.create('mytp', {
  subs: {
    'player (player)'(sender, player) {
      sender.teleport(player);
    },
    'coords (number) (number) (number)'(sender, x, y, z) {
      sender.teleport(cast.asLocation({ x, y, z, world: sender.getWorld() }));
    }
  }
});
Code (Text):
new Gui('My GUI', 6)
    .format(0, 'diamond sword')
    .format(1, 'iron sword')
    .format(2, 'stone sword', () => server.broadcast('I got clicked!'))
    .show(player);
Code (Text):
server.schedule({ seconds: 1 }, () => {
    console.log('This is called every second');
});

Getting Started
To start using Velt, you'll need to download the jar, add it into your plugins folder, and then restart your server.

Once you've restarted, there should be a new folder in your plugins folder called Velt. Then, in the Velt folder, there is a node_modules folder (generally you shouldn't touch this unless you know what you're doing) and a scripts folder.

In the scripts folder, you can add in your script (for example, "Script.js"), add in your code, and restart the server to run your script.

If you want to find out more about how to use Velt, go to https://velt.js.org.

Note if you want to help contribute, we need an implementation of the node http module in Java (or the JS XMLHttpRequest so we can use http-browserify to add compatibility that way). If you would be willing to help, we'd greatly appreciate it.

Features
- Import Java classes, and use them in your Javascript code
- Use a set of simple helpers to write simple, concise code
- Write your code in TypeScript (Experimental - Don't Use In Production)
- Use the same modules you normally use in node to write your code much easier (Partial Support Only)
- Install npm modules (Not yet added)

Experimental Builds
You can use the latest development builds of Velt before the releases themselves by downloading the artifacts from our Github Actions page.

Support
If you'd like to ask for help, have a question about Velt, or have suggestions and ideas for additions to Velt, you can let us know on our Guilded Server.
Resource Information
Author:
----------
Total Downloads: 568
First Release: Mar 13, 2021
Last Update: Apr 1, 2021
Category: ---------------
All-Time Rating:
7 ratings
Find more info at velt.js.org...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings