#help-archived

1 messages · Page 104 of 1

proper cairn
#

is extensions on by default or no?

dusty topaz
#

no

worn temple
#

no, its in folder settings

#

just google how to turn it on

proper cairn
#

i already got it no worries

#

luckily didnt look it up was pretty easy to find in file explorer

frigid ember
#

Anyone here experienced with chunk loading/unloading? I'm having a weird issue and I'm not entirely sure what's happening.

worn temple
#

stop the server. the folder is in read only mode. Someone else was having this same issue awhile ago, and I think that was the cause

#

oh, their messages were deleted lol

empty thorn
#

Does anyone know how to make mobs track you and not track them by hitting them in the aggressive animals plugin?

worn temple
#

In the plugin, no idea. just know it requires messing with their pathfinding goals in code.

empty thorn
#

Or if someone knows a plugin that makes all hostile mobs other than aggressive animals

muted geode
#

No matter what I do I can't get a custom recipe to use more than one item per item stack can anyone help me?

velvet halo
#
public enum SpellType {
    DAMAGE(2, DamageSpell.class);

    private final int duration;
    private final Type type;

    SpellType(int duration, Type type) {
        this.duration = duration;
        this.type = type;
    }

    public Type getType() {
        return type;
    }

    public int getDuration() {
        return duration;
    }
}
``` So I am creating a spells plugin for a community. I am planning to instantiate certain spell classes based on enums. Do you think this is a good idea or are there any better ways todo this? I wan't to also create a new instance of the class type but not sure what the most efficient want todo it.
gleaming mango
#

So I have all mobs disabled and idk why there are 20k entities but it's fucking over the server. Anyone have an idea of how to fix?

mortal jetty
#

wtf

nimble stump
#

kill @e

mortal jetty
#

^ never

nimble stump
#

lol

gleaming mango
#

That only fixes it for a few seconds

nimble stump
#

any idea what type of entity is getting mass spawned?

gleaming mango
#

Nope, I have all mobs disabled in Essentials

mortal jetty
#

you got any datapacks on the server?

gleaming mango
#

Nope

mortal jetty
#

are you the only op?

gleaming mango
#

Yea

mortal jetty
#

weird

gleaming mango
#

ikr

radiant pollen
#

entities include item frames, item drops, armor stands, etc

mortal jetty
#

try /effect @e glowing and go spectator mode to see what those entities are

radiant pollen
#

^

gleaming mango
#

There are about 60 armour stands. No items on the ground. It's also a void world with mines in

mortal jetty
#

are those armor stands important?

gleaming mango
#

Nope, I removed them before and the entities still happened

mortal jetty
#

hmm

gleaming mango
#

It also only happens 5 mins after the server has been up

worn temple
#

What do you mean mines? Like abondoned mineshafts?

gleaming mango
#

Prison mines

worn temple
#

Ah

mortal jetty
#

and when you did /effect @e glowing, did the number of entites effected matched with the number you got from the spigot info thing?

gleaming mango
#

Yea

#

But I still can't find them

#

I can see the armour stands but that only makes up 60

#

not 32k

worn temple
#

How big is the world? Might be further away somehow

gleaming mango
#

It's a void world

#

With just the mines in

mortal jetty
#

you could set up a repeating command block that kills all entites but armor stands if you really wanted to

gleaming mango
#

Wouldn't that tank tps?

mortal jetty
#

not sure

#

shit idea anyway forget about it

worn temple
#

Likely would tank it... I swear there's a command somewhere to tell you what entities exist and how many of them there are

mortal jetty
#

F3 debug screen?

hallow surge
#

yep lol

gleaming mango
#

Nah that only shows the armour stands

hallow surge
#

that work

#

also shows mobs

#

and all entities

gleaming mango
#

Yes

hallow surge
#

might be essentials is giving false data

gleaming mango
#

but when there aren't any

#

The 20k entites cause lag

#

So there is something

hallow surge
#

hmm

#

anything important in the world?

radiant pollen
#

You said you killed them? Did it say it killed 20k entities?

velvet halo
#

Does anyone know how to instantiate a new class with a java.lang.reflect.Type ?

worn temple
#

Doesn't seem right if the server is reporting the low tps

gleaming mango
#

No it says killed 60 entities which is the armour stands

hallow surge
#

what plugins you have?

radiant pollen
#

Do a timings report

hallow surge
#

oh ^

worn temple
#

@velvet halo it's an interface, you don't instantiate it. You instantiate something that implements it. Like map or list. Same thing

#

Yeah! Timings report is a thing lol totally forgot about that. Do that.

gleaming mango
#

How do I do a timings report?

worn temple
#

!timings start

#

Or something like that

#

Well, /. I'm too used to discord bots

hallow surge
#

wouldnt it be /timings start

#

beat me too it

hallow surge
#

whats your tickspeed at doomfly

velvet halo
#
public enum SpellType {
    DAMAGE(2, DamageSpell::new);

    private final int duration;
    private final Supplier<Spell> spellSupplier;

    SpellType(int duration, Supplier<Spell> spellSupplier) {
        this.duration = duration;
        this.spellSupplier = spellSupplier;

    }

    public int getDuration() {
        return duration;
    }

    public Spell instantiate() {
        return spellSupplier.get();
    }
}
``` @worn temple Do you think a Supplier is a good idea? I have never used them
worn temple
#

Bad gc, could be part of it... Dunno if your host allows script changes tho

gleaming mango
#

I can feel the lag tho

#

This lag even happened when I was self hosting it

worn temple
#

@velvet halo don't use something you don't understand.

radiant pollen
#

@gleaming mango There are definitely that many entities. You can tell from that report

hallow surge
#

@gleaming mango what is your tickspeed at

radiant pollen
#

The yellow line with blue dots is the entities.

gleaming mango
#

3

hallow surge
#

also

#

okay good

gleaming mango
#

The default

hallow surge
#

always should check

gleaming mango
#

lol that would have been funny if that was the problem

radiant pollen
#

It seems like most of the lag is because of the mines plugin

hallow surge
#

^

#

plugins is using so much

gleaming mango
#

Hmm

hallow surge
#

JetsPrisonsMines

gleaming mango
#

It was a really good mines plugin

hallow surge
#

is using a tonnnn

#

512% per tick

gleaming mango
#

I'll disable it and see if that fixes it

worn temple
#

I wonder what it could be doing that causes that? Is it open source? I'd love to audit the code tbh

radiant pollen
#

Also, there definitely seems to be a ton of entities.

hallow surge
#

could be to do with that plugin?

#

thats like the most of the problemit seemes

gleaming mango
#

It's not opensource sadly but does have an API

worn temple
#

Doesn't help much sadly, id need the code related to exactly what this part is.

hallow surge
#

Nova i bet you its not obfuscated decompile it

worn temple
#

@hallow surge the question is, is it a free or paid plugin then... Cuz I could decompile it if it's free. It would be most likely be a breach of terms to send it to me if it's not free

hallow surge
#

nope premium

#

dang

worn temple
#

Damn

radiant pollen
#

@gleaming mango Did you recently update or change something with this plugin or is it new on your server?

worn temple
#

It's so weird that it's chunk related too

gleaming mango
#

It's always had the problem but I recently put it on a host cause I thought the lag was me self hosting it

#

The mines have effects but idk if that could be it

#

I give all mines saturation through the mines plugin

frigid ember
#

Any coders in here?

radiant pollen
#

plenty

velvet halo
#

@worn temple The reason why I asked that question is to know if you had knowledge in suppliers. It worked btw! 👍

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.

frigid ember
velvet halo
#

I added the supplied class type to an array so I can keep track of it and remove it when needed.

frigid ember
#

I'm not sure why this isn't working. I'm trying to test out my skills with Java after learning python at my uni.,

radiant pollen
#

getType is not static @frigid ember

frigid ember
#

Right, then how would I fix that line?

radiant pollen
#

It should be a reference to a block, not the Block class.

worn temple
#

@velvet halo just because it works doesn't mean you should use it. I have no idea why you'd need to use provider

radiant pollen
#

event.getBlock().getType()

#

Block is the class, not the block itself.

#

Like how you have Player player = event.getPlayer()

velvet halo
#

*supplier, my objective is to instantiate a spell class based on an enum.

worn temple
#

Good to see some tutorials are giving good practices tho

radiant pollen
#

Player is the player class, but player is the actual instance of the class.

worn temple
#

@velvet halo yourEnum.getSpell

gleaming mango
#

Well its the mines plugin

worn temple
#

You don't need a supplier

radiant pollen
#

You can't do Player.getName() because there is no static method on Player called getName()

#

Same thing with Block.getType()

frigid ember
#

Right right

#

Thank you.

radiant pollen
#

No problem.

#

@gleaming mango Maybe mess with the config and simplify some things?? Haha

frigid ember
#

I fixed the problem. Much appreciated!

velvet halo
#
public enum SpellType {
    DAMAGE(2, new DamageSpell());

    private final int duration;
    private final Spell spell;

    SpellType(int duration, Spell spell) {
        this.duration = duration;
        this.spell = spell;

    }

    public int getDuration() {
        return duration;
    }

    public Spell getSpell() {
        return spell;
    }
}
``` So this is an efficient way of doing it?
worn temple
#

@velvet halo you're just needless wrapping in a class for no good reason tbh.

#

Yup

velvet halo
#

Alright thank you

frigid ember
worn temple
#

Np. You were just needlessly wrapping the code. Since the provider just makes a new spell, it's the same. If there was some logic or something involved, then other routes could be taken. But provider just isn't needed there. Try to keep your code simple, you'll thank yourself later down the road when you get and maintain it @velvet halo

radiant pollen
#

@frigid ember The if(action.equals(Action.LEFT_CLICK_BLOCK)); does nothing.

#

Because of the );

#

It should be { and then the rest of the code and then the closing brace.

frigid ember
#

wow I am trolling myself today

velvet halo
#

Yeah I honestly overthink a lot when it comes to certain things. Thank for the feedback 👍

frigid ember
#

haha

worn temple
#

I assume you're new to programming? Or at least new to java? @frigid ember

radiant pollen
#

No worries. Easy to miss typos haha

frigid ember
#

New to java, relatively new to programming. Trying to keep up with some tutorials but it's a little hard to get into it.

worn temple
#

@frigid ember consider doing a java basics tutorial first. Learning java while learning a whole huge API is gonna be really hard. Once you have the basics down (syntax, primitives, etc) you can easily move into working with bukkit. And whatever you so, stay far far away from bcBroz (it's something close to they) they teach horribly bad practices that will hurt you in the long run. TLDR: learn from me and my mistakes nearly a decade ago when I got into java.

frigid ember
#

A lot of this seems familiar in the sense of working with events and listeners, but yeah it's kind of hard to work with an API. Do you have any suggestions for tutorials?

hallow surge
#

plenty of good ones

#

ghg source code

#

spigot docs

#

the lsat one i mentioned is my favorite

#

@frigid ember

frigid ember
#

Oh lmao I meant for java basics and such

worn temple
#

I'm trying to find the link for the one I usually recommend. It's taking a moment because I'm too tired to remember the name.

gleaming mango
#

So the lag is bareable now I have changed it to timed resets instead of percent

worn temple
#

I'm sorry, my brain just can't do it. Can't seem to remember/find the link. But there's plenty of great resources out there. Tutorialspoint I haven't personally used, but seen it recommended by those I trust. May be a bit dry tho just briefly skimming it.
https://www.tutorialspoint.com/java/

But there's plenty out there, I'm just blanking on the usual thing I recommend

gleaming mango
#

The mines plugin is still on there all I did was change it to times resets instead of percent

worn temple
#

Hypothetically you could send me the plugin in DMs and I could hypothetically see what it was doing because that just doesn't seem right at all. And I'd love to understand it. Of course I wouldn't actually use it, just look at the code, see if I see anything, then rant about it and delete the jar.

But that's all hypothetical tho, you should just report the issue to the dev of the plugin.

gleaming mango
#

And I have reported it to the dev

velvet halo
#

Anyone know a 1.15.2 ParticleEffect library?

worn temple
#

@gleaming mango lol

#

Just learn actual particle API and lots of math

gleaming mango
#

Making servers is great fun until you have problems like this which make no sense

worn temple
#

Welcome to Minecraft, where 1% of the developers lead to 90% of the problems

radiant pollen
#

It makes sense that timed resets would be less laggy

#

it doesn't have to check blocks to find percentages mined so far

gleaming mango
#

Yea but it is still lagging just not as bad

worn temple
#

Yeah. But why it's spawning an exponential amount of entities is what confused the shit out of me. Makes sense for it to be less laggy, but not because of entities

gleaming mango
#

The entities are still there but the server runs at 15 tps now.

worn temple
#

upload to Google drive and dm me a view link to it. Hypothetically of course

radiant pollen
#

Did the entities go away when you unloaded the plugin?

gleaming mango
#

Yea

jaunty night
#

Hey quick question to how Item Lore works. Is there a max size for a line in the lore and if there is and it goes over the limit does it auto wrap into a new line or does it result in something like an IllegalArgumentException.

radiant pollen
#

It definitely doesn't wrap.

jaunty night
#

I checked the docs and it doesn't really say.

radiant pollen
#

Don't think there's a "limit"

gleaming mango
#

So that's why the upload failed. Dm's are turned off from this server

worn temple
#

It's 16 or 32 char max I believe, and will just cut off.

#

@gleaming mango oops, yeah, didn't mean to do that for myself

#

Oh, seems it's a server setting, cuz I don't have it off. Must be to stop 12 year olds from spamming DMs for help

jaunty night
#

and DM advertisers

worn temple
#

I rarely see that. Even in the huge servers I'm in with DMs enabled.

grave verge
#

So when a server shutsdown how do I make it so that the player is sent back to the hub server in a bungeecord server

gleaming mango
#

Set the hub as a fallback server I think

chrome edge
#

Is it possible to detect Ping Spoof without false detects?

#

As I know we could control "PacketKeepAlive" packet and detect their ping but isn't it breakable?

teal haven
#

[08:31:04] [Server thread/ERROR]: Could not load 'plugins\Tutorial.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: de/meinserver/tutorial/main/Main has been compiled by a more recent version of the Java Runtime (class file version 54.0), this version of the Java Runtime only recognizes class file versions up to 52.0 can anyone help me fix this error?

obtuse rose
#

you've compiled bytecode with newer Java

worn temple
#

^ either need to compile the plugin with an older version, or run the server on a newer version.

#

J8 should be the oldest version anyone runs

teal haven
#

how do i do it

worn temple
#

Is it your plugin?

teal haven
#

yes

worn temple
#

What ide are you using?

teal haven
#

Eclipse IDE

worn temple
#

Yeah. Don't know how to do that off the top of my head... Uh... You should be able to change the jdk used somewhere.

#

Need to change it to java 8. That's what the server is on, you compiled the plugin on java 10

teal haven
#

where can i get the java 8 libraries

worn temple
#

Oracle's website, you need an account

#

Maybe you don't need an account. I don't know, java 8 is too old >.<

teal haven
#

but the besdt version for minecraft

gleaming mango
#

Aren't most plugins on Java 8 tho

worn temple
#

No, only the client cares about being java 8, and it comes packaged with it already.

#

Most plugins are java 8, because bad programmers using sun.unsafe classes which were removed in j9+

#

But j8 code can run on newer java just fine. The server doesn't give a shit about the java version as long as it's 8+ from my experience

gleaming mango
#

I've always used Java 8 because I was told to use that when I learnt

worn temple
#

¯\_(ツ)_/¯

teal haven
#

i got jre1.8.0_241

worn temple
#

Install the jdk, not jre. (Jdk contains jre anyway) you may have to tell eclipse where it's installed at, eclipse is dumb like that.

#

I don't even know how you ended up with j8 for the server and j10 for your plugin

#

Eclipse is usually dumb enough to stay on j8 by default.

teal haven
#

i cant get on oracle

#

i got jre1.8.0_241
thats what i got on start

worn temple
#

The link I sent goes straight to the jdk

teal haven
#

yeah but i cant create an account

worn temple
#

You need the jdk for development, jre isn't gonna do you anything. Unless you want to install java 10 for the server and then your plugin will work

teal haven
#

You need the jdk for development, jre isn't gonna do you anything. Unless you want to install java 10 for the server and then your plugin will work
@worn temple how do i do it

chrome edge
#

I think I've found the best way to check player has latency or not. So basically player always send "PacketPlayInFlying" packet whenever they move. I can check latency between move packets and it will be almost 100% accurate

#

What do you think guys?

worn temple
#

I told you. Make an account and download it. Or if you self host the server, install java 10 and remove java 8. If it's hosted on a server host, you're gonna need the jdk for j8

chrome edge
worn temple
#

@chrome edge cool? Not sure why you're trying to figure this out, you can just get the users ping directly and that's the latency.

chrome edge
#

@worn temple I've made an anti cheat but I forgot to check bypasses like ping. Yesterday friend of mine kicked from my server because of his latency. So I've decided to make latency bypass.

#

If you have >200 ms latency I'll disable anti cheat for the player

#

I think 300 ping is playable. Isn't it?

#

0.3 second is acceptable. Nm I'll figure out

worn temple
#

No need to track it manually, it's already tracked by the server

#

A ping of 300 is 300 milliseconds of latency. That's all ping means, it's milliseconds of latency.

#

So, 0.3 seconds

chrome edge
#

@worn temple I've forgot the hacked clients lol

#

They can manipulate their pings(Ping spoofing)

#

This is how mincraft works nowadays

worn temple
#

You're overcomplicating things.

chrome edge
#

If you consider I'm making anti-cheat. I'm not...

radiant pollen
#

Yeah, he's not.

chrome edge
#

Okay, I'm 100% sure. This is the BEST way to check anti-cheat. Just check their movement packet. If they're spoofing it doesn't matter 'cause their movement is pure.

worn temple
#

cant wait to see them spoof the movement lol but yeah. Guess it makes sense rereading it all

chrome edge
#

haha if they spoof their movement, they have to play like a player who has >300 ping. So I don't have problem with that lol

#

I haven't know spigot has api that shows server stress...

#

MathHelper.a(MinecraftServer.getServer().h) * 1.0E-6D;

#

Looks cool!

#

What do you mean by saying final events?

worn temple
#

Prevent mutations

#

Also, allows it to be used in lambdas.

chrome edge
#

@proud furnace it's like java knowledge. Final veriables is final form of the data. This data cannot be change after finalized

#

I've never used as an event but I think it's like what I said

radiant pollen
#

You can't make event reference a different event.

#

There's no performance improvement from making them final. It's just another constraint on how you can code.

#

I don't know why you'd ever change what event references, but if you don't make it final you can..? It doesn't matter

worn temple
#

A better constraint. Mutable state is the worst

radiant pollen
#

It's basically personal preference until it isn't.

chrome edge
#

If you consider events has order why you have to finalized. Is finalize works for them?

radiant pollen
#

It doesn't hurt

#

but it doesn't fix anything, really

chrome edge
#

I don't know the details but as I know, it doesn't matter you use or not

worn temple
#

Final is honestly better in the long run, because dealing with mutable state is a nightmare and if you can start early with "final everything" you'll be miles ahead of others

#

Basically, whatever you take in, cannot change while you deal with it. So there is no state to track. You don't care about the before or after, you have no control or vision of that. You are just making sure whatever you are doing now can't change.

No state to track makes things a lot easier.

#

Anyway... I need sleep, I've been up way too long.

sudden elk
#

Could somone give me a hand with a .getConfigurationSection issue?
I have my config as layed out sorta like this:

   ImAJewel:
     Info...
   jewel1.1
     Info...```
It will give ImAJewel just fine but for `jewel1.1` it only gets `jewel1` and leaves off the rest
radiant pollen
#

Can you share your code?

frigid ember
#

Can someone help me listen to Login packets( like handshaking packet) with NMS in spigot?

#

A forum for spigot this DiscordJDA?

#

A help code for JDA

#

im sure they have one

#

Link?

#

In pv please

#

can anyone help me

#

Just simply listen to Handshaking packet with NMS

#

Hello???

torn robin
#

sounds like a question for the forums Retrooper

#

I'd recommend using ProtocolLib

frigid ember
#

You don't know?

#

I'd recommend using ProtocolLib
@torn robin no

#

just a quick answer

kind crow
#

Hi. I have a question. What is the best way to send a https get request from a spigot plugin?

frigid ember
#

@torn robin

#

omg

#

dude

#

that thread only shows how to listen to incoming and sent packets

#

Not Login packets.

torn robin
#

I don't think there's necessarily a best way Rundik, as long as it's async

#

@frigid ember I'm not going to help you because you're very rude and seem to lack a basic understanding of java, and the additional difficulty of the scope you're trying to accomplish. Good luck.

frigid ember
#

?

#

bruh

normal lark
#

Anyone knows a plugin where it just won't let you remove a block, it blocks all forms of if you want to see the broken block

frigid ember
#

channelRead and write, i have those already i coded myself.

torn robin
#

@normal lark do you mean like a physical block?

frigid ember
#

You can't listen to login packets with them.

#

lmao

radiant pollen
#

Don't ask for help and then bitch and moan because someone doesn't know the answer off the top of their head.

frigid ember
#

he linked just a wrong answer.

radiant pollen
#

So?

torn robin
#

Best you can do is google retro

normal lark
#

