I’m trying to split code in classes. This code is sending to console text with B letter in start of line, but shouldn’t. Code: in ConsoleWrapper.java but if console.sendMessage((“§c[” + pluginName + “]” + msg)); executing in main class, letter B doesn’t appeat in console. output with cw.notify output with console.sendMessage() Answer It’s not recommended to write your own §
Tag: plugins
Why does this code only output “Test” when I have the boots on but, it never outputs “no” when I take the boots off?
Here is the code: To specify, when I put the boots on, and move, then it outputs Test. When I take them off, it outputs nothing at all. Please tell me what I am doing wrong, Thanks! Answer Because you don’t have any boots on. I’ll break it down line for line 🙂 The first three lines are obvious Here
Errors with importing JavaPlugin to Eclipse
I want to make a plugin for Minecraft, but I have problem with importing JavaPlugin into Eclipse. When I type I get these 2 errors. I have tried restarting my computer, reinstalling Eclipse, downloading all over again but nothing works. I am sending a link to a screenshot. https://paste.pics/GHDFU Please help, Thank you in advance. Answer First make sure you
Java Spring REST Controller classes as runtime plugins
currently I want to implement a plugin system into my spring application. The idea is that there is a main spring application which monitors a folder for new jar files. When I put a new jar file in the folder then the main appliation should automatically lift up the RestController classes for usage without downtime. In the plugin jar there
How to remove “extras” from using java gradle shadow plugin
I’m using the gradle shadow plugin in my java project. I used the following code to get rid of all the dependencies I could. However, I’ve got all these extra files in my jar file. I want to remove everything except what’s in the “eu” folder and the “plugin.yml”. How can I do this? Answer Don’t use shadowJar {} unless
Is there a better way than a bunch of if statements to call my methods?
I am currently writing a plugin for SpigotMC/Minecraft. It is written in Java. In my code, found on my Github I am attempting to call a different method depending on what the input of the player was. My current way of doing this is grabbing the command they executed, then just using and if else if statement which looks something
How to change speed of Entities?
How can I change the speed of entities in Minecraft using plugins? I just recently started making plugins for Minecraft, so I will be very grateful if you can help me (I use spigot) Answer This forum post may solve your problem. A dude asked the same question as you and gave some code snippets to help. I wish I
How do you parameterize the Spring Boot Gradle plugin?
We are looking to migrate from Maven to Gradle, and have worked through most of the challenges you would expect for replacing the parent POM concept. There is one sticky point that we haven’t figured out yet. We need to specify the version of Spring Boot we are using globally, but I run into invalid build file problems with both
Eclipse 2020-09: org/omg/CORBA/UserException when trying to run WebSphere AS 8.5 Servers using Plugin
Today trying to solve an error on Eclipse startup, I have found a solution that said to reinstall the new version. So I have installed the new version, with which I opened my previous Workspace. The actual version is: Eclipse IDE for Enterprise Java Developers Version: 2020-09 (4.17.0) Build id: 20200910-1200 Now I have a bad situation in the environment
PlayerChatTabCompleteEvent deprecated in Spigot 1.16.1
I could not find a replacement for the deprecated PlayerChatTabCompleteEvent that is deprecated in the newest Spigot 1.16.1 Version. I already checked the docs, but could not find anything related to that. And no, I don’t want to use a @SuppressWarnings(“deprecation”) at the beginning of my event. Answer There is no replacement. Since 1.13 the client does not tell the