mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-05 14:42:22 -07:00
Implemented new Plugin Message API - see http://dinnerbone.com/blog/2012/01/13/minecraft-plugin-channels-messaging/
By: Nathan Adams <dinnerbone@dinnerbone.com>
This commit is contained in:
@@ -20,12 +20,14 @@ import org.bukkit.command.ConsoleCommandSender;
|
||||
import org.bukkit.map.MapView;
|
||||
import org.bukkit.plugin.PluginManager;
|
||||
import org.bukkit.plugin.ServicesManager;
|
||||
import org.bukkit.plugin.messaging.Messenger;
|
||||
import org.bukkit.plugin.messaging.PluginMessageRecipient;
|
||||
import org.bukkit.scheduler.BukkitScheduler;
|
||||
|
||||
/**
|
||||
* Represents a server implementation
|
||||
*/
|
||||
public interface Server {
|
||||
public interface Server extends PluginMessageRecipient {
|
||||
/**
|
||||
* Used for all administrative messages, such as an operator using a command.
|
||||
*
|
||||
@@ -533,4 +535,11 @@ public interface Server {
|
||||
* @return Array containing all players
|
||||
*/
|
||||
public OfflinePlayer[] getOfflinePlayers();
|
||||
|
||||
/**
|
||||
* Gets the {@link Messenger} responsible for this server.
|
||||
*
|
||||
* @return Messenger responsible for this server.
|
||||
*/
|
||||
public Messenger getMessenger();
|
||||
}
|
||||
|
Reference in New Issue
Block a user