Skip to content

Instantly share code, notes, and snippets.

View Wolvereness's full-sized avatar

Wesley Wolfe Wolvereness

View GitHub Profile
@Wolvereness
Wolvereness / Localized.java
Created August 3, 2012 22:18
Localized abstract class
import static java.util.logging.Level.SEVERE;
import static org.bukkit.ChatColor.translateAlternateColorCodes;
import static org.bukkit.configuration.file.YamlConfiguration.loadConfiguration;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Array;
import java.util.List;
import java.util.Random;
@Wolvereness
Wolvereness / gist:3711588
Created September 13, 2012 03:11 — forked from pschichtel/gist:2795651
full annotated command
@Alias( // specifies an alias command for this command
names = {"aliasCOmmand", "shorter"}, // the alias names, first is the main name
parentPath = {"root","sub", "subsub"} // optional: the command path under which the alias should be registered (default: root)
)
@Command( // annotates the method as a command and provides all needed information
names = {"mycommand", "myalias"}, // command names, first is the main name
min = 2, // optional: the minimum number of indexed parameters
max = 7, // optional: the maximum number of indexed parameters
permission = true, // optional: whether to check a permission (default: true)
permissionNode = "my.permission.node" // optional: the permission to check, will be generated if not given

Bukkit Vanilla Command Inconsistencies

This is a list of known quirks and inconsistencies in Bukkit and CraftBukkit's handling of "vanilla" commands.

Broken Commands

The following commands simply do not behave properly on Bukkit. This isn't a matter of not being implemented - these commands have been implemented, but do not work properly.

  • spreadplayers - this command actually fails for a large number of reasons. Its most glaring flaw is that it declares 'world = null', and does not attempt to change this because the condition to set 'world' is 'if (world != null)' (surprisingly, Eclipse does not generate an "unreachable code" warning for this). This actually simply prevents the command from doing anything whatsoever. Other issues with this command include mishandling of PlayerSelectors (failing to actually meet any constraints), lacking a failure condition for too many players to m

Step 1:

Put both file1.yml.b64 and file2.yml.b64 into src/test/resources/org/bukkit/encoding

Step 2:

Put the UTF8Test.java file into src/test/java/org/bukkit/encoding

Step 3:

IRC.Esper.net - Minecraft IRC Logging service - Channel #bukkit
If you want your channel logged here, contact KHobbits on #lain @ Esper.
Other channels Current Log Newer Older Stats
Click to toggle join/part/mode/nick messages
[00:00:53]
[00:00:53] #bukkit - Fri Nov 15 00:00:53 2013
[00:00:53] ---
[00:01:08] * Topic is ':http://bukkit.org | What is Bukkit? http://goo.gl/8yrlm | Rules: http://goo.gl/2SJFD | #bukkitdev for (plugin) dev-related chatter only | RB RSS Feed: http://dl.bukkit.org/downloads/craftbukkit/feeds/latest-rb.rss | Latest Recommended Build: 1.6.4-R2.0 - What's new? http://goo.gl/r3dw5X'
[09:09:14] <@Wolvereness> TomyLobo: you there?
[09:09:19] <TomyLobo> yep
[09:09:26] <@Wolvereness> is English your second language?
[09:09:51] <TomyLobo> no, it's the first foreign language i took
[09:10:07] <TomyLobo> i'm not bilingual
[09:10:16] <@Wolvereness> What's your native language?
[09:10:20] <TomyLobo> german
[09:10:36] <@Wolvereness> Okay, FFR, you're bilingual
[09:10:42] <@Wolvereness> unless you use a translator
[09:10:54] <@Wolvereness> (unless you're trilingual or more)

Source: http://www.cdc.gov/nchs/data/nvsr/nvsr54/nvsr54_14.pdf

Table 1. Life table for the total population: United States, 2003

Age Probability of dying between ages x to x+1 q(x) Number surviving to age x l(x) Number dying between ages x to x+1 d(x) Person-years lived between ages x to x+1 L(x) Total number of person-years lived above age x T(x) Expectation of life at age x e(x)
0-1 0.006865 100,000 687 99,394 7,743,016 77.4
1-2 0.000469 99,313 47 99,290 7,643,622 77.0
2-3 0.000337 99,267 33 99,250 7,544,332 76.0
3-4 0.000254 99,233 25 99,221 7,445,082 75.0
8099589986687190858291312080097949647582814639294640892221913069090901540735360544757504193657285614943603655269320205610743891851066694654924200116201110850170178317538834781867666580775025399345195946072891914372942203513129572020177306671125487697713039716427162934388702738999048487042476198590313925213259069517304606398854082203365929176696854860187897308208732490240103125629307274502479447202938656931077745403915491362533597624073652717475024880759266596760923586742748668739462406535420822280757107533492666251240102072862713748347444309749176513764332550832910038710232359590647178443127779454409105762201441878571851787405299272353562596253377307778648315673335100398501531285006309729768838310416594492229187715482782738777678309886001911505727173462309031506120765417676833404694231277786685206740368070667871722006593528928740344517948770422102286474711831889466773421582444832530421834402228677646408815948441729610545659851662441342253628458377656564529160723693742808109082180679354427912001280813028221488
This file has been truncated, but you can view the full file.
8263931688331240062376646103172666291135347978963873045167775885563379611035645084446530511311463973351606804210878588541464746950647836182301210975423299590115641746249173798883892691934141765457832393198728024721989396436544455216153392058351993879894177420624084159398770181880722316925205773712843685981522238931152125527954682974228216429274849388778471244357228595093436211764525449305226584119762990561901212024141900253412831943306507620700405159591511718661384475090075583403742713768687704209375102350263340124834131491021768454943127363639906697195296134573331855778279261669029905620205436940970706664785195040100367538197854967995025934666642561397857355976414208350625445088433370019103464673876845514386079775291490914643124095355211845475532162241503968697233745499833067172880953624648077818320285426377421697236875196416847586471082421002997781809176778983751798850523022870803504144303311438653107033033599468722390710178518474029783087941364846376812855960498131717659293531630665174806097724037560729107
var room = 37671;
$J.post(
'http://steamcommunity.com/minigame/ajaxleavegame/',
{ 'gameid' : '43089', 'sessionid' : g_sessionID }
);
var trying = false;
function tryJoin() {
if (!trying) {
trying = true;
JoinGameHelper(room);