Skip to content

Inofficial Labymod API with Support for latest Spigot Versions (1.19.2+)

Notifications You must be signed in to change notification settings

Timeox2k/LabyCubeAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LabyCubeAPI - Inofficial Labymod Server API with Support for latest Spigot Versions (1.19.2+)

Code Example

    //LIST NEEDED TO PREVENT DUPLICATED EVENT CALLS
    private List<Player> labymodPlayers = new ArrayList<>();

    @EventHandler
    public void on(LabymodUserJoinEvent event) {
        final Player player = event.getPlayer();

        if(!labymodPlayers.contains(player)) {
            labymodPlayers.add(player);
            player.sendMessage("§aThank you for playing with LabyMod!");
        }

    }

    @EventHandler
    public void on(PlayerQuitEvent event) {
        final Player player = event.getPlayer();  
        if(labymodPlayers.contains(player)) {
            labymodPlayers.remove(player);
        }
    }

About

Inofficial Labymod API with Support for latest Spigot Versions (1.19.2+)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages