#help-archived

1 messages Β· Page 38 of 1

paper compass
#

@subtle blade I don't want to use vault tbh

#

I just find it easier to make my own

subtle blade
#

Is this a public plugin?

paper compass
#

nope

subtle blade
#

Then you're fine

old barn
#

Does anyone know how i give cash to the player with the Playerpoints API?

dusty topaz
hoary parcel
#

If you just gonna use list map

silk bane
#

isn't a Map<String, String> a jsonobject

hoary parcel
#

Why not just use jsonobject directly

#

Yeah

dusty topaz
#

i'm going to do other stuffi n the class

#

just want to load it in first

hoary parcel
#

You sure it's freezing?

dusty topaz
#

yep

hoary parcel
#

And not throwing an exception you hide?

dusty topaz
#

uhh

silk bane
#

try pausing it in a debugger

hoary parcel
#

This is the perfect time to attach a debugger ;)

dusty topaz
#

it gets the raw content

#

there is no other try catch

#

so i'd assume not, but I can try?

wraith dew
#

if theres no try catch then the exception should have showed if there was one

silk cape
#

Who can help me

radiant pollen
#

?ask

worldly heathBOT
#

If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply.

silk cape
#

How i can remove from player for example blaze head

#

with command

rustic valley
#

How do I get the config from other class?

vale slate
#

Publish the instance of your main class via a getter

rustic valley
#

How? I'm just getting started

#

It's good I find how to do it. Thank you for your help

vale slate
#

damn, I just wrote it xD

#

nP

rustic valley
#
public static Main getInstance() {
        return instance;
    }
vale slate
#

yes

rustic valley
#

thanks πŸ˜€

silk cape
#

Does any1 know how to remove certain head from player

vale slate
#

cmd or plugin?

silk cape
#

anything

dusty topaz
silk bane
#

very exciting

silk cape
#

i need command for example /clear (player name) (item)

dusty topaz
#

also very confusing

#

i have no idea why

vale slate
#

the command is right, but it is very dangerous if you use it the wrong way it'll clear the whole inventory

silk cape
#

i have head with name

#

how to remove certain head

vale slate
#

do you want to remove all skulls regardless the type?

haughty stag
#

Configure doesn't help me at all.

vale slate
#

well you have an outdated version of Git

haughty stag
#

I dont know if you notice but I don't.

vale slate
#

2.26 < 2.4

haughty stag
#

Latest version is 2.26.2

#

So unless I time travel into the future

#

Also it is saying I am using 1.9.5

vale slate
#

oops yes I was fooled by sth

#

did you update it at some point?

#

why does it say 2.4 required

#

now I'm confused

haughty stag
#

I see what's happened. My initial install of git was the 32 bit installer

#

So the location was set to Program Files x86

#

But latest version is in just Program Files

vale slate
#

oh yes

#

I ran in that one myself

#

that's why I asked if it is your first version

pale plaza
#

who can tell me why i cant Blow threw Walls With huge cannons We have right plugins but it not work

dusty topaz
#

show the error?

#

??

frigid ember
#

Eclipse > intelligay

dusty topaz
#

because intellij thinks youre making a typo

#

it's not an error

frigid ember
#

Tbf we should all switch to notepad++ and skript

haughty stag
#

squiggly on the bottom is always a spelling error. Microsoft Word has prepared you for this.

dusty topaz
#

From my issue above, ended up fixing it with

#
Check check = new Check(gson.fromJson(content, new TypeToken<List<Map<String, String>>>(){}.getType()));
#

how lovely

frigid ember
dusty topaz
#

if you can't find it it is probably custom

frigid ember
#

i saw it on like 10 servers already

haughty stag
#

Took me 10 seconds gaspercino

#

To find it

frigid ember
#

which one is it?

near lodge
#

have you tried using google search?

frigid ember
#

yes but the ones i find dont have bossbar nor do they have teleport effects like this one

haughty stag
#

SneakyPanda please don't do that

vast hinge
#

sorry

haughty stag
#

?paste

near lodge
#

.paste

haughty stag
#

idk what the command is

worldly heathBOT
haughty stag
#

thanks

near lodge
#

idk if it was yours or mine tbh

frigid ember
#

its not those Ugleh

vast hinge
#
The type Reload must implement the inherited abstract method Executor.execute(Runnable)
#

wtf?

#

anyone know how to fix?

near lodge
#

Do you have a class called Reload that implements Runnable without a public void run() method?

vast hinge
#

run() method?

#

im new to this

#
public class Reload implements Executor{
#

this is the public class

haughty stag
#

There is more then 1 resource named WildTP

vast hinge
#

?

#

i dont want a ready made plugin

haughty stag
#

You want a custom made plugin?

near lodge
#

What are you trying to achieve

vast hinge
#

me?

haughty stag
#

Sneaky I am talking to @frigid ember

#

Sorry

vast hinge
#

oh ok

frigid ember
#

ugleh already found it now :3

near lodge
#

@vast hinge Executor has an abstract method called "execute" with the paramenter Runnable

#

implement that

vast hinge
#

im sorry what

near lodge
#

Do you know java?

frigid ember
vast hinge
#

not really

#

i started it an hour or so ago

near lodge
vast hinge
#

this is weird

#

cause my other commands are basically the same

#

but for reload it just dosent work

haughty stag
#

Whenever you implement an abstract class you need to inherent it's methods

vast hinge
#

wdym by inherent its methods?

haughty stag
#

You have commands that inherent CommandExecuter?

vast hinge
#

i pretty much copied everything from a youtube video except for this reload command

haughty stag
#

lol

vast hinge
#

so im just putting pieces together to form something use able

haughty stag
#

The youtube tutorials are there to teach you, not to copy and paste bud

vast hinge
#

i didnt literatly copy and paste

haughty stag
#

Unless this one was badly presented idk

vast hinge
#

it was

#

i didnt explain anything

#

it just showed me how to do it

#

lol

#

you have been typing for like 5 minutes now

frigid ember
#

hey im trying to get spigot onto my server (aternos) so i can run geyser, how do i set up stuff like this?

vast hinge
#

oh no

#

hes typing again

haughty stag
#

There are different way classes can interact with each other.
An abstract class is simply a way for a class to be used as a basis for other classes. It's intentions are never to be instantiated on its own.
JavaPlugin is an example of this. When you make your plugin you always have your main class extends JavaPlugin.

An interface class is so that all subclasses within it share a common set of methods. This lets you program parts of your code in a way where you don't have to worry about which of the subclasses you're working (or in your case other persons code your working with) works.

When a class implements another class it takes that class as an exact copy. For example, Dog might Implement Animal, but Bulldog extends Dog.

#

and I know that isn't a lot typed for 5+ minutes but I couldn't think of the best way to explain it πŸ˜›

subtle blade
#

Could have linked the Oracle docs

#

Lol

vale slate
#

^

haughty stag
#

Yeah they probably have a better description.

vale slate
#

but it is summed up pretty accurate

#

good job πŸ‘

vast hinge
#

thanks

#

but how do i fix this

#

i dont understand why its giving me an error

haughty stag
#

Did you post a paste?

vast hinge
#

no

naive stratus
#

I need a little advice here. I'm going to implement teams/clan/guild into project. Not sure if I should write it myself or something already exists that I can use now and will scale with what I am doing. Anything you could can recommend?

vast hinge
#

wait in text or?

haughty stag
#

.paste

vast hinge
#

.paste

haughty stag
#

BOT COME HERE

#

?paste

worldly heathBOT
haughty stag
#

OH IT WAS ?

#

lol

vast hinge
#

lol

haughty stag
#

I thought it was . because it replied after you.

vast hinge
haughty stag
#

the first time

vast hinge
#

my Main and Reload

vale slate
#

I need a little advice here. I'm going to implement teams/clan/guild into project. Not sure if I should write it myself or something already exists that I can use now and will scale with what I am doing. Anything you could can recommend?
@naive stratus depends if you want to do it, go for it, if you want sth. tested and working use a library

haughty stag
#

The tutorial you watched may have been very outdated

vast hinge
#

me or him

haughty stag
#

We don't implement Executor anymore, it is CommandExecutor

subtle blade
#

Please don’t be BCBroz. Please don’t be BCBroz

vast hinge
#

oh lol

#

well it was a really shit tutorial

vale slate
#

good old Executer

haughty stag
vast hinge
#

whats rps?

#

oh

#

i see

haughty stag
#

Redstone Proximity Sensor, it is my baby.

vast hinge
#

do you know any up to date tutorials?

naive stratus
#

@vale slate You got anything in mind that I could take a look at?

haughty stag
#

What do you want to make?

tiny dagger
#

best open source license?

vale slate
#

I think other people in here have better knowledge what on this market is hot in the moment

crimson sandal
#

Is the maven repo down for anyone else?

vale slate
#

yeah

crimson sandal
#

Giving me a cloudflare error

#

Rip

vale slate
#

wait some time

crimson sandal
#

The only disadvantage of Maven I guess lol

vale slate
#

can happen to all services

crimson sandal
#

Yep, I just mean compared to the good old linking jars to your project offline πŸ˜›

fading owl
#

ehh

#

mvn install -U just incase

vale slate
#

Yep, I just mean compared to the good old linking jars to your project offline πŸ˜›
good times this were

fleet crane
#

Mcstats isn't the official maven repo lol

fading owl
#

oof

vale slate
#

ooof, didn't check the link

fading owl
#

md5 change ur name to BCrypt

#

cmon man

#

sounds cooler too

#

o wait is that the admin

#

oof

crimson sandal
#

Wait yeah wtf

#

What is mcstats for in my pom then

fading owl
#

its definitely for generating cool things

#

liek idk

#

stats

haughty stag
#

I use bStats anyways

#

Didn't mcstats go down or something?

vale slate
#

their services are down at the moment

fading owl
#

does this make sense

isFinishedErroneously()
#

I feel like it doesnt make sense

crimson sandal
#

Yeah I've no idea why that repo is in my pom though

vale slate
#

does this make sense

isFinishedErroneously()

sorry but this is too funny

fading owl
#

haha

#

what would u name a future event that didnt complete successfully πŸ˜›

#

i need some names cmon ppl

vale slate
#

I would have a good German name for that

#

but in English, um

fading owl
#

lol

#

welp i only know english

#

and a smidge of java

finite pine
#

how would i check if an item has a specific level of enchantment?

crimson sandal
#

Removing the mcstats repo fixed everything, no idea how that ended up in my pom lmao

fading owl
#

copy + paste

vale slate
#

I'll stick with my favorite: UserException: We really think this error your fault, if you don't think so, please don't contact our support

fading owl
#

will do that

#

ehh

#
public abstract class TransactionFuture<T> implements Transaction {

    private transient T result;

    private boolean finished;

    private boolean finishedErroneously;

    @Override
    public final void execute(Session session) throws TransactionException {
        try {
            result = result(session);
        } catch (Throwable throwable) {
            finishedErroneously = true;
            throw new TransactionException("Error occurred while obtaining result.", throwable);
        } finally {
            finished = true;
        }
    }

    public abstract T result(Session session) throws TransactionException;

    public boolean isFinished() {
        return finished;
    }

