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
| import com.sk89q.commandbook.CommandBook; | |
| import com.sk89q.commandbook.util.PlayerUtil; | |
| import com.sk89q.minecraft.util.commands.Command; | |
| import com.sk89q.minecraft.util.commands.CommandContext; | |
| import com.sk89q.minecraft.util.commands.CommandException; | |
| import com.sk89q.minecraft.util.commands.CommandPermissions; | |
| import com.zachsthings.libcomponents.ComponentInformation; | |
| import com.zachsthings.libcomponents.bukkit.BukkitComponent; | |
| import java.util.ArrayList; | |
| import java.util.Collection; |
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 static String[] RVALS = {"M", "CM", "D", "CD", "C", "XC", "L", | |
| "XL", "X", "IX", "V", "IV", "I"}; | |
| private static int[] IVALS = {1000, 900, 500, 400, 100, 90, | |
| 50, 40, 10, 9, 5, 4, 1}; | |
| public static String toRomanNumeral(int value) { | |
| if (value >= 4000 || value <= 0) return ""; | |
| String roman = ""; | |
| for (int i = 0; i < RVALS.length; i++) { |
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.darqy.TestPlugin; | |
| import java.text.CharacterIterator; | |
| import java.text.StringCharacterIterator; | |
| import net.minecraft.server.EntityHuman; | |
| import org.bukkit.Bukkit; | |
| import org.bukkit.Material; | |
| import org.bukkit.block.Block; | |
| import org.bukkit.block.BlockFace; | |
| import org.bukkit.craftbukkit.CraftWorld; |
NewerOlder