mirror of https://github.com/LOOHP/Limbo.git
26 lines
548 B
Java
26 lines
548 B
Java
package com.loohp.limbo.server.packets;
|
|
|
|
import java.io.DataInputStream;
|
|
import java.io.IOException;
|
|
import java.nio.charset.StandardCharsets;
|
|
|
|
import com.loohp.limbo.utils.DataTypeIO;
|
|
|
|
public class PacketLoginInLoginStart extends PacketIn {
|
|
|
|
private String username;
|
|
|
|
public PacketLoginInLoginStart(String username) {
|
|
this.username = username;
|
|
}
|
|
|
|
public PacketLoginInLoginStart(DataInputStream in) throws IOException {
|
|
this(DataTypeIO.readString(in, StandardCharsets.UTF_8));
|
|
}
|
|
|
|
public String getUsername() {
|
|
return username;
|
|
}
|
|
|
|
}
|