bukkit

Maven not running with Spigot

馋奶兔 提交于 2021-01-28 17:12:00
问题 I'm trying to use MongoDB in a Spigot 1.16.1 Plugin and I'm having Problems with my maven imports. In my IDE (EclipseIDE) there are no Errors. If I export the Plugin and reload the Server the following error appears: pom.xml <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 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>LeeCraft-Core_hj.2_v.2

Maven not running with Spigot

余生长醉 提交于 2021-01-28 17:10:00
问题 I'm trying to use MongoDB in a Spigot 1.16.1 Plugin and I'm having Problems with my maven imports. In my IDE (EclipseIDE) there are no Errors. If I export the Plugin and reload the Server the following error appears: pom.xml <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 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>LeeCraft-Core_hj.2_v.2

Maven not running with Spigot

爱⌒轻易说出口 提交于 2021-01-28 17:01:53
问题 I'm trying to use MongoDB in a Spigot 1.16.1 Plugin and I'm having Problems with my maven imports. In my IDE (EclipseIDE) there are no Errors. If I export the Plugin and reload the Server the following error appears: pom.xml <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 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>LeeCraft-Core_hj.2_v.2

Calling a function every 2 minutes

吃可爱长大的小学妹 提交于 2021-01-28 06:03:51
问题 I'm working on a plugin for a Minecraft server which automatically breaks melons for melon farms. It loops through all the blocks in all players' current chunks, and breaks the blocks that are melons. At first, I attempted to continuously call this function with a while loop in the onEnable method, however that caused the server to time/lag out. Without the while loop (only calling the function once from the onEnable ), the plugin worked fine. Every time I reloaded the server, the function

Calling a function every 2 minutes

折月煮酒 提交于 2021-01-28 05:56:59
问题 I'm working on a plugin for a Minecraft server which automatically breaks melons for melon farms. It loops through all the blocks in all players' current chunks, and breaks the blocks that are melons. At first, I attempted to continuously call this function with a while loop in the onEnable method, however that caused the server to time/lag out. Without the while loop (only calling the function once from the onEnable ), the plugin worked fine. Every time I reloaded the server, the function

WebSocket Slow - Java and JavaScript

☆樱花仙子☆ 提交于 2020-05-13 14:20:17
问题 I am dealing with encoding of a minecraft plugin. But now I have the following problem, my websocket server respond very very slow. Here is my WebSocketClass (For the plugin) // socket server class package me.mickerd.pcoc; import java.io.IOException; import java.net.InetSocketAddress; import java.net.UnknownHostException; import java.util.Collection; import org.bukkit.Bukkit; import org.java_websocket.WebSocket; import org.java_websocket.WebSocketImpl; import org.java_websocket.handshake

Unable to find Clojure

独自空忆成欢 提交于 2020-02-01 04:50:25
问题 EDIT: There are some other discussions going on that are related to this question on the Bukkit forums and on Github. So, I know one or two people have attempted this with no luck.. But I think I'm almost there. One problem: I don't know Java, so this is a little alien to me. Anyway.. So, I made a simple class in Clojure, as follows: (ns com.gdude2002.ClojurePlugin.mainclj (:gen-class :name com.gdude2002.ClojurePlugin.mainclj :extends org.bukkit.plugin.java.JavaPlugin) (:import org.bukkit

How do I pass instances of the main class to multiple listeners?

拈花ヽ惹草 提交于 2020-01-14 18:47:42
问题 So, I've been working on a plugin. It was going great, until I stumbled on an issue. I'm using separate Listener ( implements Listener ) classes to manage my events, but for some of them, I need to access JavaPlugin methods, like for getting the configuration file. Using the constructor below in my listener class works, but if I try to use the same thing in another class, Eclipse gives it a lovely red underline, saying blank final field plugin may have not been initialized private final

How do I pass instances of the main class to multiple listeners?

旧巷老猫 提交于 2020-01-14 18:47:09
问题 So, I've been working on a plugin. It was going great, until I stumbled on an issue. I'm using separate Listener ( implements Listener ) classes to manage my events, but for some of them, I need to access JavaPlugin methods, like for getting the configuration file. Using the constructor below in my listener class works, but if I try to use the same thing in another class, Eclipse gives it a lovely red underline, saying blank final field plugin may have not been initialized private final

Java ArrayList IndexOutOfBoundsException Index: 1, Size: 1

坚强是说给别人听的谎言 提交于 2020-01-11 09:20:27
问题 I'm attempting to read a certain file in Java and make it into a multidimensional array. Whenever I read a line of code from the script, The console says: Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 I know that this error is caused when the coding can't reach the specific index, but I have no idea how to fix it at the moment. Here is an example of my coding. int x = 1; while (scanner.hasNextLine()) { String line = scanner.nextLine(); //Explode string line String[] Guild