not work :(

This commit is contained in:
MidnightTale 2023-04-25 00:51:30 +07:00
commit 149a85cde1

View file

@ -78,20 +78,11 @@ public class FoliaFlow extends JavaPlugin implements Listener {
}), 0L, 1L, TimeUnit.MILLISECONDS); }), 0L, 1L, TimeUnit.MILLISECONDS);
} catch (UnsupportedOperationException ignored) { } catch (UnsupportedOperationException ignored) {
} }
AsyncScheduler scheduler = getServer().getAsyncScheduler();
scheduler.runDelayed(this, task -> {
getServer().dispatchCommand(getServer().getConsoleSender(), "execute in minecraft:the_end run summon minecraft:block_display 100.0005 48 -0.0005 {block_state:{Name:\"minecraft:obsidian\"},Tags:[\"FoliaFlow_FakeBlock\"]}");
getServer().getLogger().info("Installed Fake Block Display");
}, 30, TimeUnit.SECONDS);
// Register the event listener
getServer().getPluginManager().registerEvents(this, this); getServer().getPluginManager().registerEvents(this, this);
} }
@Override @Override
public void onDisable() { public void onDisable() {
getServer().dispatchCommand(getServer().getConsoleSender(), "kill @e[tag=FoliaFlow_FakeBlock]");
getServer().getLogger().info("Removed Fake Block Display");
task.cancel(); task.cancel();
blockktask.cancel(); blockktask.cancel();
super.onDisable(); super.onDisable();