Skip to content

Instantly share code, notes, and snippets.

View NeatMonster's full-sized avatar

Alex A. NeatMonster

View GitHub Profile
@NeatMonster
NeatMonster / AmaTree.java
Created February 28, 2012 14:43
AmaTree
package com.first4ever.amatree;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.block.BlockFace;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.block.BlockBreakEvent;
@NeatMonster
NeatMonster / XPBank.java
Created February 29, 2012 22:59
XPBank
package fr.yamakaky.xpbank;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Location;
package fr.aumgn.motd;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import org.bukkit.Bukkit;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.server.ServerListPingEvent;
package me.neatmonster.haveaseat;
import java.util.ArrayList;
import java.util.List;
import net.minecraft.server.Packet29DestroyEntity;
import net.minecraft.server.Packet39AttachEntity;
import org.bukkit.Bukkit;
import org.bukkit.Material;
package me.messageofdeath.xpstore;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.bukkit.plugin.java.JavaPlugin;
package fr.alaric1001.checkpoint;
import java.util.HashMap;
import java.util.Map;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.block.Sign;
import org.bukkit.command.Command;
package fr.madlaine.easybank;
import java.text.NumberFormat;
import java.text.ParseException;
import java.util.logging.Logger;
import net.milkbowl.vault.economy.Economy;
import org.bukkit.ChatColor;
import org.bukkit.block.Sign;
package fr.neatmonster.nocheatplushook;
import java.util.ArrayList;
import java.util.List;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
@NeatMonster
NeatMonster / Console.java
Created February 10, 2013 18:56
A proof of concept class showing that it's easy to replicate the Windows command line interface.
package fr.neatmonster.console;
import java.awt.Color;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.Image;
import java.awt.Toolkit;
import java.awt.event.InputEvent;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
# -*- coding: cp1252 -*-
if __name__ == '__main__':
raw_input()
n = int(raw_input())
roads = [[int(_) for _ in raw_input().split()] for i in xrange(n)]
roads = sorted(roads, cmp=lambda x, y: cmp(x[2], y[2]))
sets, kms = [], 0
for road in roads:
added = False
for set in sets: