first commit
Build AsminVoicechat / prepare-release (push) Successful in 14s
Build AsminVoicechat / build-and-test (17) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (18) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (19) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (20) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (21) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (22) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (23) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (24) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (25) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (26) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (27-ea) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (16) (push) Canceled after 38s
Build AsminVoicechat / prepare-release (push) Successful in 14s
Build AsminVoicechat / build-and-test (17) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (18) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (19) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (20) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (21) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (22) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (23) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (24) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (25) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (26) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (27-ea) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (16) (push) Canceled after 38s
This commit is contained in:
commit
bbccd4a815
454 files changed
+45050
No files matched your search
+22
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.annotation.Nullable
|
||||
*/
|
||||
package de.maxhenkel.voicechat.plugins.impl.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.Group;
|
||||
import de.maxhenkel.voicechat.api.VoicechatConnection;
|
||||
import de.maxhenkel.voicechat.api.events.CreateGroupEvent;
|
||||
import de.maxhenkel.voicechat.plugins.impl.events.GroupEventImpl;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public class CreateGroupEventImpl
|
||||
extends GroupEventImpl
|
||||
implements CreateGroupEvent {
|
||||
public CreateGroupEventImpl(Group group, @Nullable VoicechatConnection connection) {
|
||||
super(group, connection);
|
||||
}
|
||||
}
|
||||
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.annotation.Nullable
|
||||
*/
|
||||
package de.maxhenkel.voicechat.plugins.impl.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.VoicechatConnection;
|
||||
import de.maxhenkel.voicechat.api.events.EntitySoundPacketEvent;
|
||||
import de.maxhenkel.voicechat.api.packets.EntitySoundPacket;
|
||||
import de.maxhenkel.voicechat.plugins.impl.events.SoundPacketEventImpl;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public class EntitySoundPacketEventImpl
|
||||
extends SoundPacketEventImpl<EntitySoundPacket>
|
||||
implements EntitySoundPacketEvent {
|
||||
public EntitySoundPacketEventImpl(EntitySoundPacket packet, @Nullable VoicechatConnection senderConnection, VoicechatConnection receiverConnection, String source) {
|
||||
super(packet, senderConnection, receiverConnection, source);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.plugins.impl.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.events.Event;
|
||||
|
||||
public class EventImpl
|
||||
implements Event {
|
||||
private boolean cancelled;
|
||||
|
||||
@Override
|
||||
public boolean isCancellable() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean cancel() {
|
||||
if (!this.isCancellable()) {
|
||||
return false;
|
||||
}
|
||||
this.cancelled = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isCancelled() {
|
||||
return this.cancelled;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.annotation.Nullable
|
||||
*/
|
||||
package de.maxhenkel.voicechat.plugins.impl.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.Group;
|
||||
import de.maxhenkel.voicechat.api.VoicechatConnection;
|
||||
import de.maxhenkel.voicechat.api.events.GroupEvent;
|
||||
import de.maxhenkel.voicechat.plugins.impl.events.ServerEventImpl;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public class GroupEventImpl
|
||||
extends ServerEventImpl
|
||||
implements GroupEvent {
|
||||
@Nullable
|
||||
protected Group group;
|
||||
protected VoicechatConnection connection;
|
||||
|
||||
public GroupEventImpl(@Nullable Group group, VoicechatConnection connection) {
|
||||
this.group = group;
|
||||
this.connection = connection;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
public Group getGroup() {
|
||||
return this.group;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VoicechatConnection getConnection() {
|
||||
return this.connection;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.plugins.impl.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.Group;
|
||||
import de.maxhenkel.voicechat.api.VoicechatConnection;
|
||||
import de.maxhenkel.voicechat.api.events.JoinGroupEvent;
|
||||
import de.maxhenkel.voicechat.plugins.impl.events.GroupEventImpl;
|
||||
|
||||
public class JoinGroupEventImpl
|
||||
extends GroupEventImpl
|
||||
implements JoinGroupEvent {
|
||||
public JoinGroupEventImpl(Group group, VoicechatConnection connection) {
|
||||
super(group, connection);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.annotation.Nullable
|
||||
*/
|
||||
package de.maxhenkel.voicechat.plugins.impl.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.Group;
|
||||
import de.maxhenkel.voicechat.api.VoicechatConnection;
|
||||
import de.maxhenkel.voicechat.api.events.LeaveGroupEvent;
|
||||
import de.maxhenkel.voicechat.plugins.impl.events.GroupEventImpl;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public class LeaveGroupEventImpl
|
||||
extends GroupEventImpl
|
||||
implements LeaveGroupEvent {
|
||||
public LeaveGroupEventImpl(@Nullable Group group, VoicechatConnection connection) {
|
||||
super(group, connection);
|
||||
}
|
||||
}
|
||||
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.annotation.Nullable
|
||||
*/
|
||||
package de.maxhenkel.voicechat.plugins.impl.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.VoicechatConnection;
|
||||
import de.maxhenkel.voicechat.api.events.LocationalSoundPacketEvent;
|
||||
import de.maxhenkel.voicechat.api.packets.LocationalSoundPacket;
|
||||
import de.maxhenkel.voicechat.plugins.impl.events.SoundPacketEventImpl;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public class LocationalSoundPacketEventImpl
|
||||
extends SoundPacketEventImpl<LocationalSoundPacket>
|
||||
implements LocationalSoundPacketEvent {
|
||||
public LocationalSoundPacketEventImpl(LocationalSoundPacket packet, @Nullable VoicechatConnection senderConnection, VoicechatConnection receiverConnection, String source) {
|
||||
super(packet, senderConnection, receiverConnection, source);
|
||||
}
|
||||
}
|
||||
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.plugins.impl.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.VoicechatConnection;
|
||||
import de.maxhenkel.voicechat.api.events.MicrophonePacketEvent;
|
||||
import de.maxhenkel.voicechat.api.packets.MicrophonePacket;
|
||||
import de.maxhenkel.voicechat.plugins.impl.events.PacketEventImpl;
|
||||
|
||||
public class MicrophonePacketEventImpl
|
||||
extends PacketEventImpl<MicrophonePacket>
|
||||
implements MicrophonePacketEvent {
|
||||
public MicrophonePacketEventImpl(MicrophonePacket packet, VoicechatConnection connection) {
|
||||
super(packet, connection, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.annotation.Nullable
|
||||
*/
|
||||
package de.maxhenkel.voicechat.plugins.impl.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.VoicechatConnection;
|
||||
import de.maxhenkel.voicechat.api.events.PacketEvent;
|
||||
import de.maxhenkel.voicechat.api.packets.Packet;
|
||||
import de.maxhenkel.voicechat.plugins.impl.events.ServerEventImpl;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public class PacketEventImpl<T extends Packet>
|
||||
extends ServerEventImpl
|
||||
implements PacketEvent<T> {
|
||||
private final T packet;
|
||||
@Nullable
|
||||
private final VoicechatConnection receiverConnection;
|
||||
@Nullable
|
||||
private final VoicechatConnection senderConnection;
|
||||
|
||||
public PacketEventImpl(T packet, @Nullable VoicechatConnection senderConnection, @Nullable VoicechatConnection receiverConnection) {
|
||||
this.packet = packet;
|
||||
this.senderConnection = senderConnection;
|
||||
this.receiverConnection = receiverConnection;
|
||||
}
|
||||
|
||||
@Override
|
||||
public T getPacket() {
|
||||
return this.packet;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
public VoicechatConnection getReceiverConnection() {
|
||||
return this.receiverConnection;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
public VoicechatConnection getSenderConnection() {
|
||||
return this.senderConnection;
|
||||
}
|
||||
}
|
||||
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.plugins.impl.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.VoicechatConnection;
|
||||
import de.maxhenkel.voicechat.api.events.PlayerConnectedEvent;
|
||||
import de.maxhenkel.voicechat.plugins.impl.VoicechatConnectionImpl;
|
||||
import de.maxhenkel.voicechat.plugins.impl.events.ServerEventImpl;
|
||||
|
||||
public class PlayerConnectedEventImpl
|
||||
extends ServerEventImpl
|
||||
implements PlayerConnectedEvent {
|
||||
protected VoicechatConnectionImpl connection;
|
||||
|
||||
public PlayerConnectedEventImpl(VoicechatConnectionImpl connection) {
|
||||
this.connection = connection;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VoicechatConnection getConnection() {
|
||||
return this.connection;
|
||||
}
|
||||
}
|
||||
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.plugins.impl.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.events.PlayerDisconnectedEvent;
|
||||
import de.maxhenkel.voicechat.plugins.impl.events.ServerEventImpl;
|
||||
import java.util.UUID;
|
||||
|
||||
public class PlayerDisconnectedEventImpl
|
||||
extends ServerEventImpl
|
||||
implements PlayerDisconnectedEvent {
|
||||
protected UUID player;
|
||||
|
||||
public PlayerDisconnectedEventImpl(UUID player) {
|
||||
this.player = player;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UUID getPlayerUuid() {
|
||||
return this.player;
|
||||
}
|
||||
}
|
||||
|
||||
+59
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.annotation.Nullable
|
||||
* org.bukkit.entity.Player
|
||||
*/
|
||||
package de.maxhenkel.voicechat.plugins.impl.events;
|
||||
|
||||
import de.maxhenkel.voicechat.Voicechat;
|
||||
import de.maxhenkel.voicechat.api.VoicechatConnection;
|
||||
import de.maxhenkel.voicechat.api.events.PlayerStateChangedEvent;
|
||||
import de.maxhenkel.voicechat.plugins.impl.VoicechatConnectionImpl;
|
||||
import de.maxhenkel.voicechat.plugins.impl.events.ServerEventImpl;
|
||||
import de.maxhenkel.voicechat.voice.common.PlayerState;
|
||||
import java.util.UUID;
|
||||
import javax.annotation.Nullable;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class PlayerStateChangedEventImpl
|
||||
extends ServerEventImpl
|
||||
implements PlayerStateChangedEvent {
|
||||
protected final PlayerState state;
|
||||
@Nullable
|
||||
protected VoicechatConnectionImpl connection;
|
||||
|
||||
public PlayerStateChangedEventImpl(PlayerState state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isDisabled() {
|
||||
return this.state.isDisabled();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isDisconnected() {
|
||||
return this.state.isDisconnected();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UUID getPlayerUuid() {
|
||||
return this.state.getUuid();
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
public VoicechatConnection getConnection() {
|
||||
if (this.connection == null) {
|
||||
Player player = Voicechat.INSTANCE.getServer().getPlayer(this.state.getUuid());
|
||||
if (player == null) {
|
||||
return null;
|
||||
}
|
||||
this.connection = VoicechatConnectionImpl.fromPlayer(player);
|
||||
}
|
||||
return this.connection;
|
||||
}
|
||||
}
|
||||
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.plugins.impl.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.VolumeCategory;
|
||||
import de.maxhenkel.voicechat.api.events.RegisterVolumeCategoryEvent;
|
||||
import de.maxhenkel.voicechat.plugins.impl.events.VolumeCategoryEventImpl;
|
||||
|
||||
public class RegisterVolumeCategoryEventImpl
|
||||
extends VolumeCategoryEventImpl
|
||||
implements RegisterVolumeCategoryEvent {
|
||||
public RegisterVolumeCategoryEventImpl(VolumeCategory category) {
|
||||
super(category);
|
||||
}
|
||||
}
|
||||
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.plugins.impl.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.Group;
|
||||
import de.maxhenkel.voicechat.api.events.RemoveGroupEvent;
|
||||
import de.maxhenkel.voicechat.plugins.impl.events.GroupEventImpl;
|
||||
|
||||
public class RemoveGroupEventImpl
|
||||
extends GroupEventImpl
|
||||
implements RemoveGroupEvent {
|
||||
public RemoveGroupEventImpl(Group group) {
|
||||
super(group, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isCancellable() {
|
||||
return super.isCancellable() && this.group.isPersistent();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.plugins.impl.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.VoicechatServerApi;
|
||||
import de.maxhenkel.voicechat.api.events.ServerEvent;
|
||||
import de.maxhenkel.voicechat.plugins.impl.VoicechatServerApiImpl;
|
||||
import de.maxhenkel.voicechat.plugins.impl.events.EventImpl;
|
||||
|
||||
public class ServerEventImpl
|
||||
extends EventImpl
|
||||
implements ServerEvent {
|
||||
@Override
|
||||
public VoicechatServerApi getVoicechat() {
|
||||
return VoicechatServerApiImpl.instance();
|
||||
}
|
||||
}
|
||||
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.annotation.Nullable
|
||||
*/
|
||||
package de.maxhenkel.voicechat.plugins.impl.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.VoicechatConnection;
|
||||
import de.maxhenkel.voicechat.api.events.SoundPacketEvent;
|
||||
import de.maxhenkel.voicechat.api.packets.Packet;
|
||||
import de.maxhenkel.voicechat.plugins.impl.events.PacketEventImpl;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public class SoundPacketEventImpl<T extends Packet>
|
||||
extends PacketEventImpl<T>
|
||||
implements SoundPacketEvent<T> {
|
||||
private final String source;
|
||||
|
||||
public SoundPacketEventImpl(T packet, @Nullable VoicechatConnection senderConnection, @Nullable VoicechatConnection receiverConnection, String source) {
|
||||
super(packet, senderConnection, receiverConnection);
|
||||
this.source = source;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getSource() {
|
||||
return this.source;
|
||||
}
|
||||
}
|
||||
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.annotation.Nullable
|
||||
*/
|
||||
package de.maxhenkel.voicechat.plugins.impl.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.VoicechatConnection;
|
||||
import de.maxhenkel.voicechat.api.events.StaticSoundPacketEvent;
|
||||
import de.maxhenkel.voicechat.api.packets.StaticSoundPacket;
|
||||
import de.maxhenkel.voicechat.plugins.impl.events.SoundPacketEventImpl;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public class StaticSoundPacketEventImpl
|
||||
extends SoundPacketEventImpl<StaticSoundPacket>
|
||||
implements StaticSoundPacketEvent {
|
||||
public StaticSoundPacketEventImpl(StaticSoundPacket packet, @Nullable VoicechatConnection senderConnection, VoicechatConnection receiverConnection, String source) {
|
||||
super(packet, senderConnection, receiverConnection, source);
|
||||
}
|
||||
}
|
||||
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.plugins.impl.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.VolumeCategory;
|
||||
import de.maxhenkel.voicechat.api.events.UnregisterVolumeCategoryEvent;
|
||||
import de.maxhenkel.voicechat.plugins.impl.events.VolumeCategoryEventImpl;
|
||||
|
||||
public class UnregisterVolumeCategoryEventImpl
|
||||
extends VolumeCategoryEventImpl
|
||||
implements UnregisterVolumeCategoryEvent {
|
||||
public UnregisterVolumeCategoryEventImpl(VolumeCategory category) {
|
||||
super(category);
|
||||
}
|
||||
}
|
||||
|
||||
+54
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.annotation.Nullable
|
||||
*/
|
||||
package de.maxhenkel.voicechat.plugins.impl.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.VoicechatConnection;
|
||||
import de.maxhenkel.voicechat.api.events.VoiceDistanceEvent;
|
||||
import de.maxhenkel.voicechat.api.packets.MicrophonePacket;
|
||||
import de.maxhenkel.voicechat.plugins.impl.events.ServerEventImpl;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public class VoiceDistanceEventImpl
|
||||
extends ServerEventImpl
|
||||
implements VoiceDistanceEvent {
|
||||
private final MicrophonePacket packet;
|
||||
private final VoicechatConnection senderConnection;
|
||||
private float distance;
|
||||
|
||||
public VoiceDistanceEventImpl(MicrophonePacket packet, VoicechatConnection senderConnection, float distance) {
|
||||
this.packet = packet;
|
||||
this.senderConnection = senderConnection;
|
||||
this.distance = distance;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isCancellable() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public MicrophonePacket getPacket() {
|
||||
return this.packet;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
public VoicechatConnection getSenderConnection() {
|
||||
return this.senderConnection;
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getDistance() {
|
||||
return this.distance;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setDistance(float distance) {
|
||||
this.distance = distance;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* org.bukkit.entity.Player
|
||||
*/
|
||||
package de.maxhenkel.voicechat.plugins.impl.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.ServerPlayer;
|
||||
import de.maxhenkel.voicechat.api.events.VoiceHostEvent;
|
||||
import de.maxhenkel.voicechat.plugins.impl.ServerPlayerImpl;
|
||||
import de.maxhenkel.voicechat.plugins.impl.events.ServerEventImpl;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class VoiceHostEventImpl
|
||||
extends ServerEventImpl
|
||||
implements VoiceHostEvent {
|
||||
private final ServerPlayerImpl player;
|
||||
private String voiceHost;
|
||||
|
||||
public VoiceHostEventImpl(Player player, String voiceHost) {
|
||||
this.player = new ServerPlayerImpl(player);
|
||||
this.voiceHost = voiceHost;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getVoiceHost() {
|
||||
return this.voiceHost;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setVoiceHost(String voiceHost) {
|
||||
this.voiceHost = voiceHost;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ServerPlayer getPlayer() {
|
||||
return this.player;
|
||||
}
|
||||
}
|
||||
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.plugins.impl.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.events.VoicechatServerStartedEvent;
|
||||
import de.maxhenkel.voicechat.plugins.impl.events.ServerEventImpl;
|
||||
|
||||
public class VoicechatServerStartedEventImpl
|
||||
extends ServerEventImpl
|
||||
implements VoicechatServerStartedEvent {
|
||||
@Override
|
||||
public boolean isCancellable() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.annotation.Nullable
|
||||
*/
|
||||
package de.maxhenkel.voicechat.plugins.impl.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.VoicechatSocket;
|
||||
import de.maxhenkel.voicechat.api.events.VoicechatServerStartingEvent;
|
||||
import de.maxhenkel.voicechat.plugins.impl.events.ServerEventImpl;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public class VoicechatServerStartingEventImpl
|
||||
extends ServerEventImpl
|
||||
implements VoicechatServerStartingEvent {
|
||||
@Nullable
|
||||
private VoicechatSocket socketImplementation;
|
||||
|
||||
@Override
|
||||
public void setSocketImplementation(VoicechatSocket socket) {
|
||||
this.socketImplementation = socket;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
public VoicechatSocket getSocketImplementation() {
|
||||
return this.socketImplementation;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isCancellable() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.plugins.impl.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.events.VoicechatServerStoppedEvent;
|
||||
import de.maxhenkel.voicechat.plugins.impl.events.ServerEventImpl;
|
||||
|
||||
public class VoicechatServerStoppedEventImpl
|
||||
extends ServerEventImpl
|
||||
implements VoicechatServerStoppedEvent {
|
||||
@Override
|
||||
public boolean isCancellable() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.plugins.impl.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.VolumeCategory;
|
||||
import de.maxhenkel.voicechat.api.events.VolumeCategoryEvent;
|
||||
import de.maxhenkel.voicechat.plugins.impl.events.ServerEventImpl;
|
||||
|
||||
public class VolumeCategoryEventImpl
|
||||
extends ServerEventImpl
|
||||
implements VolumeCategoryEvent {
|
||||
private final VolumeCategory category;
|
||||
|
||||
public VolumeCategoryEventImpl(VolumeCategory category) {
|
||||
this.category = category;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VolumeCategory getVolumeCategory() {
|
||||
return this.category;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isCancellable() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user