mirror of
https://github.com/Zrips/Jobs.git
synced 2024-12-01 23:13:48 +01:00
Lets keep it compatible with java 8
This commit is contained in:
parent
073192c3b0
commit
b4c52835e6
@ -76,7 +76,7 @@ public final class JobsLevelUpEvent extends BaseEvent implements Cancellable {
|
||||
/**
|
||||
* @deprecated use {@link #getOldTitle()}
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
@Deprecated
|
||||
public String getOldTitleName() {
|
||||
return oldTitle.getName();
|
||||
}
|
||||
@ -84,7 +84,7 @@ public final class JobsLevelUpEvent extends BaseEvent implements Cancellable {
|
||||
/**
|
||||
* @deprecated use {@link #getOldTitle()}
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
@Deprecated
|
||||
public String getOldTitleShort() {
|
||||
return oldTitle.getShortName();
|
||||
}
|
||||
@ -92,7 +92,7 @@ public final class JobsLevelUpEvent extends BaseEvent implements Cancellable {
|
||||
/**
|
||||
* @deprecated use {@link #getOldTitle()}
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
@Deprecated
|
||||
public String getOldTitleColor() {
|
||||
return oldTitle.getChatColor().toString();
|
||||
}
|
||||
@ -109,7 +109,7 @@ public final class JobsLevelUpEvent extends BaseEvent implements Cancellable {
|
||||
/**
|
||||
* @deprecated use {@link #getNewTitle()}
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
@Deprecated
|
||||
public String getNewTitleName() {
|
||||
return newTitle.getName();
|
||||
}
|
||||
@ -117,7 +117,7 @@ public final class JobsLevelUpEvent extends BaseEvent implements Cancellable {
|
||||
/**
|
||||
* @deprecated use {@link #getNewTitle()}
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
@Deprecated
|
||||
public String getNewTitleShort() {
|
||||
return newTitle.getShortName();
|
||||
}
|
||||
@ -125,7 +125,7 @@ public final class JobsLevelUpEvent extends BaseEvent implements Cancellable {
|
||||
/**
|
||||
* @deprecated use {@link #getNewTitle()}
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
@Deprecated
|
||||
public String getNewTitleColor() {
|
||||
return newTitle.getChatColor().toString();
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ import com.gamingmesh.jobs.listeners.JobsPaymentListener;
|
||||
* marked as "removeable". In the future this class will get removed
|
||||
* and not used anymore by anyone. Instead use {@link Jobs#getBlockOwnerShips()}
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
@Deprecated
|
||||
public class FurnaceBrewingHandling {
|
||||
|
||||
static HashMap<UUID, List<blockLoc>> furnaceMap = new HashMap<>();
|
||||
|
@ -9,6 +9,7 @@ import java.util.Enumeration;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.ListIterator;
|
||||
import java.util.jar.JarEntry;
|
||||
import java.util.jar.JarFile;
|
||||
import java.util.UUID;
|
||||
@ -52,6 +53,13 @@ public class Util {
|
||||
return item;
|
||||
}
|
||||
|
||||
public static void toLowerCase(List<String> strings) {
|
||||
ListIterator<String> iterator = strings.listIterator();
|
||||
while (iterator.hasNext()) {
|
||||
iterator.set(iterator.next().toLowerCase());
|
||||
}
|
||||
}
|
||||
|
||||
public static World getWorld(String name) {
|
||||
World w = Bukkit.getWorld(name);
|
||||
if (w != null)
|
||||
|
Loading…
Reference in New Issue
Block a user