#help-archived

1 messages · Page 135 of 1

sturdy oar
#

wut

bold anchor
#

Also class is not implementing listener

pastel arrow
#

pseudo code

sturdy oar
#

i program in pseudo code smh

#

u just need a pseudo code compiler

pastel arrow
#

Anyways all other events work just not one thats ran in onDisable()

subtle blade
#

(1) Test it and find out
(2) To my knowledge, by the point of plugin disable, all listeners have been unregistered and there would be none to listen for it

bold anchor
#

If you just want to call your own api somewhere just call it from an injected instance or smth

#

You should also save regularly and not just on disable.

pastel arrow
#

(1) Test it and find out
(2) To my knowledge, by the point of plugin disable, all listeners have been unregistered and there would be none to listen for it
I have tested it lol thats why I am asking if onDisable doesn't allow events to trigger.

And from my testing onDisable does not unload listeners unless you do that yourself.

bold anchor
#

It unloads plugins tho

#

How will you allow a plugin to listen to your event if it was already unloaded

sturdy oar
#

Choco are you canadian?

pastel arrow
#

the plugin can disable but still have its data during that event. after that event then I unload the apis data

bold anchor
#

But yappery, if you tested it you should know if it works or not.

#

It if doesn't work for you, big rip.

pastel arrow
#

It doesn't. lol

subtle blade
#

Yes I am

sturdy oar
#

do you recommend it?

woeful ember
#

i started a paper server and im not sure what is blocking other palyers from joining ive port forwarded and allowed java and minecraft through my firewall

mellow wave
#

This isn't the paper discord, but have you double checked if the port is open by pinging it @woeful ember

woeful ember
#

how do you recomend that i do that?

odd knoll
#

Works all the time (make sure something is running on that port at the same time).

sturdy oar
#

i nmap myself from my external VPS 👍 😎

odd knoll
#

xD. That's another way.

woeful ember
#

ok so its says that its closed how would i open it up?

#

when i go to my default gateway website and go to port forwarding the same ip and port are there so how would i open it

mellow wave
#

On my gateway I had to assign it to my pc specificly, you can try to do that

woeful ember
#

the port forward is assigned to my pc

#

or is using the ip of my pc

mellow wave
#

hm idk try searching for device specific information online

woeful ember
#

ok thanks for your help

acoustic temple
#

is there a way to make it so that you can climb up any block as if there was a ladder on it?

bronze marten
#

Isnt that clientside

rigid zephyr
#

Hi everyone! seems like max-bulk-chunks is only for <1.9 spigot. Is there any equivalent for 1.15.2? I'm looking to limit chunk sends per packet.

mellow wave
#

You could to trigger the levatation effect

#

That would force the client to go up

bitter tendon
#

How to save/load a schematic with custom meta data?

zealous cliff
#

What does ping_passthrough do in bungeecord? The config says it passes the ping to the default server, is this the player's actual ping value?

rigid zephyr
#

Schematics are part of w/e's support forum.

#

ping_passthrough passes the proxy <-> client's ping for the backend servers, so yes it is the 'actual' ping value unless you've got some ping spoofing clients.

zealous cliff
#

So server plugins will not be able to see the client's ping if it is turned off?

fleet crane
#

No it's about the server list details

#

Nothing to do about the player

#

@rigid zephyr later versions only ever send one chunk per packet, the bulk chunk packet does not exist

rigid zephyr
#

Thanks!

pure pasture
#

Guys I'm making an RPG System with custom Health and everything and I want to make Armor Stats (Bonus Health and Stuff) but I don't know how I would take away the Bonus Health again?

rigid zephyr
#

@fleet crane would there be anyway to limit chunk sends per second per player? or are chunk sends locked to one chunk per packet?

gleaming helm
#

There are some f-words that do it

steady cedar
#

...will you call me homophobic if I say it?

zenith bluff
#

What does ping_passthrough do in bungeecord? The config says it passes the ping to the default server, is this the player's actual ping value?
it's best if you keep it off

frigid ember
#

Bukkit.getPlayer(name).isOnline() who this error if someone is not online?

subtle blade
#

getOfflinePlayer()

frigid ember
#

ah ok makes sense lmfao

subtle blade
#

Also, if you're holding names as persistent data across restarts, don't. Only time you should be getting an offline player by name is from player input (i.e. a command)

frigid ember
#

yea, i am doing a nick command so i just needed to check if the player was on the network

subtle blade
#

Might be better to run a hasPlayedBefore() then

frigid ember
#

would it error if they havent too?

subtle blade
#

It just returns a boolean. If they've never joined the server, it will return false

#

Still use getOfflinePlayer() though

frigid ember
#

can i get metadata from a different plugin that was set in one plugin?

bold anchor
#

Yes

grizzled hound
#

is there any way to just run a bit of code syncronously from an async function without making a whole Task?

quartz trench
#

If you mean besides anonymous classes as well not that I know of

#

I'm gonna plug Aikar's TaskChain library it might be useful for what your doing

grizzled hound
#

ok ty

frigid ember
#

how do i add meta data to someone and read it i obviously cant get it..

quartz trench
#

You would use a persistent data container, but as mentioned by Choco you shouldn't store a nickname in that way

ashen drum
#

I need help getting bungeecord to work. Everytome I connect to the proxy it tells me to connect to the proxy

frigid ember
#

wasnt storing it that way, i was just trying to figure out if there nicked. so that i can change their chat message.

lone fog
#

Just have a list in memory?

grizzled hound
frigid ember
#

hey (sorry @grizzled hound for skip your question but idk)
Someone know where i can ask to delete my ressource ?

grizzled hound
#

np

golden vault
#

report it with "please delete"

frigid ember
#

thx

golden vault
#

np

frigid ember
#

@grizzled hound are you sure spigot is imported ?

grizzled hound
#

wdym?

frigid ember
#

and what spigot version do you used

grizzled hound
#

1.15.2-R0.1-SNAPSHOT

frigid ember
#

i meant Are you sure that spigot is imported as a dependency (with maven, gradlew or manually)

grizzled hound
#

yes

#

here it is in my pom: <dependency> <groupId>org.spigotmc</groupId> <artifactId>spigot-api</artifactId> <version>1.15.2-R0.1-SNAPSHOT</version> <scope>provided</scope> </dependency>

#

why is discord formatting so bad

frigid ember
#

i'm into the javadoc of sipgot and runtask function need plugin (Main) class

grizzled hound
#

hmm ill try it that way

#

seems to be working!

#

thank you

frigid ember
#

np

dusty topaz
#

What metric is this burn time in?

#

Ticks? Amount of items it burns?

ashen stirrup
#

It’s usually ticks

molten badger
#

i have the economy plugin, when i do /bal for balance, it says that economy doesn't work for this world
can anyone help?

tiny dagger
#

try frConomy 👀

past crag
#

How do servers create "custom" entities? Basically I went onto a server with Dinosaur looking entities in the spawn and all I had to download was the resource pack. Some investigation made it seem like they retextured armor stands with specific items on their heads but I'm not positive on this, but I'm not sure exactly how that works.

