Package dev.satyrn.xpeconomy.tasks
Class PlayerExperienceSynchronizationTask
java.lang.Object
org.bukkit.scheduler.BukkitRunnable
dev.satyrn.xpeconomy.tasks.PlayerExperienceSynchronizationTask
- All Implemented Interfaces:
Runnable
public final class PlayerExperienceSynchronizationTask
extends org.bukkit.scheduler.BukkitRunnable
Task used to synchronize player experience with a value in an account.
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerExperienceSynchronizationTask(org.bukkit.plugin.Plugin plugin, UUID playerID, Account account) Creates a new player experience synchronization task. -
Method Summary
Modifier and TypeMethodDescriptionvoidrun()When an object implementing interfaceRunnableis used to create a thread, starting the thread causes the object'srunmethod to be called in that separately executing thread.Methods inherited from class org.bukkit.scheduler.BukkitRunnable
cancel, getTaskId, isCancelled, runTask, runTaskAsynchronously, runTaskLater, runTaskLaterAsynchronously, runTaskTimer, runTaskTimerAsynchronously
-
Constructor Details
-
PlayerExperienceSynchronizationTask
public PlayerExperienceSynchronizationTask(org.bukkit.plugin.Plugin plugin, UUID playerID, Account account) Creates a new player experience synchronization task.- Parameters:
plugin- The plugin instance.playerID- The player ID.account- The player's economy account
-
-
Method Details
-
run
public void run()When an object implementing interfaceRunnableis used to create a thread, starting the thread causes the object'srunmethod to be called in that separately executing thread.The general contract of the method
runis that it may take any action whatsoever.- See Also:
-