Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
4drian3d committed Oct 17, 2021
1 parent e5c887d commit a45fcc6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
11 changes: 5 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,18 @@ dependencies {
}

group = "net.dreamerzero.ClientCatcher"
version = "2.2.0"
version = "2.2.1"
description = "A simple Velocity plugin to catch the client version"
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}


blossom{
val constants = "src/main/java/net/dreamerzero/clientcatcher/utils/Constants.java"
replaceToken("{name}", rootProject.name, constants)
replaceToken("{version}", version, constants)
replaceToken("{description}", description, constants)
val constants = "src/main/java/net/dreamerzero/clientcatcher/utils/Constants.java"
replaceToken("{name}", rootProject.name, constants)
replaceToken("{version}", version, constants)
replaceToken("{description}", description, constants)
replaceToken("{url}", "https://polymart.org/resource/clientcatcher-mods-support.1388", constants)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ public static void registerBrigadierCommand(ProxyServer server, Yaml config){
clientCommand.addChild(playerArgument);

BrigadierCommand bCommand = new BrigadierCommand(clientCommand);

CommandMeta meta = server.getCommandManager().metaBuilder(bCommand).aliases("vclient","cliente").build();

server.getCommandManager().register(meta, bCommand);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ public void onClientBrand(PlayerClientBrandEvent event){
Player player = event.getPlayer();
ModdedClient mclient = ModdedClient.getModdedClient(player.getUniqueId());
mclient.setClient(event.getBrand());

}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package net.dreamerzero.clientcatcher.listener;

import java.util.UUID;

import com.velocitypowered.api.event.Subscribe;
import com.velocitypowered.api.event.connection.DisconnectEvent;

Expand All @@ -8,8 +10,9 @@
public class LeaveListener {
@Subscribe
public void onPlayerLeave(DisconnectEvent event){
if(ModdedClient.isModdedClient(event.getPlayer().getUniqueId())){
ModdedClient.moddedClients.remove(event.getPlayer().getUniqueId());
final UUID playerUuid = event.getPlayer().getUniqueId();
if(ModdedClient.isModdedClient(playerUuid)){
ModdedClient.moddedClients.remove(playerUuid);
}
}
}

0 comments on commit a45fcc6

Please sign in to comment.