I mean a physical block that you can't even see broken

torn robin
#

if you're not gonna use protocollib then ¯_(ツ)_/¯

#

@normal lark like you want a block that can't be broken? and it doesn't show a block break animation?

normal lark
#

yes a plugin

frigid ember
#

in that post

#

He already has the packet

#

Just I don't see him listening it

torn robin
#

I don't see any plugins already created for it Efra, you could probably hire a dev to make one for you

frigid ember
#

or where he gets it from

#

I know how to use packets, just listening to Login packets is just different

#

You don't listen to them by injecting the player after logging in

#

It is different to the rest of the packets.

torn robin
#

I have no idea Retrooper I've never messed with login packets myself

#

maybe someone else can help

frigid ember
#

I don't know what you meant which I lack basic java knowledge.

#

And why you randomly say that.

#

Btw ofc I google, coming here is the last thing I do.

#

Just you googled effortlessly and clearly didn't even look at it to know if you are googling the right thing.

kind crow
#

@torn robin is there a way to do such request without any libraries, just spigot stuff and java system stuff?

frigid ember
#

you can use java

worn temple
#

The Karenheight is going up

kind crow
#

An example would be helpful

worn temple
#

@kind crow you can use raw java, buy don't do that. It's excruciating. Just use okhttp and offload it to a different thread. Super simple.

frigid ember
kind crow
#

Does this also work with https?

worn temple
#

Seriously. Don't do it in raw java. That's a horrible idea.

frigid ember
#

I don't see it as a horrible idea.

#

Its a GET http request

#

Explain why its a horrible idea?

#

He will have less dependencies

#

Smaller file size too

kind crow
#

@worn temple I wouldn't use any external libraries unless it's the only way

frigid ember
#

Its impossible for it to be only way

#

The external libraries use raw java anyway

#

At the end of the day we all just use java.

worn temple
#

There's a reason why libraries exist for this. No need to reinvent the wheel, no need to create needless security holes.

kind crow
#

I mean if I have to write 1k lines of code I would probably use a library

frigid ember
#

Its not even that much code firstly

worn temple
#

It's literally 50+ lines verses 2.

#

And okhttp is pretty freaking small

frigid ember
#

He will learn how to do HTTP Get requests

#

with raw java

worn temple
#

If you were concerned about file size, you wouldn't be dealing with mc.

kind crow
#

@frigid ember I mean for one request

frigid ember
#

yea

worn temple
#

@kind crow look. I don't know what he's going on about. I've been programming for nearly a decade. This is why we have libraries and the phrases like KISS (keep it simple, stupid)

frigid ember
#
 URL oracle = new URL("http://www.oracle.com/");
        URLConnection yc = oracle.openConnection();
        BufferedReader in = new BufferedReader(new InputStreamReader(
                                    yc.getInputStream()));
        String inputLine;
        while ((inputLine = in.readLine()) != null) 
            System.out.println(inputLine);
        in.close();```
#

is what oracle guide showed

worn temple
#

Yeah, that's just dumb. There's no need for needless complexity like that

frigid ember
#

read more on the link i sent

paper ridge
#

Little question : anybody know the IDE using md_5 for java ? 😉

frigid ember
#

Probs IntelliJ

kind crow
#

Yeah, KISS, don't use billion libraries 😆

frigid ember
#

yup

#

see how simple my example is

#

Just use that and its fine.

#

gl

worn temple
#

¯\_(ツ)_/¯

kind crow
#

I already have gigabyte size node_modules all around my pc

frigid ember
#

you can store each line in a string if you want

#

and not print

kind crow
#

Thanks for the examples @frigid ember

worn temple
#

@kind crow that's node, js is a fucked environment. It's honestly not comparable

frigid ember
#

np

#

Ok..

#

whats up with you nova?

sturdy oar
#

wus wrong with NodeJS

frigid ember
#

ikr xd

#

leave it alone

mortal jetty
#

this works in a survival world, but not in a spigot server im an op in, here's the command I used: /summon villager ~ ~1 ~ {VillagerData:{profession:cartographer,level:2,type:jungle},CustomName:"\"Jerry The Voucher Guy\"",Offers:{Recipes:[{buy:{id:"paper",tag:{display:{Name:"\"1 Free Shulker when purchasing\"",Lore:["\"One time offer. Cannot be used with exisiting discounts.\""]}},Count:1},sell:{id:shulker_box,Count:1},maxUses:100}]}}

torn robin
#

@random bolt it might require the display name to be the same

hollow thorn
#

whats the event for dropping an item

sturdy oar
#

let me guess...

#

from a player is PlayerDropItemEvent

frigid ember
#

yea

hollow thorn
#

how do i get bees to attack a single entity

#

because at the moment angry bees attack all players when enraged by a player

#

i know from playing multiplayer and having this one guy punch a bee in my own home

chrome edge
#

Does PacketPlayInFlying has delay when high ping? It's weird but looks like it doesn't...

frigid ember
#

Ofcourse it will.

#

If you are lagging, your packet won't be able to send to the server in time.

chrome edge
#

But I've done test and it's stable

frigid ember
#

PacketPlayInFlying is sent every tick client side

#

but one cant be sure when it will be received

#

or if it even will be received by the server

#

minecraft client and server have 20 ticks a second

chrome edge
#

Is there a way to check server recieved the packer or not

frigid ember
#

1/20

#

every that ms

chrome edge
#

So should I bypass every 1 tick?

frigid ember
#

?

chrome edge
#

As you said client sends fly packet

frigid ember
#

yea

chrome edge
#

Is there a way to calculate delay between

#

I've made a test but it's stable at 50 ms

frigid ember
#

cant help u euan i dont have much experience with 1.15 bukkit

hollow thorn
#

oh i was asking about enchantments

#

was that the proper way to use the check

frigid ember
#

about bees

#

is what i mean

hollow thorn
#

oh

chrome edge
#

@frigid ember This is what I made for checking delay between fly packets

frigid ember
#

ok

chrome edge
#

Looks like okay for me but doesn't work

#

The packets delay it stable at 50ms

frigid ember
#

ticks converted to ms will only be divisible by 50

#

50, 100, 150, 200

#

so ticks * 50;

#

so ofc

chrome edge
#

it's moving between 50 and 60 even I have 500 ping or 0 ping

frigid ember
#

ok nvm

#

idk what ur doing

#

quite weird xd

#

btw dont exclude position and position look

#

they are instances of flying

chrome edge
#

You can try to use fly

frigid ember
#

the flying itself is sent only if ur standing still

chrome edge
#

It'll use every tick fo miencraft

#

but position and look will only call whenever you walk or look

frigid ember
#

position is caleld when u move

#

position look is when u move and look

#

they are all instances

hollow thorn
#

can i force crawling?

sturdy oar
#

yes

silk bane
#

put a barrier block on their face

sturdy oar
#

wait crawling or sneaking

hollow thorn
#

crawl

sturdy oar
#

with Spigot methods you can only set sneaking

#

as far as I know

silk bane
#

barrier block -> face

sturdy oar
#

yeah i mean that's the unofficial way I guess

bronze marten
#

barrier block -> face
@silk bane thats some nice explanation right there

silk bane
#

here to help

bronze marten
#

👉 👈

sturdy oar
hollow thorn
#

nani?

sturdy oar
#

well that's the Entity metadata i think

#

if you set the player to 'swimming' status it should work i think

#

not 100% sure

#

wait nvm

#

that's being sent from the client i think 😅

chrome edge
#

@frigid ember Sorry for delay. I'm trying to calculate pure player's latency based on movement packets.

#

but I couldn't make it yet lol

#

so I'm trying to figure out how it works.

frigid ember
#

why?

#

you can just get their ping normally

chrome edge
#

Of course you're right. Spigot has API for ping but what about hacked clients?

frigid ember
#

?

chrome edge
#

They have ping spoofing feature.

frigid ember
#

yea?

#

meaning they will send the packet at a slower rate?

chrome edge
#

So the api doesn't work on paper

#

yep

#

actually not

#

they delayed keepalive packet

#

not movement packet

frigid ember
#

the bad ones only

#

good hacked clients delay all packets

#

Otherwise it would be much easier

chrome edge
#

cheating with >250 ping isn't it weird

frigid ember
#

but it bypasses

hollow thorn
#

whats the event for taking damage

frigid ember
#

some anticheats disable at 500 ping or so

#

so they can hack

chrome edge
#

oh god 500...

frigid ember
#

thats example number

chrome edge
#

okay thanks for the information.

frigid ember
#

EntityDamageByEntityEvent is event @hollow thorn

chrome edge
#

but I really want to try it

#

do you have any idea about it?

frigid ember
#

you can access ping with reflection and it does work with paper

#

paperspigot?

chrome edge
#

what is the difference between paper and spigot ping?

frigid ember
#

Nothin i think

#

What makes you think there is one

chrome edge
#

I asked do you have any idea about packet latency and your answer is paperspigot...

frigid ember
#

no

#

i meant paper

#

paperspigot

chrome edge
#

okay nvm thanks for the information again.

frigid ember
#

So the api doesn't work on paper
@chrome edge in paperspigot?

#

i never knew

#

i dont think so

chrome edge
hollow thorn
#

how do itell if an item has a certain enchantment

ancient ridge
#

ItemMeta#hasEnchant

frigid ember
#

If they have lag then they'll send more packets at once, once it catches up

#

there is a chance that some packets are cancelled

worn gate
#

How can i get in EntityDamageEvent the entity which was damaged and the entity which damaged the other ?

frigid ember
#

event.getEntity() is who got damaged

#

is who damaged

worn gate
#

ok thx

frigid ember
#

im not sure about second one

#

UseEntityDamageByEntityEvent instead

#

then do

#

event.getEntity()

#

event.getDamager()*

worn gate
#

how ?

#

public static void onDamage(EntityDamageByEntityEvent event) {} ?

frigid ember
#

u dont know spigot do u

#
@EventHandler
public void onDamage(EntityDamageByEntityEvent event) {
     Entity igotdamaged = event.getEntity();
     Entity damager = event.getDamager();
}```
worn gate
#

