Package dev.majek.pc.api
Class PartyChatApi
- java.lang.Object
-
- dev.majek.pc.api.PartyChatApi
-
public class PartyChatApi extends Object
Handles PartyChat api methods.
-
-
Constructor Summary
Constructors Constructor Description PartyChatApi()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateParty(@NotNull String name, @NotNull User leader)Create a new party with a party name and user as the leader.@Nullable PartygetParty(@NotNull User user)@Nullable PartygetParty(@NotNull UUID party)Get aPartyfrom the party's unique id.voidreloadPlugin()Reloads the PartyChat plugin.
-
-
-
Method Detail
-
reloadPlugin
public void reloadPlugin()
Reloads the PartyChat plugin. If changes have been made to config files these will be applied.
-
createParty
public void createParty(@NotNull @NotNull String name, @NotNull @NotNull User leader)Create a new party with a party name and user as the leader. This is a manual creation and will not triggerPartyCreateEvent.- Parameters:
name- The name of the party.leader- TheUserwho will be leader.
-
-