mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2025-01-23 15:21:21 +01:00
Un-deprecated the code
This commit is contained in:
parent
f77dddb323
commit
4ee3e091d7
@ -191,7 +191,7 @@ public class ChestShop extends JavaPlugin {
|
||||
}
|
||||
|
||||
private void scheduleTask(Runnable runnable, long startTime, long repetetionTime) {
|
||||
server.getScheduler().scheduleAsyncRepeatingTask(this, runnable, startTime, repetetionTime);
|
||||
server.getScheduler().runTaskTimerAsynchronously(this, runnable, startTime, repetetionTime);
|
||||
}
|
||||
|
||||
private void startStatistics() {
|
||||
@ -225,7 +225,8 @@ public class ChestShop extends JavaPlugin {
|
||||
);
|
||||
|
||||
database = DB.getDatabase();
|
||||
getServer().getScheduler().scheduleAsyncRepeatingTask(this, new Queue(), 200L, 200L);
|
||||
|
||||
scheduleTask(new Queue(), 200L, 200L);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -367,7 +367,7 @@ public class Metrics {
|
||||
// END server software specific section -- all code below does not use any code outside of this class / Java
|
||||
|
||||
// Construct the post data
|
||||
final StringBuilder data = new StringBuilder();
|
||||
final StringBuilder data = new StringBuilder(50);
|
||||
|
||||
// The plugin's description file containg all of the plugin data such as name, version, author, etc
|
||||
data.append(encode("guid")).append('=').append(encode(guid));
|
||||
|
Loading…
Reference in New Issue
Block a user