Commit Graph

371 Commits

Author SHA1 Message Date
bluefireoly
f2990fee09 Removed gui from getItemStack method of GUI elements
GUI elements now get the gui type on another way (if needed)
2020-10-19 01:43:26 +02:00
bluefireoly
ab1bf8ea26 Update InventoryGUIBuilder.kt 2020-10-19 01:10:17 +02:00
bluefireoly
8072d176bf Update InventoryGUIBuilder.kt 2020-10-19 01:06:24 +02:00
bluefireoly
d092708df2 Now passing the slot to the getItemStack method of a GUI element 2020-10-18 23:32:19 +02:00
bluefireoly
b3abcadfab Icon of a GUI element now retrieved through a method 2020-10-18 22:51:25 +02:00
bluefireoly
85855b7081 Restructured InventoryGUI package 2020-10-18 21:45:00 +02:00
Jakob K
15feb12cd8 Merge pull request #6 from bluefireoly/codestyle
Applied kotlin style conventions
2020-10-18 18:38:53 +02:00
bluefireoly
da848728d2 Applied kotlin style conventions 2020-10-18 18:36:49 +02:00
Jakob K
e1d4e8bbfc Merge pull request #4 from F0Xde/runnables
Use reified parameter for `executeCatching`; allow exception handlers to be sync or async
2020-10-18 17:16:26 +02:00
bluefireoly
f606fac7a4 Reformatted code and added documentation 2020-10-18 17:16:04 +02:00
bluefireoly
dcdb817a7c Changed runTask to bukkitRun
Changed the runTask method to bukkitRun and added documentation
2020-10-18 16:53:10 +02:00
Jakob K
f296577a40 Merge pull request #3 from F0Xde/localization
Localize messages using `ResourceBundle`s
2020-10-18 16:38:14 +02:00
F0Xde
eaaa52cfe8 Rename some elements to make meaning clearer 2020-10-18 16:10:03 +02:00
F0Xde
c872a94fb2 Make exception handler last argument 2020-10-18 11:30:13 +02:00
F0Xde
95a6eef6df Use reified type parameter for executeCatching; sync / async handlers
The unsafe cast before would throw an exception if any other generic
parameter than `Exception` was used without passing the class reference
explicitly.

It can now also be specified whether the exception handler is to be
executed sync or async, defaulting to sync.
2020-10-18 11:16:03 +02:00
F0Xde
1404b7f675 Remove unnecessary constants for pre- and suffix 2020-10-17 22:49:26 +02:00
F0Xde
f44aa17e3e Localize messages using ResourceBundles
Messages can be localized by calling `L10n.getMessage`, which also
formats named arguments. Furthermore the extension function
`Player.getMessage` determines the locale to use by invoking
`L10n.localeProvider`.
2020-10-17 21:17:32 +02:00
bluefireoly
b72424d36d Update InventoryGUIBuilder.kt 2020-10-17 19:09:13 +02:00
bluefireoly
623085be39 Update build.gradle.kts 2020-10-17 18:54:12 +02:00
bluefireoly
9f6fcd5be8 Fixed StackOverflowError 2020-10-17 15:35:51 +02:00
bluefireoly
2a3582eeca Switched development version 2020-10-17 15:35:07 +02:00
bluefireoly
3a07ddc872 Updated dokka 2020-10-17 15:09:52 +02:00
bluefireoly
c3f070c750 Update ChainableRunnables.kt 2020-10-17 14:59:25 +02:00
Jakob K
47e328d7fc Merge pull request #2 from F0Xde/master
Allow catching of exceptions in chained runnables
2020-10-17 14:47:55 +02:00
bluefireoly
1859ad66bb Merge branch 'master' of https://github.com/F0Xde/KSpigot into pr/2 2020-10-17 14:46:14 +02:00
bluefireoly
0daae1d064 Update ChainableRunnables.kt 2020-10-17 14:45:55 +02:00
F0Xde
11d996d78c Revert changes to gradlew and gradlew.bat 2020-10-17 14:40:43 +02:00
F0Xde
d3453ef8d1 Merge branch 'master' of github.com:bluefireoly/KSpigot into master 2020-10-17 14:37:59 +02:00
bluefireoly
b97bbee74a Update .gitignore 2020-10-17 14:21:16 +02:00
bluefireoly
259c9fe13a Moved gui elements to a seperate package 2020-10-17 14:16:41 +02:00
F0Xde
0657c91f0f Allow catching of exceptions in chained runnables
The user can handle exceptions of a specified type occurring in a chained
runnable by calling `executeCatching` and optionally passing a handler
function.

This is needed needed in order to gracefully stop the execution of a
runnable chain without the exception being caught by Bukkit and
resulting in it being logged as uncaught, while also allowing further
handling of the exception.
2020-10-17 14:02:13 +02:00
bluefireoly
74bf90cad4 Updated counterMessageCallback 2020-10-17 13:23:55 +02:00
bluefireoly
f887c73f90 Moved KColors to the java part of the project 2020-10-17 02:26:24 +02:00
bluefireoly
cb905a2a0c Changed preview square size 2020-10-17 02:22:03 +02:00
bluefireoly
48abd0b140 Changed KColors so that the documentation displays the color 2020-10-17 02:13:41 +02:00
bluefireoly
a65a781bec Update CommandExtensions.kt 2020-10-17 00:44:52 +02:00
bluefireoly
c20604a077 Changed command registration 2020-10-17 00:43:04 +02:00
bluefireoly
c4cea5b921 Added serializable support 2020-10-16 23:46:44 +02:00
bluefireoly
71ff0d47f8 Update KSpigotSound.kt 2020-10-16 23:46:36 +02:00
bluefireoly
8327891244 Update KSpigotParticles.kt 2020-10-16 23:46:30 +02:00
bluefireoly
18b55f2fe0 Update LocationArea.kt 2020-10-16 23:46:25 +02:00
bluefireoly
d9720d90cf Updated SimpleLocations 2020-10-16 23:45:46 +02:00
bluefireoly
2c1d08e58e Added getHandItem method 2020-10-16 23:45:31 +02:00
bluefireoly
c9a76facb8 Update build.gradle.kts 2020-10-16 19:00:01 +02:00
bluefireoly
aefac6ab40 Update build.gradle.kts 2020-10-16 16:28:22 +02:00
bluefireoly
3764794196 Html docs with redirecting index.html 2020-10-16 16:06:52 +02:00
bluefireoly
0ab3e0b531 Configure JVM version in buildscript 2020-10-16 15:53:53 +02:00
bluefireoly
69b2e6cd17 Updated docs 2020-10-16 02:13:42 +02:00
bluefireoly
27285cf435 Update ConfigManager.kt 2020-10-15 19:30:14 +02:00
bluefireoly
77011949a5 Update ConfigManager.kt 2020-10-15 19:28:15 +02:00