Correcting all line endings to LF

This commit is contained in:
snowleo 2011-07-24 23:19:12 +02:00
parent 19ba6e5195
commit bc1c252dca
18 changed files with 3392 additions and 3392 deletions

View File

@ -1,84 +1,84 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="Essentials" default="default" basedir=".">
<description>Builds, tests, and runs the project Essentials.</description>
<import file="nbproject/build-impl.xml"/>
<!--
There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:
-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-jar: called before JAR building
-post-jar: called after JAR building
-post-clean: called after cleaning build products
(Targets beginning with '-' are not intended to be called on their own.)
Example of inserting an obfuscator after compilation could look like this:
<target name="-post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>
For list of available properties check the imported
nbproject/build-impl.xml file.
Another way to customize the build is by overriding existing main targets.
The targets of interest are:
-init-macrodef-javac: defines macro for javac compilation
-init-macrodef-junit: defines macro for junit execution
-init-macrodef-debug: defines macro for class debugging
-init-macrodef-java: defines macro for class execution
-do-jar-with-manifest: JAR building (if you are using a manifest)
-do-jar-without-manifest: JAR building (if you are not using a manifest)
run: execution of project
-javadoc-build: Javadoc generation
test-report: JUnit report generation
An example of overriding the target for project execution could look like this:
<target name="run" depends="Essentials-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>
Notice that the overridden target depends on the jar target and not only on
the compile target as the regular run target does. Again, for a list of available
properties which you can use, check the target you are overriding in the
nbproject/build-impl.xml file.
-->
<!--target name="-post-jar">
<jar jarfile="${dist.dir}/Essentials.jar">
<zipfileset src="${dist.jar}" excludes="META-INF/*" />
<zipfileset src="${dist.dir}/lib/Register.jar" excludes="META-INF/*" />
<manifest>
<attribute name="Classpath" value="Essentials.jar"/>
</manifest>
</jar>
</target-->
</project>
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="Essentials" default="default" basedir=".">
<description>Builds, tests, and runs the project Essentials.</description>
<import file="nbproject/build-impl.xml"/>
<!--
There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:
-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-jar: called before JAR building
-post-jar: called after JAR building
-post-clean: called after cleaning build products
(Targets beginning with '-' are not intended to be called on their own.)
Example of inserting an obfuscator after compilation could look like this:
<target name="-post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>
For list of available properties check the imported
nbproject/build-impl.xml file.
Another way to customize the build is by overriding existing main targets.
The targets of interest are:
-init-macrodef-javac: defines macro for javac compilation
-init-macrodef-junit: defines macro for junit execution
-init-macrodef-debug: defines macro for class debugging
-init-macrodef-java: defines macro for class execution
-do-jar-with-manifest: JAR building (if you are using a manifest)
-do-jar-without-manifest: JAR building (if you are not using a manifest)
run: execution of project
-javadoc-build: Javadoc generation
test-report: JUnit report generation
An example of overriding the target for project execution could look like this:
<target name="run" depends="Essentials-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>
Notice that the overridden target depends on the jar target and not only on
the compile target as the regular run target does. Again, for a list of available
properties which you can use, check the target you are overriding in the
nbproject/build-impl.xml file.
-->
<!--target name="-post-jar">
<jar jarfile="${dist.dir}/Essentials.jar">
<zipfileset src="${dist.jar}" excludes="META-INF/*" />
<zipfileset src="${dist.dir}/lib/Register.jar" excludes="META-INF/*" />
<manifest>
<attribute name="Classpath" value="Essentials.jar"/>
</manifest>
</jar>
</target-->
</project>

View File

@ -1,52 +1,52 @@
package com.earth2me.essentials.commands;
import org.bukkit.Server;
import org.bukkit.command.CommandSender;
import com.earth2me.essentials.User;
import com.earth2me.essentials.Util;
public class Commandmute extends EssentialsCommand
{
public Commandmute()
{
super("mute");
}
@Override
public void run(Server server, CommandSender sender, String commandLabel, String[] args) throws Exception
{
if (args.length < 1)
{
throw new NotEnoughArgumentsException();
}
User p = getPlayer(server, args, 0, true);
if (!p.isMuted() && p.isAuthorized("essentials.mute.exempt"))
{
sender.sendMessage(Util.i18n("muteExempt"));
return;
}
long muteTimestamp = 0;
if (args.length > 1)
{
String time = getFinalArg(args, 1);
muteTimestamp = Util.parseDateDiff(time, true);
}
p.setMuteTimeout(muteTimestamp);
charge(sender);
boolean muted = p.toggleMuted();
sender.sendMessage(
muted
? (muteTimestamp > 0
? Util.format("mutedPlayerFor", p.getDisplayName(), Util.formatDateDiff(muteTimestamp))
: Util.format("mutedPlayer", p.getDisplayName()))
: Util.format("unmutedPlayer", p.getDisplayName()));
p.sendMessage(
muted
? (muteTimestamp > 0
? Util.format("playerMutedFor", Util.formatDateDiff(muteTimestamp))
: Util.i18n("playerMuted"))
: Util.i18n("playerUnmuted"));
}
}
package com.earth2me.essentials.commands;
import org.bukkit.Server;
import org.bukkit.command.CommandSender;
import com.earth2me.essentials.User;
import com.earth2me.essentials.Util;
public class Commandmute extends EssentialsCommand
{
public Commandmute()
{
super("mute");
}
@Override
public void run(Server server, CommandSender sender, String commandLabel, String[] args) throws Exception
{
if (args.length < 1)
{
throw new NotEnoughArgumentsException();
}
User p = getPlayer(server, args, 0, true);
if (!p.isMuted() && p.isAuthorized("essentials.mute.exempt"))
{
sender.sendMessage(Util.i18n("muteExempt"));
return;
}
long muteTimestamp = 0;
if (args.length > 1)
{
String time = getFinalArg(args, 1);
muteTimestamp = Util.parseDateDiff(time, true);
}
p.setMuteTimeout(muteTimestamp);
charge(sender);
boolean muted = p.toggleMuted();
sender.sendMessage(
muted
? (muteTimestamp > 0
? Util.format("mutedPlayerFor", p.getDisplayName(), Util.formatDateDiff(muteTimestamp))
: Util.format("mutedPlayer", p.getDisplayName()))
: Util.format("unmutedPlayer", p.getDisplayName()));
p.sendMessage(
muted
? (muteTimestamp > 0
? Util.format("playerMutedFor", Util.formatDateDiff(muteTimestamp))
: Util.i18n("playerMuted"))
: Util.i18n("playerUnmuted"));
}
}

File diff suppressed because it is too large Load Diff

View File