pastel condor
#

Make your entity implement the custom entity thing and then follow the custom model tutorial I think

sullen spindle
#

Heyo - Could someone lend a hand really quick with Bungee?

tall cedar
#

hmm... i'm getting "You dont have permission to access this server." with bungee when i do /server hub. I can through the console to send <name> hub and it works

#

I have bungee's config at default

sullen spindle
#

You cant use the command?

zenith bluff
#

@sullen spindle might be that the serverlist is a proxy ping and the in-game is a backend one

sullen spindle
#

How can I lower the ping? It shouldnt be that high..

granite hedge
#

@sullen spindle You can't, and im guessing it should be that high, its like that for everyone.

sullen spindle
#

So, the low ping is proxy? and high ping is backend

#

How can I display the proxy ping rather than the backend?

#

If I want to ./ping, it should show proxy right?

#

Shouldnt Ping Passthrough do this?

tall cedar
#

bah... figured it out... i had it restricted >.>

pastel arrow
#

@sullen spindle the ping on the server list is to the bungee. The server you connect to when you join the bungee could be a server in a different location causing higher ping.

fleet crane
#

also ping is probably measured during the tick loop

#

hard to tell without knowing what is happening to measure it, ping isnt a builtin command

zenith bluff
#

Shouldnt Ping Passthrough do this?
@sullen spindle Ping passthrough essentially just makes the proxy MOTD the one where the proxy is pointing to, instead of the MOTD set in config.

#

I think it also shows the backend ping too, rather than proxy ping

sage summit
#

i need help here

#

please

inland oxide
#

?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.

inland oxide
#

Spigot has a great resource under Tips, Tricks and Tutorials...

#

also on that same wiki is some stuff on plugins

#

in there you can find the stuff on configuration files

#

you can also refer to this site for some examples on the Configuration API

#

you can also look at the java docs on the ConfigurationSection

upper skiff
#

Hi, my stash account still isn't activated after a while after following https://www.spigotmc.org/wiki/cla/ after weeks. (Username Hex_27). Is there something I need to do first?

frigid ember
#

Hi i have two questions: 1. Must a OfflinePlayer be offline or can it be online? 2. How can i get a player instance just by their name?

misty jetty
#

Hi all I'm vergevaliant19! 👋 😃
I need some help navigating different minecraft modding resources so that I can mod my server for me and my friends. Is this where I should put related question?

zenith bluff
#

Are you referring to Forge mods or Spigot plugins?

frigid ember
#

Trying to delete all entities in the world on disable

