Skip to content

Instantly share code, notes, and snippets.

@Pocketkid2
Last active April 6, 2022 18:09
Show Gist options
  • Save Pocketkid2/64032307543cabb70053bd1c2f62daf4 to your computer and use it in GitHub Desktop.
Save Pocketkid2/64032307543cabb70053bd1c2f62daf4 to your computer and use it in GitHub Desktop.
[1.18] Template plugin.yml with all possible values
# Required
name: ${name}
version: ${version}
main: ${groupId}.${artifactId}.${name}Plugin # <- Change this if you have a different plugin cass name
# Optional
description: ${description}
api-version: 1.18 # <- Change this if you're building against a different version of spigot/minecraft
#load: STARTUP/POSTWORLD # <- Use this if you need your plugin to load before the worlds do
author: ${author}
#authors: [<names] # <- Use this if your plugin is a collaboration of multiple developers
#website: <site> # <- Use this if your plugin or organization has a website that users might want to know about
#depend: [<pluginlist>] # <- Use this if your plugin needs to use other plugins to load (for API and stuff)
#prefix: <name> # <- Use this if you want a different plugin console log name
#softdepend: [<pluginlist>] # <- Use this if your plugin wants to use other plugins for optional features
#loadbefore: [<pluginlist>] # <- Use this if your plugin needs to load before other plugins
# Commands
commands:
#test:
#description: <desc> # <- What is this command for/what does it do
#aliases: [<list>] OR <single_item> # <- Gives alternate names for this command that can be used as well
#permission: <perm> # <- If this command has a single permission, put it here, spigot will check automatically
#permission-message: <perm_msg> # <- If the single permission above fails, this is what it will display to the player
#usage: <usg> # <- Instructions about the command, will be displayed if onCommand() returns false
# Permissions
permissions:
#test.perm:
#description: <desc> # <- What is this permission for/what does it do
#default: <true/op/not op/false> # <- In the absence of a permissions plugin, who gets this permission by default?
#children:
#test.perm.1: true # <- Players with test.perm will also receive test.perm.1
#test.2: false # <- Players with test.perm will have test.2 removed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment