Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.GoldEnchantTeam.GoldEnchant;
- import org.bukkit.Bukkit;
- import org.bukkit.plugin.Plugin;
- public class GoldEnchantTimer implements Runnable {
- {
- Bukkit.getServer().getScheduler()
- .scheduleAsyncDelayedTask((Plugin) this, new Runnable() {
- @Override
- public void run() {
- Bukkit.getServer().broadcastMessage(
- "This message is broadcast by the main thread");
- }
- }, 60L);
- }
- @Override
- public void run() {
- Bukkit.getServer().broadcastMessage(
- "This message is broadcast by the main thread");
- }
- }
Add Comment
Please, Sign In to add comment