Skip to content

Instantly share code, notes, and snippets.

View LaxWasHere's full-sized avatar
🍉
Watermelon

Lax LaxWasHere

🍉
Watermelon
View GitHub Profile
@LaxWasHere
LaxWasHere / BukkitSerialization.java
Created February 9, 2018 16:02 — forked from graywolf336/BukkitSerialization.java
Serialize and deserialize the player's inventory, including armor and content.
/**
* Converts the player inventory to a String array of Base64 strings. First string is the content and second string is the armor.
*
* @param playerInventory to turn into an array of strings.
* @return Array of strings: [ main content, armor content ]
* @throws IllegalStateException
*/
public static String[] playerInventoryToBase64(PlayerInventory playerInventory) throws IllegalStateException {
//get the main content part, this doesn't return the armor
String content = toBase64(playerInventory);
@LaxWasHere
LaxWasHere / Tutorial.md
Last active August 29, 2015 14:22 — forked from vemacs/Tutorial.md
Instructions for setting up a Spigot server using mark2 on Windows.

Prerequisites

  • A flash drive or a Compact Disc
  • a vswap OpenVZ VPS or a KVM/Xen/VMware VPS with Ubuntu Server 14.04 LTS installed (architecture doesn't matter), or a dedicated server
  • patience and a willingness to learn
  • approximately 30 minutes of time

First off, install a better OS.

Follow the guide on this site then come back and follow the steps on this page