Skip to content

Commit 7f25315

Browse files
committed
Remove CommandResults, move to Factory
1 parent befe359 commit 7f25315

File tree

2 files changed

+7
-47
lines changed

2 files changed

+7
-47
lines changed

src/main/java/org/spongepowered/api/command/CommandResult.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static Builder builder() {
5757
* @return The {@link CommandResult}
5858
*/
5959
static CommandResult success() {
60-
return CommandResults.SUCCESS;
60+
return Sponge.game().factoryProvider().provide(Factory.class).success();
6161
}
6262

6363
/**
@@ -137,4 +137,10 @@ interface Builder extends org.spongepowered.api.util.Builder<CommandResult, Buil
137137

138138
}
139139

140+
interface Factory {
141+
142+
CommandResult success();
143+
144+
}
145+
140146
}

src/main/java/org/spongepowered/api/command/CommandResults.java

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)