ok

#

thx

dire ravine
#

Anybody here able to assist me with Island Tping when Falling into Voild?

worn gate
#

need help :

[13:45:02 ERROR]: Could not pass event PlayerInteractEvent to GnanPlugin v1.2
org.bukkit.event.EventException: null
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:500) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:485) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
        at org.bukkit.craftbukkit.v1_12_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:235) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
        at net.minecraft.server.v1_12_R1.PlayerInteractManager.a(PlayerInteractManager.java:458) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
        at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:953) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
        at net.minecraft.server.v1_12_R1.PacketPlayInUseItem.a(PacketPlayInUseItem.java:37) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
        at net.minecraft.server.v1_12_R1.PacketPlayInUseItem.a(PacketPlayInUseItem.java:1) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
        at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]```
#
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_251]
        at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_251]
        at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
        at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:748) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
        at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
        at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
        at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_251]
Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.v1_12_R1.inventory.CraftMetaBlockState cannot be cast to org.bukkit.inventory.meta.SkullMeta
        at fr.gnaboo.gnanplugin.join.GnanJoin.onInteract(GnanJoin.java:79) ~[?:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_251]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_251]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_251]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_251]
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
        ... 17 more
strong star
#

How can I load a preexisting world file during runtime? It seems like the standard way Bukkit.createWorld(new WorldCreator("world_name")) no longer works in 1.15?

frigid ember
#

org.bukkit.craftbukkit.v1_12_R1.inventory.CraftMetaBlockState cannot be cast to org.bukkit.inventory.meta.SkullMeta @worn gate
also that would mean that your plugin would be limited to 1.12.r1 servers

fast yarrow
#

anyone else having issues buying on spigot atm?

worn gate
#

I think i corrected it 🙂

frigid ember
#

by issues what do you mean

#

if by paypal holding money, well, paypals fault ¯_(ツ)_/¯

tiny dagger
#

paypal is holding a lot of money recently tho

frigid ember
#

they're planning to keep it for themselves

tiny dagger
#

nah

#

interest

#

ongoing buisnesses

#

or something

#

but it's clearly not for protection

fast yarrow
#

i keep getting We're sorry but things dont appear to be working right now. Please try again later. error when i go to pay

chrome lark
#

that generally means that either paypal is having issues, or the email address that the author is using is invalid

bronze marten
#

Paypal not so pal anymore smh

tardy lance
#

does someone has an tutorial or something to create quest npcs in 1.14.4?

eternal jewel
#

hello guys i have a problem
with the discordsrv
i cant get the discord srv file
how cn i get the file?

worn gate
#

How can i execute a command with a plugin even if the executer doesn't have the permission ?

#

Like Bukkit.dispatch

hardy cedar
#

There is plugins does that

#

But what do u mean

#

?

worn gate
#

I would like to be able to execute /lp user gnaboo set lg.perm when you click on lg in my gui

#

Using LuckPerms

hardy cedar
#

U can use chest commands?

worn gate
#

No

#

It's on my custom plugin

vernal lance
#

you could have the console run it

#

¯_(ツ)_/¯

worn gate
#

?

#

how

hollow thorn
#

how do i weaponise bees

worn gate
#

anyone knows ?

hollow thorn
#

Anybody here able to assist me with Island Tping when Falling into Voild?
@dire ravine public void move(OnPlayerMoveEvent e){ Location loc = e.getTo;if(loc!=0)return;

#

and then you would have to find the closest island

#

or a random one

#

int x = Math.Random("highestpossiblex")

#

same for z

#

and y

#

then you would use loc.setY(y)

#

and same for x and z

vernal lance
#

you could always save the last block they stood on

hollow thorn
#

before checking if loc.getBlock.getType is not equal to air

#

and then change the y by 1

worn gate
#
@EventHandler
public static void onDamage(EntityDamageEvent event) {
if(event.getEntityType()==EntityType.PLAYER) {
Player player = (Player) event.getEntity();
Location loc = player.getLocation();
if(loc.getY<0){
loc = (loc.getX, loc.getY+100, loc.getZ)
player.teleport(loc)
}```
hollow thorn
#

that will just tp you 100 blocks higher

#

you would need something to get the nearest or last island they were on

worn gate
#

well idk

#

Anyone got an idea of howto make execute a command to a user even if he doesn't have the permission to execute this command ?

barren abyss
#

