Add Warning API and settings for Deprecated events

This commit is contained in:
Wesley Wolfe
2012-08-07 00:16:57 -05:00
parent ebb4362cf6
commit dc3fc6a702
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();
}