Compatibility
Minecraft: Java Edition
Platforms
Links
Tags
Creators
Details
Vextent
(Prononunced Vegz-Tint) A fast scripting language for Paper servers.
Commands, events, timers, saved data, web requests and webhooks, written in plain script files and reloaded while the server runs.
Alpha. Vextent runs and loads scripts on a real Paper 1.21.11 server, but many parts have not been tested with real players yet. See Status for the exact list.
What is Vextent?
Vextent is a language and runtime for adding server logic without writing or compiling Java. You write short script files, drop them in a folder, and run one command to load them. If a script has a mistake, the old version keeps running and the error is shown to you.
It also reads Skript files, so scripts you already have can be loaded as they are or converted.
Highlights
| Feature | What you get | |
|---|---|---|
| โก | Hot reload | Change a script, run /vextent reload, no restart. A broken script never replaces a working one. |
| ๐งฉ | Events and commands | React to events, and write commands with typed arguments, cooldowns and permissions. |
| ๐พ | Saved variables | Tree-shaped variables stored in JSON, YAML or SQL. |
| ๐ | Web requests | Call outside APIs with TLS, redirect limits, retries, rate limits and an allow-list. |
| ๐ฅ | Webhooks | Let websites and bots trigger scripts, protected by a token and an IP allow-list. |
| ๐ | Skript translation | Load .sk files directly or convert them with /vextent convert. |
| ๐ | Extension API | Other plugins can add their own syntax. |
| ๐ก๏ธ | Safety limits | Caps on loops, recursion, tasks, collection size and explosions. |
Quick start
- Download the jar and put it in your
pluginsfolder. - Start the server once.
- Put
.vxtor.skfiles inplugins/Vextent/scripts/. - Run
/vextent reload.
Files starting with - are disabled. Sub-folders are scanned too.
Examples
Welcome message with a join counter
on join:
set {_visits} to {visits.%player's uuid%} otherwise 0
add 1 to {_visits}
set {visits.%player's uuid%} to {_visits}
message "&aWelcome, &f%player's name%&a! Visit number %{_visits}%."
Homes with a cooldown
command /sethome:
executable by: players
trigger:
set {homes.%player's uuid%} to player's location
message "&aHome saved."
command /home:
executable by: players
cooldown: 5 seconds
cooldown message: &cWait %remaining% before using /home again.
trigger:
if {homes.%player's uuid%} is not set:
message "&cYou have no home yet. Use /sethome."
stop
teleport player to {homes.%player's uuid%}
message "&aWelcome home."
Timers
every 10 minutes:
broadcast "&eRemember to vote!"
at 06:00:
broadcast "&bGood morning!"
cron "*/5 * * * *":
log "five minute tick"
Vote webhook (click to open)
A website calls your server, the script rewards the player.
variable {votes.total}: integer = 0
webhook "/vote" post:
set {_name} to request-json["username"]
if {_name} is not set:
respond with status 400 and "missing username"
stop
add 1 to {votes.total}
broadcast "&6%{_name}% just voted! Total votes: %{votes.total}%"
set {_p} to player named {_name}
if {_p} is online:
give 5 diamond to {_p}
respond with status 200 and [ok: true, total: {votes.total}]
Turn the webhook server on in config.yml and set a token first. It is off by default.
Discord message from a script (click to open)
function notify(text: text):
async:
set {_r} to http post "https://discord.com/api/webhooks/YOUR_ID/YOUR_TOKEN" with body [content: {_text}]
if not {_r.ok}:
log warning "Discord notify failed with status %{_r.status}%"
on join:
notify("%player's name% joined the server")
Add discord.com to security.http.allow first. Outgoing requests are blocked until a host is on the list.
Commands
Everything lives under /vextent (alias /vxt), permission vextent.admin.
| Command | What it does |
|---|---|
/vextent reload [script] |
Reload config and scripts |
/vextent scripts |
List loaded scripts |
/vextent errors [number|clear] |
Show recent script errors |
/vextent debug [on|off] |
Turn debug mode on or off |
/vextent inspect <what> |
Look inside the runtime: script, var, functions, events, tasks, storage, webhooks |
/vextent profile [reset] |
See where time is spent |
/vextent parse <text> |
Check syntax without running it |
/vextent convert <file.sk|folder> |
Convert Skript to Vextent |
/vextent extensions |
List loaded extensions |
/vextent version |
Version information |
Configuration
Settings are in plugins/Vextent/config.yml. The defaults are cautious.
| Section | Default | Notes |
|---|---|---|
security.http |
Nothing allowed | Add hosts to allow before scripts can call them. Private addresses and plain http are blocked. |
security.java-bridge |
Off | Only reaches classes you list. |
webhooks |
Off | Needs a token. Binds to 127.0.0.1 by default. Put a reverse proxy in front for HTTPS, or give it a keystore. |
storage |
JSON file | Switch to YAML or SQL here. |
compatibility.skript |
On | Turn off to stop loading .sk files. |
Compatibility
| Server | Paper 1.21.11 |
| Java | 21 |
| Other forks | Purpur and similar Paper forks should work but are untested |
| Not supported | Spigot, Bukkit, Folia |
Good to know
- Vextent is its own language. It can read Skript files, but it is a separate project and is not affiliated with Skript.
- Scripts run on the main thread unless you use an
async:block, so keep heavy work inside one. - Variables are saved on a timer and when the server stops.
Links
- ๐ Documentation: included in the project download
- ๐ Bugs and ideas: use the Issues tab on this page
Made by DeadByte ยท Released under the WTFPL license


