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
package me.delta.mc.wand.listeners; | |
import org.bukkit.Bukkit; | |
import org.bukkit.Color; | |
import org.bukkit.Location; | |
import org.bukkit.Material; | |
import org.bukkit.block.Block; | |
import org.bukkit.entity.BlockDisplay; | |
import org.bukkit.entity.Display; | |
import org.bukkit.entity.Player; |
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
#!/bin/bash | |
# switch to config directory | |
while true; do | |
# Of course you can use any other executable file here. We use java. | |
java \ | |
-Xms256m \ | |
-Xmx2048m \ |
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
import gzip | |
import base64 | |
import struct | |
def TAG_End(b): | |
return None, b | |
def TAG_byte(b): | |
return b[0], b[1:] |
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
import math | |
def duplicates(vigenere): | |
strings = [] | |
duplicates = set() | |
for index in range(len(vigenere)): | |
string = "" | |
for i in range(3): | |
if index + i < len(vigenere): | |
string += vigenere[index + i] |
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
import java.util.*; | |
import org.bukkit.command.*; | |
public final class DelegatingCommand implements CommandExecutor { | |
private final Map<String, ? extends CommandExecutor> children; | |
private final CommandExecutor defaultCase; | |
public DelegatingCommand(Map<String, ? extends CommandExecutor> children) { | |
this((s, c, l, a) -> false, children); |
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
package com.github.johnnyjayjay.testplugin; | |
import org.bukkit.Bukkit; | |
import org.bukkit.event.Event; | |
import org.bukkit.event.EventPriority; | |
import org.bukkit.event.HandlerList; | |
import org.bukkit.event.Listener; | |
import org.bukkit.plugin.Plugin; | |
import java.util.function.Consumer; |