PlotSquared icon indicating copy to clipboard operation
PlotSquared copied to clipboard

`/plot grant add <name>` doesn't send success message

Open NotMyFault opened this issue 1 year ago • 0 comments

https://github.com/IntellectualSites/PlotSquared/blob/ff83868cbc20f082362bfcb487b62c865a2926e9/Core/src/main/java/com/plotsquared/core/command/Grant.java#L133-L135 sends the success message, but commonly, you don't reach the else block, unless pp == null, which isn't the case, normally. We could move the message to the line below https://github.com/IntellectualSites/PlotSquared/blob/ff83868cbc20f082362bfcb487b62c865a2926e9/Core/src/main/java/com/plotsquared/core/command/Grant.java#L103 where the actual grant is added to the player.

NotMyFault avatar Mar 31 '24 07:03 NotMyFault