#
    public static void removeEntities() {

        for (Entity en : Bukkit.getWorld(Statics.worldName).getEntities()) {
            if (!(en instanceof Player)) {
                en.remove();
                System.out.println("entity removed");
            }
        }

    }```
fleet crane
#

@upper skiff you likely put fake info or info that didnt match your account

frigid ember
#

Only removes entities that players are nearby

#

Any idea?

fleet crane
#

just looked, you didnt have ajira account matching the details you put inthe CLA

frigid ember
#

@fleet crane yoooo. I've tried to not spam you with useless "bug" threads :p

#

That 99% of the time are not bugs. Lmao

fleet crane
#

because getEntities only returns loaded entities

#

not every entity saved in the world

upper skiff
#

weird

#

I'll check again

fleet crane
#

maybe you want to look into ChunkUnloadEvent and remove entities there

upper skiff
#

Do I fill it in again? How do I resolve it?

fleet crane
#

make sure you have a jira account and fill in the CLA using the same name+email on that account

upper skiff
#

so refill the google form?

#

Alright

fleet crane
#

yes

frigid ember
#

Yes md_5 I think thats what I want

#

because I want all entities removed

upper skiff
#

It asks for the Jira account, is the the full name or the username?

fleet crane
#

username

pseudo oxide
#

When will spigot support 1.16?

#

This is exciting news

zenith palm
#

Does Skript have a location of player variable that doesn't include the pitch and yaw?

frigid ember
#

@fleet crane Last message I promise. I have done a ton of research online trying to get a grip with NMS. I am familiar with reflection - thats not the problem. The problem is, its a massive waste of time trying to figure out what the heck a method named a() does, and how it is supposed to be used in the rest of the class

#

I'm trying to figure out how to time-effeciently get a grip on nms, and how the guys over at bukkit and spigot (you guys) figured out how to wrap an API around that stuff

#

Hi i have two questions: 1. Must a OfflinePlayer be offline or can it be online? 2. How can i get a player instance just by their name?

steady cedar
#

@frigid ember Mappings.

lone fog
#

They can be online. bukkit.getPlayer()

frigid ember
#

Is bukkit.getPlayer() returning all player which are on the server?

steady cedar
#

They use mappings. They can't use the 1.15+ vanilla server mappings, I believe the method names would be more decined

#

@frigid ember No. Bukkit#getOnlinePlayers does that

frigid ember
#

oh ok

#

What does it return?

#

?jd

worldly heathBOT
frigid ember
#

What are these players?

#

Is this a list of all player which ever joined?

gusty coyote
#

getPlayer gets the one you specify with name or uuid, getOnlinePlayers get everyone online

frigid ember
#

ok. And what players can i get with getPlayers?

#

Offline, online or all ever joined

lone fog
#

getPlayer() for online players, getOfflinePlayer() for offline players

frigid ember
#

ok

#

@steady cedar i’m not familiar with mappings, at least the ones you are talking about

#

Does offline players return also online players? There was a isOnline property i think

#

What does that mean exactly?

#

“Mappings”?

#

Found it: getOfflinePlayers​()
Gets every player that has ever played on this server.

steady cedar
#

It gives names to obfuscated minecraft fields and methods.

#

Spigot as an ecosystem has relatively bad mappings, but HOPEFULLY mojang will stop being dicks and we can use their official mappings

hollow dagger
#

Hello

#

can someone help me?

#

i have a problem with the slime generation

gleaming helm
#

?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
#

?xy

worldly heathBOT
tiny dagger
#

am i the only one that goes crazy when they ask for help but don't say exactly what we need to know at once? 😂

frigid ember
#

its not xy im just testing

hollow dagger
#

...

#

Ok.

tiny dagger
#

cut the chase get to the point pls

frigid ember
#

?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
#

?dogfacts

worldly heathBOT
#

Greyhounds appear to be the most ancient dog breed. "Greyhound" comes from a mistake in translating the early German name Greishund, which means "old (or ancient) dog," not from the color gray.

gleaming helm
#

retrooper lol wtf

frigid ember
#

?catfacts

worldly heathBOT
#

Feral cats will go out exploring more often and much further than house cats. House cats can normally be found within the area they live.

frigid ember
#

🙂

gleaming helm
#

No @frigid ember wtf makes you think I asked?

frigid ember
#

???

#

i didn’t even say anyth to u

gleaming helm
#

Good cuz I didn't even ask

frigid ember
#

?????

#

you aren’t making any sense

gleaming helm
#

And you aren't being asked

hollow dagger
#

Ok. When i spawn a slime with CreatureSpawnEvent it spawn with size 16 (as i defined) But, if it die its childs is going to spawn with size 16 too. And it makes a infinite loop.

frigid ember
#

ok

steady cedar
#

Retrooper. More like repooper.

#

Shut up.

hollow dagger
#

` @EventHandler
public void GigaSlime(CreatureSpawnEvent e) {
if (plugin.getConfig().getBoolean("FCambio9") == true) {
LivingEntity lv = e.getEntity();

        if (lv instanceof Slime) {
            Slime sm = (Slime) lv;
            sm.setSize(16);
            double health = sm.getHealth() * 2;
            sm.setMaxHealth(health);
            sm.setHealth(health);
        }
    }
}`
#

this is the code

gleaming helm
#

When new slimes are spawned

frigid ember
#

simplify by removing == true

gusty coyote
#

check the spawn reason for the event then do something different if theres a reason for slimes?

gleaming helm
#

No

#

It's not that

#

The reason is

#

When the slime splits

#

It calls CreatureSpawnEvent

steady cedar
#

Yeah

hollow dagger
#

Yes

gleaming helm
#

Where you set the size right back to 16

steady cedar
#

you should check

#

if the size is 16

gleaming helm
#

That wouldn't even help

steady cedar
#

Why not?

#

Does he want the slime to spawn with size 16?

#

Always?

gleaming helm
#

Because the size isn't 16 when it splits

hollow dagger
#

Yes, but no his childs

#

only the main slime, and then split

steady cedar
#

Is there a flag to check if it's been split or something?

gleaming helm
#

Just...

#

What problem are you actually trying to solve?

#

?xy

worldly heathBOT
steady cedar
#

He's trying to make the parent size 16, and the children(split slimes) NOT size 16

#

So they divide as they always do

hollow dagger
#

YES

gleaming helm
#

parent size when created with a spawn egg, or spawned naturally, or when?

gusty coyote
#

if the spawn reason is slime split, return

gleaming helm
#

That's not a thing

#

@gusty coyote

gleaming helm
#

Oh Creature spawn event

#

lol

#

I was looking at entity spawn event lmfao

#

That's the correct solution

hollow dagger
#

Thank you very much

misty jetty
#

Are you referring to Forge mods or Spigot plugins?
@zenith bluff Hmmm, well that's my first question. As I understand it they each offer new gameplay but Spigot is more lightweight than Forge?

#

One example of that difference in lightweight-ness:

  • Spigot plugins repurpose core minecraft objects w/ server only (using org.bukkit packages like org.bukkit.inventory.meta and resource packs)
  • Forge mods add new minecraft objects w/ server & client (using packages like com.mojang & net.minecraftforge, using decompilers and mixins/traits)
    Do I have the right idea?
steady cedar
#

You do, yes.

gleaming helm
#

Buuuuut in 1.15 you can do a lot of stuff involving the latter using the former.

steady cedar
#

Whereas spigot plugins only listen to the protocol of the client and act upon it, forge mods directly act on the client.

frigid ember
#

1.15 api so seesy

steady cedar
#

Well, that's the lower level I guess

frigid ember
#

sexy

steady cedar
#

@frigid ember Unlike you

gleaming helm
#

OH SHIT LOL

frigid ember
#

ok

#

you aren’t attracted to men then

gleaming helm
#

@steady cedar I have stuff on my project that retrooper's brain couldn't handle right

steady cedar
#

His brain can handle it

#

just not read it

#

or understand it

#

well he can read it, just not understand it.

#

At all.

#

His brain would go poof

frigid ember
#

😂

steady cedar
#

😐

#

Do you see me laughing?

gleaming helm
#

😐

frigid ember
#

i am allowed to laugh

gleaming helm
#

I'm not laughing either

#

No, you're not

frigid ember
#

did i say i see you laughing

steady cedar
#

You wanna be the 🤡 of the circus?

frigid ember
#

no

steady cedar
#

Wanna be the guy who laughs at something nobody else does?

gleaming helm
#

No you didn't because we were clearly not laughing

frigid ember
#

did i ask

#

🤡

steady cedar
#

#general move

misty jetty
#

You do, yes.
@steady cedar Great!

#

Buuuuut in 1.15 you can do a lot of stuff involving the latter using the former.
@gleaming helm Whats an example?

gleaming helm
#

Custom block and item models can all be done in vanilla using server-forced resource packs

#

There's some REALLY cool stuff that can be done there

steady cedar
#

Technically speaking you can very much implement everything that forge mods do with spigot.

#

It would be harder, no doubt

#

but with 1.15 it's become a greater possibility than ever before

misty jetty
#

Ah ok. To your point @gleaming helm wouldn't those models of a forced new resource pack overwrite the old item models? It's not like you could have both the original object & model and a new object & model is it?

steady cedar
#

Actually

#

Yes, you can have both

#

Minecraft 1.9+ I believe added the item durability change, so you can assign an item model to a certain durability

gleaming helm
#

mmmhmmmm

#

Yeahhhh

misty jetty
gleaming helm
#

You cannnn

misty jetty
#

But that's for items with durability. Other world blocks, not really a similar hack is there?

lone fog
#

1.14? Also added multiple textures without the durability system

steady cedar
#

Really?

gleaming helm
#

Yep

#

CustomModelData

steady cedar
#

What about blocks?

gusty coyote
#

theres also the modeldata tag

steady cedar
#

Yoooo?!?

gleaming helm
#

Ohh man

#

Blocks are different

misty jetty
#

WOAH

lone fog
#

And there are 159 unused blocks you can use

gleaming helm
#

There's a trick with blocks

lone fog
#

Because big mushrooms are weird

gleaming helm
#

There's a trick with blocks to not even go into those 159 blocks

steady cedar
#

I'll tell em if you won't

#

lol

lone fog
#

Armorstands?

steady cedar
#

Nah it's a little hackier

gleaming helm
#

nahhh not armorstands

#

It's a little hackeir

#

But way cooler

steady cedar
#

Armorstands are a good guess though

misty jetty
#

Do you have any resources, links, plugins showing what this might look like in game?

gleaming helm
#

Close

steady cedar
#

@gleaming helm let me say it let me say it let me say it

gleaming helm
#

Armor stands are close

#

No

lone fog
#

Spawners

steady cedar
#

Okay

gleaming helm
#

Yeah ok spawners you got it

steady cedar
#

bingo

#

lol

lone fog
#

Nah that’s no good

misty jetty
#

:3 ?

lone fog
#

Still uses an entity

gleaming helm
#

Why is it no good

steady cedar
#

@misty jetty Uhm I believe there was a guy

#

who recreated A terraria boss

gleaming helm
#

Tile entity != entity

#

but ok

steady cedar
#

with the custom models mechanic

lone fog
#

The entity inside the spawner

steady cedar
#

It's a tile entity lol

gleaming helm
#

Same exact performance as a chest lol

lone fog
#

Not on FPS

steady cedar
#

that's such a miniscule drop it's hardly noticeable though?

gleaming helm
#

Sorry bud but you have no idea what you're talking about

#

again

#

Same exact performance as a chest

lone fog
#

I had a few hundred of them and it dropped my game to pretty low FPS

#

Then again that was in 1.12 I think

gleaming helm
#

I'll say it again

#

Same exact performance as a chest

lone fog
#

I’ll have to try it again in the morning, see if it works better now

steady cedar
gleaming helm
#

he's doubtng me lol

steady cedar
#

something like that

lone fog
#

Rendering the mob inside it still takes more resources than rendering a chest

gleaming helm
#

No it doesn't but ok

#

That's only if it's spinning

misty jetty
gleaming helm
#

Don't need item durability past whenever CustomModelData was created

misty jetty
#

@gleaming helm aaah do you have an example of Spigot plugins that take advantage of CustomModelData?

gleaming helm
#

Sure

#
ItemMeta meta = stack.getItemMeta();
meta.setCustomModelData(1);
stack.setItemMeta(meta);
#

That's all you need to do ^

frigid ember
#

what is custom model data

rustic socket
#
void setCustomModelData​(@Nullable
                        @Nullable Integer data)
Sets the custom model data.
CustomModelData is an integer that may be associated client side with a custom item model.

Parameters:
data - the data to set, or null to clear```

