package valandur.webapi.api.server;

import java.util.List;
import java.util.Map;

/**
 * This service provides information about the minecraft server.
 */
public interface IServerService {

    /**
     * Gets the properties that are in the server.properties file of the minecraft server.
     * @return The properties of the minecraft server.
     */
    Map<String, String> getProperties();

    /**
     * Sets a property for the minecraft server.
     * @param key The key of the property.
     * @param value The new value of the property.
     */
    void setProperty(String key, String value);

    /**
     * Gets a history of the average TPS of the minecraft server.
     * @return A list containing measurements of the TPS.
     */
    List<IServerStat<Double>> getAverageTps();
    /**
     * Gets a history of the amount of players that were online on the minecraft server.
     * @return A list containing measurements of the amount of players online.
     */
    List<IServerStat<Integer>> getOnlinePlayers();
}

@@ -59,31 +59,8 @@
 st;%0D
-%0Aimport java.util.Map;%0D
 %0A%0D%0A/
@@ -175,433 +175,8 @@
 %0D%0A%0D%0A
-    /**%0D%0A     * Gets the properties that are in the server.properties file of the minecraft server.%0D%0A     * @return The properties of the minecraft server.%0D%0A     */%0D%0A    Map%3CString, String%3E getProperties();%0D%0A%0D%0A    /**%0D%0A     * Sets a property for the minecraft server.%0D%0A     * @param key The key of the property.%0D%0A     * @param value The new value of the property.%0D%0A     */%0D%0A    void setProperty(String key, String value);%0D%0A%0D%0A
     

Remove unused methods from server service interface