Skip to content

Instantly share code, notes, and snippets.

@MrMicky-FR
MrMicky-FR / ServerPinger.java
Last active March 5, 2024 12:59
Simple tool to ping a Minecraft server to get MOTD, online players and max players.
/*
* MIT License.
*
* Copyright (c) 2021 MrMicky
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
import net.md_5.bungee.api.plugin.Plugin;
import net.md_5.bungee.config.Configuration;
import net.md_5.bungee.config.ConfigurationProvider;
import net.md_5.bungee.config.YamlConfiguration;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
package fr.mrmicky.testplugin;
import com.mojang.authlib.GameProfile;
import com.mojang.authlib.properties.Property;
import org.bukkit.entity.Player;
import org.bukkit.inventory.meta.SkullMeta;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.util.UUID;
@MrMicky-FR
MrMicky-FR / RamSelector.java
Last active February 9, 2019 12:18
A simple ram selector in Java
package fr.mrmicky.ramselector;
import javax.swing.*;
import java.lang.management.ManagementFactory;
/**
* @author MrMicky
*/
@SuppressWarnings("serial")
public class RamSelector extends JFrame {