mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2025-01-08 19:38:15 +01:00
commit
1749314fb8
@ -372,23 +372,17 @@ public class Main extends JavaPlugin implements Listener {
|
|||||||
@EventHandler
|
@EventHandler
|
||||||
public void onJoin(PlayerJoinEvent e) {
|
public void onJoin(PlayerJoinEvent e) {
|
||||||
final Player player = e.getPlayer();
|
final Player player = e.getPlayer();
|
||||||
new BukkitRunnable() {
|
if (player.getName().equalsIgnoreCase("BadBones69")) {
|
||||||
@Override
|
Bukkit.getScheduler().runTaskLater(this, () -> {
|
||||||
public void run() {
|
player.sendMessage(Methods.getPrefix() + Methods.color("&7This server is running your Crazy Auctions Plugin. " + "&7It is running version &av" + Bukkit.getServer().getPluginManager().getPlugin("CrazyAuctions").getDescription().getVersion() + "&7."));
|
||||||
if (player.getName().equals("BadBones69")) {
|
}, 40);
|
||||||
player.sendMessage(Methods.getPrefix() + Methods.color("&7This server is running your Crazy Auctions Plugin. " + "&7It is running version &av" + Bukkit.getServer().getPluginManager().getPlugin("CrazyAuctions").getDescription().getVersion() + "&7."));
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
}.runTaskLater(this, 40);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void startCheck() {
|
private void startCheck() {
|
||||||
new BukkitRunnable() {
|
Bukkit.getScheduler().runTaskTimer(this, () -> {
|
||||||
@Override
|
Methods.updateAuction();
|
||||||
public void run() {
|
}, 20, 5 * 20);
|
||||||
Methods.updateAuction();
|
|
||||||
}
|
|
||||||
}.runTaskTimer(this, 20, 5 * 20);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private ArrayList<Material> getDamageableItems() {
|
private ArrayList<Material> getDamageableItems() {
|
||||||
|
Loading…
Reference in New Issue
Block a user