Commit Graph

584 Commits

Author SHA1 Message Date
boy0001
c8fe54e685 changed version number 2014-10-19 14:13:33 +11:00
Sauilitired
7f57b22e56 Gamemode :D 2014-10-18 14:10:57 +02:00
Sauilitired
dae0b00e35 Merge remote-tracking branch 'origin/master' 2014-10-18 13:55:11 +02:00
Sauilitired
15252ea94b Gamemode 2014-10-18 13:44:51 +02:00
boy0001
2edec161a8 my bad 2014-10-18 21:28:15 +11:00
Sauilitired
e4cd1bdc56 Flags :D 2014-10-18 12:12:32 +02:00
Sauilitired
7e62094152 Flags :D 2014-10-18 10:57:45 +02:00
Sauilitired
5d73a2fd6a Merge remote-tracking branch 'origin/master' 2014-10-18 10:24:59 +02:00
Sauilitired
86a4dbded8 Some global settings :D 2014-10-18 10:24:48 +02:00
boy0001
b23d4f26e6 actually fixed purge 2014-10-18 18:45:07 +11:00
boy0001
441d4dde2e fixed purge command 2014-10-18 15:54:16 +11:00
boy0001
04e8c5a8c4 added startMerge to plotManager 2014-10-18 15:49:08 +11:00
boy0001
fc9a31cbf4 fixed NPE from teleport event 2014-10-18 13:36:30 +11:00
boy0001
cb8822cd6a bug fixes. 2014-10-18 13:24:47 +11:00
Jesse Boyd
9ba5e3f91b It's probably better to put it here actually. 2014-10-18 11:37:30 -07:00
Jesse Boyd
6c614d1eec Fixed duplicate users potentially being added 2014-10-18 11:33:48 -07:00
Jesse Boyd
96fb8cfab9 Reload now reloads a bit more. 2014-10-18 11:30:25 -07:00
Jesse Boyd
a64e4c9578 *console commands
Added plot purge
2014-10-18 11:24:18 -07:00
Jesse Boyd
0010b06afa Added support for console messages (untested) 2014-10-18 11:06:29 -07:00
Jesse Boyd
2435eab96a sendMessage now supports console 2014-10-18 10:22:08 -07:00
boy0001
eee4a44fcb it's working now. (so far at least) 2014-10-15 21:36:23 +11:00
boy0001
47d26531aa "borrowing" some jnbt code 2014-10-15 21:23:32 +11:00
boy0001
1c4100a612 Untested (should work) 2014-10-15 20:43:20 +11:00
boy0001
e7d44d5343 Forgot about unlinking 2014-10-15 19:53:28 +11:00
Sauilitired
0961671eaf Fixed the uuid saving functions, added ability to change caching methods. 2014-10-14 16:16:05 +02:00
Sauilitired
2bbcdb17bc Started working on functions that will allow for a saved UUID cache (i.e mysql, sqlite, txt file etc...) for faster reading and in-caching. 2014-10-13 21:22:19 +02:00
Sauilitired
4ba147b95f Fixed some translations. 2014-10-13 19:59:35 +02:00
Sauilitired
b85c2a3c76 Fail :P 2014-10-13 19:43:41 +02:00
Sauilitired
a19b13fded Clipboard command (for info...) 2014-10-13 19:40:30 +02:00
boy0001
2b22ebf3d8 Documenting some methods 2014-10-13 17:44:05 +11:00
boy0001
4403edf7ca Multiple bug fixes
Plot clearing also now requires an unlink if mega.
Copy paste now requires an unlink if mega
*We should fix this at some later point
Plot merging now checks the entirety of both mega plots being merged
(rather that just the two adjacent)
2014-10-13 17:33:37 +11:00
Sauilitired
9087d48d9a Copy and paste, doesn't work for mega plots. 2014-10-12 17:26:58 +02:00
boy0001
254b9d4053 close stream 2014-10-12 23:08:48 +11:00
Sauilitired
8bdbd3e628 Yer, forgot that :P 2014-10-12 10:48:08 +02:00
Jesse Boyd
05c1ed139c fixed sqlite somehow...
and plot merging
2014-10-12 12:44:59 -07:00
Jesse Boyd
9b6d3e2b14 config fixes 2014-10-12 10:53:36 -07:00
Sauilitired
8245db7a08 Pfft. 2014-10-12 01:18:47 +02:00
Jesse Boyd
1772002700 actually fixed it 2014-10-12 10:13:44 -07:00
Jesse Boyd
b5037fe878 Merge branch 'master' of http://git.intellectualsites.com/citymonstret/plot_new 2014-10-12 09:56:23 -07:00
Jesse Boyd
34dd6c8107 fixed plot home 2014-10-12 09:56:17 -07:00
Jesse Boyd
532cc72076 fixed plot merging not saving 2014-10-12 01:37:16 -07:00
Jesse Boyd
0f7b5a4526 bugs bugs and more bugs 2014-10-12 01:15:00 -07:00
Jesse Boyd
3ffb182a3c yo yo yo
testing some new formatting rules + bug fixes
2014-10-12 00:37:36 -07:00
Sauilitired
53878c1a66 You can't divide by 0, stupid... 2014-10-11 18:35:51 +02:00
Sauilitired
88fe47b7ee Yes, I am really stupid... -_- 2014-10-11 18:30:24 +02:00
Sauilitired
0160a39d9f I am stupid. 2014-10-11 18:24:50 +02:00
Sauilitired
446cd422e0 Well, some stuff... 2014-10-11 18:16:08 +02:00
boy0001
79e0459a3a jdoc 2014-10-11 19:51:48 +11:00
boy0001
6b028988b3 Bug fixes 2014-10-11 19:05:50 +11:00
Jesse Boyd
6c1527f41c Finished setup command. 2014-10-11 12:09:14 -07:00
Jesse Boyd
a6375796c0 No red files anymore. Some stuff still unfinished.
+ weekly code cleanup
2014-10-11 00:33:10 -07:00
Jesse Boyd
2f5f3ac8e2 Plugin compiles now (many commands don't work) 2014-10-10 22:29:20 -07:00
Jesse Boyd
b50dfcb423 I'm making progress 2014-10-10 22:19:33 -07:00
boy0001
882c427d2b Merge remote-tracking branch 'origin/master'
Conflicts:
	PlotSquared/src/com/intellectualcrafters/plot/PlotWorld.java

	PlotSquared/src/com/intellectualcrafters/plot/generator/DefaultPlotWorld.java
2014-10-10 18:37:44 +11:00
boy0001
3656ec5297 Breaking things...
...
2014-10-10 18:31:51 +11:00
Sauilitired
ef443cade3 Added money given on delete. 2014-10-08 19:31:59 +02:00
Sauilitired
1ddb6b3bdc I hope this works... 2014-10-08 17:31:02 +02:00
Sauilitired
8315121d66 Yup. 2014-10-08 16:26:46 +02:00
Sauilitired
508b17a2a6 Improved economy (multiplies price * plots) :D
Added you to plugin.yml
2014-10-08 16:15:25 +02:00
Sauilitired
949bd6c9f5 Updated plugin info: New link, total downloads + newest version 2014-10-08 16:06:06 +02:00
boy0001
a89c062dbc I don't think I need this anymore. 2014-10-08 22:58:50 +11:00
boy0001
e3ad7ede8c some code documentation. 2014-10-08 22:51:19 +11:00
boy0001
2aff00c088 Finished coding default world generation classes
Now I just need to do is fix all the errors I created as well as point
the static methods to the newly abstracted ones.
2014-10-08 22:23:18 +11:00
boy0001
101b726319 Only 7 methods left which need to be coded 2014-10-08 21:42:13 +11:00
boy0001
74a6d2d28a More changes... 2014-10-08 20:02:08 +11:00
boy0001
0d55e1a2dc Continued externalization of generators.
- Please ignore all the errors, I am not commiting all the classes I
have changed.
2014-10-08 16:53:09 +11:00
Sauilitired
c476e07c28 Merge remote-tracking branch 'origin/master' 2014-10-08 07:14:40 +02:00
Sauilitired
ee86310988 Economy + schematics for /p auto :P 2014-10-08 07:11:46 +02:00
boy0001
10079579f2 whoops, forgot I was in the middle of something. 2014-10-08 16:09:28 +11:00
boy0001
2a35ec963c SO MANY!!!! bug fixes 2014-10-08 16:07:35 +11:00
boy0001
30f1f829cb further bug fixes 2014-10-07 22:35:01 +11:00
Sauilitired
da3ceeab44 I seriously doubt this is working xD 2014-10-06 14:51:28 +02:00
boy0001
1dd0b5de5f Fixed 2014-10-06 22:42:49 +11:00
boy0001
dc80fce05d possible fixes? 2014-10-06 21:56:23 +11:00
boy0001
7c643ed535 Trusted/Helpers changes 2014-10-06 20:47:43 +11:00
boy0001
bde2e45e6b A lot will need to be changed to implement this... 2014-10-05 22:19:35 +11:00
boy0001
4e08ae2a54 Are you okay with what I'm doing? 2014-10-05 14:57:47 +11:00
boy0001
fbd9766cfa added Abstract PlotWorld class 2014-10-05 14:44:33 +11:00
boy0001
5f787d45fa Started work on abstract PlotManager class 2014-10-05 13:58:35 +11:00
boy0001
5f0d914b07 stuff. 2014-10-04 16:01:45 +10:00
boy0001
34f0428d06 Added support for external generators
- PlotSquared still handles the Plot IDs and layout, so these external
generators would need to be compatible with PlotSquared
- Server owners would still need to configure the PlotWorld settings in
the settings.yml
- Alternatively, other plugins could add their own PlotWorld class using
the existing API methods. In that case these new methods do not apply.
2014-10-04 14:11:31 +10:00
boy0001
1511db8d12 not much actually changed, but it seems to be working fine now. 2014-10-03 23:20:33 +10:00
boy0001
8597117d7a Fixed large roads, server crashes, and DB upgrades
Roads of 100 blocks or more will now work (WHO HAS ROADS THAT LARGE
THOUGH!?)
- We could see if we could block beacon effects from other plots...

*The crash was due to a misconstructed for loop.

Older databases will now add the missing table plot_ratings
2014-10-03 14:01:01 +10:00
boy0001
980499a193 Time for our weekly code cleanup!
Please tell me if doing this annoys you.
2014-10-03 12:36:30 +10:00
Sauilitired
58ed037fad Started working on rate system :D 2014-10-02 17:38:31 +02:00
Sauilitired
ff05ef840b Fixed some items on the to-do list. 2014-10-02 17:00:34 +02:00
boy0001
aa81704f80 We should fix up the event system
Some of it is my fault. Half the events don't get called properly, or
aren't cancellable when they say they are.

Tell me your ideas for how we should sort out this mess.
2014-10-02 22:54:49 +10:00
boy0001
560921ebc5 fixed setup command (it wasn't working) 2014-10-02 22:30:25 +10:00
boy0001
e0c5c285bb Finished setup command 2014-10-02 18:21:34 +10:00
boy0001
8b50bdd330 WorldEdit 6 + /plot setup (in progress) 2014-10-02 14:35:20 +10:00
boy0001
9409ebd7cb Fixed plot clear, Added WorldGuard flags 2014-10-02 09:36:00 +10:00
boy0001
e6ed231e05 Fixed plotme converter sorta
It should also technically work for offline mode server (untested)
2014-10-01 23:41:31 +10:00
boy0001
0a61e516f3 Probably shouldn't still have that... 2014-10-01 22:50:53 +10:00
boy0001
49bf3b6694 Fixed some NPEs 2014-10-01 22:35:08 +10:00
boy0001
97c452e311 The damn reflection doesn't want to work.
Why did zachbora think it was a good idea to convert the UUIDs to player
names before returning them?

Anywho, I added a slower method that now works at okay speeds.  (22
seconds for 2549 user checks)
2014-10-01 22:11:19 +10:00
boy0001
c4d328455e PlotMe converter changes 2014-10-01 19:35:11 +10:00
boy0001
efd3cde86b Fixed DB upgrade 2014-10-01 18:27:18 +10:00
boy0001
56537dcafc Added trusted users 2014-10-01 18:01:41 +10:00
boy0001
3a653c2dea worldguard fixes 2014-09-30 22:08:38 +10:00
boy0001
3c74874256 plot kick command 2014-09-30 21:17:55 +10:00
Sauilitired
3508431300 Well, I broke it, sorry :( 2014-09-29 19:20:48 +02:00
Sauilitired
c60bd3bbc8 Forgot to merge... Bleh... 2014-09-29 19:11:21 +02:00
Sauilitired
1e6ae5c467 Merge remote-tracking branch 'origin/master'
Conflicts:
	PlotSquared/src/com/intellectualcrafters/plot/commands/Auto.java
2014-09-29 19:07:52 +02:00
Sauilitired
b28c44b0df Economy Support (Stage 1, alpha xD)
Added schematic support for Auto
Continued working on setup command
Made sexy exception thingy
Tried to fix Errors in PWE
Added some epic captions
Added configuration options to PlotWorld
YAY
2014-09-29 19:05:03 +02:00
boy0001
e9a3b3cb9a Added auto claiming of mega plots. 2014-09-29 22:07:38 +10:00
boy0001
fe035b97f5 Auto Plot merge + some other things 2014-09-29 21:07:28 +10:00
Sauilitired
c5195fc198 Schematic Support++ 2014-09-28 10:43:44 +02:00
Sauilitired
aa0d97eb2d Merge remote-tracking branch 'origin/master' 2014-09-28 10:21:27 +02:00
Sauilitired
7a6d0ef531 More on /p setup {world}
Fixed schematic support for claim
2014-09-28 10:21:18 +02:00
boy0001
eba94c4738 We should redo the permissions to support the '*' node. 2014-09-28 17:44:03 +10:00
boy0001
2eb82fe703 Clearing a mega-plot is now deemed safe
I also reorganized the configuration.
2014-09-27 14:34:43 +10:00
boy0001
38ec36f81d Fixed texture packs 2014-09-27 14:15:59 +10:00
boy0001
7a6cef1d07 In eclipse you can use Window > Show view > Tasks 2014-09-27 11:02:10 +10:00
boy0001
f635ac219c Added a bunch of TODO statements in case you get bored 😄 2014-09-27 10:52:12 +10:00
boy0001
5298486403 Oh yeah.. I was in offline mode. That explains a lot. 2014-09-27 10:21:00 +10:00
boy0001
d8137358f1 PlotMe conversion seems to be broken 2014-09-27 10:08:00 +10:00
boy0001
c71cadafe6 Buggy behavior on plot clear
- it's slower now until I figure out why it wasn't working properly
2014-09-27 09:41:15 +10:00
Sauilitired
ebe636047f Well, started working on something totally uneeded... /p setup {world}
Fixed SQLite errors.
2014-09-26 22:53:42 +02:00
boy0001
241a70e648 Fixed unlink not adding roads correctly. 2014-09-26 22:49:34 +10:00
boy0001
e1cfde520e Finished mega plots (unlink now removes roads) 2014-09-26 22:21:14 +10:00
boy0001
c4635be66b Untested (plot unlink) 2014-09-26 21:38:18 +10:00
boy0001
7a55e8487b made changes to the converter 2014-09-26 20:13:30 +10:00
boy0001
618e2dd211 Changed version number 2014-09-26 18:34:52 +10:00
boy0001
d0ec93b15c Megaplots are pretty much done now
I still need to finish the unlinking, currently it doesn't recreate the
roads, but that's not a big deal.
2014-09-26 18:07:24 +10:00
boy0001
49f93cfb25 Plot merging now removes road 2014-09-26 15:18:13 +10:00
boy0001
ccb2e32c58 Added plot unlinking 2014-09-26 14:17:52 +10:00
boy0001
c6859a5d50 MegaPlots mostly done now
Fixed up methods throwing errors when not merged properly
Plot merge command now merges plots as far as the plugin is concerned
- Roads are not removed between the plots
- No way to unlink a merged plot

Added plot delete command (permission: plots.clear.delete)
Modified plot clear to simply clear the terrain.
2014-09-26 14:01:30 +10:00
boy0001
eb7106eb76 Fixes to merge methods
- Merged automatically added to DB
- Started work on commands
- Fixed getCurrentPlot not working for roads
2014-09-26 10:22:25 +10:00
boy0001
5d0f377d3b Fixes 2014-09-25 23:30:26 +10:00
boy0001
1d1834699a Mega plots: Tell me if I missed any important API methods
Modified methods:
- getCurrentPlot
- getPlotBottomLoc
- getPlotTopLoc

TODO:
- Commands
- Plot unlinking on unclaim
- Anything else?
2014-09-25 22:44:23 +10:00
boy0001
d54336f536 Made getCurrentPlot(location) 23.07 times faster
I apologize if you wrote the code, but it was REALLY poorly done (brute
force is bad btw). Was it taken from PlotMe?
2014-09-25 21:25:53 +10:00
Sauilitired
3f4c275d64 Merge remote-tracking branch 'origin/master' 2014-09-25 10:04:39 +02:00
Sauilitired
291f85057c Begun :D 2014-09-25 10:04:26 +02:00
boy0001
1a2ff50110 javadocs + minor restructuring 2014-09-25 16:39:13 +10:00
boy0001
f331b1abaa Fixed for worldguard 6 + fixes
- Improved plot perm checking (faster)
- Added toString() method for PlotId
- Fixed WorldGuard listener for WG 6
2014-09-25 14:58:34 +10:00
boy0001
26249d00a3 Java can be a pain sometimes...
- Fixed weird bug with plot clear
(I basically just swapped the plot.clear() method and
DBFunc.delete(plot) as referencing the plot directly afterwards added it
back to the HashMap)
2014-09-25 11:54:57 +10:00
Sauilitired
04167997ad Fixed SQLite errors
Added stacktraces to clear (Settings.DEBUG)
2014-09-24 20:53:04 +02:00
Sauilitired
0d0825d614 WorldGuard Support.
Fixed NullPointerException in C

Added Settings

Fixed tons of warning :P

Added auto clear
2014-09-24 20:29:30 +02:00
boy0001
f56d6f144b *and this 2014-09-24 22:33:34 +10:00
boy0001
4c36c9b8d8 whoops, forgot a return statement 2014-09-24 22:32:25 +10:00
boy0001
d7bd7ba093 Added plot clear on claim. AND A LOT OF OTHER MORE IMPORTANT THINGS
Like... I added that space there, between that equals sign and the word
'this'
- Re-added old plot clear algorithm (in case SetBlockFast fails)
- Made some performance improvements with plot clear
- Used built in code cleaning in eclipse to make everything look nicer
- Bug fixes
2014-09-24 22:21:43 +10:00
boy0001
874f7575c1 Fixed infinite loop in plot claim (my fault) 2014-09-24 20:30:15 +10:00
boy0001
e65d20d5f1 Teleport tamed mobs to the nearest plot. 2014-09-24 16:41:15 +10:00
boy0001
46342a7ff8 Async plot clear?
I got plot clearing down to around 100 ms for a 256x256 plot without
async.
2014-09-24 13:09:45 +10:00
boy0001
47aef8014b road stripes are now optional (as they are buggy) 2014-09-24 12:35:42 +10:00
boy0001
3a17e1ad30 Did you mean to remove these? 2014-09-24 11:24:29 +10:00
boy0001
e05636a722 sqllite 2014-09-24 11:08:45 +10:00
boy0001
f8e096a02b small changes to flags
- flag key should be only alphabetic characters
- flags should be case insensitive
2014-09-24 10:56:03 +10:00
boy0001
29d77320c3 Merge remote-tracking branch 'origin/master'
Conflicts:
	PlotSquared/src/com/intellectualcrafters/plot/XPopulator.java
2014-09-24 10:46:33 +10:00
boy0001
d919dc0dbd Sudo-random plot content with data values 2014-09-24 10:41:18 +10:00
Sauilitired
7343686a4e Improved flag system. 2014-09-23 20:37:56 +02:00
Sauilitired
be278ad781 Improved flag system. 2014-09-23 19:02:17 +02:00
boy0001
c07634acc6 Whatever... WorldGeneration sucks. 2014-09-23 23:01:10 +10:00
boy0001
6f1572e5d2 Merge branch 'master' of http://git.intellectualsites.com/citymonstret/plot_new
Conflicts:
	PlotSquared/src/com/intellectualcrafters/plot/WorldGenerator.java
2014-09-23 21:15:47 +10:00
boy0001
3c39c6d6e6 fuckn road stipes bitches! 2014-09-23 21:12:25 +10:00
Sauilitired
ba54016720 Attempt to fix db, might not always work. We got to add a warning to spigot. 2014-09-23 12:44:57 +02:00
Sauilitired
e2c49a6e21 I like pretty configs. 2014-09-23 12:03:25 +02:00
boy0001
fd823d2910 Fixed getPlots() causing NPE 2014-09-23 19:54:06 +10:00
boy0001
f2a389f850 Removed a non-multiworld API method 2014-09-23 19:12:06 +10:00
boy0001
3075dda8d3 Merge branch 'master' of http://git.intellectualsites.com/citymonstret/plot_new 2014-09-23 19:01:06 +10:00
boy0001
1d0587dbe8 Bug fixes
Fixed (I guess) killAllEntities()
Fixed plot clear
2014-09-23 19:01:00 +10:00
Sauilitired
f465484c20 Small fixes 2014-09-23 09:59:45 +02:00
boy0001
5601315c41 forgot to save to DB. 2014-09-23 15:58:30 +10:00
boy0001
edfbc8d474 Should we update existing tables? Also, are you good with MySQL? 2014-09-23 15:29:38 +10:00
boy0001
0efb9d62ca more bug fixes 2014-09-23 15:28:26 +10:00
boy0001
c3e271b22b ADDED default flags in settings.yml 2014-09-23 13:40:15 +10:00
boy0001
d71ab93760 bug fixes 2014-09-23 12:47:45 +10:00
boy0001
2335b08728 Yes, I can implement that setting
PlotWorld class:
/*
*  - All existing PlotWorld instances should be kept in PlotMain (worlds
variable)
*  - The accessors and mutators are:
*  PlotMain.isPlotWorld(world)
*  PlotMain.getPlotWorlds() or PlotMain.getPlotWorldsString() <- use
this if you don't need to get world objects
*  PlotMain.getWorldSettings(World) - get the PlotWorld class for a
world
*
*  Also added is getWorldPlots(World) as the plots are now sorted per
world
*
*  To get the world of a plot, you can use plot.world - (string)   or
plot.getWorld()  - (world object)
*
*  All PlotWorld settings are per world in the settings.yml (these
settings are automatically added when a world is loaded, either at
startup or if a new world is created):
*   - You can find this in the WorldGenerator class (yeah, it's possibly
not the best place, but it makes sure worlds are added to the
settings.yml)
*
*  All new DEFAULT CONSTANTS should be static and be given a value
*  All new variables should not be static and should not be given any
values here, but rather in the WorldGenerator class
*
*/
2014-09-23 12:26:25 +10:00
boy0001
e2d2596bf2 Merge branch 'master' of http://git.intellectualsites.com/citymonstret/plot_new 2014-09-23 12:08:39 +10:00
boy0001
ccd237d2c0 Added plot flags to API
- Old database will break yet again (yay!)
(Once we get more people using the plugin I'll have it add the missing
columns)
2014-09-23 12:08:31 +10:00
Sauilitired
5168f0459f Fixed yml formatting -.- 2014-09-22 21:23:12 +02:00
Sauilitired
5730650d60 Could you implement this setting? xD 2014-09-22 21:21:14 +02:00
Sauilitired
deed728f93 Could you implement this setting? xD 2014-09-22 20:22:30 +02:00
Sauilitired
b60a8fd6f9 Schematics Fixed 2014-09-22 15:44:44 +02:00
Sauilitired
ca858ff88e Console Colour Support 2014-09-22 14:35:46 +02:00
boy0001
e4e9b80c02 Merge branch 'master' of http://git.intellectualsites.com/citymonstret/plot_new 2014-09-22 21:45:41 +10:00
Sauilitired
879dccff80 Removed web stuff (caused crash) 2014-09-22 13:44:55 +02:00
boy0001
d5420a59d7 Merge branch 'master' of http://git.intellectualsites.com/citymonstret/plot_new 2014-09-22 21:43:57 +10:00
boy0001
333a237655 bug fixes 2014-09-22 21:43:53 +10:00
Sauilitired
12ec602f7f Removed web stuff (caused crash) 2014-09-22 13:43:01 +02:00
Sauilitired
e6849e4ace Yey! 2014-09-22 13:39:45 +02:00
Sauilitired
8a5cf06e66 Included source... 2014-09-22 13:34:46 +02:00
Sauilitired
2705220ece Included source... 2014-09-22 13:02:14 +02:00
Sauilitired
4ec7baec95 Use this xD 2014-09-22 13:00:45 +02:00