Skip to content

Conversation

@Cinnazeyy
Copy link
Member

Fix issue: #112

@Cinnazeyy Cinnazeyy added the rework Improvements and changes of an already existing feature label Feb 27, 2023
@Cinnazeyy Cinnazeyy requested a review from LordTuxn February 27, 2023 10:11
@Cinnazeyy Cinnazeyy self-assigned this Feb 27, 2023
Copy link
Collaborator

@LordTuxn LordTuxn left a comment

Choose a reason for hiding this comment

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

I tested the plugin a bit and some menus/commands no longer work properly. All changes need to be tested on the server before merging.

}
} else {
if(!sender.hasPermission(getPermission())) {
sender.sendMessage(Utils.getErrorMessageFormat("You don't have permission to use this command!"));
Copy link
Collaborator

Choose a reason for hiding this comment

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

translation is missing

Copy link
Member Author

Choose a reason for hiding this comment

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

There wasn't any translation to begin with and i only fixed formatting! Also, to my knowledge this command has been on the "maybe-to-be-deleted-list" anyways, so i'm not sure if changing it is really necessary.

player.sendMessage(Utils.getInfoMessageFormat("Successfully updated hologram location!"));
player.playSound(player.getLocation(), Utils.Done,1,1);
if (!sender.hasPermission(getPermission())){
sender.sendMessage(Utils.getErrorMessageFormat("You don't have permission to use this command!"));
Copy link
Collaborator

Choose a reason for hiding this comment

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

translation is missing

Copy link
Member Author

Choose a reason for hiding this comment

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

same here, the goal of this PR is only to cleanup the whole code structure, not to change any logic

return true;
}

String[] splitCoords = args[0].split(",");
Copy link
Collaborator

Choose a reason for hiding this comment

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

args can be null

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed in latest commit!

Copy link
Collaborator

Choose a reason for hiding this comment

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

needs to be tested

Copy link
Collaborator

Choose a reason for hiding this comment

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

needs to be tested

Copy link
Collaborator

Choose a reason for hiding this comment

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

needs to be tested

Copy link
Collaborator

Choose a reason for hiding this comment

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

needs to be tested

@LordTuxn LordTuxn changed the base branch from main to 1.20 September 2, 2023 10:46
@Cinnazeyy Cinnazeyy requested a review from LordTuxn September 2, 2023 10:58
# Conflicts:
#	src/main/java/com/alpsbte/plotsystem/commands/CMD_Companion.java
#	src/main/java/com/alpsbte/plotsystem/commands/CMD_Plots.java
#	src/main/java/com/alpsbte/plotsystem/commands/CMD_Spawn.java
#	src/main/java/com/alpsbte/plotsystem/commands/CMD_Tpll.java
#	src/main/java/com/alpsbte/plotsystem/commands/admin/CMD_CleanPlot.java
#	src/main/java/com/alpsbte/plotsystem/commands/admin/CMD_DeletePlot.java
#	src/main/java/com/alpsbte/plotsystem/commands/admin/CMD_PReload.java
#	src/main/java/com/alpsbte/plotsystem/commands/admin/CMD_SetLeaderboard.java
#	src/main/java/com/alpsbte/plotsystem/commands/admin/setup/CMD_Setup_BuildTeam.java
#	src/main/java/com/alpsbte/plotsystem/commands/admin/setup/CMD_Setup_City.java
#	src/main/java/com/alpsbte/plotsystem/commands/admin/setup/CMD_Setup_Country.java
#	src/main/java/com/alpsbte/plotsystem/commands/admin/setup/CMD_Setup_Difficulty.java
#	src/main/java/com/alpsbte/plotsystem/commands/admin/setup/CMD_Setup_FTP.java
#	src/main/java/com/alpsbte/plotsystem/commands/admin/setup/CMD_Setup_Server.java
#	src/main/java/com/alpsbte/plotsystem/commands/plot/CMD_Plot_Submit.java
#	src/main/java/com/alpsbte/plotsystem/commands/plot/CMD_Plot_UndoSubmit.java
#	src/main/java/com/alpsbte/plotsystem/commands/review/CMD_EditFeedback.java
#	src/main/java/com/alpsbte/plotsystem/commands/review/CMD_EditPlot.java
#	src/main/java/com/alpsbte/plotsystem/commands/review/CMD_Review.java
#	src/main/java/com/alpsbte/plotsystem/commands/review/CMD_UndoReview.java
#	src/main/java/com/alpsbte/plotsystem/core/holograms/HologramManager.java
#	src/main/java/com/alpsbte/plotsystem/core/holograms/HolographicDisplay.java
#	src/main/java/com/alpsbte/plotsystem/core/holograms/ScoreLeaderboard.java
#	src/main/java/com/alpsbte/plotsystem/core/menus/AbstractMenu.java
#	src/main/java/com/alpsbte/plotsystem/core/menus/FeedbackMenu.java
#	src/main/java/com/alpsbte/plotsystem/core/menus/PlotActionsMenu.java
#	src/main/java/com/alpsbte/plotsystem/core/menus/PlotMemberMenu.java
#	src/main/java/com/alpsbte/plotsystem/core/menus/ReviewMenu.java
#	src/main/java/com/alpsbte/plotsystem/core/menus/ReviewPlotMenu.java
#	src/main/java/com/alpsbte/plotsystem/core/menus/companion/CityProjectMenu.java
#	src/main/java/com/alpsbte/plotsystem/core/menus/companion/CompanionMenu.java
#	src/main/java/com/alpsbte/plotsystem/core/system/Builder.java
#	src/main/java/com/alpsbte/plotsystem/core/system/plot/Plot.java
#	src/main/java/com/alpsbte/plotsystem/core/system/plot/PlotHandler.java
#	src/main/java/com/alpsbte/plotsystem/core/system/plot/PlotManager.java
#	src/main/java/com/alpsbte/plotsystem/core/system/plot/PlotType.java
#	src/main/java/com/alpsbte/plotsystem/core/system/tutorial/stage/tasks/message/RemoveHologramTask.java
#	src/main/java/com/alpsbte/plotsystem/utils/Utils.java
#	src/main/java/com/alpsbte/plotsystem/utils/io/YamlFileFactory.java
#	src/main/java/com/alpsbte/plotsystem/utils/io/config/ConfigUtil.java
#	src/main/java/com/alpsbte/plotsystem/utils/io/language/LangUtil.java
#	src/main/java/com/alpsbte/plotsystem/utils/items/SpecialBlocks.java
#	src/main/java/com/alpsbte/plotsystem/utils/items/builder/ItemBuilder.java
@LordTuxn LordTuxn merged commit 7b4e8c2 into 1.20 Sep 3, 2023
@LordTuxn LordTuxn deleted the 112-code-cleanup branch November 29, 2023 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rework Improvements and changes of an already existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants