Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-58 Add basic Parcel locker business logic #58

Merged
merged 106 commits into from
Oct 14, 2023
Merged

Conversation

Jakubk15
Copy link
Member

@Jakubk15 Jakubk15 commented Jul 2, 2023

  • Parcel locker creation
  • Parcel locker protection
  • Parcel locker creation prompt (bukkit conversations)
    -[ ] Parcel receiving
    - [ ] Parcel statuses IN PROGRESS
    - [ ] Parcel redeem time update
    - [ ] Parcel locker deletion by administrator (further logic, what will happen to parcels)

Closes #72

@Jakubk15 Jakubk15 changed the title Add business logic GH-58 Add business logic Jul 2, 2023
@Jakubk15 Jakubk15 added 🆕 feature New feature or request 🆘 help wanted Extra attention is needed labels Sep 2, 2023
@Jakubk15 Jakubk15 self-assigned this Sep 2, 2023
@Jakubk15 Jakubk15 marked this pull request as ready for review September 10, 2023 10:38
@Jakubk15 Jakubk15 requested a review from imDMK October 8, 2023 07:10
@Jakubk15
Copy link
Member Author

Jakubk15 commented Oct 8, 2023

@imDMK I changed the structure, as you requested, and applied your fixes. Let me know if there are any codestyle issues, as the Gradle Checkstyle plugin hasn't detected anything now.

Copy link
Contributor

@imDMK imDMK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • command.ParcelCommand -> parcel.command.ParcelCommand
  • command.argument.ParcelArgument -> parcel.command.ParcelArgument

build.gradle.kts Outdated Show resolved Hide resolved
build.gradle.kts Outdated Show resolved Hide resolved
build.gradle.kts Outdated Show resolved Hide resolved
Comment on lines +160 to +176
private boolean setupEconomy() {
if (this.getServer().getPluginManager().getPlugin("Vault") == null) {
return false;
}

RegisteredServiceProvider<Economy> rsp = this.getServer().getServicesManager().getRegistration(Economy.class);
if (rsp == null) {
return false;
}

this.economy = rsp.getProvider();
return true;
}

public Economy getEconomy() {
return this.economy;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like this method in main class.

Copy link
Member Author

@Jakubk15 Jakubk15 Oct 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sorry to hear that, where else can I move this method to?

@Jakubk15 Jakubk15 requested a review from imDMK October 12, 2023 15:51
Jakubk15 and others added 3 commits October 14, 2023 09:35
…istGUI.java

Co-authored-by: DMK <81445555+imDMK@users.noreply.github.com>
# Conflicts:
#	src/main/java/com/eternalcode/parcellockers/parcel/gui/ParcelListGUI.java
@Jakubk15 Jakubk15 requested a review from imDMK October 14, 2023 07:39
…ckerDatabaseService.java

Co-authored-by: DMK <81445555+imDMK@users.noreply.github.com>
@Jakubk15 Jakubk15 merged commit 563d9f9 into master Oct 14, 2023
2 checks passed
@Jakubk15 Jakubk15 deleted the business-logic branch October 14, 2023 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🆕 feature New feature or request 🆘 help wanted Extra attention is needed
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Rewrite of the Position class to use Integers instead of Doubles
6 participants