@ -1,199 +1,199 @@
worth:
stonebutton:
'0': 7.0
wood: 1.0
arrow: 10.0
diamondpickaxe: 1000.0
rawfish: 5.0
minecart: 20.0
leatherchestplate: 40.0
storageminecart: 35.0
leaves:
'0': 0.0
feather: 3.0
goldchestplate: 600.0
mushroomsoup: 30.0
bread: 20.0
stationarywater:
'0': 1.0
workbench: 20.0
stonehoe: 40.0
brownmushroom: 2.0
wool:
'0': 8.0
mossycobblestone: 90.0
diamondhoe: 600.0
woodsword: 10.0
torch:
'0': 1.0
grass: 1.0
poweredminecart: 30.0
snowball: 1.0
goldenapple: 500.0
leatherleggings: 20.0
log:
'0': 2.0
diamondaxe: 1000.0
slimeball: 50.0
fence: 10.0
stonespade: 40.0
claybrick: 10.0
noteblock: 40.0
ironaxe: 60.0
coalore: 15.0
clayball: 8.0
fishingrod: 25.0
ironhoe: 60.0
goldrecord: 950.0
ironpickaxe: 80.0
irondoor: 35.0
bucket: 10.0
redrose: 2.0
grilledpork: 6.0
gravel: 1.0
wooddoor: 30.0
chainmailhelmet: 40.0
ironchestplate: 300.0
diamondblock: 1500.0
diamondhelmet: 1500.0
goldhelmet: 300.0
redstonetorchon:
'0': 10.0
ironspade: 40.0
furnace:
'0': 10.0
ironsword: 60.0
dispenser:
'0': 9.0
woodaxe: 10.0
seeds: 5.0
painting: 50.0
woodplate:
'0': 10.0
redstoneore: 30.0
diamondspade: 350.0
waterbucket: 10.0
water:
'0': 1.0
bedrock: 1000.0
irondoorblock:
'0': 15.0
goldhoe: 200.0
sand: 1.0
goldsword: 200.0
stoneaxe: 40.0
bookshelf: 20.0
ironblock: 160.0
jackolantern:
'0': 60.0
boat: 5.0
diamondchestplate: 3000.0
redstonewire:
'0': 7.0
redmushroom: 2.0
string: 5.0
stoneplate:
'0': 10.0
wallsign:
'0': 1.0
cactus:
'0': 10.0
sulphur: 19.0
rails:
'0': 40.0
ironore: 18.0
leatherhelmet: 20.0
stone: 2.0
egg: 1.0
diamondore: 200.0
woodhoe: 10.0
goldleggings: 400.0
chainmailleggings: 50.0
yellowflower: 2.0
ironhelmet: 120.0
obsidian: 130.0
dirt: 1.0
leather: 10.0
leatherboots: 17.0
lever:
'0': 7.0
cobblestone: 1.0
cake: 100.0
woodstairs:
'0': 8.0
ironingot: 20.0
goldore: 45.0
pumpkin:
'0': 50.0
bed: 25.0
watch: 100.0
ironleggings: 250.0
sign: 10.0
doublestep:
'0': 3.0
woodpickaxe: 10.0
stonepickaxe: 40.0
chainmailboots: 30.0
diamondleggings: 2200.0
cookedfish: 20.0
saddle: 100.0
cobblestonestairs:
'0': 22.0
tnt: 10000.0
glowingredstoneore: 30.0
apple: 10.0
woodspade: 10.0
goldingot: 50.0
diode: 10.0
soil:
'0': 3.0
clay: 3.0
goldblock: 400.0
stick: 1.0
paper: 30.0
brick: 40.0
stationarylava:
'0': 1.0
chest: 15.0
sandstone: 5.0
goldpickaxe: 300.0
compass: 50.0
sugarcane: 10.0
diamondsword: 700.0
goldboots: 250.0
sponge: 80.0
stonesword: 40.0
coal:
'0': 3.0
goldaxe: 300.0
bone: 10.0
diamond: 230.0
glass: 10.0
goldspade: 220.0
lapisblock: 500.0
lavabucket: 30.0
wheat: 9.0
ladder:
'0': 10.0
sugarcaneblock:
'0': 15.0
bowl: 6.0
chainmailchestplate: 40.0
sapling:
'0': 2.0
diamondboots: 1500.0
lapisore: 100.0
lava:
'0': 1.0
milkbucket: 15.0
redstone: 1.0
greenrecord: 1000.0
inksack:
'0': 10.0
glowstonedust: 11.0
book: 35.0
bow: 75.0
ironboots: 50.0
step:
'0': 3.0
sugar: 5.0
worth:
stonebutton:
'0': 7.0
wood: 1.0
arrow: 10.0
diamondpickaxe: 1000.0
rawfish: 5.0
minecart: 20.0
leatherchestplate: 40.0
storageminecart: 35.0
leaves:
'0': 0.0
feather: 3.0
goldchestplate: 600.0
mushroomsoup: 30.0
bread: 20.0
stationarywater:
'0': 1.0
workbench: 20.0
stonehoe: 40.0
brownmushroom: 2.0
wool:
'0': 8.0
mossycobblestone: 90.0
diamondhoe: 600.0
woodsword: 10.0
torch:
'0': 1.0
grass: 1.0
poweredminecart: 30.0
snowball: 1.0
goldenapple: 500.0
leatherleggings: 20.0
log:
'0': 2.0
diamondaxe: 1000.0
slimeball: 50.0
fence: 10.0
stonespade: 40.0
claybrick: 10.0
noteblock: 40.0
ironaxe: 60.0
coalore: 15.0
clayball: 8.0
fishingrod: 25.0
ironhoe: 60.0
goldrecord: 950.0
ironpickaxe: 80.0
irondoor: 35.0
bucket: 10.0
redrose: 2.0
grilledpork: 6.0
gravel: 1.0
wooddoor: 30.0
chainmailhelmet: 40.0
ironchestplate: 300.0
diamondblock: 1500.0
diamondhelmet: 1500.0
goldhelmet: 300.0
redstonetorchon:
'0': 10.0
ironspade: 40.0
furnace:
'0': 10.0
ironsword: 60.0
dispenser:
'0': 9.0
woodaxe: 10.0
seeds: 5.0
painting: 50.0
woodplate:
'0': 10.0
redstoneore: 30.0
diamondspade: 350.0
waterbucket: 10.0
water:
'0': 1.0
bedrock: 1000.0
irondoorblock:
'0': 15.0
goldhoe: 200.0
sand: 1.0
goldsword: 200.0
stoneaxe: 40.0
bookshelf: 20.0
ironblock: 160.0
jackolantern:
'0': 60.0
boat: 5.0
diamondchestplate: 3000.0
redstonewire:
'0': 7.0
redmushroom: 2.0
string: 5.0
stoneplate:
'0': 10.0
wallsign:
'0': 1.0
cactus:
'0': 10.0
sulphur: 19.0
rails:
'0': 40.0
ironore: 18.0
leatherhelmet: 20.0
stone: 2.0
egg: 1.0
diamondore: 200.0
woodhoe: 10.0
goldleggings: 400.0
chainmailleggings: 50.0
yellowflower: 2.0
ironhelmet: 120.0
obsidian: 130.0
dirt: 1.0
leather: 10.0
leatherboots: 17.0
lever:
'0': 7.0
cobblestone: 1.0
cake: 100.0
woodstairs:
'0': 8.0
ironingot: 20.0
goldore: 45.0
pumpkin:
'0': 50.0
bed: 25.0
watch: 100.0
ironleggings: 250.0
sign: 10.0
doublestep:
'0': 3.0
woodpickaxe: 10.0
stonepickaxe: 40.0
chainmailboots: 30.0
diamondleggings: 2200.0
cookedfish: 20.0
saddle: 100.0
cobblestonestairs:
'0': 22.0
tnt: 10000.0
glowingredstoneore: 30.0
apple: 10.0
woodspade: 10.0
goldingot: 50.0
diode: 10.0
soil:
'0': 3.0
clay: 3.0
goldblock: 400.0
stick: 1.0
paper: 30.0
brick: 40.0
stationarylava:
'0': 1.0
chest: 15.0
sandstone: 5.0
goldpickaxe: 300.0
compass: 50.0
sugarcane: 10.0
diamondsword: 700.0
goldboots: 250.0
sponge: 80.0
stonesword: 40.0
coal:
'0': 3.0
goldaxe: 300.0
bone: 10.0
diamond: 230.0
glass: 10.0
goldspade: 220.0
lapisblock: 500.0
lavabucket: 30.0
wheat: 9.0
ladder:
'0': 10.0
sugarcaneblock:
'0': 15.0
bowl: 6.0
chainmailchestplate: 40.0
sapling:
'0': 2.0
diamondboots: 1500.0
lapisore: 100.0
lava:
'0': 1.0
milkbucket: 15.0
redstone: 1.0
greenrecord: 1000.0
inksack:
'0': 10.0
glowstonedust: 11.0
book: 35.0
bow: 75.0
ironboots: 50.0
step:
'0': 3.0
sugar: 5.0

