Minestom wiki
Search…
Presentation
Setup
Dependencies
Your first server
Thread Architecture
Thread safety in the JVM
Acquirable API
World
Instances
Chunk management
Blocks
Coordinates
Generation
Batch
Feature
Adventure
Player capabilities
Events
Items
Entities
Tags
Schedulers
Commands
Inventories
Player UUID
Player skin
Permissions
Advancements
Map rendering
Query system
Open to LAN
Expansion
Extensions
Scripting
WIP Commands
WIP Java Interoperability
Storage
Data
Persistent data
Powered By
GitBook
WIP Java Interoperability
All scripts features are available through the
ScriptManager
class
1
// Called on startup to find all scripts and load them
2
ScriptManager
.
load
();
3
// Retrieve all currently loaded scripts
4
ScriptManager
.
getScripts
();
5
// Unload all scripts
6
ScriptManager
.
shutdown
()
7
// Reload scripts
8
ScriptManager
.
reload
();
9
// Change the permission to executor MineScript commands
10
ScriptManager
.
setCommandPermission
(
player
->
player
.
getGameMode
()
==
GameMode
.
CREATIVE
);
11
// Access the features API
12
ScriptManager
.
API
;
Copied!
ScriptManager#API
gives you access to all the scripting components (directly linked to commands, eg region), and also
ScriptAPI#getExecutor
giving you the methods needed to run commands & signals.
Previous
WIP Commands
Next - Storage
Data
Last modified
1yr ago
Copy link
Edit on GitHub