Simplification for previous commit.
This commit is contained in:
parent
0b313fa2ac
commit
6a27f4d8cd
@ -89,13 +89,8 @@ public class SendMessageLocalisationData implements IXmlReader
|
||||
|
||||
public static String getLocalisation(Player player, String message)
|
||||
{
|
||||
if (Config.MULTILANG_ENABLE)
|
||||
if (Config.MULTILANG_ENABLE && (player != null))
|
||||
{
|
||||
if (player == null)
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
|
||||
if (localisations != null)
|
||||
{
|
||||
|
@ -89,13 +89,8 @@ public class SendMessageLocalisationData implements IXmlReader
|
||||
|
||||
public static String getLocalisation(Player player, String message)
|
||||
{
|
||||
if (Config.MULTILANG_ENABLE)
|
||||
if (Config.MULTILANG_ENABLE && (player != null))
|
||||
{
|
||||
if (player == null)
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
|
||||
if (localisations != null)
|
||||
{
|
||||
|
@ -89,13 +89,8 @@ public class SendMessageLocalisationData implements IXmlReader
|
||||
|
||||
public static String getLocalisation(Player player, String message)
|
||||
{
|
||||
if (Config.MULTILANG_ENABLE)
|
||||
if (Config.MULTILANG_ENABLE && (player != null))
|
||||
{
|
||||
if (player == null)
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
|
||||
if (localisations != null)
|
||||
{
|
||||
|
@ -89,13 +89,8 @@ public class SendMessageLocalisationData implements IXmlReader
|
||||
|
||||
public static String getLocalisation(Player player, String message)
|
||||
{
|
||||
if (Config.MULTILANG_ENABLE)
|
||||
if (Config.MULTILANG_ENABLE && (player != null))
|
||||
{
|
||||
if (player == null)
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
|
||||
if (localisations != null)
|
||||
{
|
||||
|
@ -89,13 +89,8 @@ public class SendMessageLocalisationData implements IXmlReader
|
||||
|
||||
public static String getLocalisation(Player player, String message)
|
||||
{
|
||||
if (Config.MULTILANG_ENABLE)
|
||||
if (Config.MULTILANG_ENABLE && (player != null))
|
||||
{
|
||||
if (player == null)
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
|
||||
if (localisations != null)
|
||||
{
|
||||
|
@ -89,13 +89,8 @@ public class SendMessageLocalisationData implements IXmlReader
|
||||
|
||||
public static String getLocalisation(Player player, String message)
|
||||
{
|
||||
if (Config.MULTILANG_ENABLE)
|
||||
if (Config.MULTILANG_ENABLE && (player != null))
|
||||
{
|
||||
if (player == null)
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
|
||||
if (localisations != null)
|
||||
{
|
||||
|
@ -89,13 +89,8 @@ public class SendMessageLocalisationData implements IXmlReader
|
||||
|
||||
public static String getLocalisation(Player player, String message)
|
||||
{
|
||||
if (Config.MULTILANG_ENABLE)
|
||||
if (Config.MULTILANG_ENABLE && (player != null))
|
||||
{
|
||||
if (player == null)
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
|
||||
if (localisations != null)
|
||||
{
|
||||
|
@ -89,13 +89,8 @@ public class SendMessageLocalisationData implements IXmlReader
|
||||
|
||||
public static String getLocalisation(Player player, String message)
|
||||
{
|
||||
if (Config.MULTILANG_ENABLE)
|
||||
if (Config.MULTILANG_ENABLE && (player != null))
|
||||
{
|
||||
if (player == null)
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
|
||||
if (localisations != null)
|
||||
{
|
||||
|
@ -89,13 +89,8 @@ public class SendMessageLocalisationData implements IXmlReader
|
||||
|
||||
public static String getLocalisation(Player player, String message)
|
||||
{
|
||||
if (Config.MULTILANG_ENABLE)
|
||||
if (Config.MULTILANG_ENABLE && (player != null))
|
||||
{
|
||||
if (player == null)
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
|
||||
if (localisations != null)
|
||||
{
|
||||
|
@ -89,13 +89,8 @@ public class SendMessageLocalisationData implements IXmlReader
|
||||
|
||||
public static String getLocalisation(Player player, String message)
|
||||
{
|
||||
if (Config.MULTILANG_ENABLE)
|
||||
if (Config.MULTILANG_ENABLE && (player != null))
|
||||
{
|
||||
if (player == null)
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
|
||||
if (localisations != null)
|
||||
{
|
||||
|
@ -89,13 +89,8 @@ public class SendMessageLocalisationData implements IXmlReader
|
||||
|
||||
public static String getLocalisation(Player player, String message)
|
||||
{
|
||||
if (Config.MULTILANG_ENABLE)
|
||||
if (Config.MULTILANG_ENABLE && (player != null))
|
||||
{
|
||||
if (player == null)
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
|
||||
if (localisations != null)
|
||||
{
|
||||
|
@ -89,13 +89,8 @@ public class SendMessageLocalisationData implements IXmlReader
|
||||
|
||||
public static String getLocalisation(Player player, String message)
|
||||
{
|
||||
if (Config.MULTILANG_ENABLE)
|
||||
if (Config.MULTILANG_ENABLE && (player != null))
|
||||
{
|
||||
if (player == null)
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
|
||||
if (localisations != null)
|
||||
{
|
||||
|
@ -89,13 +89,8 @@ public class SendMessageLocalisationData implements IXmlReader
|
||||
|
||||
public static String getLocalisation(Player player, String message)
|
||||
{
|
||||
if (Config.MULTILANG_ENABLE)
|
||||
if (Config.MULTILANG_ENABLE && (player != null))
|
||||
{
|
||||
if (player == null)
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
|
||||
if (localisations != null)
|
||||
{
|
||||
|
@ -89,13 +89,8 @@ public class SendMessageLocalisationData implements IXmlReader
|
||||
|
||||
public static String getLocalisation(Player player, String message)
|
||||
{
|
||||
if (Config.MULTILANG_ENABLE)
|
||||
if (Config.MULTILANG_ENABLE && (player != null))
|
||||
{
|
||||
if (player == null)
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
|
||||
if (localisations != null)
|
||||
{
|
||||
|
@ -89,13 +89,8 @@ public class SendMessageLocalisationData implements IXmlReader
|
||||
|
||||
public static String getLocalisation(Player player, String message)
|
||||
{
|
||||
if (Config.MULTILANG_ENABLE)
|
||||
if (Config.MULTILANG_ENABLE && (player != null))
|
||||
{
|
||||
if (player == null)
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
|
||||
if (localisations != null)
|
||||
{
|
||||
|
@ -89,13 +89,8 @@ public class SendMessageLocalisationData implements IXmlReader
|
||||
|
||||
public static String getLocalisation(Player player, String message)
|
||||
{
|
||||
if (Config.MULTILANG_ENABLE)
|
||||
if (Config.MULTILANG_ENABLE && (player != null))
|
||||
{
|
||||
if (player == null)
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
|
||||
if (localisations != null)
|
||||
{
|
||||
|
@ -89,13 +89,8 @@ public class SendMessageLocalisationData implements IXmlReader
|
||||
|
||||
public static String getLocalisation(Player player, String message)
|
||||
{
|
||||
if (Config.MULTILANG_ENABLE)
|
||||
if (Config.MULTILANG_ENABLE && (player != null))
|
||||
{
|
||||
if (player == null)
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
|
||||
if (localisations != null)
|
||||
{
|
||||
|
@ -89,13 +89,8 @@ public class SendMessageLocalisationData implements IXmlReader
|
||||
|
||||
public static String getLocalisation(Player player, String message)
|
||||
{
|
||||
if (Config.MULTILANG_ENABLE)
|
||||
if (Config.MULTILANG_ENABLE && (player != null))
|
||||
{
|
||||
if (player == null)
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
|
||||
if (localisations != null)
|
||||
{
|
||||
|
@ -89,13 +89,8 @@ public class SendMessageLocalisationData implements IXmlReader
|
||||
|
||||
public static String getLocalisation(Player player, String message)
|
||||
{
|
||||
if (Config.MULTILANG_ENABLE)
|
||||
if (Config.MULTILANG_ENABLE && (player != null))
|
||||
{
|
||||
if (player == null)
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
|
||||
if (localisations != null)
|
||||
{
|
||||
|
@ -89,13 +89,8 @@ public class SendMessageLocalisationData implements IXmlReader
|
||||
|
||||
public static String getLocalisation(Player player, String message)
|
||||
{
|
||||
if (Config.MULTILANG_ENABLE)
|
||||
if (Config.MULTILANG_ENABLE && (player != null))
|
||||
{
|
||||
if (player == null)
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
|
||||
if (localisations != null)
|
||||
{
|
||||
|
@ -89,13 +89,8 @@ public class SendMessageLocalisationData implements IXmlReader
|
||||
|
||||
public static String getLocalisation(Player player, String message)
|
||||
{
|
||||
if (Config.MULTILANG_ENABLE)
|
||||
if (Config.MULTILANG_ENABLE && (player != null))
|
||||
{
|
||||
if (player == null)
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
|
||||
if (localisations != null)
|
||||
{
|
||||
|
@ -89,13 +89,8 @@ public class SendMessageLocalisationData implements IXmlReader
|
||||
|
||||
public static String getLocalisation(Player player, String message)
|
||||
{
|
||||
if (Config.MULTILANG_ENABLE)
|
||||
if (Config.MULTILANG_ENABLE && (player != null))
|
||||
{
|
||||
if (player == null)
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
|
||||
if (localisations != null)
|
||||
{
|
||||
|
@ -89,13 +89,8 @@ public class SendMessageLocalisationData implements IXmlReader
|
||||
|
||||
public static String getLocalisation(Player player, String message)
|
||||
{
|
||||
if (Config.MULTILANG_ENABLE)
|
||||
if (Config.MULTILANG_ENABLE && (player != null))
|
||||
{
|
||||
if (player == null)
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
|
||||
if (localisations != null)
|
||||
{
|
||||
|
@ -89,13 +89,8 @@ public class SendMessageLocalisationData implements IXmlReader
|
||||
|
||||
public static String getLocalisation(Player player, String message)
|
||||
{
|
||||
if (Config.MULTILANG_ENABLE)
|
||||
if (Config.MULTILANG_ENABLE && (player != null))
|
||||
{
|
||||
if (player == null)
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
|
||||
if (localisations != null)
|
||||
{
|
||||
|
@ -89,13 +89,8 @@ public class SendMessageLocalisationData implements IXmlReader
|
||||
|
||||
public static String getLocalisation(Player player, String message)
|
||||
{
|
||||
if (Config.MULTILANG_ENABLE)
|
||||
if (Config.MULTILANG_ENABLE && (player != null))
|
||||
{
|
||||
if (player == null)
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
|
||||
if (localisations != null)
|
||||
{
|
||||
|
@ -89,13 +89,8 @@ public class SendMessageLocalisationData implements IXmlReader
|
||||
|
||||
public static String getLocalisation(Player player, String message)
|
||||
{
|
||||
if (Config.MULTILANG_ENABLE)
|
||||
if (Config.MULTILANG_ENABLE && (player != null))
|
||||
{
|
||||
if (player == null)
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
|
||||
if (localisations != null)
|
||||
{
|
||||
|
@ -89,13 +89,8 @@ public class SendMessageLocalisationData implements IXmlReader
|
||||
|
||||
public static String getLocalisation(Player player, String message)
|
||||
{
|
||||
if (Config.MULTILANG_ENABLE)
|
||||
if (Config.MULTILANG_ENABLE && (player != null))
|
||||
{
|
||||
if (player == null)
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
|
||||
if (localisations != null)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user