    public T getResult() {
        return result;
    }

}
#

there is always a TransactionException

#

just more of an result approach

#
if (result.isFinished()) {
    if (result.isFinishedErroneously()) {

    } else {

    }
}```
#

uh oh

vale slate
#

I would leave that in there, it's funny

fading owl
#

haha fair enough

meager lantern
#

Just have something like hasFailed()

vale slate
#

too lame

fading owl
#

failed is a good idea

unreal hedge
#
    public void update(){
        Block b = location.getBlock();
        BlockState state = b.getState();
        if(!(state instanceof Sign)){
            signHandler.removeSign(location);
            return;
        }
        List<String> format = signHandler.getFormat(arena.getGameState());
        for(String line : format){
            int index = format.indexOf(line);
            String[] words = line.split(" ");
            for(String word : words){
                if(!word.startsWith("%")){
                    continue;
                }
                String var = word.substring(0);
                int value = arena.getVariable(var);
                if(value == -1){
                    System.out.println("ERROR: Variable " + var + " NOT FOUND!");
                    continue;
                }
                line = line.replace(word, value+"");
            }
            Sign sign = (Sign)state;
            sign.setLine(index, line);
            sign.update();
        }
    }```

Any suggestions on what I should do? I'll obviously have countdowns in plenty of signs, can you think of a more efficient way to go about those countdowns? Rather than constantly updating and querying more than it needs to?
vague totem
#

anyone here that has a text file including all minecraft 1.15.2 custom prices?

fading owl
#
for(String line : format){
            int index = format.indexOf(line);
#

dont use an advanced for loop

#

if ur going to get index

#

defeats the entire purpose

unreal hedge
#

True ig

fading owl
#
if(value == -1){
                    System.out.println("ERROR: Variable " + var + " NOT FOUND!");
                    continue;
                }
meager lantern
#

Not only does it defeat the purpose, that is a lot less performant as well

fading owl
#

never a good idea to fail silently

haughty stag
#

I think the right way to say that is don't use a for use a fori

#

idk

fading owl
#

no need to concatenate

#

line = line.replace(word, value+"");

#

just

#

line = line.replace(word, Integer.toString(value));

unreal hedge
#

+"" is shorter, I'm sticking with it lol

fading owl
#

cool man

#

ill just go fk myself

#

XD

vale slate
#

and use a logger instead of sysout

unreal hedge
#

So many orders lmao

#

Oops, forgot to substring 1 not 0

#

Before anyone tells me to fix that too πŸ™„ lol

fading owl
#

xD

unreal hedge
#

I'm thinking of having an updateVar() method, instead of constantly updating the entire sign and querying things that don't need to be queried (for instance, updating it for the sake of changing a number for countdown).

#

Since the Arena class does have its own timer anyway, I'll need a better system to support more timers though, unless I just base everything off the lifetime of the Arena ugh

fading owl
#

whati s funny is trying to do that inner loop

#

as a java 8 stream

vale slate
#

Why not

fading owl
#

try it

vale slate
#

Uff okay one second

fading owl
#

i got this

#
List<Pair<String, Integer>> replace = Stream.of(words)
    .filter(word -> word.startsWith("%"))
    .map(word -> word.substring(1))
    .map(word -> Pair.of(word, arena.getVariable(var))
    .filter(keyAndValue -> keyAndValue.getValue() != -1)
    .collect(Collectors.toList());

replace.forEach(keyAndValue -> line.replace(keyAndValue.getKey(), Integer.toString(keyAndValue.getValue()));
#

but its so fkn toxic

vale slate
#

but I think it is correct

fading owl
#

wrote freehand so might be some errors

#

just one way to beautify it

#

and lose tons of performance

#

XD

vale slate
#

"beatify"

unreal hedge
#

Ahahah, I need to relearn how to make lambda expressions fml

fading owl
#

did u intentionally misspell that

#

awe

#

eh theyre pretty easy

#

just learn about functional interfaces

vale slate
#

I first thought about it

fading owl
#

beatify sounds better

unreal hedge
#

Yeah I know, I understand your lambda expression

fading owl
#

welp thats godo to know

#

causei dont even understand it

vale slate
#

Goes back to while loops

unreal hedge
#

Generally I'll only use Lambda if it greatly shortens my code and doesn't have a significant impact on performance

fading owl
#

eh yeah fair

#

but honestly when it comes to minecraft

#

from what ive noticed in my short time

#

its just hashtables for everything

#

i.e Sets/Maps

#

because the idea of an event firing when a block breaks and executing some heavy code just makes my heart jump

unreal hedge
#

πŸ˜‚ yeah

fading owl
#

:p

unreal hedge
#

I'm just trying to code some minigame framework... based off of 1 minigame

#

i can only guess what I'll be reusing.

vale slate
#

there actually is a limit to this

fading owl
#

what minigame?

vale slate
#

nah, event heaviness

fading owl
#

not u

#

major

#

and yeah im sure there is a limit

#

since each cycle is 50ms

#

and only so much can be for event listeners

vale slate
#

I think you can go up to 300ms

fading owl
#

assuming event listeners are observing every 50ms

vale slate
#

then the server will crash

fading owl
#

oh cool

unreal hedge
#

A Greek themed infection minigame

fading owl
#

covid-19 minigame?

vernal spruce
#

what a time to do that theme

#

ikr

fading owl
#

haha yeah

#

really

vale slate
#

covid-19 minigame?
@fading owl please don't

unreal hedge
#

xD

fading owl
#

haha

#

it would be disrespectful as fuck

#

to make a covid-19 minigame

#

pardon my lang

#

now a spanish flu minigame

#

on the other hand

#

πŸ’°

vale slate
#

somebody is working on it for sure

fading owl
#

oh for sure XD

vernal spruce
#

best pr ever

fading owl
#

pullrequest?

unreal hedge
#

It's similar to mw3 infection, how the functions of that game is.

fading owl
#

or public relations

unreal hedge
#

Well except, there is no timer. There must be 1 survivor.

#

That's when the game ends.

fading owl
#

oh

#

i loved that

vernal spruce
#

sounds unique

fading owl
#

tomahawks for days

unreal hedge
#

The infected can get "Malice" over time, if they find it too hard they'll eventually win ahahah

#

It's like a type of point system per-game for zombies, they can spawn in monsters to help them and do other cool stuff

vale slate
#

oh god

unreal hedge
#

As for players, there are kits they buy and equip beforehand, every kit has an ability they can upgrade up to 4 times by completing kit-related challenges

fading owl
#

sounds dark

#

hit me up if u finish it

unreal hedge
#

Infected players can also redeem "Mutated items" at any point during the game, they have a rewards inventory, they get these items by giving Charon a gold coin in the lobby πŸ˜›

#

He fishes out an item and it flies up into your face prompting an inventory showing what you got

#

Yeah I kinda went ahead and turned a simplistic minigame into some advanced complicated thing lol

fading owl
#

might be 90 by the time u finish

unreal hedge
#

Hahaha, at this rate maybe.

fading owl
#

:p

unreal hedge
#

Some of the features I've had to predesign updates for

#

Otherwise, they'll just take too long.

#

I wish I had a good effects designer working with me lol

#

Then I could do epic stuff like when someone completes a challenge, giant text could appear on their screen with particles exploding around it

fading owl
#

unity free assets + client mods

unreal hedge
#

Without mods obviously lol

fading owl
#

particle effects for days then

#

iterate all elements in the enum

#

and boom

vale slate
#

CustomModelData

unreal hedge
#

Using titles in the center of the screen, positioned with particles at the right position, they'd need to be sent using packets or it'd just be freakin weird spawning it server side lmao

fading owl
#

fair

#

never messed with network packets yet with spigot

unreal hedge
#

People with 2gb ram laptops when they get an achievement ahahah

fading owl
#

not sure of limitations

#

2g ram and 1080 graphics

#

200iq

vale slate
#

well then you'll have at least 2 + 4 =6GB RAM

unreal hedge
#

Then there's the samsung galaxy s20 ultra "Yeh I have 16gb ram, git gud"

vale slate
#

I really want to set up a server on a phone

#

just for fun

unreal hedge
#

Pretty sure it's like 2.4GHz or something though

#

xD

#

I really want people to start setting up servers on ships somehow

vale slate
#

dump in in oil and raise the clock I guess

unreal hedge
#

Right in the center between countries

vale slate
#

I really want people to start setting up servers on ships somehow
@unreal hedge why

unreal hedge
#

Then us Australians won't have poop latency all the time

fading owl
#

rofl

vale slate
#

🀣

unreal hedge
#

Crafter, you should help me wing this framework πŸ˜‚

vale slate
#

at least you have internet, some regions in Germany have worse internet than you'll get in the Sahara

unreal hedge
#

Lol, now 5G is being rolled out throughout the country

vale slate
#

Ok, this s quite expensive, we'll need a huge ship

#

with a power plant on it

unreal hedge
#

Nuclear powered ships

vale slate
#

Well I'll call Putin if it comes to this

unreal hedge
#

I'd love that ahahah make my own nuclear powered ship then I can stick my middle finger up at Australia for not getting nuclear powered energy

#

I feel like we should be in general chat ngl

vernal spruce
#

is this a viable way of checking if Vault is installed/

#

if(getServer().getPluginManager().getPlugin("Vault")!=null&&getServer().getPluginManager().isPluginEnabled("Vault"))

pastel condor
#

what method should I use instead of Bukkit.getofflineplayer(string)?

vernal spruce
#

pass in a uuid

unreal hedge
#

Add vault as either a dependency or soft dependency first @vernal spruce

#

Then use either one of those methods.

vernal spruce
#

ik but i want it running

#

even without

#

its basically "some features" will be disabled

unreal hedge
#

So yeah, add it as a soft dependency

vernal spruce
#

i already am

unreal hedge
#

Or your plugin might never find vault.

#

Alright nice, so yeah pretty sure either method would work.

boreal tiger
#

in the FixedSetPrompt#getPromptText() if you want to return more than one line how would you do it?
would you just append \n when you want a new line?

the return type of the method is String :S

unreal hedge
#

@pastel condor Bukkit.getOfflinePlayer(uuid)

boreal tiger
#

or should I just use a MessagePrompt before sending the FixedSetPrompt?

unreal hedge
#

Haven't toyed around with it yet, I'm sure someone here will help though 🀐

vernal spruce
#

another quic one,does vault always have economy?

boreal tiger
#

@radiant hollow sorry to bug you, do you have any idea how to do what I mentioned above?

unreal hedge
#

You need an economy provider, something along those lines. lemme get it from the docs for you

vernal spruce
#

but.. a server would always have an economy plugin most likely right?

#

im still checking if economy is null though so i should be good

unreal hedge
#

Most likely, Essentials is a provider for example. Make sure server owners don't assume your plugin is a provider though

radiant hollow
#

Uh Attlantiz, I don't know :{

boreal tiger
#

no worries haha, I'll try with \n and see how it goes

#

it just seemed a bit hacky xD

torn siren
#

Im wondering if theres a way to edit the message, "if you wish to use ip forwarding, please use it in your bungeecord config as well", i want to redirect people to a new ip.

unreal hedge
#

Were you using a domain already, @torn siren ?

torn siren
#

subdomain on a hosting site

unreal hedge
#

You could probably try asking them to have the domain simply redirect to your new one and let your players know what the new address is

vernal spruce
#

damn..why do i always lose excitement in making a plugin right at the finish

torn siren
#

hmm ok ty

unreal hedge
#

Ey, you could always help me develop my framework ahahah, it gets boring coding alone sometimes

vernal spruce
#

all i need is to add upgradeable levels wich would take me like 15min but im not in the mood

vale slate
#

Ey, you could always help me develop my framework ahahah, it gets boring coding alone sometimes
@unreal hedge luckily I have a team behind me

buoyant path
#

Should I be using a connection pool for my SQL usages or just make a new connection asynchronoulsy each time

vale slate
#

because coding alone is poor sometimes

vernal spruce
#

yeah might need to look for peps

vernal spruce
#

k how dumb is placing a javaplugin param on a constructor to avoid static initializer?

#

so i can grab a reference from main

boreal tiger
#

its not dumb

dusty topaz
#

that's done by a lot of plugins and is arguably better than singleton design (though less fun to do with a lot of classes)

#

there is a whole debate about it

#

though those who have truly ascended will say use dependency injection >:)

radiant hollow
#

Dependency Injection > literally everything else

#

let's be real

dusty topaz
#

Β―_(ツ)_/Β―

vernal spruce
#

its for 1 class to avoid static init error πŸ˜‚

knotty karma
#

is there a way to generate vanilla structures using a blockPopulator?

silk bane
#

hell yeah

near lodge
#

So on one of our proxies, all the players that were connected to one server were kicked (50 players)

[00:42:12] [Netty Worker IO Thread #5/INFO]: [/REDACTED|ghostBv] <-> DownstreamBridge <-> [skywars] has disconnected
[00:42:12] [Netty Worker IO Thread #3/INFO]: [jejje] disconnected with: The server you were previously on went down, you have been connected to a fallback server
[00:42:12] [Netty Worker IO Thread #16/ERROR]: [/REDACTED|recolector999] <-> DownstreamBridge <-> [skywars] - encountered exception
java.lang.NullPointerException: null
[00:42:12] [Netty Worker IO Thread #8/INFO]: [ByRacsYT] disconnected with: The server you were previously on went down, you have been connected to a fallback server
[00:42:12] [Netty Worker IO Thread #16/INFO]: [recolector999] disconnected with: The server you were previously on went down, you have been connected to a fallback server

There's no stacktrace nor more information regarding the kick. On the server all the players just appear as "disconnected"

silk bane
#

@knotty karma i literally PRd this one

#

ChunkGenerator#shouldGenerateStructures

knotty karma
#

ah, thanks!

keen sky
#

question: I can use my Ip private for open a port?

knotty karma
#

as in, can you host a server on your LAN?

#

yes. If you are using windows then you'll need to use Windows Defender Firewall to open the port. On linux, then you'll need to use whatever firewall you have there (most common is ufw, which to allow TCP on port 25565 you would do sudo ufw allow 25565/tcp

vernal spruce
#

your forgetting about router..

#

and ips possible issues

#

isp*

knotty karma
#

i thought he meant could he host a game on his LAN

vernal spruce
#

example.. my isp decided to do the NAT approach so now im stuck without being able to port forward

knotty karma
#

nice.

#

well if he can't port forward then he could set up a cheap cloud VM and reverse proxy to his server on LAN. I misunderstood the question, thought he was asking how to allow ppl on his LAN to join

vernal spruce
#

he didnt answer to your question yet..

#

hmm how would i go about creating speed modifier to a timer
do i cancel the runnable and start it again with new time
or create a timer and have a runnable add seconds to it
so i can simply change the amount of seconds

boreal tiger
#

can using \n in spigot when sending a chat message cause any issues?

#

I'm using the conversation api and I'd like to send more than one message in the prompt

#

but unfortunately the getPromptText method return type is String

wind dock
#

Hey guys so I'm using the dynmap plug-in, and for some reason, others can't see my map, when I can

#

I'm using a name cheap url redirect to forward to my http://ipv4:port

exotic needle
#

wtf, you cannot mock ItemStack#getItemMeta() because it calls Bukkit.getItemMetaFactory()? I didn't know that this api sucks so much, this is ridiculous

#

I wish there were any plans on modernizing, and fixing this ugly api

fleet crane
#

are you volunteering?

tiny dagger
#

You can always contribute

fleet crane
#

I mean a true API would be entirely interfaces so you'd have to mock the entire everything to unit test to begin with

tiny dagger
#

I wonder how much hatemail you would get if you made itemsstack final

boreal tiger
#

hi md_5, do you have any idea how I could send multiple messages in a single prompt (conversations api) so that I can provide more information to the user?
\n works, would that be fine?

nova mural
#

you could call sendMessage multiple times for the amount of lines you want, but iirc \n is fine

boreal tiger
#

you cant call sendMessage inside a prompt

#

the message is defined using getPromptText

crimson sandal
#

Hey does anyone know how to get what creative group a material/itemstack belongs to?

bronze marten
#

I think thats done clientside

crimson sandal
#

Ahhh that would make sense...

nova mural
#

wait i wasn’t paying attention

#

\n works

#

my bad

boreal tiger
#

it does work, I was asking if any problems might arise from that and if there is a neater solution

crimson sandal
#

Okay so since ItemStacks don't have an ID anymore is there anyway to order them by what their old ID used to be, like they're ordered in the creative menu/JEI

#

I've just been using their Key atm and ordering alphabetically

ocean hamlet
#

ive wondered bout this for so long , whats the difference between bukkit and spigot

frigid ember
#

the spelling

ocean hamlet
#

my nose is bleeding nd i can only use one hand to type ok

frigid ember
#

patches, api things, bungeecord, some extra settings e.g. spigot.yml. and some other stuff i cant remember.

ocean hamlet
#

ok

knotty karma
ocean hamlet
#

can u show more

#

show us the full pic

knotty karma
#

the bars are not connecting properly. Is there a way to update them after I generate them?

ocean hamlet
#

not quite sure how this is happening

knotty karma
#
for(int j = height+1; j <= (int) (height+1.5*width); j++) {
for (int x = (int) -width; x <= width; x++) {
  world.getBlockAt(locations[i][0]+x, locations[i][1]+j, (int) (locations[i][2]-width)).setType(Material.IRON_BARS);
  world.getBlockAt(locations[i][0]+x, locations[i][1]+j, (int) (locations[i][2]+width)).setType(Material.IRON_BARS);
}
for (int z = (int) -width; z <= width; z++) {
  world.getBlockAt((int) (locations[i][0]-width), locations[i][1]+j, locations[i][2]+z).setType(Material.IRON_BARS);
  world.getBlockAt((int) (locations[i][0]+width), locations[i][1]+j, locations[i][2]+z).setType(Material.IRON_BARS);
  }
}
for (int x = (int) -width; x <= width; x++) {
  for (int z = (int) -width; z <= width; z++) {
  world.getBlockAt((int) (locations[i][0]+x), (int) (locations[i][1]+height+1.5*width), locations[i][2]+z).setType(Material.IRON_BARS);
}
ocean hamlet
#

if you break he bars and place it back , what happens?

knotty karma
#

they connect

#

should i just generate the edge bars separately?

ocean hamlet
#

give it a try

velvet halo
#

What version is this?

#

I have seen this happen when using worldedit also :/

knotty karma
#

paper 183

velvet halo
#

Try it in spigot and see if you have the same issue.

knotty karma
#

k, 1 sec ima have to build it

#

building now.

neat turret
#

IS it possble to change the motd of a spigot server

knotty karma
#

yeah, just change it in server.properties

neat turret
#

Ive change it there and nothing happened

knotty karma
#

What plugins do you have installed?

ocean hamlet
#

or what server hosting website r u using

neat turret
#

its not a server hosting webiste

#

its off the pc itself

ocean hamlet
#

ohhh

neat turret
#

yeah and in the server list its shows Spigot

#

and doesnt allow me to change it

ocean hamlet
#

i think some plugin that has to do with the server motd is probably the issue

neat turret
#

there is a plugin to set the motd when I use it it doesnt change the text

wanton delta
#

i'm trying to use public PathfinderGoalNearestAttackableTarget(EntityInsentient entityinsentient, Class<T> oclass, int i, boolean flag, boolean flag1, @Nullable Predicate<EntityLiving> predicate)

#

and i have a class that implements Predicate<Player> that im using as the predicate

#

what should i put as the method in the class to return the true/false?

#

what should i name the method, i mean

ocean hamlet
#

@neat turret u can try deleting the plugin and edit the file 'server properties' itself

neat turret
#

ok

ocean hamlet
#

remember to restart the server too

knotty karma
#

still happening with Spigot

#

i think ima just generate them differently

ocean hamlet
#

/md_5

velvet halo
#

oh hmm

ocean hamlet
#

it looks like its 'connecting' but its not tho

knotty karma
#

looks like one is connecting, but the other is not

neat turret
#

yep now it works thanks

ocean hamlet
#

np dude

junior acorn
#

what is the best way to convert group manager to pex format i am trying to create a server that is not dependent on essentials nor wordledit nor worldguard since those are too heavily used and depended on i want to make a different kind of server or trying to convert to pex since group manager depends on essentials to work

#

anyone know of a way i would really appreciate it, thanks -Mike

ocean hamlet
#

isajdkvsdeiausdjknfdsvcxefwfs

golden vault
#

luckperms can migrate data from group manager

velvet halo
#

I suggest sticking to luck perms also once you have migrated that data πŸ˜‰

golden vault
#

ya

ocean hamlet
#

how do you set the 'welcome' msg from essentials to only show up in the player-who-joined's chat?

junior acorn
#

is luck perms compatible with latest minecraft

#

and more importantly is it easy to manage set groups

golden vault
#

it works ya and once you learn it it is not bad. It can be intimidating for new users but it does have a web editor that works well

junior acorn
#

i dont have database tho i prefer to use plugins without database

#

i can get one but its just more complicated

golden vault
#

there are flat file and sqlite options

junior acorn
#

issues now is without essentials i need to replace some missing commands like /mail /msg /reply (/r)

golden vault
#

look for a chat plugin

junior acorn
#

i tried to look a replacement for /mail cant find any i dont want any GUI or special menu i want a simple compatible plugin for mail

#

ok i will search up chat plugins

golden vault
#

venturechat may be an option for you

tiny horizon
#

Where can I find multiverse core for 1.8.8

junior acorn
#

if you go to bukkit then click files since they keep it updated should be under "files" tab that is how i do it then it list older versions and on the side it says what version of minecraft it is for

#

idk tho but that is what i do

frigid ember
#

hi, anyone has an explanation of what is happening with aternos and his spigot plugins?

junior acorn
#

@golden vault i tried venturechat and it gives me error on craftbukkit 1.15.2 but thank you for the suggestion

#

i was testing it

golden vault
#

why craftbukkit?

junior acorn
#

i have always used craftbukkit every since 1.7.10 i have trusted craftbukkit

wanton delta
#

I have a class that implements Predicate, and want to use it for the predicate parameter for PathfinerGoalSelectorTarget

junior acorn
#

what does spigot have that craftbukkit doesnt just wondering

#

i have little experience with spigot

wanton delta
#

Im not sure what method i need to put in the first class in order for it to work correctly

#

Should it override test or should it be completely different?

junior acorn
#

doing research right now spigot vs paper

#

i might switch from craftbukkit

wanton delta
#

you use.... craftbukkit?

junior acorn
#

currently yes

wanton delta
#

Sir this is a spigot server lol

junior acorn
#

i was gonna switch but i heard spigot is prone to bugs and security flaws

#

someone told me paper was better

wanton delta
#

Plugins build off of spigot

#

Dont talk abojt paper here

junior acorn
#

is it not allowed?

wanton delta
#

Discussing other forks is a nono

junior acorn
#

currently: 1.15.2

#

survival

wanton delta
#

By security i wouldnt know what you mean

junior acorn
#

survival without worldedit worldguard essentials

#

too many people use those

#

i want to be different

wanton delta
#

:s no

junior acorn
#

is it true that spigot is prone to security flaws and bugs that is what someone told me

wanton delta
#

Worldguard is pretty necessary though

junior acorn
#

i seriously do not know

wanton delta
#

Yea thats fairly inaccurate

junior acorn
#

craftbukkit is good but uses alot of CPU

#

that is the issue is it CPU heavy

#

yes.... was wondering if Spigot is less intense and lighter than Bukkit

#

?

wanton delta
#

If youre gonna talk about bugs, paper would be buggier than spigot

#

As far as i know, spigot does provide slightly better performance but if youre having a hard time with CPU right now it may not be effective anyway

junior acorn
#

do any of you use anti xray plugins i use to use orefescator or whatever you spell it but i dont think it works anymore

#

wondering what the best antixray is

#

ok i got spigot

#

will try it out and report when done doing some testing

#

says its not latest version

#

where can i get lastest version

golden vault
#

?bt

worldly heathBOT
golden vault
#

with that ^

junior acorn
#

ok i will have to research this

#

looks complicated

#

thanks

golden vault
#

its not, you download it and run it and it makes you a jar on your computer

#

the only "complication" is you cant just click on it to run it.

fierce tinsel
#

can someone help me with staff perms

green lodge
#

Anyone have issues with HubBasics saying the default menu is invalid

shut isle
#

Does anyone know how much you need to donate for a name change?

bronze horizon
#

I think its $10 @shut isle

shut isle
#

Hoping it would be $5 but okay thanks!

#

wish I had a cool name like snadol

sudden hill
#

I send a chat message using BungeeCord subchannel(Message) while switching to another server. But, Player cannot receive the message.
Do anyone has idea?

quartz trench
#

bruh where can i find the jar or buildtools for the 20w15a the play.spigotmc.org server is

bronze horizon
#

we'd need more info than that @sudden hill

#

@quartz trench i dont think it's been released yet

quartz trench
#

gotcha

bronze horizon
#

sorry

sudden hill
#

@bronze horizon

  1. Player is in server1.
  2. Send Connect(server2) and Message(foo) to BungeeCord using Plugin Messaging.
  3. Player was connected to server2. But Message(foo) did not display...
bronze horizon
#

ok so youre using the plugin messaging channel. can i see the code? did you register the events?

#

wait

#

nvm

#

so the player gets connected to the server2 with Connect

#

yes?

sudden hill
#

yes

bronze horizon
#

but then the message does not display?

#

have you tried sending the message before changing servers? haven't personally done a ton with the plugin messaging channel so sorry if i say something dumb

sudden hill
#

I can send a chat message using Bukkit API when before Connect. But I want to send a chat message from server1 after changed server to server2.

bronze horizon
#

oh so like "Player has left server1 and gone to server2"?

#

ok and how is the player move being triggered?

#

through what server (bungee or spigot)

sudden hill
#

Player will send a command like /home foo in spigot server and home plugin will trigger to Connect to server that containing the home foo.

#

Finally home plugin will send a chat message like Teleported to foo successfully from server1 to server2 teleported player.

supple arrow
#

This will call after the player joins server2

#

from server1

bronze horizon
#

yep

#

try that ^

neat turret
#

does anyone know how to attach a gui to a item for example click on a clock and a gui opens

bronze horizon
#

thanks gamerduck

supple arrow
#

I've been screaming at my screen for like 5 minutes now xD

bronze horizon
#

@neat turret so like a clock in the hotbar?

neat turret
#

yes

bronze horizon
#

wdym click

#

like hit something with it

neat turret
#

you know on hypixel

bronze horizon
#

yeah

neat turret
#

the compass

bronze horizon
#

got it

neat turret
#

like that

#

i don’t understand how to do it

supple arrow
#

You should be looking for PlayerInteractEvent and check if the item in the players hand is a clock and check the itemmeta

#

And then use your method that you use to open the gui

bronze horizon
#

how do you type so damn fast?

neat turret
#

oh ok

supple arrow
#

6 years of coding

sudden hill
#

So, you mean that I should create home plugin for Bungee too?

bronze horizon
#

wait

supple arrow
#

^ I thought it was on bungee (from what I read)

bronze horizon
#

^

#

me too

quick bison
#

ok so i recently added spigot to my server and when i try to join it gives me this error : internal exception io.netty.handler.codec.encoderexception java.lang.outofboundsexeption: 1

supple arrow
#

Have you added any plugins?

bronze horizon
#

gonna need more info

#

yep

supple arrow
#

Thats usually a scoreboard issue

sudden hill
#

Ok, My home plugin is work in spigot server.

quick bison
#

yes i have added advancedbans headdrops and simplecommands

supple arrow
#

So no scoreboard?

bronze horizon
#

ok can you give us the stacktrace

#

the full one

quick bison
#

there is one but no plugin for it

supple arrow
#

ken_kentan, my recommendation would make the home plugin for bungee

#

@quick bison it's most likely something on your scoreboard is a bit too long

quick bison
#

how do i fix

final verge
#

oh god

supple arrow
#

disable it through console

final verge
#

hes here too

supple arrow
#

Shutup GM

#

I know where you live

final verge
#

😦

bronze horizon
#

wow uh

supple arrow
#

❀️

bronze horizon
#

that got heated quick

quick bison
#

what file do i change

bronze horizon
#

no file

supple arrow
#

Go into console and remove it using the /scoreboard command

bronze horizon
#

^

#

goddammit

supple arrow
#

πŸ˜‰

quick bison
#

ok

sudden hill
#

I see.. So, Cannot BungeeCord process Message while player switching server?

bronze horizon
#

didn't you say you weren't using bungeecord?

#

or didnt have a plugin on it

supple arrow
#

ken_kentan, is the plugin a bungee or spigot plugin?

sudden hill
#

Sorry. I mean spigot plugin and send Message packet to bungeecord using bungeecord plugin messaging.

quick bison
#

wait sop do i do sumthin like ?scoreboard clear (im not good with commands)

bronze horizon
#

so you have a bungeecord plugin?

supple arrow
#

Great question Rebranded, I'm not good with scoreboard commands either so gimme a second

sudden hill
#

no i have not. just using BungeeCord Plugin Messaging in spigot server.

supple arrow
#

./scoreboard players reset @a

#

I just hopped on a single player world lol

bronze horizon
#

oh

#

yeah currently on the shittiest laptop known to man so...

supple arrow
#

In the time it took you to find that link, I literally restarted my computer completely, started up minecraft, and created a completely new world

#

I'll leave it at that of how good my computer is

bronze horizon
#

ok

#

my computers good, not this laptop tho

supple arrow
#

I'm on my laptop

#

My desktop is even better

bronze horizon
#

ok

supple arrow
#

❀️

bronze horizon
#

well

#

sorry

supple arrow
#

xD

bronze horizon
#

my
desktop: excellent
laptop: πŸ’©

#

so

buoyant path
#
[23:07:48 ERROR]: Error occurred while enabling VulcanCore v2.0.0-ALPHA (Is it up to date?)
java.lang.NoClassDefFoundError: com/zaxxer/hikari/HikariConfig
    at vulcanprisons.shadowslayz3499.vulcancore.sql.ConnectionPoolManager.setupPool(ConnectionPoolManager.java:46) ~[?:?]
    at vulcanprisons.shadowslayz3499.vulcancore.sql.ConnectionPoolManager.<init>(ConnectionPoolManager.java:31) ~[?:?]
    at vulcanprisons.shadowslayz3499.vulcancore.VulcanCore.onEnable(VulcanCore.java:130) ~[?:?]```
bronze horizon
#

thank you

buoyant path
#

is this because my maven didnt setup HikariCP?

quick bison
#

it said unknown command for both

bronze horizon
#

thats odd

#

u running bungee?

supple arrow
#

try doing /minecraft:scoreboard

bronze horizon
#

or that

quick bison
#

no no bungee

bronze horizon
#

ok

#

dont use / in console, are you doing that?

supple arrow
#

And to answer @buoyant path yes, that is most likely due to the fact that maven didn't import it correctly

quick bison
#

ohh

supple arrow
#

Wait no I lied

buoyant path
#

???

quick bison
#

im frickin stupid

supple arrow
#

Iron, it's because you need to have depend: [HikariCP] in your plugin.yml

bronze horizon
#

nah bro

quick bison
#

ok i did it and ran the command but it gives the same error\

bronze horizon
#

unknown command?

supple arrow
#

Try replacing @a with your name

#

It might be because @a might be getting all ONLINE players

quick bison
#

no it did the command

#

just it had no effect

#

i did soreboard objectives reset deaths

neat turret
#

anybody know any plugins that allows you to make the guis open with a item or do you have to code it

supple arrow
#

ChestCommands

bronze horizon
#

duck isn't that a custom gui plugin?

#

imma call u duck that ok?

supple arrow
#

Yeah thats okay

quick bison
#

scoreboard reset @a said there was 0 entitys that matched selector

bronze horizon
#

k

pastel condor
#

after doing this Location loc = new Location(Bukkit.getWorld(UUIDInCMD), 0, 63, 0); Block block = loc.getBlock(); block.setType(Material.BEDROCK); how do I set the block or "update it"?

bronze horizon
#

scoreboard reset Rebranded @quick bison

supple arrow
#

Did you try /scoreboard reset (Your Name)

#

And wait

#

You're right it is snadol

bronze horizon
#

you gotta be online too

buoyant path
#

@supple arrow wait really?

supple arrow
#

Yus

bronze horizon
#

yeah he wants like hotbar items

supple arrow
#

Ohhh

quick bison
#

didnt work

supple arrow
#

@pastel condor is block.setType not working?

bronze horizon
#

@pastel condor try like loc.setBlock(block); or something

#

because you got the block and changed it

#

but didnt set the location's block to the updated block

supple arrow
#

^^ Yeah that

#

Rebranded, what did the output say when you ran the command?

quick bison
#

[21:16:49] [Server thread/INFO]: Incorrect argument for command
[21:16:49] [Server thread/INFO]: ...coreboard reset Rebranded_<--[HERE]

supple arrow
#

its scoreboard players reset Rebranded_

#

Not scoreboard reset Rebranded

buoyant path
#

Um are you sure?

#

HikariCp is connection pools

quick bison
#

ok i did it and it went through but it still does not work

supple arrow
#

Then it's most likely what you thought it was @ Iron, maven not importing it correctly

#

I just thought it was a plugin API

sudden hill
#

[Q] Can I send Bungee Plugin Messaging from 0 players spigot server.

bronze horizon
#

send yes i think get no

supple arrow
#

@ Rebranded, huh.. weird.. when did the error start happening exactly?

neat turret
#

So in the chest commands plugin you can make hotbar items opens gui?

bronze horizon
#

no i dont think

#

he was confused

supple arrow
#

I'm always confused

#

llvLordvll are you making your own plugin? or are you trying to open a gui from a plugin with a command?

neat turret
#

open a gui from a plug-in within a command

bronze horizon
#

ok so you want the item in the hot bar to run /gui open gui or whatever the command is?

neat turret
#

exactly what i want

buoyant path
#

Can someone help me add HikariCp to my build in maven

#

idk what im doing with maven

#

i just throw in dependencies most of the time

supple arrow
#

Me too

#

Can you show us your pom.xml?

buoyant path
supple arrow
#

Is there any red underlines?

buoyant path
#

No

supple arrow
#

Welp thats where my help ends cuz I honestly have no idea

bronze horizon
#

me either

#

so yeah

#

Β―_(ツ)_/Β―

supple arrow
#

YOu could ask @final verge if he's not being mean to me

final verge
#

Im nothing but sweet

bronze horizon
#

πŸ™‚

#

how nice

buoyant path
#

@final verge could I have some assistance lol

#

Idk how to add HikariCP to my maven

#

i added the dependency but it needs to build

final verge
#

how did you add the dep? also i suck at maven xD I just throw em in and pray for the best and it usually works

supple arrow
#

He's better at maven than me

final verge
#

but

#

whats the exact error when u build

supple arrow
#

You're still better than me xD

buoyant path
#

Oh gg

#

theres no errors

#

its just idk where to put the stuff

final verge
#

does it build?

#

oh

buoyant path
#

I can build but the class is not defined

final verge
#

uh

buoyant path
#

heres what i believe i need

#

heres my current

final verge
#

you need to build it in

#

not sure what the line is for that for maven

#

sec

buoyant path
#

this is what i have and it has no errors

#

but idk if its going to compile right

final verge
#

i think you might have to shade it in but not sure

#

might try and see what happens

#

i use gradle mostly and it's super easy with it

#

change compileOnly to compile

buoyant path
#

[23:39:52 ERROR]: Error occurred while enabling VulcanCore v2.0.0-ALPHA (Is it up to date?)
java.lang.NoClassDefFoundError: com/zaxxer/hikari/HikariConfig

#

still this error

bronze horizon
#

ok too much maven/gradle πŸ’© im out for a bit

buoyant path
#

Lol pce

frigid ember
bronze horizon
#

fuck you that was a nice contribution to the community

supple arrow
#

^^

buoyant path
#

HA I got an ad

#

you can never rick roll me

frigid ember
#

Imagine not being verified...

buoyant path
#

Sooo can anyone help with my maven?

#

I could verify in 10 seconds

supple arrow
#

Imagine being named Phaze

buoyant path
#

Ez

keen compass
#

For the maven problem, in the dependencies area where HikariCP is listed, under version add <scope>compile</scope>

#

that should cause the shade plugin to include it into your final jar

supple arrow
#

Yeah what this man said

buoyant path
#

Lets hope lol

keen compass
#

generally when using the shade plugin, you should make it a habit of setting the scope on your dependencies

buoyant path
#

someone also sent me this

#

Error occurred while enabling VulcanCore v2.0.0-ALPHA (Is it up to date?)
java.lang.NoClassDefFoundError: com/zaxxer/hikari/HikariConfig

#

error still happening

keen compass
#

did you check your final jar? open with winrar and see if that class exists

#

or if HikariCP indeed get shaded in

#

I would also try mvn clean to clean out the build directory

wicked sage
#

anyone able to help me debug why my yaml file is invalid?

1:
  display: '&a&lA'
  cost: 0
  addpermission:
  - essentials.warp.a
2:
  display: "&b&lB"
  cost: 25000
  commands:
  - ''
  broadcast:
  - ''
  msg:
  - '&a&lRANKS &8Β» &7You've ranked up to &b&lB&7.'
  randomcmds:
    '1':
      chance: 0
      commands:
      - ''
    '2':
      chance: 0
      commands:
      - ''
  addpermission:
  - essentials.warp.b
  delpermission:
ocean hamlet
#

how do you create a command which does the exact same as another command

buoyant path
#

Frostalf it did not compile with it

ocean hamlet
#

but its just shorter or more convinient to type

keen compass
#

display: "&b&lB" in the first part you using single quotes, this is using double quotes

cloud sparrow
#

you remake the command?

bronze horizon
#

@wicked sage line 7 is the only one using double quotes

#

change them to single quotes

keen compass
#

but when I checked it it was still valid for me though

wicked sage
#

thats what it ried

#

no difference

cloud sparrow
#
- '&a&lRANKS &8Β» &7You've ranked up to &b&lB&7.'
#

is invalid

ocean hamlet
#

@cloud sparrow how

cloud sparrow
#

due to the ' in the middle of you've.

wicked sage
#

oh

#

lol

#

i see

#

thanks

cloud sparrow
#

change the outside to "

bronze horizon
#

yeah

cloud sparrow
#

for the easiest way to solve.

bronze horizon
#

^^

keen compass
#

@cloud sparrow beat me to the next thing I was going to message XD

bronze horizon
#

same here

cloud sparrow
#

randomly opened discord and got a lot of notifications here.

keen compass
#

@buoyant path clean your build directory and try it again

buoyant path
#

I dont really know how to do that lol

cloud sparrow
keen compass
#

just delete it

buoyant path
#

I just put stuff in maven

cloud sparrow
#

To learn how to make a command.

buoyant path
#

delete everything?

keen compass
#

or do mvn clean

wicked sage
#

thanks guys

buoyant path
#

Ok attempt 3.0

keen compass
#

when it comes to the build directory you can either do mvn clean and maven will delete it for you

#

or you can manually delete that directory

ocean hamlet
#

@cloud sparrow thanks bro

buoyant path
#

im not sure if i need that second dependency

#

wait nvm

keen compass
#

you don't need slf4j but you do need to set the scope on your dependencies

supple arrow
#
        <scope>compile</scope>
buoyant path
#

I did lol

#

this time'

#

How can I build it with maven shade?

keen compass
#

since you have shade happening at package and you put in there the default build is package, it should just do it when you do mvn build

#

is your project open source @buoyant path ?

buoyant path
#

No its for a server im coding

keen compass
#

ah, was going to say if it was I could pull it in to see if the problem happens for me

#

currently I don't have issues with shading

buoyant path
#

If I get this working my SQL stuff will be done lol

keen compass
#

the only common issue I run into sometimes with shading is accidentally shading in the api sometimes >>

buoyant path
#

Lol

keen compass
#

usually happens because of a transitive dependency

#

so I have to tell the shading plugin not to put in my jars XD

buoyant path
#

It seems like a lot of people have the NoClassDefFoundException

#

I found like 3 spigot threads and a stackoverflow

keen compass
#

I use HikariCP and don't have that issue =/

#

did you finally get your problem resolved @buoyant path ?

buoyant path
#

Im working on it

#

instead of using maven assembly im trying to switch to shadwe

#

shade*

#

Still got the same error

#

ill send my current pom

keen compass
#

you were using maven assembly? o.O

buoyant path
#

yeah lol

#

that one has it as maven

#

it looks better

keen compass
#

try that

spice adder
#

(Timings report)

keen compass
#

updated the plugins versions, added the scope to one of the dependencies it was missing on and then I added another goal to the defaultGoal to see if it makes it a difference since mine uses those three in most of my pom's @buoyant path

buoyant path
#

Ok

#

Im still getting it even with you're pom

keen compass
#

that is interesting

#

is your maven version up to date? o.O

buoyant path
#

Im pretty sure it is lol

#

Im going to attempt one more thing

#

someone said on a spigot thread that you need slf4j because of the logging it does for HikariCP

keen compass
#

its possible

#

but does the shader include HikariCP at all? or is just that one thing?

buoyant path
#

? im confused

#

I really dont mess with maven a lot because it always works

quick bison
#

oive poted this problem on this discord before and so i made a spigot server and i have advancedbans headdrops s and simplecommands but when i get in the server it kicks me out immediatly the error is : internal exception io.netty.handler.codec.encoderexception java.lang.outofboundsexeption: 1

keen compass
#

well earlier you said it wasn't shading HikariCP into the final jar. The way you verify that is by opening up the final jar with something like winrar to inspect what is in there. Should see a directory in the jar called com

#

and then if you were to enter that directory there should be another called
zaxxer etc etc

buoyant path
keen compass
#

wonder why its not shading that dependency in there o.O

buoyant path
#

this is the most frustrating thing ever lmao

keen compass
#

I would probably take a look at the build log from maven

buoyant path
#

ik my code will work its just maven

#

where is that ?

keen compass
#

either in the command line window or sometimes kept where maven is installed, if on linux can usually find it in the logs area

buoyant path
keen compass
#

yes

#

the build log should indicate why it isn't shading in that dependency

frigid ember
#

hey
anyone knows why my players get kicked for spamming
even when theyre not spamming
i have viaversion and i think

buoyant path
#

It doesnt say anything about it?

supple arrow
#

Nick, does console say anything?

buoyant path
#
  <library name="Maven: com.zaxxer:HikariCP:3.4.2">
    <CLASSES>
      <root url="jar://$MAVEN_REPOSITORY$/com/zaxxer/HikariCP/3.4.2/HikariCP-3.4.2.jar!/" />
    </CLASSES>
    <JAVADOC>
      <root url="jar://$MAVEN_REPOSITORY$/com/zaxxer/HikariCP/3.4.2/HikariCP-3.4.2-javadoc.jar!/" />
    </JAVADOC>
    <SOURCES>
      <root url="jar://$MAVEN_REPOSITORY$/com/zaxxer/HikariCP/3.4.2/HikariCP-3.4.2-sources.jar!/" />
    </SOURCES>
  </library>
</component>```
#

@keen compass it loaded this

#

it also did that

keen compass
#

I am at a loss then at the moment as to why its not shading in

blissful verge
#

What's wrong here?

    {
            //player
            Player player = (Player) sender;
            String name = player.getName();
                player.sendMessage(ChatColor.BLUE + "You have been granted access to play the game.");
    }```
keen compass
#

have you tried invalidating caches in IJ and then restarting it @buoyant path ?

buoyant path
#

No

#

How do I do that? lol

#

I really dont know what im doing i just code xd

green lodge
#

Sorry for asking again but does anyone use HubBasics

#

I can't figure out why my material isnt showing

keen compass
#

change
public void onPlayerJoin()
to

public void onPlayerJoin(PlayerJoinEvent event) {
            //player
            Player player = event.getPlayer();
            String name = player.getName();
                player.sendMessage(ChatColor.BLUE + "You have been granted access to play the game.");```
turbid musk
#

Anyone here work with MongoDB?

subtle blade
#

Missing @ EventHandler as well

buoyant path
#

^

keen compass
#

that too

buoyant path
#

was gonna say that lol

subtle blade
#

?events

worldly heathBOT
#
🎟Events Help

events Create/new/make: Creates an event, You will be led through an interactive setup

events Edit: Edits an event

events List/ls: Lists all events in this server

events Delete/rm/del: Deletes an event, specify the event ID of the event you wanna delete

events StopSetup/cancelsetup: Force cancels the current setup session in this channel

subtle blade
#

Shit

#

Awkward lol

buoyant path
#

Gg

subtle blade
#

Go away, fake cafebabe sadgery

keen compass
#

lmao

subtle blade