Skip to content

Instantly share code, notes, and snippets.

@4oi
4oi / NotEnoughItems.java
Created March 31, 2017 15:07
1人1000役!ついプラグインをたくさん入れちゃうあなたにおすすめのプラグイン - NotEnoughPlugins
public class NotEnoughPlugins extends JavaPlugin {
private static final String[] PLUGIN_NAMES = {
"わーい!", "みゃみゃみゃみゃみゃみゃみゃあ!", "たーのしー!",
"まんぞく", "若干ゃ草", "へーきへーき", "やったぁ!",
"えっへん!", "プラグインを入れるのが得意なフレンズなんだね!",
"もうお友達だから!", "その手があったでござるか", "すっごーい",
"狩りごっこだね!", "た、食べないでくださーい!", "ちがうよ!",
"ジャンプ力ぅですかねぇ", "でもまあ騒ぐほどでもないか",
"よぉこそぉ", "ぺっ", "どうぞどうぞぉ!", "ゆっぐりしでいっでぇ!",
import java.util.function.Supplier;
public class Test {
public static void main(String...args) {
new If(true).then(() -> System.out.println("True")).orElse(() -> System.out.println("False"));
}
public static class If {
@4oi
4oi / BannerUtils.java
Created November 30, 2015 17:09
バナーにcharを書き込むユーティリティ
/*
* Copyright (C) 2015 Toyblocks
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of