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
ConstructorDescriptionPlayerExperienceSynchronizationTask
(org.bukkit.plugin.Plugin plugin, UUID playerID, Account account) Creates a new player experience synchronization task. -
Method Summary
Modifier and TypeMethodDescriptionvoid
run()
When an object implementing interfaceRunnable
is used to create a thread, starting the thread causes the object'srun
method 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 interfaceRunnable
is used to create a thread, starting the thread causes the object'srun
method to be called in that separately executing thread.The general contract of the method
run
is that it may take any action whatsoever.- See Also:
-