mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-15 11:04:29 +02:00
More general cleanup.
This commit is contained in:
@@ -70,7 +70,7 @@ private static SimpleDateFormat formatter = new SimpleDateFormat("yyyyMMdd");
|
|||||||
}
|
}
|
||||||
|
|
||||||
public int getType() {
|
public int getType() {
|
||||||
if (info == null || info.equals("")) {
|
if (info == null || info.isEmpty()) {
|
||||||
return COUNTRY_EDITION;
|
return COUNTRY_EDITION;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@@ -5,7 +5,7 @@ static public String regionNameByCode(String country_code,String region_code) {
|
|||||||
String name = null;
|
String name = null;
|
||||||
int region_code2 = -1;
|
int region_code2 = -1;
|
||||||
if (region_code == null) { return null; }
|
if (region_code == null) { return null; }
|
||||||
if (region_code.equals("")) { return null; }
|
if (region_code.isEmpty()) { return null; }
|
||||||
|
|
||||||
if ( ((region_code.charAt(0) >= 48 ) && ( region_code.charAt(0) < ( 48 + 10 )))
|
if ( ((region_code.charAt(0) >= 48 ) && ( region_code.charAt(0) < ( 48 + 10 )))
|
||||||
&& ((region_code.charAt(1) >= 48 ) && ( region_code.charAt(1) < ( 48 + 10 )))
|
&& ((region_code.charAt(1) >= 48 ) && ( region_code.charAt(1) < ( 48 + 10 )))
|
||||||
|
@@ -11,7 +11,6 @@ import java.util.Locale;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
import org.bukkit.event.Event.Priority;
|
|
||||||
import org.bukkit.event.EventPriority;
|
import org.bukkit.event.EventPriority;
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user