Search in sources :

Example 6 with Party

use of com.alessiodp.partiesapi.objects.Party in project Parties by AlessioDP.

the class ApiHandler method broadcastPartyMessage.

@Deprecated
@Override
public Status broadcastPartyMessage(String paramParty, UUID paramUUID, String paramMessage) {
    Party party = plugin.getPartyManager().getParty(paramParty);
    PartyPlayer player = plugin.getPlayerManager().getPlayer(paramUUID);
    return broadcastPartyMessage(party, player, paramMessage);
}
Also used : Party(com.alessiodp.partiesapi.objects.Party) PartyPlayer(com.alessiodp.partiesapi.objects.PartyPlayer)

Example 7 with Party

use of com.alessiodp.partiesapi.objects.Party in project Parties by AlessioDP.

the class ApiHandler method getPartyOnlinePlayers.

@Deprecated
@Override
public List<Player> getPartyOnlinePlayers(String paramParty) {
    List<Player> ret = new ArrayList<Player>();
    Party party = getParty(paramParty);
    ret.addAll(getPartyOnlinePlayers(party));
    return ret;
}
Also used : Player(org.bukkit.entity.Player) PartyPlayer(com.alessiodp.partiesapi.objects.PartyPlayer) Party(com.alessiodp.partiesapi.objects.Party) ArrayList(java.util.ArrayList)

Example 8 with Party

use of com.alessiodp.partiesapi.objects.Party in project Parties by AlessioDP.

the class ApiHandler method setPartyDescription.

@Deprecated
@Override
public void setPartyDescription(String paramParty, String paramDescription) {
    Party party = getParty(paramParty);
    party.setDescription(paramDescription);
    updateParty(party);
}
Also used : Party(com.alessiodp.partiesapi.objects.Party)

Example 9 with Party

use of com.alessiodp.partiesapi.objects.Party in project Parties by AlessioDP.

the class ApiHandler method setPartyMembers.

@Deprecated
@Override
public void setPartyMembers(String paramParty, List<UUID> paramListPlayers) {
    Party party = getParty(paramParty);
    party.setMembers(paramListPlayers);
    updateParty(party);
}
Also used : Party(com.alessiodp.partiesapi.objects.Party)

Example 10 with Party

use of com.alessiodp.partiesapi.objects.Party in project Parties by AlessioDP.

the class ApiHandler method setPartySuffix.

@Deprecated
@Override
public void setPartySuffix(String paramParty, String paramSuffix) {
    Party party = getParty(paramParty);
    party.setSuffix(paramSuffix);
    updateParty(party);
}
Also used : Party(com.alessiodp.partiesapi.objects.Party)

Aggregations

Party (com.alessiodp.partiesapi.objects.Party)26 PartyPlayer (com.alessiodp.partiesapi.objects.PartyPlayer)6 UUID (java.util.UUID)5 ArrayList (java.util.ArrayList)4 PartyEntity (com.alessiodp.parties.parties.objects.PartyEntity)3 DatabaseData (com.alessiodp.parties.storage.DatabaseData)2 IOException (java.io.IOException)2 SQLException (java.sql.SQLException)2 HashMap (java.util.HashMap)2 PartyPlayerEntity (com.alessiodp.parties.players.objects.PartyPlayerEntity)1 Connection (java.sql.Connection)1 Player (org.bukkit.entity.Player)1