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
### Keybase proof | |
I hereby claim: | |
* I am amejonah1200 on github. | |
* I am amejonah (https://keybase.io/amejonah) on keybase. | |
* I have a public key ASBWNk3AnJZdVEhXnFEj660MWe6gWpnGeJ1gJx0PjapKRQo | |
To claim this, I am signing this object: |
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 org.jetbrains.annotations.NotNull; | |
import org.jetbrains.annotations.Nullable; | |
import java.util.Objects; | |
import java.util.function.*; | |
public class Result<T, E extends Throwable> { | |
private final T obj; | |
private final E error; |
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 org.jetbrains.annotations.NotNull; | |
import java.util.*; | |
import java.util.concurrent.ThreadLocalRandom; | |
import java.util.concurrent.atomic.AtomicInteger; | |
public class WeightedRandomEvents<A> { | |
private final Map<Integer, Consumer<A>> events; | |
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.Arrays; | |
import java.util.List; | |
public class VigenereCypher { | |
private static List<Character> alphabet = Arrays.asList('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'); | |
public static void main(String[] args) { | |
System.out.println(alphabet.indexOf('X') + " " + alphabet.indexOf('K') + " " +alphabet.indexOf('H')); | |
System.out.println(encodeString("X", "K")); |
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 org.bukkit.entity.Player; | |
import com.github.intellectualsites.plotsquared.api.PlotAPI; | |
import com.github.intellectualsites.plotsquared.plot.object.Plot; | |
import com.github.intellectualsites.plotsquared.plot.object.PlotPlayer; | |
import net.minecraft.server.v1_8_R3.Material; | |
public static void setRand(Player player, Material material) { | |
PlotPlayer plotPlayer = new PlotAPI().wrapPlayer(player.getUniqueId()); | |
Plot plot = plotPlayer.getCurrentPlot(); | |
if (plot == null) return; |
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
//HowToOpen first Menu | |
MenuRegistery#open(null, new OneMenu((Player) arg0, getMenuRegistery())); |
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
// 1.12.2 and lower | |
type -> Material | |
id -> SubID | |
Plot#setComponent("border", com.intellectualcrafters.plot.config.Configuration.BLOCKLIST.parseString(type.toString() + ":" + id)); | |
// 1.13.2 and higher | |
type -> Material | |
Plot#setComponent("border", com.intellectualcrafters.plot.config.Configuration.BLOCKLIST.parseString(type.toString())); |