package cloud.swiftnode.kspam.listener;

import cloud.swiftnode.kspam.util.StaticStorage;
import com.comphenix.protocol.events.ConnectionSide;
import com.comphenix.protocol.events.ListenerPriority;
import com.comphenix.protocol.events.PacketAdapter;
import com.comphenix.protocol.events.PacketEvent;
import org.bukkit.plugin.Plugin;

/**
 * Created by Junhyeong Lim on 2017-01-12.
 */
public class ProtocolListener extends PacketAdapter {
    public ProtocolListener(Plugin plugin) {
        super(plugin, ConnectionSide.SERVER_SIDE, ListenerPriority.LOWEST, 1);
    }

    @Override
    public void onPacketSending(PacketEvent event) {
        StaticStorage.validateSet.add(event.getPlayer().getName().toLowerCase());
    }
}

@@ -552,17 +552,18 @@
 LOWEST, 
-1
+35
 );%0A    %7D

Fix packet ID