Is it illegal to make a plugin from scratch with an idea that another guy had?

#

some people are yelling at me for it kek

vernal lance
#

it's a dick move

#

in bird culture

#

¯_(ツ)_/¯

bleak osprey
#

hey,

does anyone knows how to block Luckpermsbungee and NuVotifiert from Tab complete? iam using PL-Hide

#

some people are yelling at me for it kek
@barren abyss if u do it for free its fine 🙂

barren abyss
#

it is free

#

so gege

vernal lance
#

I have had someone copy my work I was showing off and then they tried selling it

#

¯_(ツ)_/¯

#

they got a massive backlash from the community though

bleak osprey
vernal lance
#

I planned to sell it as well

#

but ended up releasing it for free

bleak osprey
#

good one

#

get some support from donors..

vernal lance
#

and my version was better

#

I did get a fair amount of donations

bleak osprey
#

i dont get it why people sell things in the biggest community on earth 😄

vernal lance
#

however in the long run it helped with my reputation for building tools

#

if you are good at something

#

don't do it for free

#

¯_(ツ)_/¯

#

and it also doesn't pay the bills 👀

bleak osprey
#

ok.. from now on i will earn money for sitting on my fat ass 😄

vernal lance
#

I mean

#

that's what I do

#

technically

bleak osprey
#

and it also doesn't pay the bills 👀
@vernal lance sure... but get real work?

vernal lance
#

I mean considering with the crisis this is way more stable work haha

bleak osprey
#

😄

vernal lance
#

plus I'd rather do this which I enjoy than doing a minimum wage job

#

¯_(ツ)_/¯

bleak osprey
#

ok 😄

#

iam just a bit tilted of all these plugins which i have to pay

#

iam paying more for Plugins per month then for the server

vernal lance
#

I mean I feel for most you are paying for premium support

#

and it's usually a one time payment

#

unless ofcourse they charge for month

#

then I can see your concerns

wheat summit
#

How would I check if an item in a slot exists?

#

I see there's getInventory().contains() though it doesn't seem like I can specify the slot

#

Also is there a way to disable damage immunity?

eternal jewel
#

guys how can i get the discord srv?

#

file

wind dock
#

hi - do minecraft servers get my public or local ip address? and how do i change it?

half wigeon
#

public - otherwise they wouldnt be able to connect

bleak osprey
#

hey,

does anyone knows how to block Luckpermsbungee and NuVotifiert from Tab complete? iam using PL-Hide

obtuse rose
#

by not giving users permission to LP command?

#

LP also check permission before tab completing

dusty topaz
#

@wheat summit
use #getSlot then compare that way

#
ItemStack comp = inventory.getSlot(slot);
if (comp != null && comp.isSimilar(myItem)) {
  // bla
}
worn gate
#

Anyone got an idea of how to make execute a command to a user even if he doesn't have the permission to execute this command ?

wheat summit
#

@dusty topaz I'm using player.getInventory() and there's no .getSlot function

dusty topaz
#

getItem(int slot)

#

it should be

wheat summit
#

Ok thanks

#

Do you know what slot boots are in?

dusty topaz
#

uhh i know helmet is 5

#

just do a debug and see

wheat summit
#

Ok thanks

plucky relic
#

Will a witch trigger a proyectile launch event?

sturdy oar
#

y

#

it will always trigger a ProjectileLaunchEvent but not always a PotionSplashEvent

fallen garden
#

I need to use a completeable future to let a user know that a task is done, is that ok since it bypasses the bukkit task system

sturdy oar
#

you can also complete CompletableFutures with Bukkit Async scheduler

#

that is fine and I've done it several times

#

no issues tbh

fallen garden
#

you can also complete CompletableFutures with Bukkit Async scheduler

#

Do u use the scheduler?

sturdy oar
#

just be sure that the stuff that you're doing can be fully async

#

yes i complete the CompletableFuture with a scheduler from bukkit

fallen garden
#

Well it’s all my code in the async block so it should be fine

wheat summit
#

This is just a question to be clean though in console how would I send a message to it in a certain color?

sturdy oar
#

ANSII color codes

#

is a way

wheat summit
#

I've tried Java's java.awt.color and Bukkit's ChatColor and Color classes though neither are outputting in console a color, mainly jsut the RGB of it

#

Ok thanks

sturdy oar
#

or you can

#

send with Bukkit color codes

#

to the ConsoleCommandSender

wheat summit
#

Ok thanks, I'll probably use the ASCII color codes

sturdy oar
#

also remember to use RESET color code , otherwise the rest of the console will be colored lmao

wheat summit
#

Yep I see, lol

plucky relic
#

Can 2 mobs have the same namespaced key on their persistent data containers?

eternal jewel
#

guys help

#

i really need to have a discord bot

#

that connected to my aternos server

sturdy oar
#

🤣 aternos

eternal jewel
#

why

analog roost
#

Hello, does anyone know how to use tab complete with bungeecord ? I have an issue with command /ban and /msg and all other minecraft-natives commands, I'm looking to made a custom tab with them, but for now don't fin a trick :c Can someone help me ? 🙂

hallow surge
#

@eternal jewel im going to echo the fact that you should not be going through the efoort of connecting to a bot to a server that has 2gigs of ram and can barely runa survival world with one player

#

im baffled that you think thats a good idea and wort h the effort

frigid ember
#

Guys, cans omeone help me.
In my packet listener, when a user disconnects and reconnects, for some reason, no packets are received anymore.

#

I inject when they join and uninject when they leave.

#

When I join right after a restart, it works and all packets are received and all is good.

#

Once I relog or leave, and reconnect nope.

#

All my debugs are not showing.

hallow surge
#

code would be helpful

frigid ember
#

what part

#

wait

#

i think i realize

tiny dagger
#

don't remove like that

hallow surge
#

^

tiny dagger
#

it can crash the server

#

go thru eventloop

frigid ember
#

i run it async

#

i call the inject method asynchronously

tiny dagger
#

no you don't understand

#

use eventloop to remove

hallow surge
#

lol if he doesnt wanna listen dont make him his server he's hurting

tiny dagger
#

async 1 != async 2

frigid ember
#

ok

#

for injecting and uninjecting?

tiny dagger
frigid ember
#

can i put inject function in a runnable

#

and then give eventLoop

tiny dagger
#

java syntax doesn't change

frigid ember
#

ik.

tiny dagger
#

but that's not the best way to do it

frigid ember
#

so i do for injecting and uninjecting?

#

some people told me not needed for uninjecting

tiny dagger
#

it is

frigid ember
#

which channel

tiny dagger
#

not sure if its needed for injecting

#

but on quit it is

frigid ember
#

so thus

#
  public static void uninjectPlayer(final Player player) {
        final Channel channel = getChannel(player);
        final Runnable runnable = new Runnable() {
            @Override
            public void run() {
                channel.pipeline().remove(player.getName());
            }
        };
        final PlayerUninjectEvent uninjectEvent = new PlayerUninjectEvent(player);
        PacketEvents.getEventManager().callEvent(uninjectEvent);
        if (!uninjectEvent.isCancelled()) {
            channel.eventLoop().submit(runnable);
        }
    }
#

to

tiny dagger
#

if you don't believe me try it with protocollib

