Commit Graph

114 Commits

Author SHA1 Message Date
83c639b7f6 Adds tab completion to the delete command 2021-09-08 15:36:42 +02:00
620894f0b1 Adds tab completion to the decrypt command 2021-09-08 15:36:27 +02:00
610d798093 Adds tab completion to the copy command 2021-09-08 15:36:14 +02:00
db3af1542b Adds tab completion to the books without borders command 2021-09-08 15:32:47 +02:00
e167f93de0 Adds tab completion for the set lore command 2021-09-08 15:32:19 +02:00
58c8f76984 Adds tab completion for the reload command 2021-09-08 15:31:53 +02:00
c44f64e42b Removes some code unnecessary for tab executors 2021-09-08 15:31:32 +02:00
be1717182d Adds a helper class for tab completion, and uses a TabExecutor for the give and give public commands 2021-09-05 01:00:50 +02:00
a009430ba0 Makes sure to only use the file helper after settings have been loaded 2021-09-04 22:44:40 +02:00
ef3815f91a Moves some code to the Economy helper, and fixes code formatting 2021-09-04 20:23:26 +02:00
a9f2017a40 Adds a class for AES encryption which might be used instead of the current encryption methods 2021-09-04 20:21:00 +02:00
48ac82f4d4 Lots of cleanup and improvements
Makes a new enum for representing the three different folders
Splits file listing from file printing
Uses a separate list for public files
Only updates the public files list when necessary
Removes some confusion caused by bookFromYml calling bookFromTXT
Increases readability for a lot of code
2021-09-04 18:17:22 +02:00
4ec46d3d9b Adds some missing comments 2021-09-04 01:25:52 +02:00
0ca4b9817e Improves encapsulation and removes the custom tracking of existing players 2021-09-04 01:06:01 +02:00
1d3c50aab1 Adds info about the encrypt and decrypt signs, and fixes a bug in group decryption 2021-09-02 22:18:15 +02:00
931be7a61b Describes the give sign in the README and fixes some bugs regarding the give sign 2021-09-02 21:41:37 +02:00
c39fd7d7db Moves another file loading related function to the FileHelper class 2021-09-02 20:46:37 +02:00
1b8965ace3 Adds the reload command to the command list 2021-09-02 14:30:07 +02:00
fba0f14995 Renames most commands and uses the built-in spigot command system for command info 2021-09-02 14:27:56 +02:00
baedfba196 Removes some more debug text 2021-09-02 11:04:28 +02:00
c1a49d1950 Removes some debug text 2021-09-02 11:02:20 +02:00
d624bb5103 Minor cleanup of the economy helper class 2021-09-02 01:34:06 +02:00
3717e4d3b6 Moves economy related code to its own class 2021-09-02 01:29:44 +02:00
7bfa60aeee Gets the books without borders instance without sending it in the constuctor 2021-09-02 01:10:21 +02:00
dff10a7403 Splits input listening into two different listeners 2021-09-02 00:41:45 +02:00
bafd30e273 Makes sure utility classes cannot be extended or instantiated 2021-09-02 00:23:19 +02:00
d84baac9b7 Moves the encryption classes to their own package 2021-09-02 00:18:07 +02:00
996cb5da5c Moves some settings into the BooksWithoutBordersSettings class 2021-09-02 00:17:04 +02:00
72e080f1c9 Removes some unused imports and variables 2021-09-01 23:06:59 +02:00
1ddd50e5df Moves book to text code to its own class, and moves lots of encryption code to the encryption helper 2021-09-01 23:02:54 +02:00
8defb301bc Removes redundancy between the encrypt command and the group encrypt command 2021-09-01 22:32:33 +02:00
b021cc3471 Removes redundancy between give and givepublic 2021-09-01 21:56:37 +02:00
8520a4818b Removes some unused code 2021-09-01 19:36:21 +02:00
6c897b4ddf Finishes moving commands to separate classes 2021-09-01 19:20:09 +02:00
db4f080ac8 Moves the delete public command to its own file 2021-08-31 19:05:28 +02:00
db3679014d Moves load and loadPublic to their own files, and removes some redundancy 2021-08-31 18:45:18 +02:00
bc93ddcec5 Moves the setTitle command to its own file 2021-08-31 17:09:08 +02:00
7247098a54 Moves the setAuthor command to its own file 2021-08-31 16:28:31 +02:00
4a9c678bff Fixes and improves book saving
Removes redundancy
Fixes broken duplicate checking
Moves the save function to its own class
2021-08-31 15:15:48 +02:00
9d64cd787d Moves the save public command to its own class 2021-08-31 02:14:44 +02:00
bd4013e84f Fixes some warnings 2021-08-31 01:44:03 +02:00
fdb4a42e98 Makes more advanced functions for deciding which hand has the correct book
Adds some functions which account for all possible states for books and hands
Adds some new enums to keep track of the new states
Fixes lots of warnings
2021-08-31 01:23:04 +02:00
657c7e43fd Moves setlore and setbookprice command code to their own classes 2021-08-30 22:08:55 +02:00
fbee4a90b0 Moves more commands to their appropriate classes 2021-08-30 18:06:19 +02:00
504ef09192 Starts work on making the commands more modern
Adds classes for all commands
Implements command class and tab completer for the give command
Performs more code cleanup
2021-08-30 17:03:58 +02:00
6efbd377ee Adds more consideration to the existence of unsigned books 2021-08-30 00:35:54 +02:00
57cc06bdb8 Extracts some functions for finding and replacing books to InventoryHelper 2021-08-29 23:40:16 +02:00
d50af8a12b Adds an enum to easier keep track of which hands of a player contain a book 2021-08-29 22:37:11 +02:00
9209e3f52d Cleans a lot of code 2021-08-29 19:18:31 +02:00
07ff93e7bf Moves more functionality to the encryption helper 2021-08-29 19:17:41 +02:00