All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.nukkit.network.rcon.RCONCommand Maven / Gradle / Ivy

There is a newer version: 1.20.40-r1
Show newest version
package cn.nukkit.network.rcon;

import java.nio.channels.SocketChannel;

/**
 * A data structure to hold sender, request ID and command itself.
 *
 * @author Tee7even
 */
public class RCONCommand {
    private final SocketChannel sender;
    private final int id;
    private final String command;

    public RCONCommand(SocketChannel sender, int id, String command) {
        this.sender = sender;
        this.id = id;
        this.command = command;
    }

    public SocketChannel getSender() {
        return this.sender;
    }

    public int getId() {
        return this.id;
    }

    public String getCommand() {
        return this.command;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy