Class LocSwapAllScenario
java.lang.Object
org.bukkit.scheduler.BukkitRunnable
uk.radialbog9.spigot.manhunt.scenario.template.SwapScenarioTemplate
uk.radialbog9.spigot.manhunt.scenario.scenarios.LocSwapAllScenario
- All Implemented Interfaces:
Runnable,ScenarioConfigurable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<org.bukkit.entity.Player>Gets the set of playersvoidsetConfig(ScenarioConfiguration config) voidswap(org.bukkit.entity.Player player1, org.bukkit.entity.Player player2) Swaps player 1 with player 2Methods inherited from class uk.radialbog9.spigot.manhunt.scenario.template.SwapScenarioTemplate
runMethods inherited from class org.bukkit.scheduler.BukkitRunnable
cancel, getTaskId, isCancelled, runTask, runTaskAsynchronously, runTaskLater, runTaskLaterAsynchronously, runTaskTimer, runTaskTimerAsynchronouslyMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface uk.radialbog9.spigot.manhunt.scenario.config.ScenarioConfigurable
getConfig
-
Constructor Details
-
LocSwapAllScenario
public LocSwapAllScenario()
-
-
Method Details
-
setConfig
- Specified by:
setConfigin interfaceScenarioConfigurable
-
swap
public void swap(org.bukkit.entity.Player player1, org.bukkit.entity.Player player2) Description copied from class:SwapScenarioTemplateSwaps player 1 with player 2- Specified by:
swapin classSwapScenarioTemplate- Parameters:
player1- The first playerplayer2- The second player
-
getPlayerSet
Description copied from class:SwapScenarioTemplateGets the set of players- Specified by:
getPlayerSetin classSwapScenarioTemplate- Returns:
- List of players
-