This file contains hidden or 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
//META{"name":"EmojiTyperIntegration"}*// | |
const EmojiTyperIntegration = class EmojiTyperIntegration { | |
getName() { return "EmojiTyper Integration"; } | |
getShortName() { return "emojityper-integration"; } | |
getDescription() { return "Integrates https://emojityper.com with your emoji picker. Simply search with @<term> to query EmojiPicker, or type :@<query> in chat to autocomplete with EmojiPicker."; } | |
getVersion() { return "1.0.0"; } | |
getAuthor(){ return "molenzwiebel"; } | |
load() {} |
This file contains hidden or 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
require "open-uri" | |
require "json" | |
contents = JSON.parse open("http://screensaver.riotgames.com/latest/content/data.json").read | |
names = contents["locale"]["translations"]["en_US"] | |
def get_type(asset) | |
return "Illustration" if !asset.nil? && asset["tags"].include?("illustrations") | |
return "Animation" if !asset.nil? && asset["tags"].include?("animated-art") | |
return "Video Still" if !asset.nil? && asset["tags"].include?("video-stills") |
This file contains hidden or 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
package nl.thijsmolendijk.util.reflect; | |
import java.lang.reflect.Constructor; | |
import java.lang.reflect.Field; | |
import java.lang.reflect.Method; | |
import java.util.Arrays; | |
import org.bukkit.Bukkit; | |
This file contains hidden or 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
public class Commands { | |
public static class ParentCommand { | |
@Command(aliases = { "myplugin"}, desc = "All MyPlugin commands", min = 0, max = -1) | |
@NestedCommand(Command.class) //All commands will get passed on to Commands.class | |
public static void myplugin(final CommandContext args, CommandSender sender) throws CommandException { | |
} | |
} | |
@Command(aliases = { "hello", "hey" }, desc = "Says hello", usage = "[player] - The player to say hello to", min = 1, max = 1) | |
public static void hello(final CommandContext args, CommandSender sender) throws CommandException { | |
Player target = Bukkit.getPlayer(args.getString(0)); //0 is the index |
This file contains hidden or 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
package nl.thijsmolendijk.LoopThruTest; | |
import java.lang.reflect.Field; | |
import java.lang.reflect.Method; | |
import java.lang.reflect.Modifier; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.bukkit.Material; | |
import org.bukkit.inventory.ItemStack; |
This file contains hidden or 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
private String MOTD; | |
private String gameVersion; //Currently 1.5.2 | |
private int onlinePlayers; | |
private int maxPlayers; | |
public static String readString(DataInputStream par0DataInputStream, int par1) throws IOException | |
{ | |
short short1 = par0DataInputStream.readShort(); | |
if (short1 > par1) |
NewerOlder