Commit Graph

109 Commits

Author SHA1 Message Date
LlmDl
b52495b66f Alter readme to use BigDecimal in example. 2023-12-11 14:06:10 -06:00
LlmDl
79bb998347 Remove unneeded space in the readme, while we're already altering the
readme.

Closes #149.
2023-12-11 10:05:08 -06:00
LlmDl
d739d52432 Replace double usage with BigDecimal, to bring Vault2 further into the
future.

Major clean up of javadocs in the Economy class.
2023-12-11 09:58:28 -06:00
LlmDl
3ed3ad7386
Merge branch 'master' into feature/uuid_support 2023-12-10 13:48:10 -06:00
Parker Hawke
8bad2c479f Use plugin logger instead of Minecraft logger in README example
The JavaPlugin class provides plugins with their own logger via getLogger() which is the preferred means of logging content to the console as it prepends the plugin's name. Using a Logger with the Minecraft prefix is non-descript and poor practice because it will not properly source from where the log message is coming. Beginners should not be given this poor practice as an example.
2023-08-16 08:57:52 -07:00
Llm Dl
7c7d0abcc2 Implement requested changes.
- Added renameAccount(UUID, String).
- Remove @Nullable annotation and remove repo/dependency from pom.xml.
- Fixed typo in javadoc in Economy.
2022-08-03 16:03:48 -05:00
LlmDl
1af24b2e89
Fix typo in JavaDoc
Co-authored-by: Morgan <cerealcable@users.noreply.github.com>
2022-08-03 15:38:47 -05:00
LlmDl
698c623ccc
Fix typo in JavaDoc
Co-authored-by: Morgan <cerealcable@users.noreply.github.com>
2022-08-03 15:35:52 -05:00
Llm Dl
7129ffb94f Add account name to the createAccount method. 2022-06-27 21:36:24 -05:00
Llm Dl
918bda26d2 Update README to include new version, example code. 2022-06-27 19:50:50 -05:00
Llm Dl
1a73308932 Economy v2.
New methods include:

- UUID-focused methods replacing the Name and OfflinePlayer methods.

- getUUIDNameMap() which makes the economy plugin able to supply a Map
of UUIDs and last-known-names on request. This will be used to replace
the code in Vault which converts between economy plugins (and is
currently only able to convert accounts belonging to players which have
logged in.) The @Nullable annotation is used here in order to declare
that the last-known-name of the account is allowed to be null.

- getAccountName(UUID) which will return the last-known-name of an
account or null.

Other Changes:

- Minor changes to javadocs.
2022-06-27 19:50:24 -05:00
Llm Dl
5348352f5d Add vault2 package.
All classes are the same as their v1 selves.
2022-06-27 19:30:54 -05:00
Llm Dl
657069232e Deprecate vault package. 2022-06-27 19:23:55 -05:00
Llm Dl
b1e408be5a Update pom with tentative version numbering.
Add jetbrains annotations & remove mention of specifc economy plugins.
2022-06-27 19:23:14 -05:00
Parker Hawke
9520d8847e Simplify EconomyResponse#transactionSuccess() 2022-06-27 11:41:44 -07:00
Llm Dl
e0743da367 Remove the now un-needed AbstractEconomy class.
To match the PR I have opened at the Vault repo, which has had the
native economy plugin support removed, the VaultAPI plugin no longer
requires the AbstractEconomy class.

