Tad more Javadoc
This commit is contained in:
parent
fe6b40a6a8
commit
8c942e299f
@ -10,9 +10,24 @@ import lombok.Data;
|
|||||||
public class ServerPing
|
public class ServerPing
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Numeric protocol version supported by the server.
|
||||||
|
*/
|
||||||
private final byte protocolVersion;
|
private final byte protocolVersion;
|
||||||
|
/**
|
||||||
|
* Human readable game version.
|
||||||
|
*/
|
||||||
private final String gameVersion;
|
private final String gameVersion;
|
||||||
|
/**
|
||||||
|
* Server MOTD.
|
||||||
|
*/
|
||||||
private final String motd;
|
private final String motd;
|
||||||
|
/**
|
||||||
|
* Current amount of players on the server.
|
||||||
|
*/
|
||||||
private final String currentPlayers;
|
private final String currentPlayers;
|
||||||
|
/**
|
||||||
|
* Max amount of players the server will allow.
|
||||||
|
*/
|
||||||
private final String maxPlayers;
|
private final String maxPlayers;
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
package net.md_5.bungee.api.config;
|
package net.md_5.bungee.api.config;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.List;
|
|
||||||
import net.md_5.bungee.api.CommandSender;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class allows plugins to set their own configuration adapter to load
|
* This class allows plugins to set their own configuration adapter to load
|
||||||
@ -50,12 +48,12 @@ public interface ConfigurationAdapter
|
|||||||
public Collection<ListenerInfo> getListeners();
|
public Collection<ListenerInfo> getListeners();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get all groups this user is in.
|
* Get all groups this player is in.
|
||||||
*
|
*
|
||||||
* @param user the user to check
|
* @param player the player to check
|
||||||
* @return all the user's groups.
|
* @return all the player's groups.
|
||||||
*/
|
*/
|
||||||
public Collection<String> getGroups(String user);
|
public Collection<String> getGroups(String player);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get all permission corresponding to the specified group. The result of
|
* Get all permission corresponding to the specified group. The result of
|
||||||
|
@ -16,7 +16,7 @@ public class ListenerInfo
|
|||||||
*/
|
*/
|
||||||
private final InetSocketAddress host;
|
private final InetSocketAddress host;
|
||||||
/**
|
/**
|
||||||
* Displayed motd.
|
* Displayed MOTD.
|
||||||
*/
|
*/
|
||||||
private final String motd;
|
private final String motd;
|
||||||
/**
|
/**
|
||||||
|
@ -15,6 +15,12 @@ import net.md_5.bungee.api.connection.Connection;
|
|||||||
public abstract class TargetedEvent
|
public abstract class TargetedEvent
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creator of the action.
|
||||||
|
*/
|
||||||
private Connection sender;
|
private Connection sender;
|
||||||
|
/**
|
||||||
|
* Receiver of the action.
|
||||||
|
*/
|
||||||
private Connection receiver;
|
private Connection receiver;
|
||||||
}
|
}
|
||||||
|
@ -2,12 +2,27 @@ package net.md_5.bungee.api.plugin;
|
|||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* POJO representing the plugin.yml file.
|
||||||
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class PluginDescription
|
public class PluginDescription
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Friendly name of the plugin.
|
||||||
|
*/
|
||||||
private final String name;
|
private final String name;
|
||||||
|
/**
|
||||||
|
* Plugin main class. Needs to extend {@link Plugin}.
|
||||||
|
*/
|
||||||
private final String main;
|
private final String main;
|
||||||
|
/**
|
||||||
|
* Plugin version.
|
||||||
|
*/
|
||||||
private final String version;
|
private final String version;
|
||||||
|
/**
|
||||||
|
* Plugin author.
|
||||||
|
*/
|
||||||
private final String author;
|
private final String author;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user