Refactored Plugin into an interface, make Javaplugin and relevant code to attempt to actually load plugins

This commit is contained in:
Dinnerbone
2010-12-24 16:41:51 +00:00
parent 231c037142
commit 2f775c5d6e
10 changed files with 232 additions and 43 deletions

View File

@@ -1,6 +1,8 @@
package org.bukkit;
import org.bukkit.plugin.PluginManager;
/**
* Represents a server implementation
*/
@@ -25,4 +27,11 @@ public interface Server {
* @return An array of Players that are currently online
*/
public Player[] getOnlinePlayers();
/**
* Gets the PluginManager for interfacing with plugins
*
* @return PluginManager for this Server instance
*/
public PluginManager getPluginManager();
}