This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.lang.reflect.Field; | |
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Method; | |
import org.bukkit.entity.Player; | |
import org.bukkit.plugin.Plugin; | |
public final class ReflectPing { | |
private String nmsver; | |
private Class<?> cpc, epc; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
import java.util.List; | |
import org.bukkit.ChatColor; | |
import org.bukkit.Material; | |
import org.bukkit.entity.Player; | |
import org.bukkit.event.EventHandler; | |
import org.bukkit.event.Listener; | |
import org.bukkit.event.player.PlayerInteractEvent; | |
import org.bukkit.inventory.ItemStack; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
::The number of bots | |
set BOTS=10 | |
::The ip to connect | |
set IP=127.0.0.1:25565 | |
::The delay between connections | |
set DELAY=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.nio.file.Files; | |
public class ConfigurationManager { | |
public static Configuration loadConfig(String name, Main main) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
title Easy Maven Installer Script | |
if defined M2_HOME ( | |
choice /m "Maven seems to be already installed, do you want to continue?" /c YN | |
if errorlevel 2 ( | |
echo The installation has been cancelled | |
pause | |
exit | |
) else if errorlevel 1 ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
title Java Swing Graphical Glitch Fixer | |
color 02 | |
:checkadmin | |
net file 1>nul 2>nul | |
if '%errorlevel%' == '0' ( | |
goto ask | |
) else ( | |
powershell "saps -filepath %0 -verb runas" >nul 2>&1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.bukkit.configuration.file.FileConfiguration; | |
import org.bukkit.configuration.file.YamlConfiguration; | |
import java.io.File; | |
import java.io.IOException; | |
import java.nio.file.Files; | |
public class ConfigurationManager { | |
public static FileConfiguration loadConfig(File file, Main main) { | |
FileConfiguration config = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.google.gson.Gson; | |
import com.google.gson.JsonElement; | |
import com.google.gson.JsonObject; | |
import com.google.gson.JsonParser; | |
import java.io.IOException; | |
import java.net.InetSocketAddress; | |
public class PingExample { | |
private static Gson gson = new Gson(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.bukkit.Material; | |
import org.bukkit.entity.Entity; | |
import org.bukkit.entity.EntityType; | |
import org.bukkit.entity.Skeleton; | |
import org.bukkit.inventory.ItemStack; | |
import org.bukkit.inventory.meta.SkullMeta; | |
public class EntityUtils { | |
public static ItemStack getSkull(Entity entity) { | |
EntityType type = entity.getType(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.mojang.authlib.GameProfile; | |
import com.mojang.authlib.properties.Property; | |
import com.mojang.authlib.properties.PropertyMap; | |
import org.bukkit.ChatColor; | |
import org.bukkit.Material; | |
import org.bukkit.entity.EntityType; | |
import org.bukkit.inventory.ItemStack; | |
import org.bukkit.inventory.meta.SkullMeta; | |
import java.lang.reflect.Field; |
OlderNewer