Add Warning API and settings for Deprecated events

By: Wesley Wolfe <weswolf@aol.com>
This commit is contained in:
Bukkit/Spigot 2012-08-07 00:16:57 -05:00
parent 32052e63e2
commit cef9873c0c
6 changed files with 126 additions and 6 deletions

View file

@ -8,6 +8,7 @@ import java.util.Set;
import java.util.UUID;
import java.util.logging.Logger;
import org.bukkit.Warning.WarningState;
import org.bukkit.command.CommandException;
import org.bukkit.command.CommandSender;
import org.bukkit.command.ConsoleCommandSender;
@ -651,4 +652,11 @@ public interface Server extends PluginMessageRecipient {
* @returns the servers MOTD
*/
String getMotd();
/**
* Gets the current warning state for the server
*
* @return The configured WarningState
*/
public WarningState getWarningState();
}