Skip to content

Instantly share code, notes, and snippets.

public void scoreRound(){
System.out.println();
System.out.println("End of round scores:");
for(Team x: Teams){
TeamScore = x.getScore();
TeamName = x.getTeamName();
TeamBid = x.getTeamBid();
TeamBooks = x.getTeamBooks();
TeamOverBooks = x.getTeamOverBooks();
for(Player z : x.Team){
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package futurevalueapp;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
public void rainbowize(CommandSender sender, String[] args){
for(String y : args){
String colorMessage = appendColors(y);
sender.sendMessage(colorMessage);
}
}
private String appendColors(String y) {
y.trim();
StringBuilder sb = new StringBuilder(y);
public void rainbowize(CommandSender sender, String[] args){
String colorMessage = "";
String fullMessage = "";
for(String y : args){
colorMessage = appendColors(y);
fullMessage+=colorMessage+" ";
}
Player player = (Player) sender;
player.chat(fullMessage);
}
public void sortHand(){
LinkedList<Card> spades = new LinkedList<Card>();
for(Card x : playerHand){
if(x.getSuit() == Suit.SPADES){
spades.add(x);
}
Collections.sort(spades);
}
LinkedList<Card> diamonds = new LinkedList<Card>();
for(Card x : playerHand){
#!/bin/sh
# Blake's super awesome jar signing script for *nix
if [ -f ~/NetBeansProjects/tpcspades/dist/TPCSpades.jar ]
then
echo "Jar found"
if [ -f ~/Documents/TPCGames ]
then
echo "Keystore found"
echo "Signing jar..."
jarsigner -keystore ~/Documents/TPCGames ~/NetBeansProjects/tpcspades/dist/TPCSpades.jar TPCGames
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.spades;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
#!/bin/sh
# Blake's super awesome jar signing script for *nix
if [ -f ~/NetBeansProjects/tpcspades/dist/TPCSpades.jar ]
then
echo "TPCSpades.jar found..."
if [ -f ~/Documents/TPCGames ]
then
echo "Keystore found..."
jarsigner -keystore ~/Documents/TPCGames ~/NetBeansProjects/tpcspades/dist/TPCSpades.jar TPCGames > /dev/null
echo "Jar signed!"
name: FoundDiamonds
version: 3.1.4
main: me.itsatacoshop247.FoundDiamonds.FoundDiamonds
author: itsatacoshop247, SeeD419
website: http://dev.bukkit.org/server-mods/founddiamonds/
database: false
commands:
fd:
description: Shows the main menu
package org.seed419.FoundDiamonds;
import org.bukkit.ChatColor;
import org.bukkit.Material;
/**
* Created with IntelliJ IDEA.
* User: seed419
* Date: 4/12/12
* Time: 3:35 PM