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 void
createParty(@NotNull String name, @NotNull User leader)
Create a new party with a party name and user as the leader.@Nullable Party
getParty(@NotNull User user)
@Nullable Party
getParty(@NotNull UUID party)
Get aParty
from the party's unique id.void
reloadPlugin()
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
- TheUser
who will be leader.
-
-