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 net.darkseraphim.dungeons.util; | |
| import org.apache.commons.lang.Validate; | |
| import java.util.HashMap; | |
| import java.util.Map; | |
| /** | |
| * @Author DarkSeraphim | |
| */ |
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 net.darkseraphim.dungeons.util; | |
| import org.bukkit.World; | |
| import org.bukkit.generator.BlockPopulator; | |
| import org.bukkit.generator.ChunkGenerator; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import java.util.Random; |
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 AnyClass | |
| { | |
| private final MainClass plugin; | |
| public AnyClass(MainClass plugin) | |
| { | |
| this.plugin = plugin; | |
| } | |
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 Permissions | |
| { | |
| public enum Permission | |
| { | |
| CREATE, | |
| DERP | |
| ; | |
| private final long val; |
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
| /** | |
| * @author DarkSeraphim | |
| */ | |
| public class IslandIndicesUtil | |
| { | |
| // Just a tad more OO and less breakable | |
| public static class Indices | |
| { | |
| private final int x, z; |
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 com.castawaydev.nicknamevault; | |
| import com.castawaydev.hubapi.HubAPI; | |
| import com.google.common.collect.Sets; | |
| import java.util.HashMap; | |
| import java.util.Map; | |
| import java.util.Set; | |
| import org.bukkit.Bukkit; | |
| import org.bukkit.ChatColor; | |
| import org.bukkit.command.Command; |
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 com.aaomidi.dev.skyblock.engine.objects; | |
| import lombok.EqualsAndHashCode; | |
| import lombok.RequiredArgsConstructor; | |
| import org.apache.commons.lang.Validate; | |
| import java.util.AbstractSet; | |
| import java.util.Iterator; | |
| import java.util.Map; | |
| import java.util.Set; |
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 com.aaomidi.dev.skyblock.engine.objects; | |
| import lombok.EqualsAndHashCode; | |
| import lombok.RequiredArgsConstructor; | |
| import org.apache.commons.lang.Validate; | |
| import java.util.AbstractSet; | |
| import java.util.Iterator; | |
| import java.util.Map; | |
| import java.util.Set; |
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 net.darkseraphim.testmodule; | |
| import net.darkseraphim.classmanager.api.annotation.*; | |
| import net.darkseraphim.classmanager.api.commands.DynCommandExecutor; | |
| import net.darkseraphim.classmanager.api.module.ModuleInstance; | |
| import org.bukkit.Bukkit; | |
| import org.bukkit.ChatColor; | |
| import org.bukkit.command.CommandSender; | |
| import org.bukkit.entity.Player; | |
| import org.bukkit.event.EventHandler; |
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
| Pattern colour = Pattern.compile(ChatColor.COLOR_CHAR+"([0-9a-fk-or])(.*)", Pattern.CASE_INSENSITIVE); | |
| public FancifulMessage foo(String msg) | |
| { | |
| String[] pieces = msg.replace(ChatColor.COLOR_CHAR.toString(), "\0"+ChatColor.COLOR_CHAR).split("\0"); | |
| int i = 0; | |
| FancifulMessage fm; | |
| // Perhaps reset | |
| String part; | |
| Matcher m; |