J
J
JSPrismarine
Home
Forums
GitHub
Search…
JSPrismarine
Plugin API
Getting Started
Events
Block Events
Chat Events
Player Events
Raknet events
Logger
debug
error
info
silly
warn
Powered By
GitBook
Getting Started
JSPrismarine plugin-development quick-start guide
Generating boiler-plate plugin using create-prismarine-plugin
Start by executing the following command which will guide you through a step-by-step process
1
$ npx @jsprismarine/create-prismarine-plugin
Copied!
You can contribute to create-prismarine-plugin by visting
https://github.com/JSPrismarine/create-prismarine-plugin
Navigating the project structure
index.ts
package.json
1
import
type
{
PluginApi
}
from
'@jsprismarine/prismarine'
;
2
3
export
default
class
PluginBase
{
4
api
:
PluginApi
;
5
6
constructor
(
api
:
PluginApi
)
{
7
this
.
api
=
api
;
8
}
9
10
public
async
onEnable
()
{
}
11
public
async
onDisable
()
{
}
12
}
Copied!
1
{
2
...
3
"prismarine"
:
{
4
"apiVersion"
:
"${apiVersion}"
,
5
"displayName"
:
"${displayName}"
6
},
7
...
8
}
Copied!
Previous
JSPrismarine
Next - Events
Block Events
Last modified
1yr ago
Export as PDF
Copy link
Contents
Generating boiler-plate plugin using create-prismarine-plugin
Navigating the project structure