View File

@ -50,200 +50,200 @@
2011-02-28 16:57:50 [INFO] §eLoaded Essentials build TeamCity maintained by Zenexer, ementalo, Aelux, and Brettflan
2011-02-28 16:57:50 [INFO] Preparing spawn area: 8%
2011-02-28 16:57:51 [INFO] >
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO] Starting minecraft server version Beta 1.3
2011-02-28 16:57:51 [INFO] Preparing spawn area: 12%
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:56 [INFO]
2011-02-28 16:57:56 [INFO]
2011-02-28 16:57:56 [INFO]
2011-02-28 16:57:56 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:51 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:52 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:53 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:54 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:55 [INFO]
2011-02-28 16:57:56 [INFO]
2011-02-28 16:57:56 [INFO]
2011-02-28 16:57:56 [INFO]
2011-02-28 16:57:56 [INFO]
2011-02-28 16:59:07 [INFO] Starting minecraft server version Beta 1.3
2011-02-28 16:59:07 [INFO] Loading properties
2011-02-28 16:59:07 [INFO] Starting Minecraft server on *:25565

View File

@ -1,13 +1,13 @@
#Minecraft server properties
#Mon Feb 28 16:56:01 EST 2011
level-name=world
hellworld=false
spawn-monsters=true
online-mode=true
spawn-animals=true
max-players=20
server-ip=
pvp=true
server-port=25565
white-list=false
spawn-protection=16
#Minecraft server properties
#Mon Feb 28 16:56:01 EST 2011
level-name=world
hellworld=false
spawn-monsters=true
online-mode=true
spawn-animals=true
max-players=20
server-ip=
pvp=true
server-port=25565
white-list=false
spawn-protection=16

View File

@ -1,76 +1,76 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE project [ <!ENTITY buildinc SYSTEM "../build.inc.xml"> ]>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="EssentialsChat" default="default" basedir=".">
<description>Builds, tests, and runs the project EssentialsChat.</description>
<import file="nbproject/build-impl.xml"/>
&buildinc;
<!--
There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:
-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-jar: called before JAR building
-post-jar: called after JAR building
-post-clean: called after cleaning build products
(Targets beginning with '-' are not intended to be called on their own.)
Example of inserting an obfuscator after compilation could look like this:
<target name="-post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>
For list of available properties check the imported
nbproject/build-impl.xml file.
Another way to customize the build is by overriding existing main targets.
The targets of interest are:
-init-macrodef-javac: defines macro for javac compilation
-init-macrodef-junit: defines macro for junit execution
-init-macrodef-debug: defines macro for class debugging
-init-macrodef-java: defines macro for class execution
-do-jar-with-manifest: JAR building (if you are using a manifest)
-do-jar-without-manifest: JAR building (if you are not using a manifest)
run: execution of project
-javadoc-build: Javadoc generation
test-report: JUnit report generation
An example of overriding the target for project execution could look like this:
<target name="run" depends="EssentialsChat-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>
Notice that the overridden target depends on the jar target and not only on
the compile target as the regular run target does. Again, for a list of available
properties which you can use, check the target you are overriding in the
nbproject/build-impl.xml file.
-->
</project>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE project [ <!ENTITY buildinc SYSTEM "../build.inc.xml"> ]>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="EssentialsChat" default="default" basedir=".">
<description>Builds, tests, and runs the project EssentialsChat.</description>
<import file="nbproject/build-impl.xml"/>
&buildinc;
<!--
There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:
-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-jar: called before JAR building
-post-jar: called after JAR building
-post-clean: called after cleaning build products
(Targets beginning with '-' are not intended to be called on their own.)
Example of inserting an obfuscator after compilation could look like this:
<target name="-post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>
For list of available properties check the imported
nbproject/build-impl.xml file.
Another way to customize the build is by overriding existing main targets.
The targets of interest are:
-init-macrodef-javac: defines macro for javac compilation
-init-macrodef-junit: defines macro for junit execution
-init-macrodef-debug: defines macro for class debugging
-init-macrodef-java: defines macro for class execution
-do-jar-with-manifest: JAR building (if you are using a manifest)
-do-jar-without-manifest: JAR building (if you are not using a manifest)
run: execution of project
-javadoc-build: Javadoc generation
test-report: JUnit report generation
An example of overriding the target for project execution could look like this:
<target name="run" depends="EssentialsChat-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>
Notice that the overridden target depends on the jar target and not only on
the compile target as the regular run target does. Again, for a list of available
properties which you can use, check the target you are overriding in the
nbproject/build-impl.xml file.
-->
</project>

View File

@ -1,74 +1,74 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="EssentialsGroupBridge" default="default" basedir=".">
<description>Builds, tests, and runs the project EssentialsGroupBridge.</description>
<import file="nbproject/build-impl.xml"/>
<!--
There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:
-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-jar: called before JAR building
-post-jar: called after JAR building
-post-clean: called after cleaning build products
(Targets beginning with '-' are not intended to be called on their own.)
Example of inserting an obfuscator after compilation could look like this:
<target name="-post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>
For list of available properties check the imported
nbproject/build-impl.xml file.
Another way to customize the build is by overriding existing main targets.
The targets of interest are:
-init-macrodef-javac: defines macro for javac compilation
-init-macrodef-junit: defines macro for junit execution
-init-macrodef-debug: defines macro for class debugging
-init-macrodef-java: defines macro for class execution
-do-jar-with-manifest: JAR building (if you are using a manifest)
-do-jar-without-manifest: JAR building (if you are not using a manifest)
run: execution of project
-javadoc-build: Javadoc generation
test-report: JUnit report generation
An example of overriding the target for project execution could look like this:
<target name="run" depends="EssentialsGroupBridge-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>
Notice that the overridden target depends on the jar target and not only on
the compile target as the regular run target does. Again, for a list of available
properties which you can use, check the target you are overriding in the
nbproject/build-impl.xml file.
-->
</project>
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="EssentialsGroupBridge" default="default" basedir=".">
<description>Builds, tests, and runs the project EssentialsGroupBridge.</description>
<import file="nbproject/build-impl.xml"/>
<!--
There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:
-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-jar: called before JAR building
-post-jar: called after JAR building
-post-clean: called after cleaning build products
(Targets beginning with '-' are not intended to be called on their own.)
Example of inserting an obfuscator after compilation could look like this:
<target name="-post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>
For list of available properties check the imported
nbproject/build-impl.xml file.
Another way to customize the build is by overriding existing main targets.
The targets of interest are:
-init-macrodef-javac: defines macro for javac compilation
-init-macrodef-junit: defines macro for junit execution
-init-macrodef-debug: defines macro for class debugging
-init-macrodef-java: defines macro for class execution
-do-jar-with-manifest: JAR building (if you are using a manifest)
-do-jar-without-manifest: JAR building (if you are not using a manifest)
run: execution of project
-javadoc-build: Javadoc generation
test-report: JUnit report generation
An example of overriding the target for project execution could look like this:
<target name="run" depends="EssentialsGroupBridge-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>
Notice that the overridden target depends on the jar target and not only on
the compile target as the regular run target does. Again, for a list of available
properties which you can use, check the target you are overriding in the
nbproject/build-impl.xml file.
-->
</project>

