mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Fix minor bugs in converters
This commit is contained in:
parent
d0f9a71d53
commit
7188d27aaa
@ -34,7 +34,7 @@ public class BooleanConverter {
|
||||
.putAll(true, "on", "t", "true", "y", "yes")
|
||||
.build()
|
||||
)
|
||||
.errorMessage(arg -> "Not a boolean value" + arg)
|
||||
.errorMessage(arg -> "Not a boolean value: " + arg)
|
||||
.build()
|
||||
);
|
||||
}
|
||||
|
@ -53,14 +53,14 @@ public class VectorConverter<C, T> implements ArgumentConverter<T> {
|
||||
commandManager.registerConverter(Key.of(Vector2.class),
|
||||
new VectorConverter<>(
|
||||
doubleConverter,
|
||||
3,
|
||||
2,
|
||||
cmps -> Vector2.at(cmps.get(0), cmps.get(1)),
|
||||
"vector with x and z"
|
||||
));
|
||||
commandManager.registerConverter(Key.of(BlockVector3.class),
|
||||
new VectorConverter<>(
|
||||
intConverter,
|
||||
2,
|
||||
3,
|
||||
cmps -> BlockVector3.at(cmps.get(0), cmps.get(1), cmps.get(2)),
|
||||
"block vector with x, y, and z"
|
||||
));
|
||||
|
Loading…
Reference in New Issue
Block a user