mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-23 19:25:12 +01:00
Improved zh-CN.yml (#1708)
* Improved zh-CN.yml * Delete an error. * days-one-or-more #1707 Co-authored-by: zhangYi <apachezy@hotmail.com>
This commit is contained in:
parent
0f0d8b9ebc
commit
e36dc68ccd
@ -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;
|
||||
@ -1070,7 +1071,7 @@ public class Island implements DataObject, MetaDataAble {
|
||||
// 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()));
|
||||
@ -1464,7 +1465,7 @@ public class Island implements DataObject, MetaDataAble {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param homes the homes to set
|
||||
* @param name the name of the home
|
||||
* @since 1.16.0
|
||||
*/
|
||||
public void addHome(String name, Location location) {
|
||||
|
@ -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:
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user