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
declare module "raven" { | |
export interface RavenClient { | |
patchGlobal():void; | |
captureMessage(message:any):void; | |
captureMessage(message:any, args:MessageArguments):void; | |
captureMessage(message:any, callback:(result:Result) => void):void; | |
captureMessage(message:any, args:MessageArguments, callback:(result:Result) => void):void; | |
captureError(message:any):void; | |
captureError(message:any, args:MessageArguments):void; |
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
var configuration = { | |
rules: { | |
'variable-name': true, | |
'comment-format': [true, 'check-space'], | |
'curly': true, | |
'eofline': true, | |
'forin': true, | |
'indent': [true, 'spaces'], | |
'jsdoc-format': true, | |
'no-switch-case-fall-through': 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
updateSelector() { | |
if (this.running) { | |
return this.selector.style.display = 'none'; | |
} | |
let lines = this.lines; | |
let length = this.input.value.length; | |
if (!this.running) { | |
length += this.prefix.length; | |
} | |
length -= this.input.value.length - this.input.selectionStart; |
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
/// <reference path="../bluebird/bluebird.d.ts" /> | |
declare module ArtisanValidator { | |
class Validator<R> { | |
try(checking: any, rules: R): Promise<ValidatorResult<R>>; | |
validators: ArtisanValidator.Validators; | |
} | |
interface ValidatorResult<R> { |
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
public String findMatch(String arg, List<String> words, boolean ignoreRepeat) { | |
// Where the final word will be stored. | |
String word = null; | |
/* | |
* Sometimes two words will equally match (rarely). If we find one that matches, we | |
* increase this by one. Just in case the person wants it to return null, we have the | |
* ignoreRepeat. | |
*/ | |
int repeated = 0; |
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
package me.ultimate.OWK; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.bukkit.ChatColor; | |
import org.bukkit.event.EventHandler; | |
import org.bukkit.event.Listener; | |
import org.bukkit.event.player.PlayerChangedWorldEvent; | |
import org.bukkit.event.player.PlayerQuitEvent; |
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
package me.ultimate.Arena; | |
import org.bukkit.Location; | |
public class Arena { | |
private String name; // A spot to store our arena's name | |
private Location l1, l2; // Our two corners | |
private Location spawn, stop; // Where we start and stop |
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
package me.ultimate.Arena; | |
import org.bukkit.Location; | |
public class Arena { | |
private String name; // A spot to store our arena's name | |
private Location l1, l2; // Our two corners | |
private Location spawn, stop; // Where we start and stop |
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
package me.ultimate.Arena; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.bukkit.Bukkit; | |
import org.bukkit.Material; | |
import org.bukkit.entity.Player; | |
import org.bukkit.inventory.ItemStack; |
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
package me.ultimate.Arena; | |
import org.bukkit.Location; | |
public class Arena { | |
private String name; // A spot to store our arena's name | |
private Location l1, l2; // Our two corners | |
private Location spawn, stop; // Where we start and stop |