144 Commits

Author SHA1 Message Date
Tobias Ottenweller
040377cb36 Refactoring and code cleanup. 2013-05-18 11:26:45 +02:00
Tobias Ottenweller
e9027900ce Refactored the BaseCommand class. 2013-05-18 11:11:10 +02:00
Tobias Ottenweller
34b1c7e0ce Removed the 'h' shortcut. 2013-05-17 21:58:05 +02:00
Tobias Ottenweller
987de39bf9 Merge branch 'master' of github.com:craftinc/craftinc-gates into development
Conflicts:
	pom.xml
	src/de/craftinc/gates/BaseGate.java
	src/de/craftinc/gates/commands/BaseCommand.java
	src/de/craftinc/gates/commands/CommandCreate.java
	src/de/craftinc/gates/commands/CommandList.java
2013-05-17 21:54:15 +02:00
Tobias Ottenweller
f2bfe27eba Removed debug print. 2013-05-17 21:24:57 +02:00
Tobias Ottenweller
e0b30135cc Removed duplicate log message. 2013-05-17 21:14:19 +02:00
Tobias Ottenweller
4b7fff2277 Fixed some typos 2013-05-17 20:53:36 +02:00
Tobias Ottenweller
ed2683affc Fixed issue #18. Gates with 'null' as location did cause exceptions at many locations. 2013-05-17 20:13:49 +02:00
Paul Schulze
cac6eb6022 Fixed bug: When x or z was negative a player was teleported one block
beside the real portal blocks.
2013-05-16 09:55:12 +02:00
Tobias Ottenweller
67c8a15e46 Merge branch 'development' of github.com:craftinc/craftinc-gates into development 2013-05-16 09:53:29 +02:00
Tobias Ottenweller
f253dd4ccc Refactored the GatesManager. Added SimpleChunk and SimpleLocation classes. Made PluginPlayerListener use the gateByLocation method of the GatesManager. 2013-05-14 20:05:25 +02:00
Paul Schulze
71031d0578 Fixed bug: When x or z was negative a player was teleported one block
beside the real portal blocks.
2013-05-13 17:48:09 +02:00
Tobias Ottenweller
4012a4ac15 Started working on issue #16:
* Replaced the Gate class with a GateManager class.
* Created HashMap structures to effectively query for gates.
* Refactored to get the plugin running.

Optimizations are not yet in place! Further work is necessary.
2013-05-08 20:30:43 +02:00
Tobias Ottenweller
8c6718d13f Removed unused imports. 2013-04-09 09:11:32 +02:00
Tobias Ottenweller
b196c53335 Display messages about disallowed usage of gates less frequent. 2013-04-08 21:32:15 +02:00
Tobias Ottenweller
d54fd7f72e Removed some debug code. 2013-04-08 21:09:15 +02:00
Tobias Ottenweller
cede47deab Rewrite of the list command. 2013-04-08 21:08:08 +02:00
Tobias Ottenweller
a8a95af497 Further refactoring of the list command. 2013-04-06 12:08:09 +02:00
Tobias Ottenweller
0af3631693 Removed unused imports. 2013-04-06 12:07:57 +02:00
Tobias Ottenweller
4d40b140fa Start work on refactoring the list command. 2013-04-05 21:51:18 +02:00
Tobias Ottenweller
6373f98894 Removed debug prints. 2013-03-26 20:49:48 +01:00
Tobias Ottenweller
b99ecec448 Added toString method for gates. 2013-02-26 14:17:01 +01:00
Tobias Ottenweller
3a7be837b5 Modified help string for exit command. 2013-02-26 14:16:51 +01:00
Tobias Ottenweller
1bfc886969 Further work for Issue #6. 2013-02-26 14:16:39 +01:00
Tobias Ottenweller
880071140a Started work on implementing a permission checking system for Vault. (Issue #6) 2013-02-26 12:50:02 +01:00
Tobias Ottenweller
5b1ac6e8f7 Added code to send messages when player enter a gate. (Issue #15) 2013-02-26 12:47:38 +01:00
Tobias Ottenweller
08906f6004 Fixed Vault permissions setup. 2013-02-23 19:53:05 +01:00
Tobias Ottenweller
e54914bd22 Fix a null pointer exception if a certain world has no gates. 2013-02-23 19:52:41 +01:00
Tobias Ottenweller
b072229914 small bug fix. 2013-02-20 14:45:16 +01:00
Tobias Ottenweller
0b8be1ec4b PluginPortalListener clean up. 2013-02-20 14:38:02 +01:00
Tobias Ottenweller
26927d35c2 Fix for Issue #14. 2013-02-20 14:32:37 +01:00
Tobias Ottenweller
c79a856907 New fix for Issue #8. Now using EntityPortalEnterEvent additionally. 2013-02-19 18:59:54 +01:00
Tobias Ottenweller
a4ee78b88a Updated setLocation and setExit aliases. 2013-02-19 12:43:12 +01:00
Tobias Ottenweller
f3a87516d6 Sort the output of the help command alphabetically. 2013-02-19 12:27:46 +01:00
Tobias Ottenweller
0dacfaa79b Additional work for Issue #8 2013-02-17 19:43:34 +01:00
Tobias Ottenweller
02262880da Fixed stupid bug letting the closest gate method fail. 2013-02-17 19:39:15 +01:00
Tobias Ottenweller
9ce65ed26d Removed unused class. 2013-02-17 14:59:40 +01:00
Tobias Ottenweller
db173521e4 Removed unused import. 2013-02-17 14:58:17 +01:00
Tobias Ottenweller
16095226f9 Fixed Issue #8 2013-02-17 14:56:48 +01:00
Tobias Ottenweller
3ea11da591 Refactoring: Moved code into LocationUtil and GateUtil. 2013-02-17 14:56:01 +01:00
Tobias Ottenweller
59fdb54a09 Fixed a bug where an already closed gate got used for teleporting. 2013-02-17 13:11:16 +01:00
Tobias Ottenweller
02b904a78d Removed some whitespace. 2013-02-17 13:10:34 +01:00
Tobias Ottenweller
0117e7294a Code style applied. Increased the maximum number of gate blocks to 40. 2013-02-17 13:10:11 +01:00
Tobias Ottenweller
1de6812eb6 Updated and simplified the command aliases. 2013-02-17 12:31:59 +01:00
Tobias Ottenweller
26e5b68a7d Updated the 'senderMustBePlayer' attribute of all commands. 2013-02-17 12:20:04 +01:00
Tobias Ottenweller
f09b90f0a6 Code style applied. 2013-02-16 13:21:21 +01:00
Tobias Ottenweller
32f1cba2bd Do not create yml configuration object on every save/load. 2013-02-15 23:38:04 +01:00
Tobias Ottenweller
56a5f828ee Added log statements when gates get closed during serialization. 2013-02-15 23:36:14 +01:00
Tobias Ottenweller
cd0ebc3a7a Added shouldPersistToDisk attribute to BaseCommand. Updated subclasses to reflect the new attribute. 2013-02-15 23:31:39 +01:00
Tobias Ottenweller
32fc475a8a Fixed broken colored print for the create command. 2013-02-11 21:59:41 +01:00