Removal means that this Pull Request no longer calls
Bukkit.getOfflinePlayer(uuid), making this much safer.
2021-10-12 08:01:48 -05:00
Llm Dl
747940c8c6 Improve UUID methods' names, dropping the word Player.
These methods are meant for players, non-players and anything with a
UUID.
2021-09-28 09:20:52 -05:00
Llm Dl
5c61077842 Add UUID support to Vault.
This commit adds UUID support to Vault, allowing plugins to bypass the
OfflinePlayer methods which result in Bukkit trying to resolve a player
to associate with the OfflinePlayer (via the server playercache and if
that player doesn't exist via Mojang.)

This is incredibly useful for any plugin which wants to have an Economy
account that isn't associated with a player. This includes Towny,
Factions, Shops plugins and others.

Most importantly: having UUID methods will give these plugins an avenue
to update from using the String accountName methods deprecated since
Vault 1.4, which doesn't result in slow OfflinePlayer creation.

AbstractEconomy has been updated so that the various Economy plugins
supported internally by Vault will have support for the new methods in
the same manner as when the OfflinePlayer methods were added.

Small javadoc typos have also been fixed up (extra {'s, an additional
{@link, etc.)
2021-04-04 10:32:25 -05:00
Nick Minkler
af58e675c3
Merge pull request #105 from Geolykt/patch-1
Unify inconsitent identation within the readme examples
2021-01-10 17:18:53 -08:00
Geolykt
9c1759198f
Unify inconsitent identation 2021-01-06 13:23:36 +01:00
Nick Minkler
c6d3aaa7ef
Merge pull request #101 from MilkBowl/dependabot/maven/junit-junit-4.13.1
Bump junit from 4.12 to 4.13.1
2020-10-13 10:26:03 -07:00
dependabot[bot]
882d69290a
Bump junit from 4.12 to 4.13.1
Bumps [junit](https://github.com/junit-team/junit4) from 4.12 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.12.md)
- [Commits](https://github.com/junit-team/junit4/compare/r4.12...r4.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-13 09:11:14 +00:00
Nick Minkler (Sleaker)
ea40092989 make sure to run git configs after we cd to the gh-pages directory, not before 2020-08-02 14:38:11 -07:00
Nick Minkler (Sleaker)
7a4d86c110 fix release.yml wrong command 2020-08-02 14:35:02 -07:00
Nick Minkler (Sleaker)
17c506c026 standard build should only generate a javadoc jar. 2020-08-02 14:30:52 -07:00
Nick Minkler (Sleaker)
c6769458fd comment out deploy for now 2020-08-02 14:30:13 -07:00
Nick Minkler (Sleaker)
8c201fae74 uppercases in URL are not supported. 2020-08-02 14:22:48 -07:00
Nick Minkler (Sleaker)
ac7a0029b6 fix ENV variable 2020-08-02 14:02:24 -07:00
Nick Minkler (Sleaker)
c76f77b89b adjust the token 2020-08-02 14:02:05 -07:00
Nick Minkler (Sleaker)
e6ebff536a just include the settings.xml in the repo 2020-08-02 13:54:10 -07:00
Nick Minkler (Sleaker)
5088e973e0 try using x-access-token as username 2020-08-02 13:43:34 -07:00
Nick Minkler (Sleaker)
85bb95ac12 don't error if .m2 dir exists 2020-08-02 13:39:27 -07:00
Nick Minkler (Sleaker)
da54503395 try recommendations for getting publish to work 2020-08-02 13:35:09 -07:00
Nick Minkler (Sleaker)
274d110b51 test out github packages 2020-08-02 13:13:45 -07:00
Nick Minkler (Sleaker)
20edad734d update pom and action file to generate javadocs 2020-08-02 12:46:19 -07:00
Nick Minkler (Sleaker)
1d5d597fb4 more syntax problems 2020-08-02 12:31:56 -07:00
Nick Minkler (Sleaker)
98c84cf8b3 cleanup steps 2020-08-02 12:30:38 -07:00
Nick Minkler
12d0749f0b
updates to github action flow 2020-08-02 12:20:04 -07:00
Nick Minkler
9847396d52
update maven dependencies 2020-08-02 12:12:20 -07:00
Nick Minkler
92cf77e341
add github action for auto-packaging 2020-08-02 12:04:01 -07:00
Nick Minkler
89c00e1cb8
Merge pull request #83 from yannicklamprecht/master
Removed type jar and replaced it with scope provided
2019-12-25 15:40:45 -08:00
Yannick Lamprecht
e958e9ae2a
changed to 1.7 2019-12-19 15:04:34 +01:00
ysl3000
c17036183c Removed type jar and replaced it with scope provided 2019-12-14 02:10:58 +01:00
Nick Minkler
4c248aad62
Merge pull request #79 from mysteryworlds/hotfix/prevent-recursive-death
Fix recursive call, default AddTransient should just call addTransient for the global method.
2019-10-18 10:39:02 -07:00
Ruby Hale
035e9c002e
Prevent a guranteed stackoverflow. 2019-10-15 07:39:55 +02:00
Nick Minkler
2b68b5461e
add null checking for has and hasAccount methods 2019-10-08 15:02:18 -07:00
Nick Minkler
af0353b1d7
update readme to point users to using jitpack repo 2019-06-04 12:25:05 -07:00
Nick Minkler
68f14eca20
Fix documentation for createPlayerAccount 2018-12-26 21:40:10 -08:00
Nick Minkler
431c5273c2
Merge pull request #63 from Sxtanna/master
Updated readme with gradle example
2018-11-07 00:52:25 +01:00
Ranald
eb70b07d4b
Updated readme with gradle example 2018-11-04 18:45:02 -05:00