Commit Graph

3464 Commits

Author SHA1 Message Date
tastybento
3a6a1eae6d Added more database functions.
Added ability to check if a uniqueId exists without creating it - used
to check if a player is known or not.
Added join/quit listener.
2017-07-06 10:21:38 -07:00
tastybento
0f66b92af5 Tested locale system and confirmed working.
Made a few minor tweaks and added debug.
2017-07-06 08:31:10 -07:00
tastybento
f03b5f5246 Merge remote-tracking branch 'origin/master' 2017-07-05 08:41:21 -07:00
tastybento
dee635f15f Added protection around null owners. 2017-07-05 08:41:12 -07:00
tastybento
59e92034ba BSD License for this library. 2017-07-03 13:55:33 -07:00
Poslovitch
ee133156f4 Tiny fix to help Travis to compile 2017-06-21 17:18:02 +02:00
Poslovitch
59a6397536 Events 2017-06-21 17:08:15 +02:00
tastybento
3d74c4a427 Added object deletion to the database.
This is required when islands are reset or players deleted, for example.
The deletion is done based on the uniqueId of the object. Tested and
working for flat file and MySQL.

To make an island do /is create. To reset do /is reset.
2017-06-17 18:46:16 -07:00
tastybento
4609d86ff0 Got Players database working.
Note you need to be Op to create islands right now.
2017-06-12 08:04:26 -07:00
tastybento
12792f388e Implemented a locale system using resource bundles.
This approach avoids having to have a huge class with default text in
it. The ResourceBundle loaded YamlResourceBundle does the conversion
from YAML.
2017-06-11 16:30:34 -07:00
tastybento
c95f149901 Added "library-1.12.jar" to see if it helps Travis compile. 2017-06-10 20:48:32 -07:00
tastybento
f8032bfde5 Added the /island go command so you can teleport home
Added some more goodies in the default chest. It's now a minimal
SkyBlock!
2017-06-10 16:40:43 -07:00
tastybento
dcda604e6c Added schematic loading and pasting.
Player can create an island using /island create
Only the default island is supported right now. No GUI.
Uses NMS to paste. Only supported on 1.12.
2017-06-10 16:08:21 -07:00
tastybento
2a9ddd6579 Added world generators for overworld, nether and end. 2017-06-10 14:03:41 -07:00
tastybento
bcb13e2b6d Added comments to make things clearer 2017-06-10 11:54:32 -07:00
tastybento
c44e432aa3 Renamed some of the database methods. 2017-06-10 11:37:04 -07:00
tastybento
c1c00648d9 MySQL and Flatfile databases now store and retrieve objects. 2017-06-10 10:59:53 -07:00
tastybento
a541ea3e25 MySQL is now working for saving and loading islands.
Next step is to fix flat file enum storage.
2017-06-10 08:23:12 -07:00
tastybento
6f842a9b29 Work In Progress (WIP)
Added more to the MySQL database reading. Does not work yet for
collections.
2017-06-04 18:35:38 -07:00
Poslovitch
9f0a05773e Did some cleanup 2017-06-02 23:28:29 +02:00
Poslovitch
a419a66939 Prepared possible MongoDB implementation 2017-06-02 23:28:00 +02:00
Poslovitch
465d85f358 Fixed Placeholders (forgot to add the replacer in Util#sendMessage() ) 2017-05-31 17:13:15 +02:00
Poslovitch
0980ab8358 Made help argument optionable (to support the NotSetup) 2017-05-31 17:06:10 +02:00
Florian CUNY
bafff8cdee Rename MySqlDatabaseConnecter.java to MySQLDatabaseConnecter.java 2017-05-31 16:33:48 +02:00
Poslovitch
77b3653547 Restructured database 2017-05-31 16:32:36 +02:00
tastybento
aa93c11080 Added MySQL insert code. POJO's can be saved now.
Next job is to write the select code so POJO's can be read.

POJO = Plain Old Java Object.
2017-05-29 19:02:43 -07:00
tastybento
3cff4277b3 Added some serialization to the read/write to MySQL tables.
Still a WIP. Needs to have the collections added and needs to be tested.
2017-05-27 16:55:53 -07:00
tastybento
6be730f747 MySQL database will now store Collections in additional tables. 2017-05-27 16:38:32 -07:00
tastybento
c6d41ba1ee Made MySQL work. Tested. Still needs to implement collections. 2017-05-26 08:15:53 -07:00
tastybento
19865969d2 Added a lot of MySQL stuff. WIP, not tested at all. Beware test conde on
onEnable().
2017-05-25 22:54:04 -07:00
tastybento
b5430c0aab Merge remote-tracking branch 'origin/database'
Conflicts:
	src/main/java/us/tastybento/bskyblock/BSkyBlock.java
2017-05-25 08:26:40 -07:00
tastybento
c1197b813e Merge branch 'master' of https://github.com/tastybento/bskyblock.git 2017-05-25 08:24:00 -07:00
tastybento
ee80f616ff Merge branch 'database' of https://github.com/tastybento/bskyblock.git
into database

Conflicts:
	src/main/java/us/tastybento/bskyblock/database/objects/Island.java
2017-05-24 23:11:14 -07:00
tastybento
fb7768e964 Database done, compiles, runs without bugs so far.
This implements flat file database. MySQL is still to do. IslandManager
now uses this. PlayerManager is still to convert.
2017-05-24 23:09:09 -07:00
Poslovitch
6092217b46 Added basic Placeholders support 2017-05-24 22:23:20 +02:00
Florian CUNY
3c86c3e99a Fixed pom.xml
Description and locales resource path were incorrect
2017-05-24 17:23:38 +02:00
Poslovitch
a69e053229 Started configuration loading and errors; changes to locales
Worked on PluginConfig.loadPluginConfig(). Changed the NotSetup
processing : when loading config, it will store errors and if there are,
it will run the plugin as "NotSetup" and send to users what is wrong and
why. Major parts are still remaining as it is a "preview" of an
unfinished and "waiting-for-improvements" work.
2017-05-24 17:10:49 +02:00
Florian CUNY
e00b925447 Changed checkVersion() to getNMSHandler() & fixed it 2017-05-24 11:48:32 +02:00
Florian CUNY
a9e3b064a6 Added DYEING protection flag : toggle sheep dyeing 2017-05-24 11:31:41 +02:00
tastybento
20d74e19c9 Added a concept of UUID to the class that is to be saved.
If the class to be saved does not define its own uuid, then one will be
generated at random by the database manager. For flat file databases,
the UUID is used for filenames. For other databases, it's an index
record. If the class defines a UUID then the same record will be
replaced again and again. i.e., it's like a config file.
2017-05-23 22:41:05 -07:00
Florian C
38ea97718a Removed "breedingLimit" setting 2017-05-23 16:29:09 +02:00
Florian C
a0aea999f1 Removed "animal-breeding-limit" - it is useless 2017-05-23 16:26:49 +02:00
tastybento
aa170f8563 WIP: Island class - saving to flat file.
This works but not all the data types in the class are serialized
correctly yet. To enable true generic type saving will take more work.
2017-05-21 21:37:10 -07:00
tastybento
960993108d Flat file database is now writing and reading correctly with various
data types.
2017-05-21 18:18:02 -07:00
tastybento
9ef9d931af Merge remote-tracking branch 'origin/master' into database 2017-05-21 16:53:48 -07:00
tastybento
edc5c9c642 Database additions 2017-05-21 16:53:17 -07:00
tastybento
297062259d Fixed package name to bskyblock 2017-05-21 16:51:02 -07:00
Poslovitch
c50fabe827 Split Level from core plugin 2017-05-21 10:28:22 +02:00
Poslovitch
251c2e92f2 Fixed conflicts. Removed "y" variable in Island as it is useless. 2017-05-21 10:20:07 +02:00
Poslovitch
6d0611f717 Added config.yml and Settings variables
This build won't run because of conflicts between the latest commit and
mine. I will fix it later.
2017-05-21 10:08:27 +02:00