rework (1.3.0)

This commit is contained in:
ajgeiss0702
2020-05-22 09:03:43 -07:00
parent 9c1c279cf3
commit bb565cad27
13 changed files with 814 additions and 269 deletions
@@ -33,22 +33,6 @@ public class Main extends JavaPlugin implements PluginMessageListener {
final String text = data.split(";time=")[0];
//getLogger().info("recieved actionbar for "+player.getName()+": "+text);
VersionSupport.sendActionBar(p, text);
int time = Integer.parseInt(data.split(";time=")[1]);
if(time > 2) {
Bukkit.getScheduler().runTaskLater(this, new Runnable() {
public void run() {
VersionSupport.sendActionBar(p, text);
}
}, 2*20);
if(time > 4) {
Bukkit.getScheduler().runTaskLater(this, new Runnable() {
public void run() {
VersionSupport.sendActionBar(p, text);
}
}, 4*20);
}
}
}
}
}