View File

@ -1,25 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.java.j2seproject</type>
<configuration>
<data xmlns="http://www.netbeans.org/ns/j2se-project/3">
<name>EssentialsGroupBridge</name>
<source-roots>
<root id="src.dir"/>
</source-roots>
<test-roots>
<root id="test.src.dir"/>
</test-roots>
</data>
<references xmlns="http://www.netbeans.org/ns/ant-project-references/1">
<reference>
<foreign-project>EssentialsGroupManager</foreign-project>
<artifact-type>jar</artifact-type>
<script>build.xml</script>
<target>jar</target>
<clean-target>clean</clean-target>
<id>jar</id>
</reference>
</references>
</configuration>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.java.j2seproject</type>
<configuration>
<data xmlns="http://www.netbeans.org/ns/j2se-project/3">
<name>EssentialsGroupBridge</name>
<source-roots>
<root id="src.dir"/>
</source-roots>
<test-roots>
<root id="test.src.dir"/>
</test-roots>
</data>
<references xmlns="http://www.netbeans.org/ns/ant-project-references/1">
<reference>
<foreign-project>EssentialsGroupManager</foreign-project>
<artifact-type>jar</artifact-type>
<script>build.xml</script>
<target>jar</target>
<clean-target>clean</clean-target>
<id>jar</id>
</reference>
</references>
</configuration>
</project>

View File

@ -1,74 +1,74 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="EssentialsGroupManager" default="default" basedir=".">
<description>Builds, tests, and runs the project EssentialsGroupManager.</description>
<import file="nbproject/build-impl.xml"/>
<!--
There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:
-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-jar: called before JAR building
-post-jar: called after JAR building
-post-clean: called after cleaning build products
(Targets beginning with '-' are not intended to be called on their own.)
Example of inserting an obfuscator after compilation could look like this:
<target name="-post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>
For list of available properties check the imported
nbproject/build-impl.xml file.
Another way to customize the build is by overriding existing main targets.
The targets of interest are:
-init-macrodef-javac: defines macro for javac compilation
-init-macrodef-junit: defines macro for junit execution
-init-macrodef-debug: defines macro for class debugging
-init-macrodef-java: defines macro for class execution
-do-jar-with-manifest: JAR building (if you are using a manifest)
-do-jar-without-manifest: JAR building (if you are not using a manifest)
run: execution of project
-javadoc-build: Javadoc generation
test-report: JUnit report generation
An example of overriding the target for project execution could look like this:
<target name="run" depends="EssentialsGroupManager-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>
Notice that the overridden target depends on the jar target and not only on
the compile target as the regular run target does. Again, for a list of available
properties which you can use, check the target you are overriding in the
nbproject/build-impl.xml file.
-->
</project>
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="EssentialsGroupManager" default="default" basedir=".">
<description>Builds, tests, and runs the project EssentialsGroupManager.</description>
<import file="nbproject/build-impl.xml"/>
<!--
There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:
-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-jar: called before JAR building
-post-jar: called after JAR building
-post-clean: called after cleaning build products
(Targets beginning with '-' are not intended to be called on their own.)
Example of inserting an obfuscator after compilation could look like this:
<target name="-post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>
For list of available properties check the imported
nbproject/build-impl.xml file.
Another way to customize the build is by overriding existing main targets.
The targets of interest are:
-init-macrodef-javac: defines macro for javac compilation
-init-macrodef-junit: defines macro for junit execution
-init-macrodef-debug: defines macro for class debugging
-init-macrodef-java: defines macro for class execution
-do-jar-with-manifest: JAR building (if you are using a manifest)
-do-jar-without-manifest: JAR building (if you are not using a manifest)
run: execution of project
-javadoc-build: Javadoc generation
test-report: JUnit report generation
An example of overriding the target for project execution could look like this:
<target name="run" depends="EssentialsGroupManager-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>
Notice that the overridden target depends on the jar target and not only on
the compile target as the regular run target does. Again, for a list of available
properties which you can use, check the target you are overriding in the
nbproject/build-impl.xml file.
-->
</project>

View File

@ -1,2 +1,2 @@
Manifest-Version: 1.0
Class-Path: ../lib/mysql.jar ../lib/sqlite.jar
Manifest-Version: 1.0
Class-Path: ../lib/mysql.jar ../lib/sqlite.jar

View File

@ -1,84 +1,84 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE project [ <!ENTITY buildinc SYSTEM "../build.inc.xml"> ]>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="EssentialsProtect" default="default" basedir=".">
<description>Builds, tests, and runs the project EssentialsProtect.</description>
<import file="nbproject/build-impl.xml"/>
<!--
There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:
-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-jar: called before JAR building
-post-jar: called after JAR building
-post-clean: called after cleaning build products
(Targets beginning with '-' are not intended to be called on their own.)
Example of inserting an obfuscator after compilation could look like this:
<target name="-post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>
For list of available properties check the imported
nbproject/build-impl.xml file.
Another way to customize the build is by overriding existing main targets.
The targets of interest are:
-init-macrodef-javac: defines macro for javac compilation
-init-macrodef-junit: defines macro for junit execution
-init-macrodef-debug: defines macro for class debugging
-init-macrodef-java: defines macro for class execution
-do-jar-with-manifest: JAR building (if you are using a manifest)
-do-jar-without-manifest: JAR building (if you are not using a manifest)
run: execution of project
-javadoc-build: Javadoc generation
test-report: JUnit report generation
An example of overriding the target for project execution could look like this:
<target name="run" depends="EssentialsProtect-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>
Notice that the overridden target depends on the jar target and not only on
the compile target as the regular run target does. Again, for a list of available
properties which you can use, check the target you are overriding in the
nbproject/build-impl.xml file.
-->
<target name="-post-jar">
<jar jarfile="${dist.dir}/EssentialsProtect.jar">
<zipfileset src="${dist.jar}" excludes="META-INF/*" />
<zipfileset src="../lib/c3p0-0.9.1.2.jar" excludes="META-INF/*" />
<manifest>
<attribute name="Classpath" value="EssentialsProtect.jar"/>
</manifest>
</jar>
</target>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE project [ <!ENTITY buildinc SYSTEM "../build.inc.xml"> ]>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="EssentialsProtect" default="default" basedir=".">
<description>Builds, tests, and runs the project EssentialsProtect.</description>
<import file="nbproject/build-impl.xml"/>
<!--
There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:
-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-jar: called before JAR building
-post-jar: called after JAR building
-post-clean: called after cleaning build products
(Targets beginning with '-' are not intended to be called on their own.)
Example of inserting an obfuscator after compilation could look like this:
<target name="-post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>
For list of available properties check the imported
nbproject/build-impl.xml file.
Another way to customize the build is by overriding existing main targets.
The targets of interest are:
-init-macrodef-javac: defines macro for javac compilation
-init-macrodef-junit: defines macro for junit execution
-init-macrodef-debug: defines macro for class debugging
-init-macrodef-java: defines macro for class execution
-do-jar-with-manifest: JAR building (if you are using a manifest)
-do-jar-without-manifest: JAR building (if you are not using a manifest)
run: execution of project
-javadoc-build: Javadoc generation
test-report: JUnit report generation
An example of overriding the target for project execution could look like this:
<target name="run" depends="EssentialsProtect-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>
Notice that the overridden target depends on the jar target and not only on
the compile target as the regular run target does. Again, for a list of available
properties which you can use, check the target you are overriding in the
nbproject/build-impl.xml file.
-->
<target name="-post-jar">
<jar jarfile="${dist.dir}/EssentialsProtect.jar">
<zipfileset src="${dist.jar}" excludes="META-INF/*" />
<zipfileset src="../lib/c3p0-0.9.1.2.jar" excludes="META-INF/*" />
<manifest>
<attribute name="Classpath" value="EssentialsProtect.jar"/>
</manifest>
</jar>
</target>
</project>