frigid ember
#

why execute an not submit

#

i never said ii dont i want to understand why

tiny dagger
#

i could look it up

#

oh

#

submit is handled by the eventloop

#

so i guess it's better

frigid ember
#

nope its not better

#

its worse as there is stilla chance it will execute on the same thread

#

i remember from learning netty and it explains that too

#

submit would be better

#

so basically i did it correct

#

both would still work but mine will for sure be done on a new thread

#

is what im trying to say

tiny dagger
frigid ember
#

?

tiny dagger
#

isn't what i just said

frigid ember
#

u just said that?

tiny dagger
#

yes

frigid ember
#

ur confusing me

#

but thats wrong then

#

im telling u

tiny dagger
#

considering my plugin using it is live on a few servers and never happened anything to them was a success i guess

#

🤔

frigid ember
#

Just skid tinyprotocol or hamster

#

Or the 30 other packet apis

sturdy oar
#

ProtocolLib?

tiny dagger
dense leaf
#

How do i get the time from a bukkit runnable class into my scoreboard (Main class)

woeful mural
#

Is it possible to change the client timeout time? I'm aware it's possible to change timeout in spigot.yml but that only applies to the server, the clients still timeouts

fathom zealot
#

yeah im having java issues

#

i tried java 8 AND 11

#

and its missing libraries

#

im using PebbleHost

#

any idea how to fix

