Search in sources :

Example 1 with BukkitFastLoginPreLoginEvent

use of com.github.games647.fastlogin.bukkit.event.BukkitFastLoginPreLoginEvent in project FastLogin by games647.

the class NameCheckTask method callFastLoginPreLoginEvent.

@Override
public FastLoginPreLoginEvent callFastLoginPreLoginEvent(String username, ProtocolLibLoginSource source, StoredProfile profile) {
    BukkitFastLoginPreLoginEvent event = new BukkitFastLoginPreLoginEvent(username, source, profile);
    plugin.getServer().getPluginManager().callEvent(event);
    return event;
}
Also used : BukkitFastLoginPreLoginEvent(com.github.games647.fastlogin.bukkit.event.BukkitFastLoginPreLoginEvent)

Example 2 with BukkitFastLoginPreLoginEvent

use of com.github.games647.fastlogin.bukkit.event.BukkitFastLoginPreLoginEvent in project FastLogin by games647.

the class ProtocolSupportListener method callFastLoginPreLoginEvent.

@Override
public FastLoginPreLoginEvent callFastLoginPreLoginEvent(String username, ProtocolLoginSource source, StoredProfile profile) {
    BukkitFastLoginPreLoginEvent event = new BukkitFastLoginPreLoginEvent(username, source, profile);
    plugin.getServer().getPluginManager().callEvent(event);
    return event;
}
Also used : BukkitFastLoginPreLoginEvent(com.github.games647.fastlogin.bukkit.event.BukkitFastLoginPreLoginEvent)

Aggregations

BukkitFastLoginPreLoginEvent (com.github.games647.fastlogin.bukkit.event.BukkitFastLoginPreLoginEvent)2