-
-
Notifications
You must be signed in to change notification settings - Fork 15
Code Cleanup #113
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
Code Cleanup #113
Conversation
LordTuxn
left a comment
There was a problem hiding this 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!")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
translation is missing
There was a problem hiding this comment.
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!")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
translation is missing
There was a problem hiding this comment.
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(","); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
args can be null
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in latest commit!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs to be tested
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs to be tested
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs to be tested
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs to be tested
# 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
Fix issue: #112