View File

@ -1,348 +1,348 @@
package com.earth2me.essentials.protect;
import com.earth2me.essentials.EssentialsBlockListener;
import com.earth2me.essentials.IEssentials;
import com.earth2me.essentials.User;
import java.util.HashSet;
import java.util.Set;
import net.minecraft.server.ChunkPosition;
import net.minecraft.server.Packet60Explosion;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.block.BlockFace;
import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.craftbukkit.CraftWorld;
import org.bukkit.craftbukkit.entity.CraftFireball;
import org.bukkit.craftbukkit.entity.CraftPlayer;
import org.bukkit.craftbukkit.entity.CraftTNTPrimed;
import org.bukkit.entity.Creeper;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Fireball;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;
import org.bukkit.entity.TNTPrimed;
import org.bukkit.event.entity.CreatureSpawnEvent;
import org.bukkit.event.entity.EntityDamageByBlockEvent;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import org.bukkit.event.entity.EntityDamageByProjectileEvent;
import org.bukkit.event.entity.EntityDamageEvent;
import org.bukkit.event.entity.EntityDamageEvent.DamageCause;
import org.bukkit.event.entity.EntityExplodeEvent;
import org.bukkit.event.entity.EntityListener;
import org.bukkit.event.entity.EntityTargetEvent;
import org.bukkit.event.entity.EntityTargetEvent.TargetReason;
import org.bukkit.event.entity.ExplosionPrimeEvent;
public class EssentialsProtectEntityListener extends EntityListener
{
private final transient IProtect prot;
private final transient IEssentials ess;
public EssentialsProtectEntityListener(final IProtect prot)
{
this.prot = prot;
this.ess = prot.getEssentials();
}
@Override
public void onEntityDamage(EntityDamageEvent event)
{
if (event.isCancelled())
{
return;
}
final Entity target = event.getEntity();
final User user = ess.getUser(target);
if (event instanceof EntityDamageByBlockEvent)
{
final DamageCause cause = event.getCause();
if (prot.getSettingBool(ProtectConfig.disable_contactdmg)
&& cause == DamageCause.CONTACT
&& !(target instanceof Player
&& user.isAuthorized("essentials.protect.damage.contact")
&& !user.isAuthorized("essentials.protect.damage.disable")))
{
event.setCancelled(true);
return;
}
if (prot.getSettingBool(ProtectConfig.disable_lavadmg)
&& cause == DamageCause.LAVA
&& !(target instanceof Player
&& user.isAuthorized("essentials.protect.damage.lava")
&& !user.isAuthorized("essentials.protect.damage.disable")))
{
event.setCancelled(true);
return;
}
if (prot.getSettingBool(ProtectConfig.prevent_tnt_explosion)
&& cause == DamageCause.BLOCK_EXPLOSION
&& !(target instanceof Player
&& user.isAuthorized("essentials.protect.damage.tnt")
&& !user.isAuthorized("essentials.protect.damage.disable")))
{
event.setCancelled(true);
return;
}
}
if (event instanceof EntityDamageByEntityEvent)
{
final EntityDamageByEntityEvent edEvent = (EntityDamageByEntityEvent)event;
final Entity eAttack = edEvent.getDamager();
final User attacker = ess.getUser(eAttack);
// PVP Settings
if (target instanceof Player && eAttack instanceof Player
&& prot.getSettingBool(ProtectConfig.disable_pvp)
&& (!user.isAuthorized("essentials.protect.pvp") || !attacker.isAuthorized("essentials.protect.pvp")))
{
event.setCancelled(true);
return;
}
//Creeper explode prevention
if (eAttack instanceof Creeper && prot.getSettingBool(ProtectConfig.prevent_creeper_explosion)
&& !(target instanceof Player
&& user.isAuthorized("essentials.protect.damage.creeper")
&& !user.isAuthorized("essentials.protect.damage.disable")))
{
event.setCancelled(true);
return;
}
if (eAttack instanceof Creeper && prot.getSettingBool(ProtectConfig.prevent_creeper_playerdmg)
&& !(target instanceof Player
&& user.isAuthorized("essentials.protect.damage.creeper")
&& !user.isAuthorized("essentials.protect.damage.disable")))
{
event.setCancelled(true);
return;
}
if (eAttack instanceof Fireball && prot.getSettingBool(ProtectConfig.prevent_fireball_playerdmg)
&& !(target instanceof Player
&& user.isAuthorized("essentials.protect.damage.fireball")
&& !user.isAuthorized("essentials.protect.damage.disable")))
{
event.setCancelled(true);
return;
}
if (eAttack instanceof TNTPrimed && prot.getSettingBool(ProtectConfig.prevent_tnt_playerdmg)
&& !(target instanceof Player
&& user.isAuthorized("essentials.protect.damage.tnt")
&& !user.isAuthorized("essentials.protect.damage.disable")))
{
event.setCancelled(true);
return;
}
}
if (event instanceof EntityDamageByProjectileEvent
&& target instanceof Player
&& prot.getSettingBool(ProtectConfig.disable_projectiles)
&& !(user.isAuthorized("essentials.protect.damage.projectiles")
&& !user.isAuthorized("essentials.protect.damage.disable")))
{
event.setCancelled(true);
((EntityDamageByProjectileEvent)event).setBounce(true);
return;
}
final DamageCause cause = event.getCause();
if (target instanceof Player)
{
if (cause == DamageCause.FALL
&& prot.getSettingBool(ProtectConfig.disable_fall)
&& !(user.isAuthorized("essentials.protect.damage.fall")
&& !user.isAuthorized("essentials.protect.damage.disable")))
{
event.setCancelled(true);
return;
}
if (cause == DamageCause.SUFFOCATION
&& prot.getSettingBool(ProtectConfig.disable_suffocate)
&& !(user.isAuthorized("essentials.protect.damage.suffocation")
&& !user.isAuthorized("essentials.protect.damage.disable")))
{
event.setCancelled(true);
return;
}
if ((cause == DamageCause.FIRE
|| cause == DamageCause.FIRE_TICK)
&& prot.getSettingBool(ProtectConfig.disable_firedmg)
&& !(user.isAuthorized("essentials.protect.damage.fire")
&& !user.isAuthorized("essentials.protect.damage.disable")))
{
event.setCancelled(true);
return;
}
if (cause == DamageCause.DROWNING
&& prot.getSettingBool(ProtectConfig.disable_drown)
&& !(user.isAuthorized("essentials.protect.damage.drowning")
&& !user.isAuthorized("essentials.protect.damage.disable")))
{
event.setCancelled(true);
return;
}
if (cause == DamageCause.LIGHTNING
&& prot.getSettingBool(ProtectConfig.disable_lightning)
&& !(user.isAuthorized("essentials.protect.damage.lightning")
&& !user.isAuthorized("essentials.protect.damage.disable")))
{
event.setCancelled(true);
return;
}
}
}
@Override
public void onEntityExplode(EntityExplodeEvent event)
{
if (event.isCancelled())
{
return;
}
final int maxHeight = ess.getSettings().getProtectCreeperMaxHeight();
//Nicccccccccce plaaacccccccccce..
if (event.getEntity() instanceof LivingEntity
&& (prot.getSettingBool(ProtectConfig.prevent_creeper_explosion)
|| prot.getSettingBool(ProtectConfig.prevent_creeper_blockdmg)
|| (maxHeight >= 0 && event.getLocation().getBlockY() > maxHeight)))
{
final Set<ChunkPosition> set = new HashSet<ChunkPosition>(event.blockList().size());
final Player[] players = ess.getServer().getOnlinePlayers();
final Set<ChunkPosition> blocksUnderPlayers = new HashSet<ChunkPosition>(players.length);
final Location loc = event.getLocation();
for (Player player : players)
{
if (player.getWorld().equals(loc.getWorld()))
{
blocksUnderPlayers.add(
new ChunkPosition(
player.getLocation().getBlockX(),
player.getLocation().getBlockY() - 1,
player.getLocation().getBlockZ()));
}
}
ChunkPosition cp;
for (Block block : event.blockList())
{
cp = new ChunkPosition(block.getX(), block.getY(), block.getZ());
if (!blocksUnderPlayers.contains(cp))
{
set.add(cp);
}
}
((CraftServer)ess.getServer()).getHandle().sendPacketNearby(loc.getX(), loc.getY(), loc.getZ(), 64.0D, ((CraftWorld)loc.getWorld()).getHandle().worldProvider.dimension,
new Packet60Explosion(loc.getX(), loc.getY(), loc.getZ(), 3.0f, set));
event.setCancelled(true);
return;
}
else if (event.getEntity() instanceof CraftTNTPrimed
&& prot.getSettingBool(ProtectConfig.prevent_tnt_explosion))
{
event.setCancelled(true);
return;
}
else if (event.getEntity() instanceof CraftFireball
&& prot.getSettingBool(ProtectConfig.prevent_fireball_explosion))
{
event.setCancelled(true);
return;
}
// This code will prevent explosions near protected rails, signs or protected chests
// TODO: Use protect db instead of this code
for (Block block : event.blockList())
{
if ((block.getType() == Material.RAILS || block.getRelative(BlockFace.UP).getType() == Material.RAILS)
&& prot.getSettingBool(ProtectConfig.protect_rails))
{
event.setCancelled(true);
return;
}
if ((block.getType() == Material.WALL_SIGN
|| block.getRelative(BlockFace.NORTH).getType() == Material.WALL_SIGN
|| block.getRelative(BlockFace.EAST).getType() == Material.WALL_SIGN
|| block.getRelative(BlockFace.SOUTH).getType() == Material.WALL_SIGN
|| block.getRelative(BlockFace.WEST).getType() == Material.WALL_SIGN
|| block.getType() == Material.SIGN_POST
|| block.getRelative(BlockFace.UP).getType() == Material.SIGN_POST)
&& prot.getSettingBool(ProtectConfig.protect_signs))
{
event.setCancelled(true);
return;
}
/*if (EssentialsBlockListener.protectedBlocks.contains(block.getType())
&& EssentialsBlockListener.isBlockProtected(block))
{
event.setCancelled(true);
return;
}*/
}
}
@Override
public void onCreatureSpawn(final CreatureSpawnEvent event)
{
if (event.getEntity() instanceof CraftPlayer)
{
return;
}
if (event.isCancelled())
{
return;
}
final String creatureName = event.getCreatureType().toString().toLowerCase();
if (creatureName == null || creatureName.isEmpty())
{
return;
}
if (ess.getSettings().getProtectPreventSpawn(creatureName))
{
event.setCancelled(true);
}
}
@Override
public void onEntityTarget(final EntityTargetEvent event)
{
if (event.isCancelled())
{
return;
}
if (!(event.getTarget() instanceof Player))
{
return;
}
final User user = ess.getUser(event.getTarget());
if ((event.getReason() == TargetReason.CLOSEST_PLAYER
|| event.getReason() == TargetReason.TARGET_ATTACKED_ENTITY
|| event.getReason() == TargetReason.PIG_ZOMBIE_TARGET
|| event.getReason() == TargetReason.RANDOM_TARGET
|| event.getReason() == TargetReason.TARGET_ATTACKED_OWNER
|| event.getReason() == TargetReason.OWNER_ATTACKED_TARGET)
&& prot.getSettingBool(ProtectConfig.prevent_entitytarget)
&& !user.isAuthorized("essentials.protect.entitytarget.bypass"))
{
event.setCancelled(true);
return;
}
}
@Override
public void onExplosionPrime(ExplosionPrimeEvent event)
{
if (event.getEntity() instanceof CraftFireball
&& prot.getSettingBool(ProtectConfig.prevent_fireball_fire))
{
event.setFire(false);
}
}
}
package com.earth2me.essentials.protect;
import com.earth2me.essentials.EssentialsBlockListener;
import com.earth2me.essentials.IEssentials;
import com.earth2me.essentials.User;
import java.util.HashSet;
import java.util.Set;
import net.minecraft.server.ChunkPosition;
import net.minecraft.server.Packet60Explosion;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.block.BlockFace;
import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.craftbukkit.CraftWorld;
import org.bukkit.craftbukkit.entity.CraftFireball;
import org.bukkit.craftbukkit.entity.CraftPlayer;
import org.bukkit.craftbukkit.entity.CraftTNTPrimed;
import org.bukkit.entity.Creeper;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Fireball;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;
import org.bukkit.entity.TNTPrimed;
import org.bukkit.event.entity.CreatureSpawnEvent;
import org.bukkit.event.entity.EntityDamageByBlockEvent;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import org.bukkit.event.entity.EntityDamageByProjectileEvent;
import org.bukkit.event.entity.EntityDamageEvent;
import org.bukkit.event.entity.EntityDamageEvent.DamageCause;
import org.bukkit.event.entity.EntityExplodeEvent;
import org.bukkit.event.entity.EntityListener;
import org.bukkit.event.entity.EntityTargetEvent;
import org.bukkit.event.entity.EntityTargetEvent.TargetReason;
import org.bukkit.event.entity.ExplosionPrimeEvent;
public class EssentialsProtectEntityListener extends EntityListener
{
private final transient IProtect prot;
private final transient IEssentials ess;
public EssentialsProtectEntityListener(final IProtect prot)
{
this.prot = prot;
this.ess = prot.getEssentials();
}
@Override
public void onEntityDamage(EntityDamageEvent event)
{
if (event.isCancelled())
{
return;
}
final Entity target = event.getEntity();
final User user = ess.getUser(target);
if (event instanceof EntityDamageByBlockEvent)
{
final DamageCause cause = event.getCause();
if (prot.getSettingBool(ProtectConfig.disable_contactdmg)
&& cause == DamageCause.CONTACT
&& !(target instanceof Player
&& user.isAuthorized("essentials.protect.damage.contact")
&& !user.isAuthorized("essentials.protect.damage.disable")))
{
event.setCancelled(true);
return;
}
if (prot.getSettingBool(ProtectConfig.disable_lavadmg)
&& cause == DamageCause.LAVA
&& !(target instanceof Player
&& user.isAuthorized("essentials.protect.damage.lava")
&& !user.isAuthorized("essentials.protect.damage.disable")))
{
event.setCancelled(true);
return;
}
if (prot.getSettingBool(ProtectConfig.prevent_tnt_explosion)
&& cause == DamageCause.BLOCK_EXPLOSION
&& !(target instanceof Player
&& user.isAuthorized("essentials.protect.damage.tnt")
&& !user.isAuthorized("essentials.protect.damage.disable")))
{
event.setCancelled(true);
return;
}
}
if (event instanceof EntityDamageByEntityEvent)
{
final EntityDamageByEntityEvent edEvent = (EntityDamageByEntityEvent)event;
final Entity eAttack = edEvent.getDamager();
final User attacker = ess.getUser(eAttack);
// PVP Settings
if (target instanceof Player && eAttack instanceof Player
&& prot.getSettingBool(ProtectConfig.disable_pvp)
&& (!user.isAuthorized("essentials.protect.pvp") || !attacker.isAuthorized("essentials.protect.pvp")))
{
event.setCancelled(true);
return;
}
//Creeper explode prevention
if (eAttack instanceof Creeper && prot.getSettingBool(ProtectConfig.prevent_creeper_explosion)
&& !(target instanceof Player
&& user.isAuthorized("essentials.protect.damage.creeper")
&& !user.isAuthorized("essentials.protect.damage.disable")))
{
event.setCancelled(true);
return;
}
if (eAttack instanceof Creeper && prot.getSettingBool(ProtectConfig.prevent_creeper_playerdmg)
&& !(target instanceof Player
&& user.isAuthorized("essentials.protect.damage.creeper")
&& !user.isAuthorized("essentials.protect.damage.disable")))
{
event.setCancelled(true);
return;
}
if (eAttack instanceof Fireball && prot.getSettingBool(ProtectConfig.prevent_fireball_playerdmg)
&& !(target instanceof Player
&& user.isAuthorized("essentials.protect.damage.fireball")
&& !user.isAuthorized("essentials.protect.damage.disable")))
{
event.setCancelled(true);
return;
}
if (eAttack instanceof TNTPrimed && prot.getSettingBool(ProtectConfig.prevent_tnt_playerdmg)
&& !(target instanceof Player
&& user.isAuthorized("essentials.protect.damage.tnt")
&& !user.isAuthorized("essentials.protect.damage.disable")))
{
event.setCancelled(true);
return;
}
}
if (event instanceof EntityDamageByProjectileEvent
&& target instanceof Player
&& prot.getSettingBool(ProtectConfig.disable_projectiles)
&& !(user.isAuthorized("essentials.protect.damage.projectiles")
&& !user.isAuthorized("essentials.protect.damage.disable")))
{
event.setCancelled(true);
((EntityDamageByProjectileEvent)event).setBounce(true);
return;
}
final DamageCause cause = event.getCause();
if (target instanceof Player)
{
if (cause == DamageCause.FALL
&& prot.getSettingBool(ProtectConfig.disable_fall)
&& !(user.isAuthorized("essentials.protect.damage.fall")
&& !user.isAuthorized("essentials.protect.damage.disable")))
{
event.setCancelled(true);
return;
}
if (cause == DamageCause.SUFFOCATION
&& prot.getSettingBool(ProtectConfig.disable_suffocate)
&& !(user.isAuthorized("essentials.protect.damage.suffocation")
&& !user.isAuthorized("essentials.protect.damage.disable")))
{
event.setCancelled(true);
return;
}
if ((cause == DamageCause.FIRE
|| cause == DamageCause.FIRE_TICK)
&& prot.getSettingBool(ProtectConfig.disable_firedmg)
&& !(user.isAuthorized("essentials.protect.damage.fire")
&& !user.isAuthorized("essentials.protect.damage.disable")))
{
event.setCancelled(true);
return;
}
if (cause == DamageCause.DROWNING
&& prot.getSettingBool(ProtectConfig.disable_drown)
&& !(user.isAuthorized("essentials.protect.damage.drowning")
&& !user.isAuthorized("essentials.protect.damage.disable")))
{
event.setCancelled(true);
return;
}
if (cause == DamageCause.LIGHTNING
&& prot.getSettingBool(ProtectConfig.disable_lightning)
&& !(user.isAuthorized("essentials.protect.damage.lightning")
&& !user.isAuthorized("essentials.protect.damage.disable")))
{
event.setCancelled(true);
return;
}
}
}
@Override
public void onEntityExplode(EntityExplodeEvent event)
{
if (event.isCancelled())
{
return;
}
final int maxHeight = ess.getSettings().getProtectCreeperMaxHeight();
//Nicccccccccce plaaacccccccccce..
if (event.getEntity() instanceof LivingEntity
&& (prot.getSettingBool(ProtectConfig.prevent_creeper_explosion)
|| prot.getSettingBool(ProtectConfig.prevent_creeper_blockdmg)
|| (maxHeight >= 0 && event.getLocation().getBlockY() > maxHeight)))
{
final Set<ChunkPosition> set = new HashSet<ChunkPosition>(event.blockList().size());
final Player[] players = ess.getServer().getOnlinePlayers();
final Set<ChunkPosition> blocksUnderPlayers = new HashSet<ChunkPosition>(players.length);
final Location loc = event.getLocation();
for (Player player : players)
{
if (player.getWorld().equals(loc.getWorld()))
{
blocksUnderPlayers.add(
new ChunkPosition(
player.getLocation().getBlockX(),
player.getLocation().getBlockY() - 1,
player.getLocation().getBlockZ()));
}
}
ChunkPosition cp;
for (Block block : event.blockList())
{
cp = new ChunkPosition(block.getX(), block.getY(), block.getZ());
if (!blocksUnderPlayers.contains(cp))
{
set.add(cp);
}
}
((CraftServer)ess.getServer()).getHandle().sendPacketNearby(loc.getX(), loc.getY(), loc.getZ(), 64.0D, ((CraftWorld)loc.getWorld()).getHandle().worldProvider.dimension,
new Packet60Explosion(loc.getX(), loc.getY(), loc.getZ(), 3.0f, set));
event.setCancelled(true);
return;
}
else if (event.getEntity() instanceof CraftTNTPrimed
&& prot.getSettingBool(ProtectConfig.prevent_tnt_explosion))
{
event.setCancelled(true);
return;
}
else if (event.getEntity() instanceof CraftFireball
&& prot.getSettingBool(ProtectConfig.prevent_fireball_explosion))
{
event.setCancelled(true);
return;
}
// This code will prevent explosions near protected rails, signs or protected chests
// TODO: Use protect db instead of this code
for (Block block : event.blockList())
{
if ((block.getType() == Material.RAILS || block.getRelative(BlockFace.UP).getType() == Material.RAILS)
&& prot.getSettingBool(ProtectConfig.protect_rails))
{
event.setCancelled(true);
return;
}
if ((block.getType() == Material.WALL_SIGN
|| block.getRelative(BlockFace.NORTH).getType() == Material.WALL_SIGN
|| block.getRelative(BlockFace.EAST).getType() == Material.WALL_SIGN
|| block.getRelative(BlockFace.SOUTH).getType() == Material.WALL_SIGN
|| block.getRelative(BlockFace.WEST).getType() == Material.WALL_SIGN
|| block.getType() == Material.SIGN_POST
|| block.getRelative(BlockFace.UP).getType() == Material.SIGN_POST)
&& prot.getSettingBool(ProtectConfig.protect_signs))
{
event.setCancelled(true);
return;
}
/*if (EssentialsBlockListener.protectedBlocks.contains(block.getType())
&& EssentialsBlockListener.isBlockProtected(block))
{
event.setCancelled(true);
return;
}*/
}
}
@Override
public void onCreatureSpawn(final CreatureSpawnEvent event)
{
if (event.getEntity() instanceof CraftPlayer)
{
return;
}
if (event.isCancelled())
{
return;
}
final String creatureName = event.getCreatureType().toString().toLowerCase();
if (creatureName == null || creatureName.isEmpty())
{
return;
}
if (ess.getSettings().getProtectPreventSpawn(creatureName))
{
event.setCancelled(true);
}
}
@Override
public void onEntityTarget(final EntityTargetEvent event)
{
if (event.isCancelled())
{
return;
}
if (!(event.getTarget() instanceof Player))
{
return;
}
final User user = ess.getUser(event.getTarget());
if ((event.getReason() == TargetReason.CLOSEST_PLAYER
|| event.getReason() == TargetReason.TARGET_ATTACKED_ENTITY
|| event.getReason() == TargetReason.PIG_ZOMBIE_TARGET
|| event.getReason() == TargetReason.RANDOM_TARGET
|| event.getReason() == TargetReason.TARGET_ATTACKED_OWNER
|| event.getReason() == TargetReason.OWNER_ATTACKED_TARGET)
&& prot.getSettingBool(ProtectConfig.prevent_entitytarget)
&& !user.isAuthorized("essentials.protect.entitytarget.bypass"))
{
event.setCancelled(true);
return;
}
}
@Override
public void onExplosionPrime(ExplosionPrimeEvent event)
{
if (event.getEntity() instanceof CraftFireball
&& prot.getSettingBool(ProtectConfig.prevent_fireball_fire))
{
event.setFire(false);
}
}
}

