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

net.minestom.server.extras.query.event.BasicQueryEvent Maven / Gradle / Ivy

There is a newer version: 7320437640
Show newest version
package net.minestom.server.extras.query.event;

import net.minestom.server.extras.query.response.BasicQueryResponse;
import org.jetbrains.annotations.NotNull;

import java.net.SocketAddress;

/**
 * An event called when a basic query is received and ready to be responded to.
 */
public class BasicQueryEvent extends QueryEvent {

    /**
     * Creates a new basic query event.
     *
     * @param sessionID the session ID
     * @param sender the sender
     */
    public BasicQueryEvent(@NotNull SocketAddress sender, int sessionID) {
        super(sender, sessionID, new BasicQueryResponse());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy