Skip to content

Commit

Permalink
完成了英文版文档
Browse files Browse the repository at this point in the history
  • Loading branch information
wisdommen committed Jan 23, 2024
1 parent 92a0160 commit f881e67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/en/guide/advanced/gui.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class WarpGui extends PagingPage {
// ID of the GUI, you can set it to any string
"Warp-list",
// Title of the GUI
Component.text(BasicFunctions.getInstance().i18n("传送点列表"))
Component.text(BasicFunctions.getInstance().i18n("Warp list"))
.color(TextColor.color(0xFF00A6)),
// Number of rows of the GUI
3
Expand All @@ -54,7 +54,7 @@ public class WarpGui extends PagingPage {
Icon icon = new Icon(UltiTools.getInstance().getVersionWrapper().getEndEye());
TextComponent textComponent = Component.text(warpData.getName()).color(TextColor.color(0xFF00A6));
icon.toComp().setName(textComponent);
String world = String.format(ChatColor.YELLOW + BasicFunctions.getInstance().i18n("所在世界 %s"), location.getWorld().getName());
String world = String.format(ChatColor.YELLOW + BasicFunctions.getInstance().i18n("World %s"), location.getWorld().getName());
String xyz = String.format(ChatColor.GRAY + "X: %.2f Y: %.2f Z: %.2f", location.getX(), location.getY(), location.getZ());
icon.setLore(world, xyz);
// Icon click event
Expand All @@ -74,7 +74,7 @@ Then call this GUI class in your command executor.
```java

@CmdTarget(CmdTarget.CmdTargetType.PLAYER)
@CmdExecutor(alias = {"warp"}, manualRegister = true, permission = "ultikits.tools.command.warp", description = "传送点功能")
@CmdExecutor(alias = {"warp"}, manualRegister = true, permission = "ultikits.tools.command.warp", description = "Warp Function")
public class WarpCommands extends AbstractCommendExecutor {

@CmdMapping(format = "list")
Expand Down

0 comments on commit f881e67

Please sign in to comment.