Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1214 commits
Select commit Hold shift + click to select a range
bce4aa4
move all external plugin support modules to the pluginsupport package
Hidendra Jun 13, 2012
8479dbf
allow int block IDs to be used in limit definitions
Hidendra Jun 21, 2012
4bfa804
prevent entities (i.e villages) from opening protections (i.e doors) …
Hidendra Jun 23, 2012
c259a98
missed import (ehhh???)
Hidendra Jun 23, 2012
f33d6e0
villagers not villages
Hidendra Jun 23, 2012
ff1bc58
fix a possible NPE
Jun 25, 2012
916efb7
Merge pull request #354 from basicsensei/pullrequests
Hidendra Jun 26, 2012
3d56dcb
don't download configs anymore as they're already in the jar, instead…
Hidendra Jun 26, 2012
86222d5
fix modules registering even if they only implement Module and don't
Jun 27, 2012
676030a
applied correct format for this pull request
Jun 27, 2012
e41e2e2
oops
Jun 27, 2012
7234f04
Merge pull request #356 from basicsensei/master
Hidendra Jun 27, 2012
8d69cd1
Fix an NPE
Hidendra Jun 30, 2012
dd5a06b
Merge branch 'master' of github.com:Hidendra/LWC
Hidendra Jun 30, 2012
d8793ce
another nullcheck (which shouldn't occur ?)
Hidendra Jun 30, 2012
5ceeab4
disregard that, let's find out what is null, as it shouldn't be null
Hidendra Jun 30, 2012
a5ae9ea
protection type can sometimes resolve to null, somehow?
Hidendra Jun 30, 2012
4e3650f
Tiny mistake in comments
ScoreUnder Jul 7, 2012
f860e2c
Play the door toggle sound effect on door toggle
ScoreUnder Jul 7, 2012
6aac8c9
Merge pull request #360 from ScoreUnder/patch-1
Hidendra Jul 7, 2012
1e921a7
fix a long overdue bug with saplings
Hidendra Jul 8, 2012
edb86f9
Add the REGION permission type to interface with WorldGuard regions
bencvt Jul 14, 2012
6864162
add language messages for bencvt's region permission additions
Hidendra Jul 16, 2012
b16ce33
mcpc support for blocking placement of transport pipes beside chests …
Hidendra Jul 17, 2012
1435e29
unroll * import
Hidendra Jul 17, 2012
265632b
Should fix cases where materials on blocks appear to be null (some Mo…
Hidendra Jul 20, 2012
4951436
metrics update
Hidendra Jul 27, 2012
7852ca3
remove the player chat event for now and update CB reference. It is n…
Hidendra Aug 4, 2012
7a7f6b1
Fix issue where MCPC isnt detected if using CB++. And fix pipes not b…
Hidendra Aug 7, 2012
7784d66
return return return!
Hidendra Aug 7, 2012
95016f8
prepare for release 4.3.0, update changelog
Hidendra Aug 8, 2012
de1f61c
kindly request another build
Hidendra Aug 8, 2012
4f8a444
duplicates WG code, whoops
Hidendra Aug 10, 2012
51a02d3
fix ic2 wrench breaking LWC protected machines, todo: investigate why…
Hidendra Aug 10, 2012
42904ff
remove needless nanoTime() call (which can actually be quite expensive!)
Hidendra Aug 12, 2012
7898832
fix /lwc admin reload to reload cached configuration values, especial…
Hidendra Aug 12, 2012
8e8b8ff
allow /lwc limits <player> in console and give a better error when a …
Hidendra Aug 12, 2012
81615f2
send the output of /lwc limits to the right person :)
Hidendra Aug 12, 2012
6acde15
replace NMS in LWC-Spout, fixes compilation
Hidendra Aug 12, 2012
7b2c933
hide an underlying issue between shared prepared statements that can …
Hidendra Aug 15, 2012
2d3c372
fix potential NPE
Hidendra Aug 26, 2012
bfbd45e
merge in changes by AlphA (albeit modified) which add config support …
Hidendra Sep 5, 2012
613bfc7
removed a method I wrote and then thought I didn't need, oops
Hidendra Sep 5, 2012
70b1283
javadoc fix
Hidendra Sep 5, 2012
a8deebd
remove all references to the deprecated ContainerBlock (replaced with…
Hidendra Sep 5, 2012
c75c3fb
In the StructureGrowEvent, do not check blocks which are not protecta…
Hidendra Sep 14, 2012
9b6b305
add config option for allowing cross world drop transferring
Hidendra Oct 1, 2012
40d0463
Magnet: Items that are polled are not considered "fresh" as items are…
Hidendra Oct 7, 2012
0fd229b
optimize magnet to be highly efficient when dealing with a lot of dro…
Hidendra Oct 7, 2012
0b63c6b
run /lwc admin cleanup in a separate thread -- if your server grinded…
Hidendra Oct 8, 2012
23d49d6
Closes #393 for magnet chests, only pickup items that have lived for …
Hidendra Oct 9, 2012
e6d9522
closes #394 don't put items into furnaces when input slots are alread…
Hidendra Oct 9, 2012
1e334ed
#395 #396 Fallback to superperms if Vault does not return any groups …
Hidendra Oct 9, 2012
1f6aaf1
null check vault's shenanigans
Hidendra Oct 25, 2012
b72f6be
fix the AUTOCLOSE flag
Hidendra Oct 25, 2012
4b14d97
#409 - patch by @Brianum to not allow magnet chests to deposit into t…
Hidendra Nov 13, 2012
ea40fa9
put the plethora of bug fixes under the optimization
Hidendra Nov 14, 2012
3392fc7
fix compatibility with bukkit 1.4.4
Hidendra Nov 15, 2012
ad2fd8a
update changelog, prepare release for 4.3.1
Hidendra Nov 14, 2012
b123897
catch the exception thrown by Vault when using Super Perms.
Hidendra Nov 15, 2012
1d49d5b
work around what appears to be world corruption in signs. very rare, …
Hidendra Nov 16, 2012
76a4eeb
Merge branch 'master' of https://github.com/Hidendra/LWC
Hidendra Nov 16, 2012
ee36947
log to the console when a possibly invalid block is found
Hidendra Nov 17, 2012
8f18f0e
Add a db pool in a slightly elegant way without having to modify the …
Hidendra Nov 18, 2012
fdb1e87
when left clicking signs don't cancel the interact event. closes #433
Hidendra Nov 18, 2012
7919104
fix saving protection history when creating a protection
Hidendra Nov 18, 2012
4860a54
Magnet: convert scanForInventoryBlocks to native code (use tile entit…
Hidendra Nov 18, 2012
21db2ab
Don't use unnecessary getItemStack() calls by using native code. #441
Hidendra Nov 18, 2012
9bbef4c
naïve implemention of async magnets. if needed could be improved by b…
Hidendra Nov 21, 2012
3ac589f
addresses issues with connections staying open when a exception occur…
Hidendra Nov 21, 2012
c2e8862
fix issues with new LWC dbs not initializing properly
Hidendra Nov 22, 2012
e114b1c
move downloader logic to before the database is connected to.
Hidendra Nov 23, 2012
3c12e99
simplify some login that could be confusing
Hidendra Nov 23, 2012
62ae07b
Remove automatic updating. Instead, a notice will be printed in the c…
Hidendra Nov 24, 2012
606d8e6
uninitialise dat int
Hidendra Nov 24, 2012
af522c1
remove extraneous startup output and move some of it to /lwc admin re…
Hidendra Nov 24, 2012
5d6230b
remove /lwc admin update, update /lwc admin version
Hidendra Nov 24, 2012
81e0310
modify /lwc admin report cache size colour thresholds
Hidendra Nov 24, 2012
9807249
Highly experimental entity protection & slightly improved magnets. NO…
Hidendra Dec 1, 2012
ada4af4
check if item is dead
Hidendra Dec 1, 2012
c16ddb7
improve errorneous database configurations. Errors that are no huge s…
Hidendra Dec 1, 2012
c957533
Make LWC compatible with CB build removing easy visibility to NMS / C…
Hidendra Dec 6, 2012
4e6ae38
attempt to load sqlite.jar via two methods #457
Hidendra Dec 6, 2012
c54897b
failed logic -- check for crossWorld == false not true
Hidendra Dec 6, 2012
accad57
allow entity protections to be configured in core.yml. storage_mineca…
Hidendra Dec 7, 2012
62e46de
Metrics R6
Hidendra Dec 7, 2012
858783c
Metrics change for java version
Hidendra Dec 7, 2012
6ecce63
LWC-Econ: use class-loader-of instead of using Class-Path in the mani…
Hidendra Dec 8, 2012
1983d17
improvements to magnet again and remove storage minecart magnets for …
Hidendra Dec 10, 2012
fd4effd
fix matching blocks attached to wall signs. looks like minecraft did …
Hidendra Dec 10, 2012
7d9105e
CB can throw exceptions when depositing items. catch them
Hidendra Dec 14, 2012
474b133
use Bukkit's getFIle() to get the location to LWC's jar instead of th…
Hidendra Dec 16, 2012
cc54b6f
safen up some calls
Hidendra Dec 23, 2012
6cbce56
Flush when extremely full -- experimental
Hidendra Dec 23, 2012
55d54d3
Add pool statistics to /lwc admin report and don't forcefully flush
Hidendra Dec 24, 2012
023009b
Run database thread in a task on the main thread for now. Seems to fi…
Hidendra Dec 26, 2012
232785f
add core.updateNotifier to enable/disable the update notifier
Hidendra Jan 1, 2013
5695f4b
Donation chest support. does not require spout or NMS/OBC
Hidendra Jan 2, 2013
fffc24e
remove frivolous statements
Hidendra Jan 2, 2013
c8f2d67
Allow "sign" limit in limitsv2 to apply to _both_ wall signs and sign…
Hidendra Jan 2, 2013
5892f0d
Move the database thread to async task and impose a work limit
Hidendra Jan 3, 2013
7707e8d
fix legacy limits not expecting to see entity protections
Hidendra Jan 3, 2013
8e67ea3
didn't mean to commit some extra output messages
Hidendra Jan 3, 2013
f6dd6fc
fix database migration (saveNow() used to create if it needed to, it …
Hidendra Jan 3, 2013
226a9f1
Disable magnets globally for now due to ongoing lag issues with it
Hidendra Jan 3, 2013
9312425
fix double doors opening protections you don't have access to
Hidendra Jan 6, 2013
62ff17a
share 1 connection when flushing the db queue instead of opening a lo…
Hidendra Jan 13, 2013
d5472e4
catch exception in rare cases when bukkit fails to get the location o…
Hidendra Jan 26, 2013
1b8611d
Revert "catch exception in rare cases when bukkit fails to get the lo…
Hidendra Feb 1, 2013
a9ea5f0
Revert "share 1 connection when flushing the db queue instead of open…
Hidendra Feb 1, 2013
e28efa7
Revert "fix double doors opening protections you don't have access to"
Hidendra Feb 1, 2013
91d9d4a
Revert "Disable magnets globally for now due to ongoing lag issues wi…
Hidendra Feb 1, 2013
00030e8
Revert "fix database migration (saveNow() used to create if it needed…
Hidendra Feb 1, 2013
04b8e4f
Revert "didn't mean to commit some extra output messages"
Hidendra Feb 1, 2013
82fb976
Revert "fix legacy limits not expecting to see entity protections"
Hidendra Feb 1, 2013
bad4924
Revert "Move the database thread to async task and impose a work limit"
Hidendra Feb 1, 2013
97646a7
Revert "Allow "sign" limit in limitsv2 to apply to _both_ wall signs …
Hidendra Feb 1, 2013
93f9036
Revert "remove frivolous statements"
Hidendra Feb 1, 2013
c47b619
Revert "Donation chest support. does not require spout or NMS/OBC"
Hidendra Feb 1, 2013
51110be
Revert "add core.updateNotifier to enable/disable the update notifier"
Hidendra Feb 1, 2013
f9d2edd
Revert "Run database thread in a task on the main thread for now. See…
Hidendra Feb 1, 2013
7eb8bd6
Revert "Add pool statistics to /lwc admin report and don't forcefully…
Hidendra Feb 1, 2013
2f31178
Revert "Flush when extremely full -- experimental"
Hidendra Feb 1, 2013
f3b9867
Revert "safen up some calls"
Hidendra Feb 1, 2013
67569b9
Revert "use Bukkit's getFIle() to get the location to LWC's jar inste…
Hidendra Feb 1, 2013
8f1ba06
Revert "CB can throw exceptions when depositing items. catch them"
Hidendra Feb 1, 2013
637581b
Revert "fix matching blocks attached to wall signs. looks like minecr…
Hidendra Feb 1, 2013
2b812e5
Revert "improvements to magnet again and remove storage minecart magn…
Hidendra Feb 1, 2013
4e97cb1
Revert "LWC-Econ: use class-loader-of instead of using Class-Path in …
Hidendra Feb 1, 2013
ff3ca3a
Revert "Metrics change for java version"
Hidendra Feb 1, 2013
d45e396
Revert "Metrics R6"
Hidendra Feb 1, 2013
b167c14
Revert "allow entity protections to be configured in core.yml. storag…
Hidendra Feb 1, 2013
b71840f
Revert "failed logic -- check for crossWorld == false not true"
Hidendra Feb 1, 2013
426559e
Revert "attempt to load sqlite.jar via two methods #457"
Hidendra Feb 1, 2013
b83cf89
Revert "Make LWC compatible with CB build removing easy visibility to…
Hidendra Feb 1, 2013
f976484
Revert "improve errorneous database configurations. Errors that are n…
Hidendra Feb 1, 2013
f0ff1f5
Revert "check if item is dead"
Hidendra Feb 1, 2013
3993f89
Revert "Highly experimental entity protection & slightly improved mag…
Hidendra Feb 1, 2013
6b08c87
Revert "modify /lwc admin report cache size colour thresholds"
Hidendra Feb 1, 2013
d7f127a
Revert "remove /lwc admin update, update /lwc admin version"
Hidendra Feb 1, 2013
2865131
Revert "remove extraneous startup output and move some of it to /lwc …
Hidendra Feb 1, 2013
b79dd1d
Revert "uninitialise dat int"
Hidendra Feb 1, 2013
628f388
Revert "Remove automatic updating. Instead, a notice will be printed …
Hidendra Feb 1, 2013
619b551
Revert "simplify some login that could be confusing"
Hidendra Feb 1, 2013
556b368
Revert "move downloader logic to before the database is connected to."
Hidendra Feb 1, 2013
16a81d7
Revert "fix issues with new LWC dbs not initializing properly"
Hidendra Feb 1, 2013
d742d7a
Revert "addresses issues with connections staying open when a excepti…
Hidendra Feb 1, 2013
d30dcdd
Revert "naïve implemention of async magnets. if needed could be impro…
Hidendra Feb 1, 2013
16abae2
Revert "Don't use unnecessary getItemStack() calls by using native co…
Hidendra Feb 1, 2013
86acfac
Revert "Magnet: convert scanForInventoryBlocks to native code (use ti…
Hidendra Feb 1, 2013
079f286
Revert "fix saving protection history when creating a protection"
Hidendra Feb 1, 2013
3688c31
Revert "when left clicking signs don't cancel the interact event. clo…
Hidendra Feb 1, 2013
ddb1bbe
Revert "Add a db pool in a slightly elegant way without having to mod…
Hidendra Feb 1, 2013
cfea054
when left clicking signs don't cancel the interact event. closes #433
Hidendra Nov 18, 2012
813a2e6
move downloader logic to before the database is connected to.
Hidendra Nov 23, 2012
e3c0ec4
simplify some login that could be confusing
Hidendra Nov 23, 2012
66febd5
Remove automatic updating. Instead, a notice will be printed in the c…
Hidendra Nov 24, 2012
e555831
uninitialise dat int
Hidendra Nov 24, 2012
625ab24
remove extraneous startup output and move some of it to /lwc admin re…
Hidendra Nov 24, 2012
9f4aeae
modify /lwc admin report cache size colour thresholds
Hidendra Nov 24, 2012
729f2cd
remove /lwc admin update, update /lwc admin version
Hidendra Nov 24, 2012
ebc63f8
CraftBukkit NMS/OBC update
Hidendra Feb 1, 2013
66479fc
failed logic -- check for crossWorld == false not true
Hidendra Dec 6, 2012
e93c3da
LWC-Econ: use class-loader-of instead of using Class-Path in the mani…
Hidendra Dec 8, 2012
2b762db
fix matching blocks attached to wall signs. looks like minecraft did …
Hidendra Dec 10, 2012
470a42e
CB can throw exceptions when depositing items. catch them
Hidendra Dec 14, 2012
8eda042
use Bukkit's getFIle() to get the location to LWC's jar instead of th…
Hidendra Dec 16, 2012
a0e040a
add core.updateNotifier to enable/disable the update notifier
Hidendra Jan 1, 2013
761f867
Donation chest support. does not require spout or NMS/OBC
Hidendra Jan 2, 2013
aefe364
remove frivolous statements
Hidendra Jan 2, 2013
0349d52
Allow "sign" limit in limitsv2 to apply to _both_ wall signs and sign…
Hidendra Jan 2, 2013
3e74549
fix double doors opening protections you don't have access to
Hidendra Jan 6, 2013
9f8b7a5
catch exception in rare cases when bukkit fails to get the location o…
Hidendra Jan 26, 2013
69a656c
Heroes support. Don't allow drop xfers when hero is in combat
Hidendra Feb 1, 2013
3619652
Not efficient at all! Revert "optimize magnet to be highly efficient …
Hidendra Feb 2, 2013
31378d2
Keep the ticks check, though.
Hidendra Feb 2, 2013
ff89575
clean up the magnet class a bit
Hidendra Feb 2, 2013
042cc7a
Ignore the DB when all protections are cached when checking for prote…
Hidendra Feb 2, 2013
a2792dc
remove undesired console output :)
Hidendra Feb 2, 2013
c2e17e8
properly remove cached protections when using fastRemoveProtections.
Hidendra Feb 4, 2013
77be007
Add /cdonation to help menu /lwc
LeonChris88 Feb 8, 2013
63f84e6
fix matching trap doors. Data values were changed.
Hidendra Feb 9, 2013
5fd3b06
Minor grammar fix
evonuts Feb 10, 2013
0420c1d
Send a keepalive packet to the database server approximately every 5 …
Hidendra Feb 10, 2013
a467d48
Update src/main/java/com/griefcraft/listeners/LWCEntityListener.java
nitnelave Jan 12, 2013
1bc1d12
update CreeperHeal reference.
Hidendra Feb 10, 2013
fa84f33
Merge pull request #528 from LiLChris/patch-1
Hidendra Feb 10, 2013
ff267a8
Merge pull request #530 from evonuts/patch-1
Hidendra Feb 10, 2013
43fb936
test
Hidendra Feb 12, 2013
5a482e1
Merge remote-tracking branch 'origin/master'
Hidendra Feb 12, 2013
eba48b0
replace craftbukkit with bukkit
Hidendra Feb 12, 2013
c4bd939
Revert "test"
Hidendra Feb 12, 2013
7b4f967
configurable database ping interval
Hidendra Feb 13, 2013
e8d7c28
move MobArena logic to the drop transfer handler so it does not block…
Hidendra Feb 13, 2013
c17f614
fix being able to swap items in donation chests that have the same id…
Hidendra Feb 13, 2013
5924102
fix-fix MobArena cancelling item drops.
Hidendra Feb 13, 2013
d515fda
some bug fixes with donation chests. Most importantly, fix being able…
Hidendra Feb 17, 2013
0ebd859
fix potential NPE (I wouldn't think it would ever be null anymore but…
Hidendra Feb 17, 2013
721399e
Credits changes (/lwc credits). add in the donations for the last ~ye…
Hidendra Feb 22, 2013
a1838e6
give %owner% to lock messages
Hidendra Feb 23, 2013
9b0719b
Fix lwc mods resetting the last accessed time on chests they do not h…
Hidendra Feb 24, 2013
3341d7d
add readonly-modify and readonly-remove to protection configs. allows…
Hidendra Mar 4, 2013
cd995b1
allow limits via permissions: lwc.protect.BLOCKID/NAME.# or by defaul…
Hidendra Mar 14, 2013
7886815
allow limits parsing to be enabled / disabled
Hidendra Mar 14, 2013
bbfa860
whitespace
Hidendra Mar 14, 2013
c741be6
safely ignore array index out of bounds generated by a bukkit call (u…
Hidendra Mar 15, 2013
96a9da9
fix blacklistedBlocks not matching certain combos. fixes Hoppers (id …
Hidendra Mar 15, 2013
f7b6015
change version to 4.3.2 for second (and probably last) beta release. …
Hidendra Mar 15, 2013
764583b
fix blacklisted block bug with allowing blocks in certain arrangement
Hidendra Mar 16, 2013
a3f27d7
bounds check inventory slot on inventory click event to escape the ev…
Hidendra Mar 16, 2013
7653be4
caught AbstractMethodError for inventory event's event.getInventory()…
Hidendra Mar 16, 2013
9bceec8
move blacklist block handling from its own event handler to LWC's own
Hidendra Mar 16, 2013
7e6b630
fix blacklistedBlocks being broken by the last build ( and also the e…
Hidendra Mar 16, 2013
36f5d95
cut out some unused code
Hidendra Mar 16, 2013
263a177
native support for Double Trapped chests.
Hidendra Mar 16, 2013
131379e
magic chest enums!
Hidendra Mar 16, 2013
c626b02
alias 'chest' in core.yml to both Chest and Trapped Chest.
Hidendra Mar 16, 2013
b1ba484
add Hoppers to core.yml by default the first time this version/build …
Hidendra Mar 16, 2013
fb01a24
add Trapped Chests to core.yml by default the first time this version…
Hidendra Mar 16, 2013
fe8002a
reduce visibility
Hidendra Mar 16, 2013
885990d
while i'm simplifying things take it a _step further_
Hidendra Mar 16, 2013
d1e1a13
fix placing hoppers on donation chests you don't have admin access to
Hidendra Mar 16, 2013
c3b9fcb
don't attempt to ping the database if we are not connected to it
Hidendra Mar 20, 2013
63a0dc6
Disable hoppers on protections by default. They can be enabled on ind…
Hidendra Mar 29, 2013
4aca14a
hopper prevention now uses both dest/source. this just adds destinati…
Hidendra Mar 29, 2013
20846fb
Fix minor bugs with donation chests: allow left clicking (inserting) …
Hidendra Apr 3, 2013
2749e4b
Replaced this ugly StackTrace message (Failed to connect to MySQL) with
PhoenixIV Apr 4, 2013
38f0a19
when using fastRemoveProtections account for protections that can mat…
Hidendra Apr 7, 2013
5ba5699
Implement Bukkit's doubleClick() method for InventoryClickEvent. Stil…
Hidendra Apr 9, 2013
a95b6fe
Throwabl, not Exception.
Hidendra Apr 9, 2013
06bca6e
Fix Block name matching for protectable blocks in core.yml. This fina…
Hidendra Apr 23, 2013
0f22f0f
fix misc formatting
Hidendra Apr 23, 2013
6cac047
Replace the enumset used to check if a block is an inventory with a B…
Hidendra May 20, 2013
d68e326
Updated French language file
fpigerre May 21, 2013
83ff695
Auto protect can create duplicate protections when blocks are unexpec…
Hidendra Jun 22, 2013
181d2e6
Remove JS
Hidendra Jun 22, 2013
b754820
Merge pull request #627 from psgs/master
Hidendra Jun 22, 2013
02c4f0c
Metrics R7
Hidendra Jun 29, 2013
cb9fc06
Change version string
Hidendra Jun 29, 2013
eea6f28
Update lwc_cz.properties
AyACZE Jun 30, 2013
5f7c359
fullRemoveProtections should update the history table to make the pro…
Hidendra Jul 11, 2013
a821fad
Merge branch 'master' of github.com:Hidendra/LWC
Hidendra Jul 11, 2013
d1fb24e
Merge pull request #582 from PhoenixIV/stacktrace_patch
Hidendra Jul 11, 2013
08ea5f2
Merge pull request #657 from AyACZE/patch-1
Hidendra Jul 11, 2013
c495dfb
fullRemoveProtections should update the history table to make the pro…
Hidendra Jul 11, 2013
4ea1626
Merge branch 'master' of github.com:Hidendra/LWC
Hidendra Jul 11, 2013
8f31584
It looks like the sign blanking bug has been fixed (when cancelling i…
Hidendra Jul 11, 2013
36b25a9
Could swear I ctrl+f'd cremoveall before :-(
Hidendra Jul 11, 2013
669a148
Implement chest double click (implemented in MC 1.5). This fixes issu…
Hidendra Jul 12, 2013
39d4e28
Fix certain items displaying in chat wrong (#670)
Nathan2055 Jul 29, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.idea
.settings
.externalToolBuilders
world
bin

.classpath
.project
*.txt
*.bat
674 changes: 0 additions & 674 deletions COPYING

This file was deleted.

25 changes: 25 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Copyright 2011 Tyler Blair. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are
permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of
conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list
of conditions and the following disclaimer in the documentation and/or other materials
provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

The views and conclusions contained in the software and documentation are those of the
authors and contributors and should not be interpreted as representing official policies,
either expressed or implied, of anybody else.
30 changes: 5 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,7 @@
#LWC: Lightweight Chest+Furnace Protection and Management
# Building LWC

Designed on top of hMod, It is fast and scalable. It does not use flat files, but instead <b>sqlite</b> -- a stateless, serverless SQL engine. In some cases it is actually <i>faster</i> than MySQL and other SQL engines.
git clone git://github.com/Hidendra/LWC.git
cd LWC
ant

Features
----------------------

* Private protections by Users and Groups or even by Password
* Public protections that anyone can use, but no one can register
* Protection limits--limit the amount of protections a User or Group can register
* Small memory footprint - LWC uses both physical and memory databases and entities are only loaded into memory when they are needed until done with them
* No excessive disk I/O. The disk is only written to when a new Chest is protected, a limit created or an access right created <span style="font-size: .75em;">(for private protections)</span>
* Built in support for double chests: proper recognition only requires you to register one side of a double chest. Internally, only one chest is registered, saving storage space
* much more. some features are largely undocumented!

Converting
----------------------

Are you using ChestProtect? LWC can seamlessly convert every chest from Chest Protect 100% to LWC. If you use a different chest plugin, open a GitHub issue, and it could possibly be created.
To convert a chest, do one of the following:

* <b>In-game:</b> `/lwc convert chestprotect`
* <b>Console:</b> `java -cp plugins/LWC.jar CPConverter`

Commands
----------------------
You can view the latest commands by typing `/lwc` ingame, and then typing a command to view more information on it
Distribution files (e.g LWC.jar and LWC-Economy.jar) will be located in the `build/` folder
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4.4.0
158 changes: 158 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
<?xml version="1.0" ?>
<project name="LWC" default="all">

<!-- Name of the jar to create -->
<property name="jar.core" value="LWC.jar"/>
<property name="jar.economy" value="LWC-Economy.jar"/>
<property name="jar.spout" value="LWC-Spout.jar"/>

<property name="lib" value="lib"/>
<property name="src" value="src"/>
<property name="bin" value="build/classes/"/>

<property name="modules" value="modules"/>
<property name="economy" value="${modules}/economy/src/"/>
<property name="spout" value="${modules}/spout/src/"/>

<property name="build" value="build"/>

<!-- Location of the plugins folder development server -->
<property name="dev" value="../../minecraft/plugins"/>

<!-- Libraries used by LWC & modules -->
<fileset dir="${lib}" id="libs">
<include name="*.jar"/>
<include name="plugins/*.jar"/>
</fileset>

<!-- Jenkins integration -->
<property environment="env"/>

<condition property="BUILD_NUMBER" value="${env.BUILD_NUMBER}" else="MANUAL">
<isset property="env.BUILD_NUMBER"/>
</condition>
<condition property="GIT_COMMIT_FULL" value="${env.GIT_COMMIT}" else="MANUAL">
<isset property="env.GIT_COMMIT"/>
</condition>
<condition property="label" value="${label}" else="Compiling LWC">
<isset property="label"/>
</condition>

<target name="all" depends="buildall" description="Build LWC and all modules"/>

<target name="compile-core" description="Compile core LWC">
<mkdir dir="${bin}"/>
<mkdir dir="${bin}/core/"/>
<mkdir dir="${bin}/core/resources/"/>

<!-- Timestamp, bitches -->
<tstamp>
<!-- Date format: MONTH DD YYYY e.g January 25, 2012 -->
<format property="build.time" pattern="MMMM dd, yyyy" offset="0" unit="hour" />
</tstamp>

<!-- Load the version -->
<loadfile srcfile="VERSION" property="VERSION"/>

<!-- Copy plugin.yml to ${bin}/core/resources -->
<copy file="src/main/resources/plugin.yml" todir="${bin}/core/resources/" overwrite="true"/>

<!-- Replace ${VERSION} with the version number in plugin.yml -->
<replace file="${bin}/core/resources/plugin.yml" value="${VERSION} (b${BUILD_NUMBER}) (${build.time})">
<replacefilter token="@VERSION@"/>
</replace>

<echo>${label}</echo>
<javac source="1.6" target="1.6" srcdir="${src}/main/java/" destdir="${bin}/core/"
debug="true" debuglevel="lines,vars,source" deprecation="true" includeantruntime="true">
<compilerarg value="-Xlint:-options"/>
<classpath>
<fileset refid="libs"/>
</classpath>
</javac>
</target>

<target name="compile-economy" description="Compile LWC-Economy">
<mkdir dir="${bin}"/>
<mkdir dir="${bin}/economy/"/>
<delete file="${build}/.buildeconomy"/>

<echo>Compiling LWC-Economy</echo>
<javac source="1.6" target="1.6" srcdir="${economy}/main/java/" destdir="${bin}/economy/" deprecation="true" debug="true"
debuglevel="lines,vars,source" includeantruntime="true">
<compilerarg value="-Xlint:-options"/>
<classpath>
<fileset refid="libs"/>
<dirset dir="${bin}/core/"/>
</classpath>
</javac>
</target>

<target name="compile-spout" description="Compile LWC-Spout">
<mkdir dir="${bin}"/>
<mkdir dir="${bin}/spout/"/>
<delete file="${build}/.buildspot"/>

<echo>Compiling LWC-Spout</echo>
<javac source="1.6" target="1.6" srcdir="${spout}/main/java/" destdir="${bin}/spout/" deprecation="true" debug="true"
debuglevel="lines,vars,source" includeantruntime="true">
<compilerarg value="-Xlint:-options"/>
<classpath>
<fileset refid="libs"/>
<dirset dir="${bin}/core/"/>
</classpath>
</javac>
</target>

<target name="buildall" description="Build the distribution files" depends="lwc,economy">
<copy tofile="${build}/VERSION" file="VERSION" overwrite="yes"/>
</target>

<target name="lwc" description="Build LWC.jar" depends="compile-core">
<echo>Building LWC.jar</echo>

<jar jarfile="${build}/${jar.core}">
<fileset dir="${src}/main/resources/" includes="lang/*"/>
<fileset dir="${bin}/core/resources/" includes="**/*"/>
<fileset dir="${bin}/core/" excludes="resources/**"/>
<fileset dir="." includes="config/**.yml" />

<manifest>
<attribute name="Implementation-Title" value="LWC"/>
<attribute name="Implementation-Vendor" value="Hidendra"/>
<!-- <attribute name="Implementation-Version" value="git-LWC-${GIT_COMMIT}-b${BUILD_NUMBER}jnks" /> -->
<attribute name="Implementation-Version" value="b${BUILD_NUMBER}-git-${GIT_COMMIT}"/>
</manifest>
</jar>
</target>

<target name="economy" description="Build LWC-Economy.jar" depends="compile-economy">
<echo>Building LWC-Economy.jar</echo>

<jar jarfile="${build}/${jar.economy}">
<fileset dir="${economy}/resources/" includes="plugin.yml"/>
<fileset dir="${bin}/economy/"/>

<manifest>
<attribute name="Implementation-Title" value="LWC"/>
<attribute name="Implementation-Vendor" value="Hidendra"/>
<attribute name="Implementation-Version" value="${BUILD_NUMBER}"/>
</manifest>
</jar>
</target>

<target name="spout" description="Build LWC-Spout.jar" depends="compile-spout">
<echo>Building LWC-Spout.jar</echo>

<jar jarfile="${build}/${jar.spout}">
<fileset dir="${spout}/resources/" includes="plugin.yml"/>
<fileset dir="${bin}/spout/"/>

<manifest>
<attribute name="Implementation-Title" value="LWC"/>
<attribute name="Implementation-Vendor" value="Hidendra"/>
<attribute name="Implementation-Version" value="${BUILD_NUMBER}"/>
</manifest>
</jar>
</target>
</project>
Loading