mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2024-11-22 11:55:12 +01:00
Update Main.java
This commit is contained in:
parent
750ac0b0ac
commit
6cb8707cc2
@ -279,6 +279,7 @@ public class Main extends JavaPlugin implements Listener{
|
|||||||
sender.sendMessage(Api.getPrefix()+Api.color("/CA Help"));
|
sender.sendMessage(Api.getPrefix()+Api.color("/CA Help"));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void onJoin(PlayerJoinEvent e){
|
public void onJoin(PlayerJoinEvent e){
|
||||||
final Player player = e.getPlayer();
|
final Player player = e.getPlayer();
|
||||||
@ -295,7 +296,8 @@ public class Main extends JavaPlugin implements Listener{
|
|||||||
}
|
}
|
||||||
}, 40);
|
}, 40);
|
||||||
}
|
}
|
||||||
void startCheck(){
|
|
||||||
|
private void startCheck(){
|
||||||
Bukkit.getScheduler().scheduleSyncRepeatingTask(this, new Runnable(){
|
Bukkit.getScheduler().scheduleSyncRepeatingTask(this, new Runnable(){
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
@ -303,7 +305,8 @@ public class Main extends JavaPlugin implements Listener{
|
|||||||
}
|
}
|
||||||
}, 20, 5*20);
|
}, 20, 5*20);
|
||||||
}
|
}
|
||||||
ArrayList<Material> getDamageableItems(){
|
|
||||||
|
private ArrayList<Material> getDamageableItems(){
|
||||||
ArrayList<Material> ma = new ArrayList<Material>();
|
ArrayList<Material> ma = new ArrayList<Material>();
|
||||||
ma.add(Material.DIAMOND_HELMET);
|
ma.add(Material.DIAMOND_HELMET);
|
||||||
ma.add(Material.DIAMOND_CHESTPLATE);
|
ma.add(Material.DIAMOND_CHESTPLATE);
|
||||||
@ -355,4 +358,5 @@ public class Main extends JavaPlugin implements Listener{
|
|||||||
ma.add(Material.FISHING_ROD);
|
ma.add(Material.FISHING_ROD);
|
||||||
return ma;
|
return ma;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user