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 playersvoid
setConfig
(ScenarioConfiguration config) void
swap
(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
run
Methods inherited from class org.bukkit.scheduler.BukkitRunnable
cancel, getTaskId, isCancelled, runTask, runTaskAsynchronously, runTaskLater, runTaskLaterAsynchronously, runTaskTimer, runTaskTimerAsynchronously
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface uk.radialbog9.spigot.manhunt.scenario.config.ScenarioConfigurable
getConfig
-
Constructor Details
-
LocSwapAllScenario
public LocSwapAllScenario()
-
-
Method Details
-
setConfig
- Specified by:
setConfig
in interfaceScenarioConfigurable
-
swap
public void swap(org.bukkit.entity.Player player1, org.bukkit.entity.Player player2) Description copied from class:SwapScenarioTemplate
Swaps player 1 with player 2- Specified by:
swap
in classSwapScenarioTemplate
- Parameters:
player1
- The first playerplayer2
- The second player
-
getPlayerSet
Description copied from class:SwapScenarioTemplate
Gets the set of players- Specified by:
getPlayerSet
in classSwapScenarioTemplate
- Returns:
- List of players
-