-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add config option
PRINT_TELEPORT_COORDINATES
(default value f…
…or the profile setting) ... also, make all profile options explicitly Optional<T> (behavioral change for `print_teleport_coordinates`, which could not previously be null
- Loading branch information
1 parent
98cbdda
commit 7c5ed3f
Showing
6 changed files
with
45 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
src/main/java/com/fibermc/essentialcommands/types/ProfileOption.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
package com.fibermc.essentialcommands.types; | ||
|
||
import java.util.Optional; | ||
|
||
import com.mojang.brigadier.arguments.ArgumentType; | ||
|
||
public record ProfileOption<T>( | ||
ArgumentType<T> argumentType, | ||
T defaultValue, | ||
ProfileOptionFromContextSetter<T> profileSetter, | ||
ProfileOptionGetter<T> profileGetter) {} | ||
ProfileOptionGetter<Optional<T>> profileGetter) {} |