Simplification for previous commit.

This commit is contained in:
MobiusDevelopment 2022-08-30 00:54:23 +00:00
parent 0b313fa2ac
commit 6a27f4d8cd
27 changed files with 27 additions and 162 deletions

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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)
{