Skip to content

Instantly share code, notes, and snippets.

View stijnb1234's full-sized avatar
🏫
HBO-ICT Study, 4th year

Stijn Bannink stijnb1234

🏫
HBO-ICT Study, 4th year
View GitHub Profile
@stijnb1234
stijnb1234 / start.sh
Last active October 11, 2024 15:01
Auto-update PaperMc start script for testserver
#!/bin/bash
# NOTE: Requires jq to be installed (Ubuntu: sudo apt install jq -y)
# Change Minecraft version and amount of RAM to use here!
MC_VERSION="1.21.1"
MEMORY="5G"
## DO NOT TOUCH BELOW ##
@stijnb1234
stijnb1234 / pom.xml
Last active August 27, 2022 14:53
Example pom.xml for Spigot 1.17.1 (using Java 16)
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>nl.whoareyou</groupId>
<artifactId>MyPlugin</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
@stijnb1234
stijnb1234 / RenderAPI.java
Created February 1, 2021 14:40
API to render images in Java easily
package nl.sbdeveloper.mcthemeparks.utils;
import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.awt.image.RenderedImage;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.net.URL;
import java.util.Base64;