ReneHollander / empty-spigot-plugin

An empty spigot plugin
https://www.spigotmc.org/
MIT License
32 stars 11 forks source link

empty-spigot-plugin

This is an empty Spigot plugin. It uses Gradle to make sure the correct version of Spigot is installed and available. It can also host a local testserver with the plugin automatically built and installed.

Usage

IntelliJ IDEA

Eclipse (You can try to use it, but IDEA is better...)

General

During setup some run configurations will be created for you:

Changing spigot version or plugin name/version

You can change the Spigot version in the gradle.properties file. Next time you compile the plugin, the correct version of Spigot will be fetched and built for you.

apiversion=1.10.2-R0.1-SNAPSHOT // Version of the dependency
apibuildtoolversion=1.10.2 // Version of the dependency in the Spigot BuildTool (Normally Minecraft version number)

If you want to change the name or version of the plugin you need to check the following files:

This should be pretty straight forward...

Make sure to run the clean/ task so that old artifacts don't interfere with the new version.

Keeping server configurations

If you want to keep server configurations after a clean you can put any files into to config/testserver/ directory. The files will automaticall be copied to the testserver/ directory for you

License

The MIT License (MIT)

Copyright (c) 2016 Rene Hollander and Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.