Remove title fade in + minor texture fix
This commit is contained in:
parent
8c4d8dbcc2
commit
81850daa0d
@ -62,10 +62,16 @@ public class BukkitPlayer extends FawePlayer<Player> {
|
||||
|
||||
public void sendTitle(String title, String sub) {
|
||||
try {
|
||||
Method methodSendTitle = Player.class.getDeclaredMethod("sendTitle", String.class, String.class);
|
||||
methodSendTitle.invoke(parent, ChatColor.GOLD + title, ChatColor.GOLD + sub);
|
||||
Method methodSendTitle = Player.class.getDeclaredMethod("sendTitle", String.class, String.class, int.class, int.class);
|
||||
methodSendTitle.invoke(parent, ChatColor.GOLD + title, ChatColor.GOLD + sub, 0, 70, 20);
|
||||
return;
|
||||
} catch (Throwable ignore) {}
|
||||
} catch (Throwable ignore) {
|
||||
try {
|
||||
Method methodSendTitle = Player.class.getDeclaredMethod("sendTitle", String.class, String.class);
|
||||
methodSendTitle.invoke(parent, ChatColor.GOLD + title, ChatColor.GOLD + sub);
|
||||
return;
|
||||
} catch (Throwable ignore2) {}
|
||||
}
|
||||
if (console == null) {
|
||||
console = Bukkit.getConsoleSender();
|
||||
Bukkit.getServer().dispatchCommand(console, "gamerule sendCommandFeedback false");
|
||||
|
@ -502,12 +502,17 @@ public class TextureUtil {
|
||||
Gson gson = new Gson();
|
||||
if (folder.exists()) {
|
||||
// Get all the jar files
|
||||
for (File file : folder.listFiles(new FilenameFilter() {
|
||||
File[] files = folder.listFiles(new FilenameFilter() {
|
||||
@Override
|
||||
public boolean accept(File dir, String name) {
|
||||
return name.endsWith(".jar");
|
||||
}
|
||||
})) {
|
||||
});
|
||||
if (files.length == 0) {
|
||||
throw new FileNotFoundException("Please create a `FastAsyncWorldEdit/textures` folder with `.minecraft/versions` jar or mods in it." +
|
||||
"If the file exists, please make sure the server has read access to the directory");
|
||||
}
|
||||
for (File file : files) {
|
||||
ZipFile zipFile = new ZipFile(file);
|
||||
|
||||
BundledBlockData bundled = BundledBlockData.getInstance();
|
||||
|
Loading…
Reference in New Issue
Block a user