This file contains hidden or 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 com.oresomecraft.maps.battles.maps; | |
| import com.oresomecraft.OresomeBattles.api.BattlePlayer; | |
| import com.oresomecraft.OresomeBattles.api.Gamemode; | |
| import com.oresomecraft.OresomeBattles.api.InvUtils; | |
| import com.oresomecraft.maps.battles.BattleMap; | |
| import org.bukkit.Location; | |
| import org.bukkit.Material; | |
| import org.bukkit.enchantments.Enchantment; | |
| import org.bukkit.entity.Arrow; |
This file contains hidden or 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
| Downloading: http://repo.maven.apache.org/maven2/org/bukkit/bukkit/maven-metadat | |
| a.xml | |
| Downloading: http://assets.oresomecraft.com/maven/org/bukkit/bukkit/maven-metada | |
| ta.xml | |
| Downloaded: http://repo.bukkit.org/content/groups/public/org/bukkit/bukkit/maven | |
| -metadata.xml (6 KB at 3.8 KB/sec) | |
| [WARNING] Could not transfer metadata org.bukkit:bukkit/maven-metadata.xml from/ | |
| to OresomeCraft (http://assets.oresomecraft.com/maven): Failed to transfer file: | |
| http://assets.oresomecraft.com/maven/org/bukkit/bukkit/maven-metadata.xml. Retu | |
| rn code is: 500 , ReasonPhrase:Internal Server Error. |
This file contains hidden or 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
| import com.mongodb.MongoClient; | |
| import com.mongodb.MongoException; | |
| import com.mongodb.WriteConcern; | |
| import com.mongodb.DB; | |
| import com.mongodb.DBCollection; | |
| import com.mongodb.BasicDBObject; | |
| import com.mongodb.DBObject; | |
| import com.mongodb.DBCursor; | |
| import com.mongodb.ServerAddress; |
This file contains hidden or 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
| setTDMTime(10); // The amount of minutes that a TDM game is played for | |
| setAllowBuild(false); // Whether building is allowed on the map | |
| disableDrops(new Material[]{Material.STONE_SWORD, Material.DIAMOND_BOOTS}); // Materials that aren't allowed to be dropped on a player's death | |
| setAutoSpawnProtection(4); // A radius around spawns in which player's won't be able to interact | |
| setAllowPlace(true); // Sets whether or not players can place blocks on the map | |
| setFireSpread(false); // Disables fire spread | |
| setBuildLimit(78); // Disables block interaction above a certain height | |
| disablePearlDamage(true); // Prevents damage when moving using enderpearls | |
| lockTime("day"); // Sets a time lock on the map |
This file contains hidden or 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
| { | |
| "name": "KeybaseButton", | |
| "version": "1.0", | |
| "manifest_version": 2, | |
| "description": "Keybase button for GitHub profiles", | |
| "content_security_policy": "script-src 'self'; object-src 'self' https://github.global.ssl.fastly.net;", | |
| "content_scripts": [ | |
| { | |
| "matches": ["https://github.com/*", "https://www.github.com/*"], | |
| "js": ["scripts/jquery-2.0.0.min.js", "scripts/main.js"], |
This file contains hidden or 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
| function getUsername() { | |
| var href = window.location.href; | |
| var _username = href.match('github.com/(.[^/]*)'); | |
| var reserved_usernames = ['notifications', 'explore', 'blog', 'new', 'organizations', | |
| 'settings', 'logout', 'stars', 'dashboard', 'repositories', | |
| 'site', 'security', 'contact', 'about', 'trending', 'login']; | |
| if (_username !== null && _username.length == 2) { | |
| if (reserved_usernames.indexOf(_username[1]) == -1) { |
This file contains hidden or 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
| Windows PowerShell | |
| Copyright (C) 2009 Microsoft Corporation. All rights reserved. | |
| C:\Users\psgs\Documents\GitHub> cd dat | |
| C:\Users\psgs\Documents\GitHub\dat [master +1 ~0 -0 !]> npm install | |
| npm WARN package.json csv-write-stream@0.1.1 No repository field. | |
| npm http GET https://registry.npmjs.org/leveldown | |
| npm http 304 https://registry.npmjs.org/leveldown | |
| npm http GET https://registry.npmjs.org/bindings | |
| npm http GET https://registry.npmjs.org/nan |
This file contains hidden or 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
| Windows PowerShell | |
| Copyright (C) 2009 Microsoft Corporation. All rights reserved. | |
| C:\Users\psgs\Documents\GitHub> cd dat | |
| C:\Users\psgs\Documents\GitHub\dat [master +1 ~0 -0 !]> npm install | |
| npm WARN package.json csv-write-stream@0.1.1 No repository field. | |
| npm http GET https://registry.npmjs.org/leveldown | |
| npm http 304 https://registry.npmjs.org/leveldown | |
| npm http GET https://registry.npmjs.org/bindings | |
| npm http GET https://registry.npmjs.org/nan |
This file contains hidden or 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 path = require("path"); | |
| module.exports = function (grunt) { | |
| grunt.loadNpmTasks('grunt-gitbook'); | |
| grunt.loadNpmTasks('grunt-gh-pages'); | |
| grunt.loadNpmTasks('grunt-contrib-clean'); | |
| grunt.initConfig({ | |
| 'gitbook': { | |
| development: { |
This file contains hidden or 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
| /* | |
| * This code checks if a player edits an armor slot | |
| */ | |
| @EventHandler | |
| public void onArmorSlot(InventoryClickEvent event) { | |
| if (event.getSlotType() == (InventoryType.SlotType.ARMOR) && event.getInventory().getItem(event.getSlot()) != null) { | |
| /* Action Code Here */ | |
| } | |
| } |