-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add confirmation messages to home and warp commands #27
base: 1.21.x
Are you sure you want to change the base?
Conversation
Add README which reflects the mod's purpose, and links to download it since binaries aren't being shared as releases in the repo.
Add documentation link
Also added confirmation messages to the /sethome, /delhome, /setwarp and /delwarp commands, not sure why it merged it with the same PR though. |
WarpHandler.add(context.getSource().getPlayerOrException(), StringArgumentType.getString(context, "name")); | ||
ServerPlayer player = context.getSource().getPlayerOrException(); | ||
String warpName = StringArgumentType.getString(context, "name"); | ||
WarpHandler.add(player, warpName); |
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.
this need to return if add returns false
WarpHandler.add(player, warpName); | |
if (!WarpHandler.add(player, warpName)) return 0; |
HomeHandler.add(context.getSource().getPlayerOrException(), StringArgumentType.getString(context, "name")); | ||
ServerPlayer player = context.getSource().getPlayerOrException(); | ||
String homeName = StringArgumentType.getString(context, "name"); | ||
HomeHandler.add(player, homeName); |
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.
this need to return if add returns false
HomeHandler.add(player, homeName); | |
if (!HomeHandler.add(player, homeName)) return 0; |
Closes #26 |
Add README which reflects the mod's purpose, and links to download it since binaries aren't being shared as releases in the repo.