View File

@ -1,9 +1,9 @@
# This determines the command prefix when there are conflicts (/name:home, /name:help, etc.)
name: EssentialsProtect
main: com.earth2me.essentials.protect.EssentialsProtect
# Note to developers: This next line cannot change, or the automatic versioning system will break.
version: TeamCity
website: http://www.earth2me.net:8001/
description: Provides protection for various parts of the world.
authors: [Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans, Xeology]
# This determines the command prefix when there are conflicts (/name:home, /name:help, etc.)
name: EssentialsProtect
main: com.earth2me.essentials.protect.EssentialsProtect
# Note to developers: This next line cannot change, or the automatic versioning system will break.
version: TeamCity
website: http://www.earth2me.net:8001/
description: Provides protection for various parts of the world.
authors: [Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans, Xeology]
depend: [Essentials]

View File

@ -1,76 +1,76 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE project [ <!ENTITY buildinc SYSTEM "../build.inc.xml"> ]>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="EssentialsSpawn" default="default" basedir=".">
<description>Builds, tests, and runs the project EssentialsSpawn.</description>
<import file="nbproject/build-impl.xml"/>
&buildinc;
<!--
There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:
-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-jar: called before JAR building
-post-jar: called after JAR building
-post-clean: called after cleaning build products
(Targets beginning with '-' are not intended to be called on their own.)
Example of inserting an obfuscator after compilation could look like this:
<target name="-post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>
For list of available properties check the imported
nbproject/build-impl.xml file.
Another way to customize the build is by overriding existing main targets.
The targets of interest are:
-init-macrodef-javac: defines macro for javac compilation
-init-macrodef-junit: defines macro for junit execution
-init-macrodef-debug: defines macro for class debugging
-init-macrodef-java: defines macro for class execution
-do-jar-with-manifest: JAR building (if you are using a manifest)
-do-jar-without-manifest: JAR building (if you are not using a manifest)
run: execution of project
-javadoc-build: Javadoc generation
test-report: JUnit report generation
An example of overriding the target for project execution could look like this:
<target name="run" depends="EssentialsSpawn-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>
Notice that the overridden target depends on the jar target and not only on
the compile target as the regular run target does. Again, for a list of available
properties which you can use, check the target you are overriding in the
nbproject/build-impl.xml file.
-->
</project>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE project [ <!ENTITY buildinc SYSTEM "../build.inc.xml"> ]>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="EssentialsSpawn" default="default" basedir=".">
<description>Builds, tests, and runs the project EssentialsSpawn.</description>
<import file="nbproject/build-impl.xml"/>
&buildinc;
<!--
There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:
-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-jar: called before JAR building
-post-jar: called after JAR building
-post-clean: called after cleaning build products
(Targets beginning with '-' are not intended to be called on their own.)
Example of inserting an obfuscator after compilation could look like this:
<target name="-post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>
For list of available properties check the imported
nbproject/build-impl.xml file.
Another way to customize the build is by overriding existing main targets.
The targets of interest are:
-init-macrodef-javac: defines macro for javac compilation
-init-macrodef-junit: defines macro for junit execution
-init-macrodef-debug: defines macro for class debugging
-init-macrodef-java: defines macro for class execution
-do-jar-with-manifest: JAR building (if you are using a manifest)
-do-jar-without-manifest: JAR building (if you are not using a manifest)
run: execution of project
-javadoc-build: Javadoc generation
test-report: JUnit report generation
An example of overriding the target for project execution could look like this:
<target name="run" depends="EssentialsSpawn-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>
Notice that the overridden target depends on the jar target and not only on
the compile target as the regular run target does. Again, for a list of available
properties which you can use, check the target you are overriding in the
nbproject/build-impl.xml file.
-->
</project>

