Fix modify command string parsing

This commit is contained in:
Ben Woo 2024-10-12 13:42:15 +08:00
parent 18f4600ca4
commit 9c929fccca

View File

@ -61,7 +61,7 @@ class ModifyCommand extends CoreCommand {
@Description("") @Description("")
String propertyValue) { String propertyValue) {
StringPropertyHandle worldPropertyHandle = world.getStringPropertyHandle(); StringPropertyHandle worldPropertyHandle = world.getStringPropertyHandle();
worldPropertyHandle.modifyProperty(propertyName, propertyValue, action).onSuccess(ignore -> { worldPropertyHandle.modifyPropertyString(propertyName, propertyValue, action).onSuccess(ignore -> {
issuer.sendMessage("Property %s%s set to %s%s for world %s%s%s.".formatted( issuer.sendMessage("Property %s%s set to %s%s for world %s%s%s.".formatted(
propertyName, propertyName,
ChatColor.BLUE, ChatColor.BLUE,