mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-16 11:37:30 +02:00
Future Java versions may not support _ as identifier.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package com.earth2me.essentials.spawn;
|
||||
|
||||
import static com.earth2me.essentials.I18n._;
|
||||
import static com.earth2me.essentials.I18n.tl;
|
||||
import com.earth2me.essentials.User;
|
||||
import com.earth2me.essentials.commands.EssentialsCommand;
|
||||
import org.bukkit.Server;
|
||||
@@ -18,6 +18,6 @@ public class Commandsetspawn extends EssentialsCommand
|
||||
{
|
||||
final String group = args.length > 0 ? getFinalArg(args, 0) : "default";
|
||||
((SpawnStorage)module).setSpawn(user.getLocation(), group);
|
||||
user.sendMessage(_("spawnSet", group));
|
||||
user.sendMessage(tl("spawnSet", group));
|
||||
}
|
||||
}
|
||||
|
@@ -1,7 +1,7 @@
|
||||
package com.earth2me.essentials.spawn;
|
||||
|
||||
import com.earth2me.essentials.CommandSource;
|
||||
import static com.earth2me.essentials.I18n._;
|
||||
import static com.earth2me.essentials.I18n.tl;
|
||||
import com.earth2me.essentials.Console;
|
||||
import com.earth2me.essentials.Trade;
|
||||
import com.earth2me.essentials.User;
|
||||
@@ -31,7 +31,7 @@ public class Commandspawn extends EssentialsCommand
|
||||
respawn(user.getSource(), user, otherUser, charge);
|
||||
if (!otherUser.equals(user))
|
||||
{
|
||||
otherUser.sendMessage(_("teleportAtoB", user.getDisplayName(), "spawn"));
|
||||
otherUser.sendMessage(tl("teleportAtoB", user.getDisplayName(), "spawn"));
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -50,7 +50,7 @@ public class Commandspawn extends EssentialsCommand
|
||||
}
|
||||
final User user = getPlayer(server, args, 0, true, false);
|
||||
respawn(sender, null, user, null);
|
||||
user.sendMessage(_("teleportAtoB", Console.NAME, "spawn"));
|
||||
user.sendMessage(tl("teleportAtoB", Console.NAME, "spawn"));
|
||||
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ public class Commandspawn extends EssentialsCommand
|
||||
{
|
||||
final SpawnStorage spawns = (SpawnStorage)this.module;
|
||||
final Location spawn = spawns.getSpawn(teleportee.getGroup());
|
||||
sender.sendMessage(_("teleporting", spawn.getWorld().getName(), spawn.getBlockX(), spawn.getBlockY(), spawn.getBlockZ()));
|
||||
sender.sendMessage(tl("teleporting", spawn.getWorld().getName(), spawn.getBlockX(), spawn.getBlockY(), spawn.getBlockZ()));
|
||||
if (teleportOwner == null)
|
||||
{
|
||||
teleportee.getTeleport().now(spawn, false, TeleportCause.COMMAND);
|
||||
|
@@ -1,6 +1,6 @@
|
||||
package com.earth2me.essentials.spawn;
|
||||
|
||||
import static com.earth2me.essentials.I18n._;
|
||||
import static com.earth2me.essentials.I18n.tl;
|
||||
import net.ess3.api.IEssentials;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
@@ -31,7 +31,7 @@ public class EssentialsSpawn extends JavaPlugin implements IEssentialsSpawn
|
||||
ess = (IEssentials)pluginManager.getPlugin("Essentials");
|
||||
if (!this.getDescription().getVersion().equals(ess.getDescription().getVersion()))
|
||||
{
|
||||
LOGGER.log(Level.WARNING, _("versionMismatchAll"));
|
||||
LOGGER.log(Level.WARNING, tl("versionMismatchAll"));
|
||||
}
|
||||
if (!ess.isEnabled())
|
||||
{
|
||||
|
@@ -1,6 +1,6 @@
|
||||
package com.earth2me.essentials.spawn;
|
||||
|
||||
import static com.earth2me.essentials.I18n._;
|
||||
import static com.earth2me.essentials.I18n.tl;
|
||||
import com.earth2me.essentials.Kit;
|
||||
import com.earth2me.essentials.OfflinePlayer;
|
||||
import com.earth2me.essentials.User;
|
||||
@@ -165,7 +165,7 @@ public class EssentialsSpawnPlayerListener implements Listener
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Bukkit.getLogger().log(Level.WARNING, _("teleportNewPlayerError"), ex);
|
||||
Bukkit.getLogger().log(Level.WARNING, tl("teleportNewPlayerError"), ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user