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
#!/usr/bin/python | |
from time import sleep | |
from pygame import mixer | |
mixer.init() | |
# Download file from https://freesound.org/people/Koyber/sounds/160483/ | |
mixer.music.load('white-rose.mp3') | |
mixer.music.play() |
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
/** | |
* 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); |
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
// Created by ReedFlake <[email protected]> | |
// Copyright © Serpentine Library (Phaed). | |
Serpent data = new Serpent("test"); | |
data.addMap("mapa1"); | |
data.selectLast(); | |
data.addKey("user-id", 2, Integer.class, UUID.class); | |
data.setArgumentName("id", 1, "id"); | |
data.setArgumentName("id", 2, "uuid"); |