Giter VIP home page Giter VIP logo

Comments (11)

Hopefuls avatar Hopefuls commented on July 16, 2024

Use the UUIDManager when working with uuids and advancedban, check the javadocs

from advancedban.

Hopefuls avatar Hopefuls commented on July 16, 2024

Also, make sure to not include the dependency in your artifact, always tell your build tool that it is provided (such as on maven through <scope>provided</scope>)

from advancedban.

sujyrokimora avatar sujyrokimora commented on July 16, 2024

It still does the same thing cant find the class -- https://pastebin.com/GrJC4hWX
Like this?

        <dependency>
            <groupId>com.github.DevLeoko.AdvancedBan</groupId>
            <artifactId>AdvancedBan-Bukkit</artifactId>
            <version>v2.3.0</version>
            <scope>provided</scope>
        </dependency>

from advancedban.

Hopefuls avatar Hopefuls commented on July 16, 2024

That error indicates that advancedban might not even be installed on your server.

Can you tell me more about your setup? You mentioned using spigot, is advancedban on it?

from advancedban.

Hopefuls avatar Hopefuls commented on July 16, 2024

Also, please refer to the readme on the GitHub repo, it seems like you're trying to use the non-core part of advancedban, which does not include the required class.

from advancedban.

sujyrokimora avatar sujyrokimora commented on July 16, 2024

That error indicates that advancedban might not even be installed on your server.

Can you tell me more about your setup? You mentioned using spigot, is advancedban on it?

image
I'm running a test Server on Paper

from advancedban.

sujyrokimora avatar sujyrokimora commented on July 16, 2024

Also, please refer to the readme on the GitHub repo, it seems like you're trying to use the non-core part of advancedban, which does not include the required class.
If I do it like the readme it will give me this error
Maven logs https://pastebin.com/UEAcJ92Q

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>network.meandtheboys</groupId>
  <artifactId>xavi</artifactId>
  <version>0.1-ALPHA</version>
  <packaging>jar</packaging>

  <name>tools</name>

  <properties>
    <java.version>1.8</java.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.8.1</version>
        <configuration>
          <source>${java.version}</source>
          <target>${java.version}</target>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-shade-plugin</artifactId>
        <version>3.2.4</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
    <resources>
      <resource>
        <directory>src/main/resources</directory>
        <filtering>true</filtering>
      </resource>
    </resources>
  </build>

  <repositories>
      <repository>
          <id>jitpack.io</id>
          <url>https://jitpack.io</url>
      </repository>
      <repository>
          <id>papermc-repo</id>
          <url>https://repo.papermc.io/repository/maven-public/</url>
      </repository>
      <repository>
          <id>sonatype</id>
          <url>https://oss.sonatype.org/content/groups/public/</url>
      </repository>

  </repositories>

  <dependencies>
      <dependency>
          <groupId>com.github.DevLeoko.AdvancedBan</groupId>
          <artifactId>AdvancedBan</artifactId>
          <version>v2.3.0</version>
          <scope>provided</scope>
      </dependency>
      <dependency>
          <groupId>io.papermc.paper</groupId>
          <artifactId>paper-api</artifactId>
          <version>1.20.2-R0.1-SNAPSHOT</version>
          <scope>provided</scope>
      </dependency>
  </dependencies>
</project>

from advancedban.

Hopefuls avatar Hopefuls commented on July 16, 2024

Something wrong with your maven setup then? Jitpack contains the AdvancedBan dependencies here: https://jitpack.io/#DevLeoko/AdvancedBan

from advancedban.

sujyrokimora avatar sujyrokimora commented on July 16, 2024

Maven finds paper i dont know why it cant to the same for AdanvancedBans

from advancedban.

Hopefuls avatar Hopefuls commented on July 16, 2024

Otherwise try clearing your maven cache

from advancedban.

sujyrokimora avatar sujyrokimora commented on July 16, 2024

Wtf he trying to download it from the wrong place even so i set the repo for it

      <repository>
          <id>jitpack.io</id>
          <url>https://jitpack.io</url>
      </repository>
Downloading from sonatype: https://oss.sonatype.org/content/groups/public/com/github/DevLeoko/AdvancedBan/AdvancedBan/v2.3.0/AdvancedBan-v2.3.0.jar
Downloading from central: https://repo.maven.apache.org/maven2/com/github/DevLeoko/AdvancedBan/AdvancedBan/v2.3.0/AdvancedBan-v2.3.0.jar

EDIT: i have no idea but it still tries in jit but fails

[ERROR] Failed to execute goal on project xavi: Could not resolve dependencies for project network.meandtheboys:xavi:jar:0.1-ALPHA: The following artifacts could not be resolved: com.github.DevLeoko.AdvancedBan:AdvancedBan:jar:v2.3.0 (absent): com.github.DevLeoko.AdvancedBan:AdvancedBan:jar:v2.3.0 was not found in https://jitpack.io during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of jitpack.io has elapsed or updates are forced -> [Help 1]

from advancedban.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.