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
// For scam report. | |
package sistancecoding.in; | |
import org.bukkit.plugin.java.*; | |
import org.bukkit.plugin.*; | |
import org.bukkit.*; | |
import org.bukkit.entity.*; | |
import org.bukkit.event.*; | |
import org.bukkit.event.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
private static final int MB = 1024*1024; | |
public static void main(String[] args) | |
{ | |
Runtime runtime = Runtime.getRuntime(); | |
final List<UUID> values = new ArrayList<UUID>(); | |
for (int i = 0; i < 100000; 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
private static final int MB = 1024*1024; | |
public static void main(String[] args) | |
{ | |
Runtime runtime = Runtime.getRuntime(); | |
final List<String> values = new ArrayList<String>(); | |
for (int i = 0; i < 100000; 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
@Override | |
public boolean onCommand(final CommandSender sender, final Command cmd, final String label, final String[] args) | |
{ | |
if (args.length < 1) | |
{ | |
sender.sendMessage(ChatColor.RED + "Sorry m8, gotta specify a message."); | |
return true; | |
} | |
/* |
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
private static HashMap<UUID, Integer> cooldownTime = new HashMap<UUID, Integer>(); | |
private static HashMap<UUID, BukkitRunnable> cooldownTask = new HashMap<UUID, BukkitRunnable>(); | |
private static final int popperCooldown = Honey.i.getConfig().getInt("gadgetPopperCooldown"); | |
private static final int popperPickupDelay = Honey.i.getConfig().getInt("gadgetPopperPickupDelay"); | |
private static ItemStack popperItem = new ItemStack(Material.AIR, Honey.i.getConfig().getInt("gadgetPopperDropAmt")); | |
static | |
{ | |
String itemName = Honey.i.getConfig().getString("gadgetPopperDropItem"); | |
try | |
{ |
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
@EventHandler(ignoreCancelled = true, priority = EventPriority.HIGHEST) | |
public void onEntityExplode(EntityExplodeEvent event) | |
{ | |
Iterator<Block> iterator = event.blockList().iterator(); | |
while (iterator.hasNext()) | |
{ | |
Block block = (Block) iterator.next(); | |
if (block.getState() instanceof InventoryHolder) | |
{ | |
InventoryHolder invh = (InventoryHolder) block.getState(); |