Resource pack thing
sturdy oar
#

omg

#

double nullable

#

proxi bad

rustic socket
#

javadocs bork

hoary parcel
#

thats just javadocs being dum

sturdy oar
#

the legend says once in a while you get quadruple nullable

steady cedar
#

the more nullable the more sure you are it's nullable

sturdy oar
#

@Nullable[10]{@Nullable,@Nullable,@Nullable,@Nullable,@Nullable,@Nullable,@Nullable,@Nullable,@Nullable,@Nullable}

gleaming helm
#

double nullable = nonnull

steady cedar
#

yeah but what if you got a triple nullable then it's nullable

#

the word is losing meaning

#

when you say a word a lot it loses meaning

#

nullable nullable nullable

sturdy oar
#

ahah java 1.2 gang doesn't use annotations, real pro store a static final boolean field into the object called notnull

gleaming helm
#

what is help chat without additional retarded messages?

misty jetty
#
ItemMeta meta = stack.getItemMeta();
meta.setCustomModelData(1);
stack.setItemMeta(meta);

@gleaming helm I'm just digging into the minecraft modding ecosystem, link to class docs so I can figure out what this means?

gleaming helm
#

?jd

worldly heathBOT
gleaming helm
#

^

#

This isn't modding.

#

This is possible with a vanilla client and a resource pack

misty jetty
#

Plugin*

#

Thanks!

#

Also, what existing plugins that add new blocks this way can I install and see how they play?

gleaming helm
#

have no idea

#

I think all of the existing block ones have a whacky bug when you place it

#

They call it "unfixable", but it's not unfixable

#

I have an NDA though so I can't tell you how to fix it.

misty jetty
#

As an employee of spigotmc?

sturdy oar
#

There are also datapacks

fossil shoal
#

Spigot is open-source and I don't think they make people sign NDAs

sturdy oar
#

although i wouldn't really recommend them tbh

steady cedar
#

@fossil shoal People make others sign NDAs for plugins

fossil shoal
#

I know, but spigotmc itself doesn't (afaik)

steady cedar
#

No, they don't, you just have to sign a license agreement

#

or something

#

to contribute

misty jetty
#

Thanks for pointing me in the right directions for spigot plugins so far guys 🤩

sturdy oar
#

🤷‍♂️

gleaming helm
#

High profile networks and such make devs sign NDAs

#

Quite common practice

fossil shoal
#

Kevin are you also not allowed to tell what network you work for?

gleaming helm
#

I'm allowed to say that but I'm not going to for the time being because it's not yet released

#

If people ask me post-release I'll tell

fossil shoal
#

Okay, I just wanted to know if you are allowed to.

frigid ember
#

High profile networks are often forced to by mojang, networks such as Mineplex, high pixel, but that's only because they're given the means to use NMS 🤷

gleaming helm
#

... no

fossil shoal
#

You're nonsense @frigid ember

gleaming helm
#

That's for the owners of said networks. I don't have any mojang info, but the person who I'm working for does.

frigid ember
#

Not at all, a license covers everything other than discussing possible methods for doing things, no NDA would mean the devs could go and tell people how to use NMS to do what they want 🤷

gleaming helm
#

?

fleet crane
#

If your NDA prevents you from sharing info about bugs in the software that your job is built around and profited immensely off then I don’t know what to tell you

gleaming helm
#

It's a precaution so that I don't get sued

sturdy oar
#

"high pixel" lol

fleet crane
#

I’ll be happy to call them out on it though

#

Or does your nda prevent you from saying who they are

gleaming helm
#

It's in the same sense that I wouldn't tell anybody public things. For all I know it could be allowed, but I'm not going to put my ass on the line legally speaking

#

It's also not incredibly difficult to figure out by looking at the behavior of said bug

fleet crane
#

Alternatively if you have nothing useful to say then don’t say anything at all

gleaming helm
#

I was pointing out that there is a bug in all of these existing plugins, but it is fixable, so don't let anybody tell you it isn't

#

I'd argue that's useful information

#

Also it's not a spigot bug we're talking about

#

It's an implementation bug in some third party plugins

steady cedar
#

@gleaming helm You like open source software?

gleaming helm
#

yes?

steady cedar
#

I like transparent open source software.

gleaming helm
#

OOOOOOOOF

steady cedar
#

not halfway-open source software.

gleaming helm
#

OOOOOOOOOOOOOOF

zenith bluff
#

lol

#

tbh I think you're full of it, but if you aren't then good for you

hoary parcel
#

Alternatively if you have nothing useful to say then don’t say anything at all
I remember saying that on the spigot forums and getting a warning 😂

#

My wording may or may not included STFU, but oh well 😂

zenith bluff
#

XD

fossil shoal
#

I remember saying that on the spigot forums and getting a warning 😂
@hoary parcel already admitted that it did

tawdry venture
#