dense leaf
#
28.05 19:07:22 [Server] INFO at me.vagdedes.msw.a.a.onCommand(Commands.java:291) ~[?:?]```

Look on these lines.
fathom zealot
#

oh ok

dense leaf
#

so 291 on your Commands class and 19 on your FileEncoder class

worn temple
#

@fathom zealot that's not a java issue lol. Apache commons is missing from the jar

#

Or rather, you are using something you shouldn't be. Still, not a java issue

fathom zealot
#

Oh

#

but how can i fix it? Im rlly inexperienced and

tiny dagger
#

is that even your own code? 🤔

fathom zealot
#

huh

#

no its a plugin error

#

dev said to talk to spigot peoples

tiny dagger
#

ohh

#

did you compiled with spigot then used paper?

#

or the other way around

#

cuz apparently it's busted

fathom zealot
#

i use spigot 1.13.2

tiny dagger
#

i tried using the spigot fastutil lib

#

it wasn't working on paper

fathom zealot
#

im sorry idek what u mean lol

#

im that inexperienced

bronze marten
#

org/bukkit/craftbukkit/libs/org/apache/commons/io/FileUtils

#

since when does bukkit shade in commons io?

tiny dagger
#

for a while

#

actually

fathom zealot
#

How dod i fix

#

do i fix

#

please i-

tiny dagger
#

you can stop using them

bronze marten
#

can you try that plugin on latest mc

#

1.15.2?

tiny dagger
#

get rid of FileUtils

bronze marten
#

see if that solves it

worn temple
#

If this isn't even your code, stop using the plugin. Don't know why the dev is telling you to fix their problems.

fathom zealot
#

no its for my mc server

#

i asked the dev and he said i think its a java issue

#

because it does work

bronze marten
#

its not a java issue

fathom zealot
#

oh

#

i paid 6 euros for it

bronze marten
#

like I said, can you try 1.15.2?

fathom zealot
#

ok

#

ill try it

bronze marten
#

if that works the dev just used a library which is not present in older mc versions

worn temple
#

pro tip, don't pay this dev again. They don't know what they are doing

bronze marten
#

and he should refer to other methods for older version support (if he states that the plugin is compatible with your 1.13.2)

fathom zealot
#

hes the same guy who made spartan

#

ill ask him

#

best mode for the plugin

#

version

#

cause i dont wanna corrupt my worlds yet

bronze marten
#

just start local test server

fathom zealot
#

ok

bronze marten
#

dont boot your production server in 1.15.2 lol

fathom zealot
#

ill boot my non-used one

tiny dagger
#

oh

#

let me see 1.13

#

pretty sure the libs are in a different place

bronze marten
#

yeah seems odd to me

fathom zealot
#

ok ill try it

tiny dagger
#

but it's strange he said is a java problem

fathom zealot
#

He said its a

bronze marten
#

ok the lib is present in 1.15.2

fathom zealot
#

"General issue"

#

Ok

#

might just be 1.15

bronze marten
#

tell the plugin maker to either not use that shaded apache commons io or say that its incompatible with 1.13.2

tiny dagger
#

dl 1.13

sturdy oar
#

does com.isun.istack.internal come from Bukkit\Spigot ?

bronze marten
#

just unzip the jar

sturdy oar
#

...

#

I know i can do that

tiny dagger
#

for me it's still building

bronze marten
#

no isun :p

sturdy oar
#

oooh

#

from the JDK?

#

im dumb

bronze marten
#

might just be intellij

#

intellij decompiling stuff?

sturdy oar
#

no intelliJ has their own NotNull and Nullable annotations

bronze marten
#

actually it just says right there AdoptOpenJDK lol

soft tusk
#

You can help with Firewall?

#

1.8

sturdy oar
#

no

bronze marten
hollow drift
#

If I've got an old PR that I just updated to work with latest, is it OK to force-push?
I had nms-patches and wanted to rebase to make it clean

tiny dagger
#

why search on google when you can make others search for you weSmart

soft tusk
#

I don't really understand it ... I'm from the Czech Republic

bronze marten
#

If I've got an old PR that I just updated to work with latest, is it OK to force-push?
I had nms-patches and wanted to rebase to make it clean
@hollow drift eh, don't force push if your absolutely certain the thing you're pushing is the state of the project you want

#

or just dont force push

soft tusk
#

The best way to fool-proof and secure your BungeeCord server is using a firewall in order to prevent access to them at all from the outside world. By default, most Linux distros come preinstalled with the easy to use iptables. Once you have everything set up you can activate this firewall with the command below. Replace $BUNGEE_IP with the IP of the server running BungeeCord, if your Minecraft server(s) and Bungeecord are on the same physical server, this IP will be 127.0.0.1. Replace $SERVER_PORT with the port of your Minecraft server.

Where is config where should I write it?

bronze marten
#

shared hosting?

soft tusk
#

I have hosting Hicoria

hollow drift
#

@bronze marten well I'm sure my local copy is in the state I want

#

the question is can I squash two commits to nms-patches to make it readable

#

otherwise it's going to be a total mess

#

but if I squash I have to force

soft tusk
#

@bronze marten Yes

bronze marten
soft tusk
#

This plugin was developed by TutorialMakerHD.

Dieses Plugin wurde von TutorialMakerHD programmiert.

settings:

Here you have to specify the IP of your proxy without port.

Hier musst du die IP deiner Proxy ohne Port angeben.

proxyIP: 127.0.0.1
/
|
Should I put the ip address + port of the BungeeCord server here?

Here you can change the kick message, if a player doesn't join through the proxy.

Hier kannst du die Nachricht bearbeiten, die kommen soll, wenn einer Spieler nicht mittels der Proxy joint.

playerKickMessage: '&cYou have to join through the proxy.'

bronze marten
#

@hollow drift if you built your local copy on top of the branch youre pushing to, I guess its fine, make a backup before you do to be absolutely certain (so you can force push later if you make a mistake)

soft tusk
#

@bronze marten # This plugin was developed by TutorialMakerHD.

Dieses Plugin wurde von TutorialMakerHD programmiert.

settings:

Here you have to specify the IP of your proxy without port.

Hier musst du die IP deiner Proxy ohne Port angeben.

proxyIP: 127.0.0.1
/
|
Should I put the ip address + port of the BungeeCord server here?

Here you can change the kick message, if a player doesn't join through the proxy.

Hier kannst du die Nachricht bearbeiten, die kommen soll, wenn einer Spieler nicht mittels der Proxy joint.

playerKickMessage: '&cYou have to join through the proxy.'

bronze marten
#

@soft tusk just ip

tiny dagger
#

i just looked into 1.13

bronze marten
#

dont repeat msg xd

tiny dagger
#

there is no apache

bronze marten
#

k then that plugin is incompatible with at least <= 1.13.2

#

lol

tiny dagger
#

at least not in craftbukkit libs

soft tusk
#

@bronze marten And the port should not be there, or where?

bronze marten
#

no port

soft tusk
#

ok

hollow drift
#

Thanks, Frank- I think I'll just ask if they even want it updated

bronze marten
#

oh its not your repo?

#

then def ask haha

#

prob they set their branch to protected (I hope) so no one can force push

soft tusk
#

does not work 😦

bronze marten
#

there are multiple plugins which do the job, you could try a few of them

#

another one

hollow drift
#

Oh no to be clear it is my repo, my PR :)
I'm mostly just not sure how Bitbucket handles a force-push on a PR'd branch, like any code-level comments that have been made would probably get lost, that kind of thing.

soft tusk
#

@bronze marten Does not work

#

restart BungeeCord?

bronze marten
#

Oh no to be clear it is my repo, my PR :)
I'm mostly just not sure how Bitbucket handles a force-push on a PR'd branch, like any code-level comments that have been made would probably get lost, that kind of thing.
@hollow drift ah, iknow that gitlab still keeps the comments of the code, but it gets fucky if you start clicking through it to get to the actual code file. I dont know hot bitbucket behaves in that way

hollow drift
#

Well thank you for your advice!

bronze marten
#

restart BungeeCord?
@soft tusk no shouldnt matter

#

np ^^

true blade
#

Could someone help me with multiverse world spawning and the problem with Essentials conficting?

bronze marten
#

@soft tusk could you provide a lil more info on "does not work" xd

#

like, what does it do that you dont expect?

sturdy oar
#

is there a list of blocks that match Material.isOccluding()?

#

like the Check if the material is a block and completely blocks vision is not really clear

#

for example a door completely blocks the view if you look at it from the front

#

but if you look at it from the side it does not

frigid ember
#

what is the minimum entity health can be?

#

like 0.000001 or higher?

sturdy oar
#

everything above 0 i guess

#

not sure if it gets rounded or not

tiny dagger
#

tryandsee i guess

frigid ember
#

i dont really test things before i just try and make something first see if it works later ¯_(ツ)_/¯

dark shuttle
#

is there a way to make arrow go through mobs instead of hit it?

tiny dagger
#

yes but it's not easy

#

1.12+ right?

#

you need to create a custom arrow

#

and then modify the movingblockposition method

true blade
#

Could someone help me with multiverse world spawning and the problem with Essentials conficting?

frigid ember
#

Hello, I made a minecraft server, port forwarded it and added a domain, however once my friends join and they lag out or have to disconnect it doesn't let them join back in because they either get connection timed out java error or something else. That happens to everyone that joins my server, they can't rejoin without me either restarting the server or them launching another minecraft version. Sometimes those methods don't work. I've tried letting my friends join through my public ip but it didn't work either. What's the issue? Can someone help me fix this?

dusty topaz
#

How much ram have you given to the server, what does it say in console when they disconnect and what does it say on their client when they disconnect

frigid ember
#

6 gigabytes

#

It doesn't say anything in the console but it says for them: java.net.connectexception connection timed out no further information

#

or just Timed out

dusty topaz
#

do they actually load into the world

frigid ember
#

No

dusty topaz
#

then you haven't port forwarded properly

frigid ember
#

Once they join and reconnect its fucked

dusty topaz
#

i'd recommend just using hamachi

frigid ember
#

?

#

and?

dusty topaz
#

what

frigid ember
#

Will that fix it?

dusty topaz
#

probably

frigid ember
#

What does Hamachi do?

#

better use ngrok

#

than hamachi

#

What's ngrok?

#

What do they both do?

#

it's like hamachi, but players don't need to install it to join your server

#

oh

#

hamachi creates VPN between you and your players so no port forwarding to join, but everyone has to install it

#

Yeah

#

ngrok is ssh tunnel that forwards traffic to your 25565 port without port forwarding

#

How do I use ngrok is there a tutorial?

#

Can you send it to me?

#

just google, you should find, it's easy command line tool, it then gives address which you give to players to connect

#

an Ip?

#

So I can turn it into a domain?

#

nop, it gives pretty unfancy address

#

?

#

so

#

like tcp.ngrok.io:455335

#

hell no

#

it's good for when playing with friends

#

I want my own domain

#

then port forward I guess

#

I'm hosting a server for random people

#

I did port forward

#

It does work

#

I can turn it into a domain

#

My friends can join through the domain and the public ip

#

oh then sorry I just saw hamachi mentioned and came in with wrong advice

#

but when they reconnect it doesen't let them

#

since ngrok better than it

#

So I went here

#

beacuse it's a spigot server

#

is no plugins on server?

#

A few

#

that could hurt reconnects

#

tried without?

#

I'm hosting it on 6 gigabytes

#

I did

#

6gb hdd?

#

Every server I make does that

#

ram

#

More than enough for a few players

#

5-6

#

on same machine or every server on any machine that is made by you?

#

Same machine

#

it may be firewall issue

#

I haven't tried hosting a server on an other machine

#

have you touched iptables?

#

?

#

What's that?

#

you're using Linux?

#

no

#

Windows

#

no idea then, I never run servers in windows other than localhost test server

#

So if I download linux will you guide me how to make a server?

#

I really don't want to download linux

#

sure, I've been working with Linux servers for 8 years

#

I want to be on windows

#

ok

#

it's great for servers if you're using it for servers

#

Oh

#

Which version

#

note that I can't guarantee that it'll fix your problem

#

I use Debian 10 personally

#

I can't make a difrence between

#

ok but what's the one you know the best and is capable of hosting a server on?

#

I'm not experienced at all with linux

#

Debian is good for it

#

I've tried it before but never learned it professionally

#

Do I download it on my 2nd pc or do I make a virtual machine?

#

My 2nd pc has 2gb ram is it going to handle a whole network tho?

#

not sure, I've only used linuxes from host providers so far, so I'm of no help how to install the base OS

#

Bedwars, KitPvP and Prison

#

nope

#

Proxy and Lobby 1 and 2

#

2gb only for proxy xD

#

and databases

#

????????????????????????????

#

homehosting is also dangerous

#

I have my proxy on 128 or 256

#

mb

#

Why is it dangerous tho?

#

yup, but JVM likes to use more memory than you allocate

#

have to account for it

#

Do I look like I can spend money on servers

#

When I don't get an income