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 foo.bar; | |
public class TestClass { | |
public static void main(String[] args){ | |
//Get package at runtime | |
System.out.println(TestClass.class.getPackage().getName()); | |
} | |
} |
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
$.fn.ajaxThatForm = function(opts){ | |
this.each(function(i,el){ | |
var formParams = { | |
action : $(this).attr("action"), | |
method : $(this).attr("method") | |
}; | |
$.extend(formParams,opts); | |
var formData = new FormData(); |
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
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>3.0</version> | |
<configuration> | |
<source>1.6</source> | |
<target>1.6</target> | |
</configuration> | |
</plugin> |
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
general: | |
debug: false | |
stats: | |
configversion: ${project.config.version} | |
trackcreativemode: false | |
database: | |
type: "transfer" | |
host: "NA" | |
username: "NA" | |
password: "NA" |
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
/******************************************************************************* | |
* Copyright (c) 2012 turt2live (Travis Ralston). | |
* All rights reserved. This program and the accompanying materials | |
* are made available under the terms of the GNU Lesser Public License v2.1 | |
* which accompanies this distribution, and is available at | |
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html | |
* | |
* Contributors: | |
* turt2live (Travis Ralston) - initial API and implementation | |
******************************************************************************/ |
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
private File getStartupScript() { | |
File scriptFile = new File(getDataFolder(), "startup-script.txt"); | |
if (!scriptFile.exists()) { | |
try { | |
this.saveResource("startup-script.txt", false); | |
if (!scriptFile.exists()) { | |
scriptFile.createNewFile(); | |
} | |
} catch (IOException e) { | |
getLogger().severe("Error creating script file: " + e.getMessage()); |
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
/** | |
* Set a top level variable | |
* @param name variable to set to | |
* @param object value for variable | |
*/ | |
public void setTopLevelVariable(String name,Object object){ | |
getGlobalScope().put(name, getGlobalScope(), object); | |
} | |
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
<resource> | |
<targetPath>${project.build.directory}</targetPath> | |
<directory>${basedir}/src/main/resources/</directory> | |
<filtering>true</filtering> | |
<includes> | |
<include>{FILENAME.GOES.HERE}</include> | |
</includes> | |
</resource> |
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
private static Novaember main; | |
public static Novaember getMain() { return main; } | |
public EventListener(Novaember main) { | |
this.main = main; | |
} | |
@EventHandler(priority = EventPriority.MONITOR) | |
public void playerLogin(PlayerLoginEvent event) { |
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
wallet: //More info when it becomes it's own plugin, just copy paste for now | |
type: PRIVATE | |
amount: '0.0' | |
account: '' | |
//meat of chest based traders | |
stockroom: | |
enableRightClick: true //enable right click to purchase items (T/F) | |
enableLeftClick: false //enable left click to sell items (T/F) |