mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-18 01:46:44 +01:00
Improve translate function
Make commands pass ints and floats instead of manually casting them to string first
This commit is contained in:
@@ -14,7 +14,6 @@ public final class PositionCommand implements CommandHandler {
|
||||
public void execute(Player sender, Player targetPlayer, List<String> args) {
|
||||
Position pos = targetPlayer.getPosition();
|
||||
CommandHandler.sendTranslatedMessage(sender, "commands.position.success",
|
||||
Float.toString(pos.getX()), Float.toString(pos.getY()), Float.toString(pos.getZ()),
|
||||
Integer.toString(targetPlayer.getSceneId()));
|
||||
pos.getX(), pos.getY(), pos.getZ(), targetPlayer.getSceneId());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user