Skip to content

Instantly share code, notes, and snippets.

View drewhoener's full-sized avatar

Drew Hoener drewhoener

View GitHub Profile
public static void createArray(){
//Create our scanner
Scanner scanner = new Scanner(System.in);
//Formatting! Just to make it pretty. We read in an integer with the scanner. The program knows to wait until you enter one
System.out.print("Enter an Array Length: ");
int length = scanner.nextInt();
//Create our array
int[] arr = new int[length];
public class Book {
int numberSold;
private String name;
private double price;
public Book(String n, String p, int c) {
}
this.protocolManager = ProtocolLibrary.getProtocolManager();
this.protocolManager.addPacketListener(new PacketAdapter(this, PacketType.Play.Client.BLOCK_DIG) {
@Override
public void onPacketReceiving(PacketEvent event) {
for(EnumWrappers.PlayerDigType digType : event.getPacket().getPlayerDigTypes().getValues()) {
if(digType == EnumWrappers.PlayerDigType.ABORT_DESTROY_BLOCK) {
//Do Things Here
}
}
}
public class BitTests {
public static void main(String[] args) {
new BitTests().run();
}
void run(){
Collect.yml
DIAMONDS:
ITEM_TO_GET: !!org.bukkit.Material 'DIAMOND'
COLLECT_AMOUNT: 3
ITEM_ID: 0
Bread Winner:
ITEM_TO_GET: !!org.bukkit.Material 'BREAD'
COLLECT_AMOUNT: 32
ITEM_ID: 0