Hey! I get NPE on this line: ((CraftPlayer)p).getHandle().playerConnection.sendPacket(packet); is it possible that getHandle() returns null or the playerConnection is null? (I check null for the player, and the packet is definied right before, so that can't be null)

silk gate
#

is p null

#

you should be able to work out what is null just by looking at the stacktrace

tawdry venture
#

as per I said, I check for the player. the stack tracke points to that line.

bold anchor
#

Debug your code

tawdry venture
#

not my plugin.

#

but this crashes our game servers in every half hour with entity tracking exceptions so it's pretty important

silk gate
#

p is prob null

#

id guess

tawdry venture
fossil shoal
#

Split it into different lines

#

And see where the error comes from

ashen stirrup
#
p.getLocation().getX() + radiusAmount/2
p.getLocation().getZ() - radiusAmount/2

If you wanted to make a 50 block radius around a player, would you work it like this to get the X point and the Z point?

sturdy oar
#

so you want to make a circle "border" around the player , where the player is the center, and the circle has a 50 blocks radius?

ashen stirrup
#

Square border

sturdy oar
#

ehm

#

that's called apothem

#

fyi

ashen stirrup
#

But is that how you'd do it

sturdy oar
#

I'm not sure whare are you trying to achieve but you may need something like this:

private final static int DIAMETER = 50;
Location playerLoc = p.getLocation();
int minX = playerLoc.getX() - DIAMETER / 2;
int maxX = playerLoc.getX() + DIAMETER / 2;
int minZ = playerLoc.getZ() - DIAMETER / 2;
int maxZ = playerLoc.getZ() + DIAMETER / 2;
ashen stirrup
#

Wouldn't you only need the Max X and the Min Z?

bold anchor
ashen stirrup
#

You're very funny

sturdy oar
#

i'm pretty sure you also need those

steady cedar
#

@bold anchor I laughed at that, bro, good job

#

Don't listen to "Jeeb"

ashen stirrup
#

Oh, so Max X and Max Z while adding half radius to the Y of each

sturdy oar
#

let me do a better drawing that's shiet

bold anchor
#

That was a 2d painting for x and z, no y was included

ashen stirrup
#
Location point1 = new Location(maxX, p.getLocation().getY() + radius/2, ???);
sturdy oar
#

.... y isn't needed Jan

steady cedar
#

Wait is Y needed?

#

a cuboid

#

lol

#

you want a cuboid?

sturdy oar
#

he said he's making a square border, read his msgs.

ashen stirrup
#
Location point1 = new Location(maxX, p.getLocation().getY()+radius/2, maxZ);
Location point2 = new Location(minX, p.getLocation().getY()+radius/2, minZ);
bold anchor
#

That, makes no sense

steady cedar
#

why are you dividing radius by two?

ashen stirrup
#

There

steady cedar
#

just subtract 50 from the x, z to get min points

#

and add 50 to the x, z to get max

bold anchor
#

To get the quaddiameter of course

ashen stirrup
#

From the player's location, a 50 square border would be 25 on point1 and 25 on point2?

#

(My maths talk is 👎 )

steady cedar
#

I don't think so? You said 50 so it would be (-50, -50) to (50, 50) taking into account position is 0,0, no?

#

I may be having a stroke

#

So

ashen stirrup
#

0,0
point 1 - 25, 25
point 2 - -25, -25

#

I assume

steady cedar
#

but you said 50 blocks away innit

ashen stirrup
#

50 block border around a player

steady cedar
#

my english maths must be autistic

#

because if you want a 50 block border

#

its not 25?

#

Do you wanna check if the player is in that 50 block border?

ashen stirrup
#

The total size of the border would be 100 if you do 50, 50 and -50, -50 correct?

steady cedar
#

i'm autistic

#

don't worry

ashen stirrup
#

same

#

I can't do maths xD

steady cedar
#

yeah its 25 LOL

sturdy oar
#

there's a simpler way

steady cedar
#

3 hours of gta isn't healthy

tiny dagger
#

don't forget to count for 0

#

👀

sturdy oar
#

| (squareCenterX - playerX) | > apothem

#

same for Z axis

ashen stirrup
#

Gimme a sec to search what an apothem is

sturdy oar
#

.-.

ashen stirrup
#

Ah got it

sturdy oar
#

it's """the radius"""""

#

although it's not a radius since it's not a circle but whatever you got it

ashen stirrup
#

Ohhhh yeah igy

bold anchor
#

-25 -> 25 = 50

steady cedar
#

yeah lel

#

brain smoothie

ashen stirrup
#

So point 1 would be 25, 25 and point 2 would be -25, -25

steady cedar
#

my brain is just liquid

bold anchor
#

Sure

sturdy oar
#

this is basic geometry

tiny dagger
#

if you want to check the radius of a circle do x * x + z *z > whatever point

ashen stirrup
#

I think I'll stick to squares for now lmao

tiny dagger
#

pretty easy tho 👀

sturdy oar
#

dude wtf no

#

abs(centerX - playerX) > apothem && abs(centerZ - playerZ) > apothem

#

this returns true if he's outside

#

false if inside

#

correct me if you see anything wrong

steady cedar
#

@tiny dagger what are those weird chars

tiny dagger
#

whitespace characters

#

i got used to them

steady cedar
#

why that looks disgusting

#

ew

ashen stirrup
#

Imma have to agree with Idriz

frigid ember
#

can some1 edit me .class file only 2 lines?

tranquil willow
#

abs(centerX - playerX) > apothem && abs(centerZ - playerZ) > apothem
@sturdy oar Isn't this for a square? I'm quite bad at geometry so I'm really not that sure tbh

sturdy oar
tranquil willow
#

ohhhhh nvm I'm stupid

near urchin
#

how can i pay without paypal?

odd knoll
#

You can't.

near urchin
#

:/

odd knoll
#

Or at least, not through Spigot.

tranquil willow
#

how can i pay without paypal?
@near urchin through cash!

near urchin
#

??

tranquil willow
#

ermmm I'm just messing around

tiny dagger
#

i think donation alerts.com might be an answear 🤔

near urchin
tiny dagger
#

i think there are better lower tax ways tho

#

you can convert any currency into yours of choice with it which is pretty cool

tranquil willow
#

Any idea how I can send like, things from a spigot server to the bungee proxy?

undone narwhal
#

See more about "Plugin Messaging". This is a way to communicate between proxy and backend servers

vale vapor
#

Hello does anyone know how to add a specific head in a config.yml? How could I replace CHEST_PLATE?MenuBar: ClanItem: Use: true ItemData: IRON_CHESTPLATE MetaData: 0 Place: 3 Text: '&5Open clan menu'

sour gazelle
#

I need help with my bungeecord server. I've had it as a private host (at my house) and people could get on it just fine. Then out of no where all of my perms don't work for bungeecord. Then about 5 days later, you cant connect at all and I did nothing to the configs or anything. Like in console there is no message of someone joining like there usually does. Please can someone help me? I get this error when I try to connect:

java.net.ConnectException: connection timed out:
sullen spindle
#

Hello, I have a weird problem.

undone narwhal
#

@vale vapor Add a "PlayerName" key and if the ItemData is player skull or something like this change the SkullMeta

sullen spindle
#

Currently my server is running at 20tps, but everyone on is lagging

#

Everything is sent to the console fine, but it wont relay back for a long time

undone narwhal
#

@sullen spindle Then it's your server connection

sullen spindle
#

and if something is typed in the console it works fine

#

I have 18 ms

undone narwhal
#

Where do you host it?

vale vapor
sullen spindle
#

Oh ok, well its water.

undone narwhal
#

@sour gazelle Is you're proxy lagging when you type any command ?

sullen spindle
#

How can I fix this

undone narwhal
#

@sullen spindle Waterfall ?

sour gazelle
#

IDK

#

I cant know

sullen spindle
#

No, like placing water

#

And it flowing

undone narwhal
#

@sullen spindle What do you mean? When someone place water it's not flowing normally ?

#

@sour gazelle Can't really do something for you :/

sullen spindle
#

its flowing, but it causes lag on my server

undone narwhal
#

You want to disable it?

sullen spindle
#

Disable water?

#

Not really

#

I have a faction server so that wouldnt be very helpful

undone narwhal
#

Then you can't improve it...

sour gazelle
#

@undone narwhal Why not?

undone narwhal
#

Are you using a spigot fork ?

#

Shark I havn't any information :/ Not either the hoster etc...

sullen spindle
#

Oh I forgot I was using paper.

#

One sec

sour gazelle
#

Its at my house

#

Not hosted by anyone but me

undone narwhal
#

How would you like me to help you if you can't even use command

#

Yeah but: Computer ? Server ? RAM ? CPU ?

#

Film water isn't the biggest cause of lags. Something else should create lag.

sour gazelle
#

Computer: Unbuntu
Server: BungeeCord
RAM: 3G
CPU:IDK how to check

vale vapor
sullen spindle
#

Its when lots of water flows at a time

#

Im going to get a timings report.

sour gazelle
#

So loading in new chuncks?

full loom
#

I'm having issues with my MySQL class reading from the config file, would anyone be able to help me?

fossil shoal
#

?ask @full loom

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
#

Anyone here know about PacketPlayOutEntityMetadata?

bold anchor
#

It's a packet

frigid ember
#

i really need help with it

#

how i can make an entity position like bedblock position?

tiny dagger
#

i think in newers versions there is a setposition

frigid ember
#

hmm

tiny dagger
#

only in nms tho

frigid ember
#

long getFirstPlayed​()
Gets the first date and time that this player was witnessed on this server.

#

I got: 1587038662452

#

How can i convert that in a human friendly date?

bold anchor
#

It's prolly unix time

frigid ember
#

?

lone fog
#

Use the java Date class

frigid ember
#

ok how can i work with it?

#

ok i will take a look at the javadocs

frigid ember
#

thank ypu

#

good it works

left plover
#

talking theoretically, if I stored a player object in a map, the player leaves and then I later (whilst the player is still offline) try to change the gamemode of the Player object, would it work or would Player be null?

hot scroll
#

@left plover when the player leaves, I’m pretty sure the object gets deleted, so it will not be in the map

left plover
#

ok thanks

hot scroll
#

Np

chrome lark
#

stuff won't be removed from maps for you

#

it would have 0 impact, however, there are checks for if a player is online, not to mention their data is already saved to the disk

bold anchor
#

If you are storing the player you ae doing wrong thingies

left plover
#

so I should save it by UUID?

chrome lark
#

if you intend to persist the data, yes

#

Player objects are bound to that session, essentially, if you're sure you're gonna remove them from the map when they log off, not much wrong with storing a player in a map, but for longer, use a UUID, otherwise you'll be leaking memory

hot scroll
#

@chrome lark you sure? Because I’ve done that test and it seems to be deleted

chrome lark
#

I'm sure

left plover
#

oh okay, thank you

chrome lark
#

It would be pretty broken if a map started removing stuff from it on its own

#

(outside of weak key'd maps which do stuff to manage that)

hot scroll
#

Then why is it no longer in the collection when they disconnect?

chrome lark
#

what collection?

hot scroll
#

That’s not what I’m talking about

#

Maps and lists and sets mostly

chrome lark
#

If you mean the getOnlinePlayers(), then, yea, the offline player will be removed

hot scroll
#

If there is one player object per player, spigot can remove that object

chrome lark
#

if you mean that you're tryna do something like get(Player), then the Player object is still in there, you're likely just using an invalid one

#

No, it can't

hot scroll
#

No

chrome lark
#

Once again, spigot will not manage your own collections

hot scroll
#

Why not?

#

if I have singleton objects in a map

#

And I delete one object

subtle blade
#

YOU handle what is held in your collections

#

Just because an object is invalidated does not mean your set is going to remove it automatically

hot scroll
#

In a static map, it should be removed from your map

subtle blade
#

No

chrome lark
#

i delete one object

subtle blade
#

This is a lack of understanding of how java works

chrome lark
#

Yes, if you remove an object from the map, it's going to be removed from the map

#

The server software will not automatically remove objects from your own collections, etc; that's not only practically unviable but stupid

hot scroll
#

No I just tested this, and I must have done the test incorrectly, as I had multiple online players, made a map of it, one left and then it wasn’t in the map anymore

subtle blade
#

So you removed it somewhere because I would put $100 on your players not being removed from your collections by CraftBukkit

bold anchor
#

I mean if he is using a weak reference the gc will set it to null

subtle blade
#

That’s not CB removing it though 😄

steady cedar
#

yeah sorry guys I was removing it

bold anchor
#

ikr

steady cedar
#

my bad chestly

#

i was testing out telekenisis on the JVM

worthy lava
#

How do you save an inventory's contents to a yml file?:

yml.set("PlayerVaults." + uuid, rPlayer.getPV().getContents());

rPlayer.getPV() returns an inventory. But everytime i save it, it's an empty array.

raven hound
#

Im building a plugin in eclipse and I'm getting
The type "Mypluginname" is already defined

#

any ideas?

left plover
#

Check to make sure that pluginyml exists once and has only 1 instance with the name defined in it

#

Then delete ALL instances of the plugin from your server (the config should be fine) and re-import it

#

you may need to stop/start instead of reloading

raven hound
#

well my main class has the same name as my plugin

#

does that count as defining it twice

#

heres my plugin.yml:

main: com.gmail.(email).(pluginname)
version: 1.0
api-version: 1.13
commands:```
odd knoll
#

Are you getting that in your IDE or on Spigot?

raven hound
#

IDE

odd knoll
#

Could you send your code please. You've most likely repeated a variable name.

raven hound
#

Ok:

odd knoll
#

?paste

worldly heathBOT
raven hound
#

Do I send it in DMS?

odd knoll
#

I don't open my DMs.

raven hound
#

Oh ill just send it here:

#

I just started making it by following the spigotmc tutorial

odd knoll
#

You do realise all the (pluginname) is supposed to be replaced right?

raven hound
#

yeah i just edited it

odd knoll
#

Is there really need to censor the name?

raven hound
#

¯_(ツ)_/¯

odd knoll
#

Can you just give it as it is as there's nothing called Mypluginname in there.

raven hound
#

Yeah sure

odd knoll
#

Also, why not just not use your email in the package name?

raven hound
#

?

odd knoll
#

Your package name can be anything.

worthy lava
#

Anyone got an answer to my question?

odd knoll
#

What's your question?

worthy lava
#

How do you save an inventory's contents to a yml file?:

yml.set("PlayerVaults." + uuid, rPlayer.getPV().getContents());

rPlayer.getPV() returns an inventory. But everytime i save it, it's an empty array.
@worthy lava

odd knoll
#

What does getContents() return?

worthy lava
#

An array of itemstacks

#

rPlayer.getPV() Returns an inventory

#

A bukkit Inventory

odd knoll
#

IDK if Spigot knows how to serialize ItemStack objects when saving in a config.

#

It might do, but IDK.

worthy lava
#

I mean it can save ItemStacks now

raven hound
#

Well if i put my package name as anything it just gives a bunch of warnings

odd knoll
#

What kind of warnings?

raven hound
#

Cannot be resolved and string warnings

odd knoll
#

Could you send the whole warnings.

raven hound
#

Yeah

bitter tendon
#

Is it good to save player names? Or it is better to save their UUID or something? And can I store Players in variables?

sturdy oar
#

depends on the context

#

if you're using a map

#

definetively use UUIDs as key

#

since well.. names wouldn't be unique keys

bitter tendon
#

@sturdy oar why are names not unique keys?

#

Aren't there only one Notch

sturdy oar
#

nope

shy shard
#

Can any one help with this

sturdy oar
#

there are users with different UUIDs, and same username

shy shard
#

I made post so don't need to type twice

sturdy oar
#

can give you a long list of them

bitter tendon
#

So I can change my name to Notch today?

sturdy oar
#

no...

bitter tendon
#

Where is the list?

#

And how did it happen?

sturdy oar
#

Mojang is dumb

#

and introduced errors in the past

#

here's an example

tiny dagger
#

lol

#

what was the error more specific?

bitter tendon
#

Mojang is not dumb, but I understand

odd knoll
#

They are.

fallow nest
#

I have a problem in other versions the keeploadspawn of the multiverse towards removing chunks outside the range of vision but in 1.15 it does not work for me, is there any way to be able to do it? HEEELP :8174_KnucklesRoll: :8174_KnucklesRoll: :8174_KnucklesRoll: :8174_KnucklesRoll:

fossil shoal
#

I have a problem in other versions the keeploadspawn of the multiverse towards removing chunks outside the range of vision but in 1.15 it does not work for me, is there any way to be able to do it? HEEELP :8174_KnucklesRoll: :8174_KnucklesRoll: :8174_KnucklesRoll: :8174_KnucklesRoll:
@fallow nest contact the developer

frigid ember
#
    @EventHandler
    public void onEnchantment(EnchantItemEvent event) {
        Player player = event.getEnchanter();
        
    }```

How do I reduce the needed xp level the bottom row which is normally 30, substract 1 from it
subtle blade
#

You can get the offers and set the cost from there

frigid ember
#

ty

shadow mulch
#

been recently dabbling with nbt tags, found a way to add custom ones and i have managed to do it but right now i'm taking the tool out of the player's inventory and putting the nbt-edited one back in,

in this gif it isn't very clear because of the 8mb limit, but occasionally you see the item flicker, in game it does this every time which looks a bit meh, so I was wondering if there was any way of editing it in the player's inventory instead of replacing it

gleaming helm
#

You can just use setItemMeta

#

No need to remove the item

shadow mulch
#

oh really? even with custom nbt data?

gleaming helm
#

Well how are you adding your custom nbt?

#

Are you using persistent data (PersistentDataContainer)?

shadow mulch
subtle blade
#

1.15.2 has an API for custom NBT

#

Rather, it was added in 1.14.2

#

Also, yes, you do have to re-set the item in the inventory. ItemStacks are cloned when pulled from vanilla

#

It's mirrors nms.ItemStack. It has no handle

shadow mulch
#

ah right, thanks for ur time :)

subtle blade
#

ItemMeta has this method. You're encouraged to use that instead of NMS

shadow mulch
#

oh right mkay

#

thanks again

subtle blade
#

o/

pure pasture
#

Is there a way to detect to what slot an Item was moved when Shift-Clicking (e.g. armor/hotbar)

grave pollen
#

How can I have a block change when a Player login (and ask the server for the world)? Example I want every redstone blocks to be redstone blocks server side but bedrock client side

pastel condor
#

Use packets

grave pollen
#

hmmm

#

ok i'll look into it

#

i'm gonna have some headaches

sturdy oar
#

i mean

#

there is Player#sendBlockChange

#

or something like that

grave pollen
#

Yeah i know

sturdy oar
#

but it's probably not what you're need

#

you need to make a packet listener and filter\modify them

grave pollen
#

but the issue is getting the "event" when the world is "sent" to the client

sturdy oar
#

I recommend ProtocolLib if you'll work with packets

grave pollen
#

ok

#

thx a lot men

#

ok so as said in the mais page of Protocollib: "Certain tasks are impossible to perform with the standard Bukkit API and may require working with and even modifying Minecraft directly"

#

i kinda expected something like that lol

#

I can also fork Bukkit

#

but i'll have to update the code manually

#

so It's a pain I'll use Protocollib instead

sturdy oar
#

yes

opal bay
#

good luck

sturdy oar
#

protocolLib is pretty easy to use

#

at least definetively more than injecting into netty pipeline

grave pollen
#

yeah i can see that

#

there is a JavaDoc

#

and it works with maven too

#

which is cool

#

and there are some prebuilt jar too

#

nice

opal bay
#

it is pretty nice 😄

grave pollen
#

Looks like so 👍

#

Thanks y'all for pointing me in the right direction :D

alpine musk
#

my forests are constantly burning, but I don't want to ruin the vanilla mechanics. what is the implementation of putting out the fire automatically if it burns too much? can who knows the plugin?

#

interested in making the fire work normally until it burns too much

grave pollen
frigid ember
#

yo so my server just killed itself
and some of the blocks generated by a gadgets plugin are still there at spawn
is there anyway to revert them back or no?

steady cedar
#

Would be helpful if we knew the plugin, but my default answer would be no.

frigid ember
#

How can you decrease the lvl required to enchant something with 30 levels to 29 levels so decrease it by 1?

#

It's GadgetsMenu, but i don't think I can revert anything

subtle blade
#

Didn't I answer that question earlier

frigid ember
subtle blade
#

I also said how to use it

#

You can get the offers and set the cost from there

frigid ember
#

How set the cost after getting the offers?

subtle blade
#

You listen for that event. The offers are obtainable with getOffers()

#

Entry 3 is the bottom entry (the one that often costs 30) though may be null if not available to the player. Once you have an instance of it, setCost()

#

You should understand how to read and navigate Javadocs to understand this for yourself. It took 2 clicks to get to that answer

upper hearth
#

3 clicks if you include clicking the link 😉

mighty grotto
#

Anyone here experienced in world gen?

#

I'm having issues with biome transitioning

#

If you need some code dm me cause it's long

opal heron
#

Is there a way to disable worldedit in survival?

#

i haven't touched my config yet so im a total normie at this.

bold anchor
#

Remove it

opal heron
#

the plugin?

mighty grotto
#

ya

iron nebula
#

Why do you want to disable worldedit only in survival?

lone fog
#

If you just want the wand off /toggleeditwand

iron nebula
#

Assuming they are staff, can't they just switch their mode

opal heron
#

I guess that works too

mighty grotto
#

no he's talking about the wand

iron nebula
#

Ah got it

opal heron
#

The thing is when i wanna test my own server as a default player and use the axe

mighty grotto
#

so if a staff is in gm 0 he doesn't want them to probably f up when using the axe

opal heron
#

i still recieve the worldedit

iron nebula
#

You need perms for the axe to work as wand

mighty grotto
#

ya he just wants it disabled tho for that gamemode

#

but for that to happen he'd have to add code to world edit]

#

but I don't think people got time to decompile that and edit that code

iron nebula
#

Its open source, lol

pastel condor
#

why would you decompile it, it's open source

mighty grotto
#

is it?

#

oh well

pastel condor
#

yes

mighty grotto
#

I don't use world edit so

pastel condor
steady cedar
#

There's a few things in the world that suck more than WorldEdit's api docs

pastel condor
#

lol

iron nebula
#

I remember that one server owner came to swear at me and threat to decompile the plugin and edit it and before I could link the Github project he had left

steady cedar
#

They include genocide, death, wars, nuclear weapons, biological weapons

#

And RIGHT AFTER

#

is the worldedit api docs

mighty grotto
#

wtf

#

I hope someone can help me with world gen tho

#

I didn't realize how fucking annoying world gen is xd

pastel condor
#

yeah lol

mighty grotto
#

too much playing around with perlin noise for me

#

does flyingllama exist anymore? I hear he's the god at world gen

#

if someone can get me in contact with him I'd be happy as hell

rich salmon
frigid ember
#

yo

#

so i have a mob (horse animal) stuck in spawn

#

that i can't remove

#

like i can't do anything to it

#

any help

lone fog
#

./kill?

frigid ember
#

./kill doesn't work

#

/killall doesn't work

median swift
#

What is the papi extension to show the coordinates of a determined player?

#

@frigid ember do you have essentials

#

use /minecraft:kill @e[type=horse]

frigid ember
#

But the horse is spawned from a gadgets plugin

#

will that command still work?

#

since /killall mobs /killall named didn't work

#

And does that kill all horses, or just the horses in the world your in?

rustic socket
#

That'd kill all horses in the current world

#

Essentials' killall, WorldEdit's butcher, and more verify the mob is a natural spawn first

frigid ember
#

alright

rotund orbit
#

This is a Java question, but I'm trying to create a /seen command and I'm having trouble saving a Date object to a file and then loading it on startup. I can do it, but the day/hour/minute/second values seem to be random. I tried using a Date object and then a GregorianCalendar object but I'm having the same problem with both.

bold anchor
#

Use ZonedDateTime and convert it to string and back, easy

rotund orbit
#

I'll look into ZonedDateTime thank you

bold anchor
#

It has a parse, and a tostring function

rotund orbit
#

Excellent

ashen stirrup
#

I’d use Instants

bold anchor
#

It's the same new api

ashen stirrup
#

Is it?

bold anchor
#

You can turn an instant into a zoneddatetime object and a zoneddatetime object into an instant

#

When they have time

sturdy oar
#

Took 16days for me

#

Oh

#

It takes no time

#

Yes

gray grotto
#

yes

bold anchor
#

Free plugins don’t get checked iirc

sturdy oar
#

Yeah you just publish them lol

#

No

gray grotto
#

suuure

sturdy oar
#

I have DM disabled

#

Just install Debian

gray grotto
#

no

#

dont use a panel

sturdy oar
#

Docker >

gray grotto
#

you gotta learn to manage the server

#

its yours, not anyone elses

#

google is your good friend in this case

sturdy oar
#

I can use Linux buy you just gotta spend months and learn it

#

I can't spoon-feed

gray grotto
#

dont pay anyone to setup the dedi either

tacit trellis
#

youtube

gray grotto
#

or google

sturdy oar
#

Setting up ptero is hard if you've never used Linux

#

Yeah then forget pterodactyl tbh

tacit trellis
#

i mean if you find a good video it isnt

sturdy oar
#

Learn basic UNIX/Linux commands before

gray grotto
#

using the terminal to manage your server is easier than setting up ptero

#

learn then

sturdy oar
#

you buy a book or read documentations

gray grotto
#

you dont know something if you dont learn it

sturdy oar
#

Google is not retarded

gray grotto
#

i was able to learn everything from google

#

so can you

#

you can have direct contact with google

sturdy oar
#

buy a Linux system management course them

gray grotto
#

there is a guide for everything in linux

sturdy oar
#

Lol

#

You're dumb

gray grotto
#

firewall management, setting up multiple servers etc

#

you can get all that for free

sturdy oar
#

You're not going anywhere if you don't learn stuff

gray grotto
#

by using google

#

you arent going anywhere with that

sturdy oar
#

Hard way?

gray grotto
#

you came asking for help, now you curse at us

#

sure

#

you cant even boot up a server in linux it seems

sturdy oar
#

Instead of writing here insulting us , you could've already learnt how go setup SSH Keys and how to connect to your server

gray grotto
#

^

#

its that quick

sturdy oar
#

disable root login, create Linux user , install fail2ban, setup firewall, can all be learnt in a day

gray grotto
#

ultimate safety

#

but not really

wanton delta
#

so apparently you cant cancel a block break packet once you break the block fully

tranquil anvil
gray grotto
#

@wanton delta theres always a workaround if thats so

wanton delta
#

well

#

i obviously dont know what that is

#

cancelling block change and block break dont seem to work

gray grotto
#

uh so what is the problem, when a block is broken fully it doesnt cancel?

wanton delta
#

correct

#

i would expect the block to still be there

#

or act like BlockBreakEvent

#

but that is not the case

#

it just turns to air :(

gray grotto
#

weird

subtle blade
#

Easiest ban of my life. Someone shoulda tagged me lol

wanton delta
#

hmm i suppose i could just

#

send another packet

#

and block is back

subtle blade
#

what is it you're trying to do?

sturdy oar
#

Easiest ban of my life. Someone shoulda tagged me lol
@subtle blade who

subtle blade
#

The lenny guy earlier

sturdy oar
#

Rip

gray grotto
#

lmao

subtle blade
#

only just caught up on chat

sturdy oar
#

He was really rude

gray grotto
#

i kinda wanted him to talk more

#

but nah

#

ill go sleep

wanton delta
#

oh

#

choco im trying to

sturdy oar
#

Do you get banned from forum when you get ban on discord Choco?

wanton delta
#

create 'fake' blocks via packets

bold anchor
#

No

sturdy oar
#

You should make that a thing

subtle blade
#

'fake' blocks? As in... sendBlockChange()?

wanton delta
#

yea

#

it works

#

its just if u break them they will break fully

subtle blade
#

I don't know what that means

wanton delta
#

ghgh i know

#

basically breaking them will break them

subtle blade
wanton delta
#

even if i cancel the packet

subtle blade
#

Am I the only one confused here?

bold anchor
#

They will turn into their original on interaction?

gray grotto
#

nope

wanton delta
#

on interaction is fine, i can cancel that

gray grotto
#

i am confused also

wanton delta
#

but when you break them

#

they will just break

bold anchor
#

Then do not allow them to break anything

wanton delta
#

oh really