Speedgot
ServerManager | Manage your Spigot server with a GUI
-----
Manage your spigot server.
Download Now
3.1 MB .jar
Overview
Updates (
--
)
Reviews (
---
)
Version History
Discussion
+ Developer Addon API
With the Addon API, one can program addons for the ServerManager and also use the API.
Spoiler:
Example addon
Code (Java):
package
net.test
;
import
net.baumarkt.ServerManager
;
import
net.baumarkt.utils.Properties
;
import
net.baumarkt.utils.module.Module
;
import
net.baumarkt.utils.module.api.ModuleAPI
;
import
net.baumarkt.utils.plugin.handler.ServerPlugin
;
import
net.baumarkt.utils.plugin.handler.ServerPluginType
;
import
org.bukkit.Bukkit
;
import
org.bukkit.craftbukkit.v1_8_R3.CraftServer
;
import
java.io.File
;
import
java.io.IOException
;
import
java.util.Arrays
;
public
class
Test
extends
Module
{
public
Test
(
ServerManager serverManager
)
{
super
(
ServerManager.
getInstance
(
)
)
;
}
/*
* Addon start
*/
@Override
public
void
onEnable
(
)
{
/*
* Register Command
*/
(
(
CraftServer
)
Bukkit.
getServer
(
)
)
.
getCommandMap
(
)
.
register
(
"test"
,
new
TestCommand
(
"test"
)
)
;
/*
* Register Listener
*/
Bukkit.
getServer
(
)
.
getPluginManager
(
)
.
registerEvents
(
new
TestListener
(
)
, ServerManager.
getInstance
(
)
)
;
/*
* ModuleAPI EXAMPLE
*/
ModuleAPI.
setProperties
(
Properties
.
ServerProperty
.
PVP
,
false
)
;
ModuleAPI.
getServerPlugins
(
)
;
ModuleAPI.
getWorldServerPlugins
(
)
;
ModuleAPI.
getUtilityServerPlugins
(
)
;
ModuleAPI.
getGameServerPlugins
(
)
;
ModuleAPI.
getFunServerPlugins
(
)
;
try
{
ModuleAPI.
getPluginInfoFromSpigotMC
(
79580
)
;
ModuleAPI.
installPluginFromSpigotMC
(
79580
,
new
File
(
"plugins/Plugin.jar"
)
)
;
}
catch
(
IOException
e
)
{
e.
printStackTrace
(
)
;
}
ModuleAPI.
registerServerPlugin
(
new
ServerPlugin
(
"Plugin name"
,
"79580"
,
"Author"
,
Arrays
.
asList
(
"Example description"
,
"Line2"
)
)
, ServerPluginType.
UTILITY
)
;
ModuleAPI.
registerServerPlugin
(
new
ServerPlugin
(
"Plugin name"
,
"79580"
,
"Author"
,
Arrays
.
asList
(
"Example description"
,
"Line2"
)
)
, ServerPluginType.
WORLD
)
;
ModuleAPI.
registerServerPlugin
(
new
ServerPlugin
(
"Plugin name"
,
"79580"
,
"Author"
,
Arrays
.
asList
(
"Example description"
,
"Line2"
)
)
, ServerPluginType.
FUN
)
;
ModuleAPI.
registerServerPlugin
(
new
ServerPlugin
(
"Plugin name"
,
"79580"
,
"Author"
,
Arrays
.
asList
(
"Example description"
,
"Line2"
)
)
, ServerPluginType.
GAME
)
;
}
/*
* Addon stop.
*/
@Override
public
void
onDisable
(
)
{
}
----------
,
Jun 10, 2020
View on SpigotMC
Resource Information
Author:
----------
Total Downloads:
1,836
First Release:
Jun 2, 2020
Last Update:
Sep 11, 2022
Category:
---------------
All-Time Rating:
4 ratings
Version
-----
Released:
--------------------
Downloads:
------
Version Rating:
----------------------
--
ratings