View File

@ -1,16 +1,16 @@
# This determines the command prefix when there are conflicts (/name:home, /name:help, etc.)
name: EssentialsSpawn
main: com.earth2me.essentials.spawn.EssentialsSpawn
# Note to developers: This next line cannot change, or the automatic versioning system will break.
version: TeamCity
website: http://www.earth2me.net:8001/
description: Provides spawn control commands, utilizing Essentials.
authors: [Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans, Xeology]
depend: [Essentials]
commands:
setspawn:
description: Set the spawnpoint to your current position.
usage: /<command> <group>
spawn:
description: Teleport to the spawnpoint.
# This determines the command prefix when there are conflicts (/name:home, /name:help, etc.)
name: EssentialsSpawn
main: com.earth2me.essentials.spawn.EssentialsSpawn
# Note to developers: This next line cannot change, or the automatic versioning system will break.
version: TeamCity
website: http://www.earth2me.net:8001/
description: Provides spawn control commands, utilizing Essentials.
authors: [Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans, Xeology]
depend: [Essentials]
commands:
setspawn:
description: Set the spawnpoint to your current position.
usage: /<command> <group>
spawn:
description: Teleport to the spawnpoint.
usage: /<command>

View File

@ -1,7 +1,7 @@
<target name="-post-jar">
<jar destfile="${dist.jar}" update="true">
<manifest>
<attribute name="Classpath" value="Essentials.jar"/>
</manifest>
</jar>
</target>
<target name="-post-jar">
<jar destfile="${dist.jar}" update="true">
<manifest>
<attribute name="Classpath" value="Essentials.jar"/>
</manifest>
</jar>
</target>

View File

@ -1,12 +1,12 @@
libs.CopyLibs.classpath=\
${base}/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar
libs.junit.classpath=\
${base}/junit/junit-3.8.2.jar
libs.junit.javadoc=\
${base}/junit/junit-3.8.2-api.zip
libs.junit_4.classpath=\
${base}/junit_4/junit-4.5.jar
libs.junit_4.javadoc=\
${base}/junit_4/junit-4.5-api.zip
libs.junit_4.src=\
${base}/junit_4/junit-4.5-src.jar
libs.CopyLibs.classpath=\
${base}/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar
libs.junit.classpath=\
${base}/junit/junit-3.8.2.jar
libs.junit.javadoc=\
${base}/junit/junit-3.8.2-api.zip
libs.junit_4.classpath=\
${base}/junit_4/junit-4.5.jar
libs.junit_4.javadoc=\
${base}/junit_4/junit-4.5-api.zip
libs.junit_4.src=\
${base}/junit_4/junit-4.5-src.jar