// Path: src/main/java/net/frozenbit/plugin5zig/cubecraft/gamemodes/SkywarsMode.java
// public class SkywarsMode extends TimeLootVotableMode {
//     private static Stalker stalker;
// 
//     public SkywarsMode() {
//         super();
//     }
// 
//     @Override
//     public String getName() {
//         return "Skywars";
//     }
// 
//     @Override
//     public Stalker getStalker() {
//         if (stalker == null)
//             stalker = new Stalker(this);
//         return stalker;
//     }
// }


import eu.the5zig.mod.The5zigAPI;
import eu.the5zig.mod.server.GameState;
import eu.the5zig.mod.server.IPatternResult;
import net.frozenbit.plugin5zig.cubecraft.gamemodes.SkywarsMode;
package net.frozenbit.plugin5zig.cubecraft.listeners;



public class SkywarsGameListener extends AbstractCubeCraftGameListener<SkywarsMode> {

    public SkywarsGameListener() {
        super("skywars");
    }

    @Override
    public Class<SkywarsMode> getGameMode() {
        return SkywarsMode.class;
    }

    @Override
    public boolean matchLobby(String lobby) {
        return lobby.contains("SkyWars");
    }

    @Override
    public void onGameModeJoin(SkywarsMode gameMode) {
        super.onGameModeJoin(gameMode);
        gameMode.setKitsEnabled(The5zigAPI.getAPI().getItemCount("item.paper") == 1);
        requestPlayerList();
    }

    @Override
// Path: src/main/java/net/frozenbit/plugin5zig/cubecraft/gamemodes/SkywarsMode.java
// public class SkywarsMode extends TimeLootVotableMode {
//     private static Stalker stalker;
// 
//     public SkywarsMode() {
//         super();
//     }
// 
//     @Override
//     public String getName() {
//         return "Skywars";
//     }
// 
//     @Override
//     public Stalker getStalker() {
//         if (stalker == null)
//             stalker = new Stalker(this);
//         return stalker;
//     }
// }


// Path: src/main/java/net/frozenbit/plugin5zig/cubecraft/listeners/SkywarsGameListener.java
import eu.the5zig.mod.The5zigAPI;
import eu.the5zig.mod.server.GameState;
import eu.the5zig.mod.server.IPatternResult;
import net.frozenbit.plugin5zig.cubecraft.gamemodes.SkywarsMode;

package net.frozenbit.plugin5zig.cubecraft.listeners;



public class SkywarsGameListener extends AbstractCubeCraftGameListener<SkywarsMode> {

    public SkywarsGameListener() {
        super("skywars");
    }

    @Override
    public Class<SkywarsMode> getGameMode() {
        return SkywarsMode.class;
    }

    @Override
    public boolean matchLobby(String lobby) {
        return lobby.contains("SkyWars");
    }

    @Override
    public void onGameModeJoin(SkywarsMode gameMode) {
        super.onGameModeJoin(gameMode);
        gameMode.setKitsEnabled(The5zigAPI.getAPI().getItemCount("item.paper") == 1);
        requestPlayerList();
    }

    @Override
    public void onMatch(SkywarsMode gameMode, String key, IPatternResult match) {