Commit Graph

252 Commits

Author SHA1 Message Date
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
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
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
9f6fcd5be8 Fixed StackOverflowError 2020-10-17 15:35:51 +02:00
bluefireoly
c3f070c750 Update ChainableRunnables.kt 2020-10-17 14:59:25 +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
d3453ef8d1 Merge branch 'master' of github.com:bluefireoly/KSpigot into master 2020-10-17 14:37:59 +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
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
bluefireoly
afb2dedb21 Create ConfigManager.kt 2020-10-15 19:23:03 +02:00
bluefireoly
e43911f426 Create PluginFile.kt 2020-10-15 19:03:54 +02:00
bluefireoly
f8361eee6a Update ModificationExtensions.kt 2020-10-13 18:06:01 +02:00
bluefireoly
e9403ecd72 Improved counterMessage 2020-10-13 15:10:21 +02:00
bluefireoly
413c587e29 Improved ChainableRunnables 2020-10-12 18:12:05 +02:00
bluefireoly
25d4b71031 Holders are singletons 2020-10-12 17:37:17 +02:00
bluefireoly
30d1c185d8 Update IPAddressData.kt 2020-10-12 17:27:14 +02:00
bluefireoly
8aed914c7b Update InventoryGUIPageChange.kt 2020-10-12 17:27:11 +02:00
bluefireoly
dd905f22da Update GamePhases.kt 2020-10-12 17:26:22 +02:00
bluefireoly
29bd82803d Eliminated plugin and kSpigot parameters 2020-10-12 17:01:01 +02:00
bluefireoly
6b2f95c7fa Update ValueHolder.kt 2020-10-12 16:52:43 +02:00
bluefireoly
d562646ee0 Update GeneralExtensions.kt 2020-10-12 16:34:58 +02:00
bluefireoly
6971fb163f Create KColors.kt 2020-10-11 18:49:50 +02:00
bluefireoly
39620b6f55 Updated particle and sound utils 2020-10-11 18:21:00 +02:00