Skip to content

Commit

Permalink
Improved zh-CN.yml (#1708)
Browse files Browse the repository at this point in the history
* Improved zh-CN.yml

* Delete an error.

* days-one-or-more #1707

Co-authored-by: zhangYi <[email protected]>
  • Loading branch information
apachezy and zhangYi authored Mar 13, 2021
1 parent 0f0d8b9 commit e36dc68
Show file tree
Hide file tree
Showing 3 changed files with 1,316 additions and 967 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package world.bentobox.bentobox.database.objects;

import java.io.IOException;
import java.text.DateFormat;
import java.util.Date;
import java.util.EnumMap;
import java.util.HashMap;
Expand Down Expand Up @@ -1070,7 +1071,7 @@ public boolean showInfo(User user) {
// Fixes #getLastPlayed() returning 0 when it is the owner's first connection.
long lastPlayed = (Bukkit.getServer().getOfflinePlayer(getOwner()).getLastPlayed() != 0) ?
Bukkit.getServer().getOfflinePlayer(getOwner()).getLastPlayed() : Bukkit.getServer().getOfflinePlayer(getOwner()).getFirstPlayed();
user.sendMessage("commands.admin.info.last-login","[date]", new Date(lastPlayed).toString());
user.sendMessage("commands.admin.info.last-login","[date]", DateFormat.getInstance().format(new Date(lastPlayed).toString()));

user.sendMessage("commands.admin.info.deaths", "[number]", String.valueOf(plugin.getPlayers().getDeaths(getWorld(), getOwner())));
String resets = String.valueOf(plugin.getPlayers().getResets(getWorld(), getOwner()));
Expand Down Expand Up @@ -1464,7 +1465,7 @@ public void setHomes(Map<String, Location> homes) {
}

/**
* @param homes the homes to set
* @param name the name of the home
* @since 1.16.0
*/
public void addHome(String name, Location location) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/locales/en-US.yml
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ commands:
island: "&c This will affect the island at [xyz] owned by '[name]'."
confirmation: "&c Are you sure you want to set [xyz] as the protection center?"
success: "&a Successfully set [xyz] as the protection center."
fail: "&a Successfully set [xyz] as the protection center."
fail: "&a Failed to set [xyz] as the protection center."
island-location-changed: "&a [user] changed island's protection center to [xyz]."
xyz-error: "&c Specify three integer coordinates: e.g, 100 120 100"
setspawn:
Expand Down
Loading

0 comments on commit e36dc68

Please sign in to comment.