MockBukkit
MockBukkit copied to clipboard
Properly implement first/last played methods
Description
Properly implements the following methods in OfflinePlayerMock
and PlayerMock
:
-
#getFirstPlayed()
-
#getLastSeen()
-
#getLastLogin()
-
#getLastPlayed()
-
#hasPlayedBefore()
Just waiting on tests to be written.
Checklist
The following items should be checked before the pull request can be merged.
- [ ] Unit tests added.
- [x] Code follows existing code format.
Info on creating a pull request
- Make sure that unit tests are added which test the relevant changes.
- Make sure that the changes follow the existing code format.
For maintainer
When a PR is approved, the maintainer should label this PR with release/*
.
- If the PR fixes a bug in MockBukkit, update the patch version. (if the current version is
0.4.1
, the new version should be0.4.2
) - If the PR adds a new feature to MockBukkit, update minor version. (if the current version is
0.4.1
, the new version should be0.5.0
)
Note that a PR that fixes an UnimplementedOperationException
should be considered a new version and not a bugfix.
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication