Interface KitManager
public interface KitManager
Represents the KitManager singleton used by Duels.
-
Method Summary
Modifier and TypeMethodDescriptionCreates a kit with given name andPlayer's inventory contents.Attempts to find anKitinstance associated with the given name.getKits()An UnmodifiableList ofKits that are currently loaded.Callsremove(CommandSender, String)with source being null.Removes a kit with given name.
-
Method Details
-
get
Attempts to find anKitinstance associated with the given name.- Parameters:
name- Name to search through the loaded kits. Should not be null!- Returns:
Kitinstance that has a name matching with the given name or null if not exists.
-
create
Creates a kit with given name andPlayer's inventory contents. Note: CallsKitCreateEventon successful creation. -
remove
Removes a kit with given name. Note: CallsKitRemoveEventon successful removal. -
remove
Callsremove(CommandSender, String)with source being null.- See Also:
-
getKits
An UnmodifiableList ofKits that are currently loaded.- Returns:
- Never-null UnmodifiableList of
Kits that are currently loaded. - Since:
- 3.1.0
-