Update dependencies and Gradle

This commit is contained in:
Telesphoreo 2023-03-02 23:06:37 -06:00
parent 158ce52320
commit 8fa05e3838
6 changed files with 39 additions and 40 deletions

View File

@ -1,7 +1,7 @@
plugins { plugins {
id "java" id "java"
id "maven-publish" id "maven-publish"
id "com.github.johnrengelman.shadow" version "7.1.2" id "com.github.johnrengelman.shadow" version "8.1.0"
} }
group = "dev.plex" group = "dev.plex"

Binary file not shown.

View File

@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.1-bin.zip
networkTimeout=10000 networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

View File

@ -7,7 +7,7 @@ version = rootProject.version
description = "Plex-Velocity" description = "Plex-Velocity"
repositories { repositories {
maven { url = uri("https://papermc.io/repo/repository/maven-public/") } maven { url = uri("https://repo.papermc.io/repository/maven-public/") }
} }
tasks.getByName<Jar>("jar") { tasks.getByName<Jar>("jar") {
@ -37,9 +37,9 @@ publishing {
} }
dependencies { dependencies {
compileOnly("org.projectlombok:lombok:1.18.24") compileOnly("org.projectlombok:lombok:1.18.26")
annotationProcessor("org.projectlombok:lombok:1.18.24") annotationProcessor("org.projectlombok:lombok:1.18.26")
compileOnly("org.json:json:20220924") compileOnly("org.json:json:20230227")
compileOnly("com.velocitypowered:velocity-api:3.1.2-SNAPSHOT") compileOnly("com.velocitypowered:velocity-api:3.1.2-SNAPSHOT")
annotationProcessor("com.velocitypowered:velocity-api:3.1.2-SNAPSHOT") annotationProcessor("com.velocitypowered:velocity-api:3.1.2-SNAPSHOT")
} }

View File

@ -1,33 +1,33 @@
plugins { plugins {
id "net.minecrell.plugin-yml.bukkit" version "0.5.2" id "net.minecrell.plugin-yml.bukkit" version "0.5.3"
} }
dependencies { dependencies {
library "org.projectlombok:lombok:1.18.24" library "org.projectlombok:lombok:1.18.26"
annotationProcessor "org.projectlombok:lombok:1.18.24" annotationProcessor "org.projectlombok:lombok:1.18.26"
library "org.json:json:20220924" library "org.json:json:20230227"
library "commons-io:commons-io:2.11.0" library "commons-io:commons-io:2.11.0"
library "dev.morphia.morphia:morphia-core:2.2.10" library "dev.morphia.morphia:morphia-core:2.3.0"
library "redis.clients:jedis:4.3.1" library "redis.clients:jedis:4.3.1"
library "org.mariadb.jdbc:mariadb-java-client:3.1.0" library "org.mariadb.jdbc:mariadb-java-client:3.1.2"
library "com.zaxxer:HikariCP:5.0.1" library "com.zaxxer:HikariCP:5.0.1"
library "org.apache.httpcomponents.client5:httpclient5:5.2" library "org.apache.httpcomponents.client5:httpclient5:5.2.1"
library "org.apache.commons:commons-lang3:3.12.0" library "org.apache.commons:commons-lang3:3.12.0"
library "org.apache.maven.resolver:maven-resolver-api:1.9.1" library "org.apache.maven.resolver:maven-resolver-api:1.9.5"
library "org.apache.maven.resolver:maven-resolver-impl:1.9.1" library "org.apache.maven.resolver:maven-resolver-impl:1.9.5"
library "org.apache.maven.resolver:maven-resolver-connector-basic:1.9.1" library "org.apache.maven.resolver:maven-resolver-connector-basic:1.9.5"
library "org.apache.maven.resolver:maven-resolver-transport-http:1.9.1" library "org.apache.maven.resolver:maven-resolver-transport-http:1.9.5"
library "org.apache.maven:maven-resolver-provider:3.8.5" library "org.apache.maven:maven-resolver-provider:3.9.0"
library "org.eclipse.jetty:jetty-server:11.0.12" library "org.eclipse.jetty:jetty-server:11.0.14"
library "org.eclipse.jetty:jetty-servlet:11.0.12" library "org.eclipse.jetty:jetty-servlet:11.0.14"
library "org.eclipse.jetty:jetty-proxy:11.0.12" library "org.eclipse.jetty:jetty-proxy:11.0.14"
library "com.google.code.gson:gson:2.10" library "com.google.code.gson:gson:2.10.1"
compileOnly "io.papermc.paper:paper-api:1.19.2-R0.1-SNAPSHOT" compileOnly "io.papermc.paper:paper-api:1.19.3-R0.1-SNAPSHOT"
compileOnly("com.github.MilkBowl:VaultAPI:1.7.1") { compileOnly("com.github.MilkBowl:VaultAPI:1.7.1") {
exclude group: "org.bukkit", module: "bukkit" exclude group: "org.bukkit", module: "bukkit"
} }
implementation "org.bstats:bstats-base:3.0.0" implementation "org.bstats:bstats-base:3.0.1"
implementation "org.bstats:bstats-bukkit:3.0.0" implementation "org.bstats:bstats-bukkit:3.0.1"
} }
group = rootProject.group group = rootProject.group

View File

@ -3,8 +3,8 @@ package dev.plex.storage.player;
import dev.morphia.Datastore; import dev.morphia.Datastore;
import dev.morphia.query.Query; import dev.morphia.query.Query;
import dev.morphia.query.Update; import dev.morphia.query.Update;
import dev.morphia.query.experimental.filters.Filters; import dev.morphia.query.filters.Filters;
import dev.morphia.query.experimental.updates.UpdateOperators; import dev.morphia.query.updates.UpdateOperators;
import dev.plex.Plex; import dev.plex.Plex;
import dev.plex.player.PlexPlayer; import dev.plex.player.PlexPlayer;
import java.util.Collections; import java.util.Collections;
@ -111,19 +111,18 @@ public class MongoPlayerData
Query<PlexPlayer> filter = datastore.find(PlexPlayer.class) Query<PlexPlayer> filter = datastore.find(PlexPlayer.class)
.filter(Filters.eq("uuid", player.getUuid())); .filter(Filters.eq("uuid", player.getUuid()));
Update<PlexPlayer> updateOps = filter Update<PlexPlayer> updateOps = filter.update(
.update( UpdateOperators.set("name", player.getName()),
UpdateOperators.set("name", player.getName()), UpdateOperators.set("loginMessage", player.getLoginMessage()),
UpdateOperators.set("loginMessage", player.getLoginMessage()), UpdateOperators.set("prefix", player.getPrefix()),
UpdateOperators.set("prefix", player.getPrefix()), UpdateOperators.set("vanished", player.isVanished()),
UpdateOperators.set("vanished", player.isVanished()), UpdateOperators.set("commandSpy", player.isCommandSpy()),
UpdateOperators.set("commandSpy", player.isCommandSpy()), UpdateOperators.set("adminActive", player.isAdminActive()),
UpdateOperators.set("adminActive", player.isAdminActive()), UpdateOperators.set("rank", player.getRank().toLowerCase()),
UpdateOperators.set("rank", player.getRank().toLowerCase()), UpdateOperators.set("ips", player.getIps()),
UpdateOperators.set("ips", player.getIps()), UpdateOperators.set("coins", player.getCoins()),
UpdateOperators.set("coins", player.getCoins()), UpdateOperators.set("punishments", player.getPunishments()),
UpdateOperators.set("punishments", player.getPunishments()), UpdateOperators.set("notes", player.getNotes()));
UpdateOperators.set("notes", player.getNotes()));
updateOps.execute(); updateOps.execute();
} }