Skip to content

Instantly share code, notes, and snippets.

View kezz's full-sized avatar

Kezz kezz

View GitHub Profile
@kezz
kezz / Example.java
Created June 14, 2022 15:13
PlaceholderAPI in MiniMessage
// Example method to create a MiniMessage placeholder that parses PlaceholderAPI placeholders for a player.
// The tag added is of the format "<papi:papi_placeholder>". For example, "<papi:luckperms_prefix>".
// Credit to mbaxter.
/**
* Creates a tag resolver capable of resolving PlaceholderAPI tags for a given player.
*
* @param player the player
* @return the tag resolver
*/
@kezz
kezz / AdventureWebuiEditorAPI.java
Last active June 25, 2025 11:49
adventure-web Java API
/*
* This file is part of adventure-webui, licensed under the MIT License.
*
* Copyright (c) 2021 KyoriPowered
*
* 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
@kezz
kezz / sig.php
Created September 2, 2013 21:23
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
ini_set('allow_url_fopen', 1);
include 'resources/php/pastebin.php';
if(empty($_GET["p"]) == false) {
@kezz
kezz / gist:5755191
Last active December 18, 2015 08:38
List<String> list = getConfig().getStringList("Plague.Spawns.Red");
String randomString = list.get(new Random().nextInt(list.size());
String[] coords = randomString.split(",");
player.teleport(new Location(Bukkit.getWorld(config.getString("Plague.Spawns.World"), coords[0], coords[1], coords[2]));