#help-development

1 messages · Page 1884 of 1

young knoll
#

Don’t start spigot before learning java

coarse shadow
#

i know java

coarse shadow
#

but i didnt master it yet

torn shuttle
#

it takes 3 lines of code for people in here to come to the conclusion you don't know what you're doing

young knoll
#

Well your problem is you don’t null check the helmet

#

Or the helmets display name

coarse shadow
torn shuttle
#

stop running through the entire player list any time any player moves

coarse shadow
#

its not about the NPE rn

#

i did that to use break;

torn shuttle
#

oh lord

coarse shadow
#

lmao

torn shuttle
#

the second seal

#

it has been breached

young knoll
#

Why do you need to use break

torn shuttle
#

look at the code

#

looks like he neither really knows how to use an if statement nor knows about returns

coarse shadow
#

or at least thats what i hoped for

torn shuttle
#

herkes is never used

#

this isn't code, it's art

#

it belongs in a museum

coarse shadow
#

lol

#

aight i need to learn more i guess

torn shuttle
#

you also need to go talk to a priest about the sins you just committed

coarse shadow
#

LMAO

#

there was a course on udemy that is made by stephen king

#

is it worth buying to learn

torn shuttle
#

we just gave you a list of free resources

#

?learnjava

undone axleBOT
coarse shadow
#

i finished that course from sololearn

torn shuttle
#

ok

coarse shadow
#

and see how it looked like

torn shuttle
#

can we get a mod to delete the second entry please

dense heath
#

When you say "uses armor" do you just mean has the armor on in a certain world?

opaque plaza
#

is it possible to spawn an entity when an arrow from a specific bow hits the ground?

coarse shadow
young knoll
quaint mantle
#

The average java library tutorial:

  1. Add builders
  2. Add Consumers and Functions
  3. return this;
dense heath
quaint mantle
#

If someone doesnt know how to create builders, DM me I'll help you out!

dense heath
jagged monolith
thick drum
#

How can I check if a lever is powered or not? I have an event listener to see if a lever is flicked, now I need to check the current state of the lever.

candid galleon
#

read the javadocs

thick drum
#

Do you have a link to those? All the info I can find is dated

#

For example, all I can find is the isPowered() method which is deprecated and no longer works

young knoll
#

?jd

faint sage
candid galleon
#

🌊

thick drum
#

So I found the "BlockData" interface but I don't know how to pluck out just the [powered=true/false] element

#

Any more clues 😉

hardy swan
#

see which is the subclass useful to you

hybrid spoke
thick drum
#

Figured it out, thanks everyone! 😉

hardy swan
#

when lever is called switch

#

is button a switch

torn shuttle
#

a switch statement is a switch

maiden thicket
#

do you guys have any idea why

    @EventHandler
    public void onSpawn(CreatureSpawnEvent event)
    {
        getLogger().info("CreatureSpawnEvent");
    }
``` won't print in console
lavish hemlock
maiden thicket
#

idk if the event is even being called, all the other events in the class work fine

hardy swan
torn shuttle
#

#empowerthebuttons

hardy swan
#

then wtf is switch

#

wait nvm im tripping

maiden thicket
#

nevermind ill try entityspawnevent

torn shuttle
#

ok now to figure out why my tracking compass is slightly offset

maiden thicket
#

why does entityspawn event just start getting spammed as soon as i join

#

same for creaturespawnevent

hybrid spoke
#

Called when an entity is spawned into a world.

#

you are an entity

#

and as soon as you spawn

#

nearby entities do too

torn shuttle
#

oh no

#

I did a big dumb

#

I actually did two big dumbs

hybrid spoke
#

nice

torn shuttle
#

compass now 100% works

#

it's like my grandma used to say, two big dumbs make one big brain

#

it's amazing how much you can get done just using vectors

dense heath
# coarse shadow yessir

Have you checked for an event that fires when a player changes their armor so you can stay away from using the PlayerMoveEvent?

coarse shadow
#

nope

coarse shadow
#

i can prevent them to wear armor without any errors ors exceptions

spiral light
#

you can also check the Inventory Click Event... but its a lot you have to care of

coarse shadow
#

but i couldnt figure out how to add that special helmets

#

and im also gonna change that kick situation i've just added that for testing

spiral light
#

if the player clicks on the helmet-slot with an custom helmet at Cursor ?

#

then just set the hand to what the helmet is currently (null or other helmet) and the player helmet to the cursoritem

coarse shadow
#

not really thats not what i wnt

#

im rewriting my code when im finished i'll send it

#

when they use special helmets, i dont want them to use any other armor pieces

#

so instead of creating hasAnyArmor method, i should create a variable for each armor slot so i can check all of them right?

spiral light
#

depends on how this should work... can they put on the custom helmet when they have an armor already ?

coarse shadow
#

no

#

they are only allowed to use those helmets

spiral light
#

then you should have "hasAnyArmor" and "hasSpecicalHelmet"

#

hasanyarmor = true means they can not put on the special helmet

#

and hasspecialhelmet = true means they can not put on default armor

coarse shadow
#

if(hasAnyArmor && hasSpecialHelmet)

#

if i do this, they wont be able to put on anything

#

if i do how you said it

#

right?

spiral light
#

yes

#

of course they should be able to take of the helmet when hasSpecicalHelmet=true

coarse shadow
#

goddamn it

#

im still having issues with special helmets

#

?paste

undone axleBOT
coarse shadow
spiral light
#

why one method for both ? that doesnt make sense

#

you first check for items and if there is an item you return true...
AFTER that you want to check if there is an item at head... but this would already return true

#

you probably should switch to pdc and not using custom names too ^^

#

?pdc

coarse shadow
spiral light
#

just create 2 methods... one for checking if there is an item at all

#

and one for checking if there is a special helmet

coarse shadow
#

i couldnt find out how to prevent that

spiral light
#

If you call hasarmor and it's true

#

You can simple check if the other one is true too

#

If it's true it's a special helmet ... If it's false the player has default armor

coarse shadow
#

ooh makes sense

stark marlin
#

While I'm upgrading one of my plugins to 1.18 I have some trouble importing the craftbukkit classes. I'm trying to use the classifier remapped and remapped-mojang, but that just ends up with "Cannot resolve org.spigotmc: spigot :1.18.1-R0.1-SNAPSHOT" in the log. Any idea what I have to do?
https://pastebin.com/mPP7Zss3

lost matrix
coarse shadow
#

?paste

undone axleBOT
stark marlin
coarse shadow
lost matrix
coarse shadow
#

yes

#

i mean it works but it doesnt work how i wanted to be

lost matrix
#

Dont use names to identify custom items

coarse shadow
#

im currently using vanilla item for testing

lost matrix
#

And dont use FileConfigurations like that.
You should always read the whole config when the server starts and then access variables instead of config entries

coarse shadow
#

oh got it

hardy swan
#

Idk im still using 1.18 for spigot

#

When I say spigot i meant the artifact

plush fable
#

question for bungeecord, is isForgeUser() still supported? because it seems to me that it isnt working at all

lost matrix
#

?jd

stark marlin
#

Either way, this error happens (Cannot resolve org.spigotmc: spigot :1.18.1-R0.1-SNAPSHOT) when I'm not using the buildtools generated file, I'm referencing to the spigot repo using the pom.xml I included with the message. It's when I add <classifier>remapped</classifier> that this error shows up

hardy swan
#

Build 1.18 instead and use that

stark marlin
#

Remapped or the ordinary one?

lost matrix
astral nova
#

how to install PacketWrapper 😄

#

to project

#

on eclipse

quaint mantle
astral nova
#

😐

plush fable
#

Yep, its Forge, I have read the documentation but I think that info about 1.8 / 1.7 is deprecated for a long time (since I am testing it with 1.18.1)

quaint mantle
spiral light
#

hmm why not use protocollib ?

astral nova
#

im using protocolib

hardy swan
#

just use buildtools to install the remapped version

#

you will find the remapped classes in the cloned repositories

hardy swan
cold field
#

Hi guys, does anyone know if it exists a sort of ping packet that I can send through bungeecord channel to see if a server is online?

crimson verge
cold field
#

Oh wow, ty

crimson verge
#

np :)

sterile token
#

Could be possible that mongo Atlas (free cloud for mongo) its not creating by default the colections when they dont exists?

#

Cuz in getting NPE (null pointer exception) when I dont use mongodb installed locally on my pc

crimson verge
#

probably havent set up the DB properly

sterile token
#

The db or the Connection?

crimson verge
#

connection, if im right about my assumption lol

cold field
#

@crimson verge there is a problem. My plugin isn't a bungeeplugin. I haven't access to ProxyServer class

#

I need to do it through the bungeechannel

lost matrix
sterile token
cold field
crimson verge
sterile token
#

Oh allright

crimson verge
#

but I would try following the docs and see if that solves things

lost matrix
left swift
#

what is the best way to lower my custom entity on the y axis? I wish it to behave as if it wasn't lowered. Currently, I do this with every tick packet, but I don't know if that's a good way.

lost matrix
lost matrix
left swift
sterile token
lost matrix
#

in its json file

sterile token
#

Yes there its explain you

#

Btww

lost matrix
sterile token
#

Its give the parameters that you have to send to bungee channel

left swift
lost matrix
#

Not sure if thats still possible

left swift
#

it is good idea, but in newer versions (which im using)

cold field
left swift
lost matrix
lost matrix
#

i think

cold field
#

the page description says "Get a list of server name strings, as defined in BungeeCord's config.yml"

lost matrix
#

Well... then you need to write a custom message

sterile token
#

Why dont you search as

#

On google: Spigotmc get server count

#

I always when search: Spigotmc + question I find really útil info

crimson verge
#

it would likely be easier if you did it with bungee api (for empee)

#

i would assume

lost matrix
spiral light
#

still need ?

spiral light
crimson verge
#

its a screenshot from the dev so i would assume he is telling the truth lol

cold field
lost matrix
#

You dont ping the Inet address of the player but of the server...

cold field
#

I don't mean that

#

The user that has installed my plugin

lost matrix
#

Ah i see. If he blocks that port then the bungeecord server wont be able to use that server all together...

spiral light
#

https://timcloud.ddns.net/mapping/

made this for exactly this... wait util the page is loaded and you can search the classnames at the top - left ... its just a very big page O.o

torn shuttle
#

huh so weird question

#

minecraft:setworldspawn doesn't set pitch and yaw

#

can those just not be set or is there a way I could force a value, and no I don't want to handle it myself before someone suggests that

tribal holly
#

Hi, from 1.18 i cannot change slot number of my server is the parameter of "maxPlayers" has change since 1.16 ?

#
try {
            Method serverGetHandle = Bukkit.getServer().getClass().getDeclaredMethod("getHandle");
            Object playerList = serverGetHandle.invoke(Bukkit.getServer());

            Field maxPlayersField =   playerList.getClass().getSuperclass().getDeclaredField("maxPlayers");
            maxPlayersField.setAccessible(true);
            maxPlayersField.set(playerList, value);

        } catch (Exception e) {
            e.printStackTrace();
            return;
        }```
chrome beacon
tribal holly
#

???

#

i wanna change the slot max number amount for real not for visuel in ping event

chrome beacon
#

Sounds quite pointless but ok

#

What's not working about it

tribal holly
#

Bro the question is not why i wanna do this

chrome beacon
#

Does it send an error

tribal holly
#

NoSuchFieldException: maxPlayers

#

I just wanna know if something change from 1.16 in fields name

crimson verge
#

why not just use getMaxPlayers()

tribal holly
#

because i wanna change it

#

not just get it

#

do you even understand the method i sent ?

chrome beacon
#

Deconpile and take a look

tribal holly
#

Thanks captain obvious

chrome beacon
#

Then just do it?

tribal holly
#

if i'm asking here is to know if someone have this new field name

chrome beacon
#

Ah you might have to wait then

crimson verge
chrome beacon
#

That's ping

tribal holly
#

Try just to thinks about what you send with the expose problem

sterile token
#

Zeluythra

#

What your problem I would be gratefull to assist you

tribal holly
#

i'm trying to know what's the new field name (if there is one) of maxPlayers in 1.18

#

this code work for 1.16

sterile token
#

What exception?

tribal holly
sterile token
#

Go to google

tribal holly
#

hahahaha

sterile token
#

And download github

#

Jd-gui*

tribal holly
#

Common is there someone competent here who can answer me (VERANO if i'm here is because i don't find the solution on spigot forum and google either)

sterile token
#

Yeah I understand you

#

My answer is: download a decompiler. De compile the spigot 1.18

#

And check the class which contains the field you want

chrome beacon
#

Or just use your IDE if NMS is imported

tribal holly
#

you don't need nms for doing this

chrome beacon
#

You're using NMS

#

With reflection

#

So yeah you need it

sterile token
#

Olivo I have done that without having the package nms from spigot

chrome beacon
#

That's fine

sterile token
#

They are calles reflections

wet breach
chrome beacon
sterile token
#

Ah i dont use build tools

#

Hahaha

wet breach
#

well its the official way of obtaining spigot and related sources

#

not our problem if you choose to not use official sources

sterile token
#

I use a fork of spigot that its more optimized

#

And work the same as normal spigot

wet breach
#

does not work the same if it isn't spigot

sterile token
#

The problem is that I only api of 1.8.8

chrome beacon
crimson verge
#

zelytra's issue is specific to new versions so maybe sit this one out

sterile token
#

Yeah they are exsctly the same. I have looked and the source is from builds tools but have some extra event for player kb

#

So they Are the same

crimson verge
#

theres no optimization if they are exactly the same for one

#

for two, they are using much newer versions, so regardless you arent really able to help them

fringe copper
#

Can some one help me migrate a 1.17 plugin to 1.18?

crimson verge
#

depends what the plugin is lmao

fringe copper
crimson verge
#

frostalf thats irrelevant to what theyre doing

tribal holly
#

This is only visual

crimson verge
#

i sent them the same link lol

sterile token
#

Sorry

crimson verge
tribal holly
#

I found the answer : A new method as been implemetend Bukkit::setMaxPlayers

fringe copper
#

but he dont know how to migrate 😅

tribal holly
#

The older method doesn't work at all

crimson verge
tribal holly
#

Thanks for saying all bullshit 🙂

chrome beacon
wet breach
wet breach
#

then just reload server config o.O

sterile token
#

Omg its disaster Last spigot. Its uses Java 17 and its a fuck because the network run base on 1.8x which requiere Java 1.8

tribal holly
crimson verge
tribal holly
#

...

sterile token
tribal holly
#

i stop argument with you

#

have a nice day

torn shuttle
#

?paste

undone axleBOT
crimson verge
#

ooh apparently shopkeepers isnt even 1.18 yet oof

torn shuttle
crimson verge
#

i would load shopkeepers and see if there are any issues with it running on 1.18

wet breach
# tribal holly i stop argument with you

you can choose to not cooperate if you want, but do know support here is free and not something you are entitled to. You are asking for help and yet people are telling you ways you can do it, but you keep saying it is wrong. Not sure about you, but just maybe there is something to it if everyone else is telling you differently. But hey whatever I don't have to waste my time helping you either so have a nice day 🙂

chrome beacon
crimson verge
#

ty Olivo

sterile token
#

Your welcome sir. Have a lovevly say

tribal holly
#

You answering to another question and offering any help in the discussion. I don't care if you don't answer me. Everytime i'm asking here a question i just wait for someone that occure to have the same problem as me. If you never encounter this jut don't answer. I say the solution the subject is close and i let the channel to another problem

chrome beacon
#

Just stop that conversation

sterile token
#

Yes

tribal holly
#

"I say the solution the subject is close and i let the channel to another problem" this is what i said

sterile token
#

Ignore them, like they do when I ask stmh that they dont know

#

They just dont answer

wet breach
#

except, in this case you can change the maxslots without needing to use NMS o.O

#

?jd

wet breach
#

Just because you refuse to use the API, does not mean it isn't the solution either

tribal holly
#

Bro, the solution was found go next.

sterile token
#

Message hover events and click should work without bungee?

wet breach
#

yes

sterile token
#

Hum

#

I will check my code again. Thanks

wet breach
sterile token
#

I love java I can be reading more than 20m to see that its was a simple error

tribal holly
#

Nono, i'm rude with you, you clearly understand it ! Have a nice day

wet breach
#

lol, well guess you won't last long here then XD

torn shuttle
#

I miss racist santa sometimes

sterile token
#

Prob we cannot predict the furuture

tribal holly
#

That's why i'm here from more than a year 🙂

wet breach
#

so yes I can predict that will happen

hybrid spoke
#

we just dont know it yet

wet breach
torn shuttle
#

don't know about ignorant, I've been on irc/discord for a fair few years and I am still around

#

and I can't even figure out this NPE

wet breach
torn shuttle
#

this may be related to an extreme degree of sleep deprivation

hybrid spoke
#

talk to my hand

torn shuttle
wet breach
#

I know

#

I was there when you joined 😄

torn shuttle
#

I know you were

#

I was ignorant to the truth then

wet breach
#

well, you were new

#

and you learned

torn shuttle
#

if only I could go back in time and tell myself the true horrors of java

#

and also to invest in bitcoin

wet breach
#

start investing in NFT's

torn shuttle
#

please no

wet breach
#

not necessarily buying them, but just make them

#

its the new thing

torn shuttle
#

selling the choco songs as nfts

#

who wants them

wet breach
#

you either hop on board or you get left behind 😂

quaint mantle
#

i keep getting this error

Could not resolve org.spigotmc:spigot:1.18.1-R0.1-SNAPSHOT.```

repositories {
mavenCentral()
maven {
name = "Paper"
url "https://papermc.io/repo/repository/maven-public/"
}
maven {
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
content {
includeGroup 'org.bukkit'
includeGroup 'org.spigotmc'
}
}
maven {
url "https://org.bstats/bstats-bukkit"
}
maven {
name = "IntellectualSites Releases"
url = uri("https://mvn.intellectualsites.com/content/repositories/releases/")
}
maven {
url "http://dpnw.site:8081/repository/maven-public/"
allowInsecureProtocol = true
}
}

dependencies {
implementation 'org.jetbrains:annotations:20.1.0'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
compileOnly("io.papermc.paper:paper-api:1.18.1-R0.1-SNAPSHOT")
compileOnly 'org.spigotmc:spigot-api:1.18-R0.1-SNAPSHOT'
compileOnly 'org.spigotmc:spigot:1.18.1-R0.1-SNAPSHOT'
compileOnly "org.bstats:bstats-bukkit:2.2.1"
compileOnly 'com.darksoldier1404.duc:DP-UniversalCore:1.18.1-SNAPSHOT'
compileOnly("com.fastasyncworldedit:FastAsyncWorldEdit-Bukkit:1.17-418")
compileOnly("com.fastasyncworldedit:FastAsyncWorldEdit-Core:1.17-418")
}```
am i doing wrong?..

hybrid spoke
#

yeah if we could just go back in time and be born as X AE A-Xii

ashen vessel
#

gethitblock event on xp bottle. returns block is null. How would I fix that

wet breach
quiet ice
#

Did you compile spigot?

#

Also, you need mavenLocal

wet breach
#

?bootstrap

undone axleBOT
#

Bootstrap Jar
The main spigot-1.18.jar is now a bootstrap jar which contains all libraries. You cannot directly depend on this jar. You should depend on Spigot/Spigot-API/target/spigot-api-1.18-R0.1-SNAPSHOT-shaded.jar, or the entire contents of the bundler directory from your server, or use a dependency manager such as Maven or Gradle to handle this automatically.

Please read the release notes for further information: https://www.spigotmc.org/threads/9-years-of-spigotmc-spigot-bungeecord-1-18-1-18-1-release.534760/#post-4305163

wet breach
#

?bt

undone axleBOT
wet breach
#

there is some links and info for you

quiet ice
#

I think the lack of the mavenLocal() repo is the bigger issue, unless one of the other repos should distribute it

wet breach
#

what you are saying and what I posted for the boostrap

quiet ice
#

Might as well be

quaint mantle
#

god Why is it so difficult XD

quiet ice
#

Though the bootstrap issue can be thrown out of the window as this is gradle, and BuildTools should put the spigot jar into maven local by default (unless it changed). But if Buildtools was not run you'd get the same effect

wet breach
crimson verge
#

might wanna reread the spigot gradle tut rq

quiet ice
#

Meh, it is more of a small beginner oversight

wet breach
#

hmm wonder if the bot has a command for gradle

#

?gradle

#

nope, would have been cool though

quiet ice
#

Especially if you are accustomed to maven you may not realise (or forget) that mavenLocal is not the default

wet breach
#

maven local is not even the default in maven 😂

quiet ice
#

it isn't?

quaint mantle
#

even i read that
im still cant understand

wet breach
# quiet ice it isn't?

no, you have to specifically tell maven to check local repo. Otherwise it starts checking everywhere else and may even fail without checking local repo

quiet ice
#

hm, interesting that it does it on my machine then. Eh, I don't use it all too often thankfully

wet breach
#

well it depends how your pom is setup too

#

most of the time maven does pretty good about falling back to local repo, but in some cases I have had maven fail the build even though my local repo contains the dependency in question lol

royal vale
#

How to disable randomized knockback

tardy delta
#

Why does gradle go brr.

#

.

#

?*

crimson verge
hushed stirrup
#

How do I make it so that when i Right Click and item it automatically deletes it and adds a speed 2 effect to the player

spiral light
royal vale
#

How do I make it "normal"

lean bone
#

I am trying to get a JAR that contains the NMS code that has the mojang mappings, but I am unable to do so. When I use the JAR Spigot/Spigot-Server/target/spigot-1.18.1-R0.1-SNAPSHOT-remapped.jar I can find all the classes but they aren't remapped, and when I try Spigot/Spigot-Server/target/spigot-1.18.1-R0.1-SNAPSHOT-remapped-mojang.jar it cannot find any of the NMS classes. Can anybody help me out here?

hardy swan
#

It is more reliable to check your local maven repo

lean bone
#

IntelliJ

lean bone
lusty raft
#

maven or gradle?

chrome beacon
#

You want to use the maven special source plugin. Don't import the jar manually

hardy swan
#

it has nothing to do with specialsource

lean bone
lusty raft
#

When you import it, just click the gradle tab and click Refresh Dependencies

#

sometimes it bugs out a little, then you might need to invalidate cache and restart

chrome beacon
lusty raft
#

I'm unhinged

chrome beacon
#

It's fine if you want. The remapping just won't happen and the plugin will break

hardy swan
#

if the jar isn't remapped then what is the -remapped.jar for?

chrome beacon
lean bone
#

compileOnly("org.spigotmc:spigot:1.18.1-R0.1-SNAPSHOT:remapped-mojang") Using this in my gradle file also doesn't help, it still cannot find the classes:

hardy swan
#

You are talking about post-compilation

chrome beacon
#

Yes

hardy swan
#

but the error is pre-compilation

#

or the problem he is facing

lean bone
#

Yep exactly

chrome beacon
#

I'm trying to prevent issues post compilation. What's point of solving that if it won't work post and needs to be redone

#

Sure you can get it to compile and not work

#

I can help you with that if you want

hardy swan
#

but he needs help for a different problem at hand right now lol

chrome beacon
#

I'm solving multiple problems at once by doing things the right way but sure you do you

hasty prawn
lean bone
#

Oh, looks like I was using the spigot mappings previously

hasty prawn
#

That's very likely, just change it to ArmorStand if you're wanting to use Mojang Maps now

lean bone
#

I'd rather use the Spigot Mappings if possible, but when I use those the fields aren't remapped

chrome beacon
#

Mojmaps > Spigot mappings

hasty prawn
#

Yeah, if you're using NMS you should probably use Mojang Maps and then use SpecialSource to remap it when you compile.

glossy marsh
#

Hello!
I've got a question about my listener for ExpBottleEvent: For some reason I can't use the getHitEntity(), getHitBlock() and getHitBlockFace() functions which it should inherit from the ProjectileHitEvent. If I read any of them, for example e.getHitEntity(), the value always equals null. Does anyone know why this happens?

hasty prawn
#

Which is what Olivo was talking about I believe

chrome beacon
#

Yeah

#

Right now it will compile and not remap

#

And thus not work on a server

hasty prawn
#

^^

hasty prawn
#

But, I'm not sure why they'd be different Thonk

chrome beacon
#

They should work though

glossy marsh
#

Hrrr, I think that is the case

#

Do you happen to know if potions do work?

chrome beacon
#

Make sure you're running the latest version of spigot

#

If it doesn't work report it as a bug

#

?jira

undone axleBOT
royal vale
#

How to remove knockback resistance from netherite armor?

#
meta.addAttributeModifier(Attribute.GENERIC_KNOCKBACK_RESISTANCE, new AttributeModifier("generic.knockbackResistance", 0.0D, AttributeModifier.Operation.ADD_NUMBER));
#

Is that right?

buoyant viper
#

attributes

glossy marsh
#

I don't want to look like an idiot :p

hasty prawn
#

?paste your event method

undone axleBOT
hasty prawn
#

And I assume it's printing all the "no" messages

glossy marsh
#

I removed some junk methods, which I used to try and recreate getHitEntity() and getHitBlock() myself

hasty prawn
#

Yeah I would report it then

proud badge
#

lmao my crash log was so long it broke discord

#

now i cant send anything in help server

#

soo im sending it here

#

Anyone know why everytime i join my server it crashes? Heres a bit of the error cant upload the entire thing cause its so long it crashes my discord [17:02:07 ERROR]: app//net.minecraft.world.entity.Mob.tick(Mob.java:393) [17:02:07 ERROR]: app//net.minecraft.server.level.ServerLevel.tickNonPassenger(ServerLevel.java:1120) [17:02:07 ERROR]: app//net.minecraft.server.level.WorldServer$$Lambda$7954/0x000000080272da38.accept(Unknown Source) [17:02:07 ERROR]: app//net.minecraft.world.level.Level.guardEntityTick(Level.java:977) [17:02:07 ERROR]: app//net.minecraft.server.level.ServerLevel.lambda$tick$7(ServerLevel.java:775) [17:02:07 ERROR]: app//net.minecraft.server.level.WorldServer$$Lambda$7953/0x000000080272d800.accept(Unknown Source) [17:02:07 ERROR]: app//net.minecraft.world.level.entity.EntityTickList.forEach(EntityTickList.java:43) [17:02:07 ERROR]: app//net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:756) [17:02:07 ERROR]: app//net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1627) [17:02:07 ERROR]: app//net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:490) [17:02:07 ERROR]: app//net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1483) [17:02:07 ERROR]: app//net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1282) [17:02:07 ERROR]: app//net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319) [17:02:07 ERROR]: app//net.minecraft.server.MinecraftServer$$Lambda$3654/0x00000008013cb560.run(Unknown Source) [17:02:07 ERROR]: java.base@17.0.1/java.lang.Thread.run(Thread.java:833) [17:02:07 ERROR]: ------------------------------ [17:02:07 ERROR]: --- DO NOT REPORT THIS TO PAPER - THIS IS NOT A BUG OR A CRASH --- [17:02:07 ERROR]: ------------------------------ [17:02:12 ERROR]: --- DO NOT REPORT THIS TO PAPER - THIS IS NOT A BUG OR A CRASH - git-Paper-

glossy marsh
hasty prawn
glossy marsh
#

One last question, is this a good way to print debug data? Using a foreach loop on all players of the server; is there a better way to do this?

chrome beacon
#

Show entire pom in a paste

hardy swan
#

ExpBottleEvent has no data on hitentity or block

#

only the bottle itself and xp rewarded

#

although it extends from ProjectileHitEvent, it uses super(Projectile) constructor

glossy marsh
#

Also, does this mean I should still report it? (I'm working on a ticket currently)

hardy swan
#

If you extend a class, you are likely to call your superclass's constructor, which in this case ExpBottleEvent did, but only calling the constructor ProjectileHitEvent(Projectile) and has, have no information about hit target

#

it is not a bug, but i would prefer to have that implemented

hasty prawn
#

What do you mean it has no information about hit target

hardy swan
#

you can look at ExpBottleEvent class's constructor

glossy marsh
#

Okay, one last question; could you check for me if splash potions do have data on hitentity, hitblock, etc? And if a splash potion doesn't check if a snowball does?

#

That would help me out tons!

hardy swan
#

what event is that lol

glossy marsh
#

Both of those can probably produce the effect that I'm looking to make too

glossy marsh
hasty prawn
#

I wonder if you just use ProjectileHitEvent instead of ExpBottleEvent

hardy swan
#

yes correct

#

both will fire

hasty prawn
#

Yep, just 1 extra step checking the projectile type

#

Although if that works, then ExpBottleEvent not having it is def a bug lol

hardy swan
quaint mantle
#

I've been trying to find an event that is being triggered when an entity updates, but no success.

#

Is there even an event for that ?

glossy marsh
hasty prawn
#

ExpBottleEvent is cancellable because ProjectileHitEvent is.

hardy swan
#

yes but if you look closer at their nms patch

#

it kind of isn't lmao

hasty prawn
#

reallyThonk

#

That's odd LOL

#

This event is weird af just use ProjectileHitEvent LMAO

hardy swan
#

there is no effect on cancelling ExpBottleEvent

lean bone
#

I'm currently converting my code from the Spigot Mappings to the Mojang Mappings, and am having trouble to find the replacements for these classes: PacketPlayOutEntityEquipment, EnumItemSlot, PacketPlayOutEntityDestroy and the following fields: EntityLiving.isInvisible. Do any of you know the Mojang Mappings equivalents of these?

glossy marsh
glossy marsh
hardy swan
#

yes

hasty prawn
#

Yeah probably

glossy marsh
#

Okay, thank you guys so much! I'm going to try this out! 😄

hasty prawn
hardy swan
#

I won't say it is a bug, but def bad design

#

ok it is a bug

hasty prawn
lean bone
#

Ah that would be great

hardy swan
#

what is the problem exactly

summer scroll
#

How can I get all values from HashMap but in order according by the time the key or a new value added, idk how to explain it properly.

glossy marsh
#

The ExpBottleEvent still has it's use, it can be used to set the exp of the bottle and mute the effect once it lands. Or can this also be done through ProjectileHitEvent?

trail dragon
#

Can I find the player that caused someone elses totem to pop?

hardy swan
summer scroll
hardy swan
#

so there is no order in a hashtable

summer scroll
#

so there is no way to get all values in order?

#

ah okay

hasty prawn
#

ClientboundSetEquipmentPacket, EquipmentSlot, ClientboundRemoveEntitiesPacket, Entity#bU() (I think?)

hardy swan
#

with time added as key

lean bone
hardy swan
#

tried refreshing/restarting ide?

summer scroll
hardy swan
#

oh wait yes, sorry, i'm dumb yea

hasty prawn
# lean bone Thanks! And how would I find these myself?

Also to find them, you need the spigot maps and mojang maps files,

Spigot Maps are in: /.m2/repository/org/spigotmc/minecraft-server/{minecraftVersion}/minecraft-server-{minecraftVersion}-maps-spigot.csrg

Mojang Maps are: /.m2/repository/org/spigotmc/minecraft-server/{minecraftVersion}/minecraft-server-{minecraftVersion}-maps-mojang.txt

Basically all you do is open them both, and search whatever you're looking for, and then find the mapped value in the other file.

So for example, I searched for PacketPlayOutEntityEquipment in the spigot file, saw that it was called tx, and then searched tx in the Mojang file.

lean bone
#

Thank you! I'm going to quickly save that

hasty prawn
#

^ You have to run BuildTools for those to be there

lean bone
#

I have done so

hasty prawn
#

Then yeah, should be there

manic furnace
#

Do i have to worry about the licenses about every license that is downloaded, even if it isn't contained in my uber-jar? Because it is included in the spigot-api

hasty prawn
#

If it's included in spigot, you can use it without worrying about the licensing

hardy swan
#

download license?

quaint mantle
spiral light
glossy marsh
#

I've got another question which continues with my last question; with ExpBottleEvent I could check for e.getEntity().getItem().getItemMeta().getCustomModelData(), with ProjectileHitEvent I want to try and see if my experience bottle has customModelData, how do I go about doing this? for ProjectileHitEvent getEntity() returns a projectile whereas for ExpBottleEvent getEntity() returns an item. In other words, how do I check if the experience bottle is a "special" experience bottle which should produce a different effect that normal experience bottles?

eternal oxide
#

Instead use the Entity PDC

hasty prawn
hardy swan
#

oops

hardy swan
hasty prawn
#

Why

#

ExpBottleEvent returns a ThrownExpBottle

#

It's the same thing

hardy swan
#

sorry replied to wrong message

hasty prawn
#

Oh lol

hardy swan
eternal oxide
#

yep

glossy marsh
hasty prawn
#

You realize it's nearly impossible to help when you just say help right

tardy delta
#

?help

undone axleBOT
#
CafeBabe Help Menu
*Red V3*
**__Admin:__**

selfrole Add or remove a selfrole from yourself.

**__Cleanup:__**

cleanup Base command for deleting messages.

**__Core:__**

embedset Commands for toggling embeds on or off.
info Shows info about CafeBabe.
licenseinfo Get info about Red's licenses.
mydata Commands which interact with the data CafeBabe has about...
set Commands for changing CafeBabe's settings.
uptime Shows CafeBabe's uptime.

**__Downloader:__**

findcog Find which cog a command comes from.

**__Mod:__**

names Show previous names and nicknames of a member.
userinfo Show information about a member.

**__ModLog:__**

listcases List cases for the specified member.
reason Specify a reason for a modlog case.

**__Permissions:__**

permissions Command permission management tools.

tardy delta
#

ah shit

hardy swan
#

spam

tardy delta
#

my bad

#

!help

hasty prawn
#

?ask

undone axleBOT
#

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. Make sure you use the right channel regarding the topic of your question. Create a thread in case the channel is already in use!

tardy delta
#

aha

hasty prawn
#

Well

eternal oxide
#

Show your pom

tardy delta
#

that looks exactly like my itembuilder class hmm

quaint mantle
#

I can't find anything.

hasty prawn
#

You're trying to find an event for when a Player drops an item?

tardy delta
#

bruh

quaint mantle
#

What about when it's not dropped from a player.

#

Or is spawned.

hardy swan
#

ok question, so I have an update checker to use GET on spigotmc's api, to check if the plugin has updates basically. Problem being api takes too long to update, is there a way to prevent user receive the update message if they use before the api gets updated?

quaint mantle
#

I know theres ItemSpawnedEvent

#

But it doesn't work.

hasty prawn
#

EntityDropItemEvent

trail dragon
#

Is there a totem pop event?

hasty prawn
#

Do you not read what we sent you smh

hardy swan
hasty prawn
#

Tobys

quaint mantle
hasty prawn
#

Wait

tardy delta
#

you could try if it gets called when you drop the item by api, if not you can call an dropevent yourself and listen for it

hasty prawn
#

Where'd he go KEKW

buoyant viper
#

anyone else seein this pic in like 144p

hasty prawn
trail dragon
hardy swan
#

when in doubt, PlayerStatisticIncrementEvent

tardy delta
#

the only error is cannot find symbol 🌝

eternal oxide
#

1.8 I'm out

hasty prawn
#

LOL

tardy delta
#

i'm out too

hardy swan
#

the artifact is still there tho

buoyant viper
#

i cant even read the pictures

#

bru

tardy delta
hasty prawn
#

Yeah the images are fine for me

tardy delta
#

i can zoom in 😎

hasty prawn
#

Did you restart your IDE Toby's

tardy delta
#

wait isnt yes or no 🌝

hasty prawn
#

Idk then lol

#

Probably need to refresh depends and caches

hardy swan
hasty prawn
#

Minecraft Dev plugin

tardy delta
#

spigot plugin thing i guess

hardy swan
#

damn

tardy delta
#

why even using it

hardy swan
#

i see nothing

tardy delta
#

there's nothing to see lmao

hardy swan
#

alright then

#

problem solved

hardy swan
hasty prawn
#

Yeah I'm not sure what you're asking

hardy swan
#

Basically, spigotmc's api takes too long to update, while I want to ensure users to not receive update messages when using my plugin before the api updates

hasty prawn
#

Don't send the message until the API says there's an update

tardy delta
#

when using my plugin before the api updates heh

#

ah before it checks?

#

wait no that doesnt make sense

hardy swan
#

Ok, to see if a plugin has updates on enable, you send a GET request right?

#

but the returned body isn't always updated

hasty prawn
#

Why not check periodically and then send admined users the message

#

When they login

solid cargo
#

how is time measured in the PotionEffect? ticks?

hasty prawn
#

Yes

solid cargo
#

ok

hardy swan
#

but its ok, I just thought of the solution lol

hasty prawn
#

I've never worked with the updater api so I'm not sure what it returns

hardy swan
#

but I have in fact posted a 1.9.3 update

#

but what I was doing is just checking String#equals(), which made the plugin think there is an update

#

where I could dissect string into major/minor version

#

and perform comparisons

hasty prawn
#

I suppose but why would that fix it

hardy swan
#

So plugin will not send the message as long as it uses a version later or equal to what the GET request returns

hasty prawn
#

Ohhh okay

#

So it was saying there was an update when they had a later version? LOL

hardy swan
#

yea

hasty prawn
#

Ahhh I understand now

hardy swan
#

as a programmer, language isn't my strongest suit

hasty prawn
trail dragon
# hasty prawn EntityResurrectEvent

I've tried using this, but it gets called even if the player is not resurrected

Called when an entity dies and may have the opportunity to be resurrected. Will be called in a cancelled state if the entity does not have a totem equipped.

Are there no events that get called when a player is resurrected by a totem

#

Or should I just check if the player has a totem in their offhand? But even that might not work due to the totem being removed from the offhand on resurection

young knoll
#

It tells you that it will be in a cancelled state if they aren’t resurrected

#

So check if it’s canceled

trail dragon
#

🤦‍♂️ yes of course i shouldve thought of that

#

thank you!!

granite beacon
#

Verify your account and post the image in the chat

young shell
#

Is there a way to get around the time gap between sending the Block Change for a Sign and the Opening of the sign editor with a packet?. I currently have the menu item in my hand for a second

spiral light
young shell
#

Its localhost

#

So the Ping is literally 0

spiral light
#

still lagg and ping problem

quaint mantle
#

There's no such a method in 1.8

#

we saw your message

hardy swan
#

check spigot's api

spiral light
#

oh he needs help with localizednamed ^^ thought he want to color it white again and not red

#

depends on what you want to do there ^^

quaint mantle
#

put 1.18 in your pom.xml

hardy swan
#

even 1.8's api doesn't have that method

opal juniper
#

Am working on my A* implementation and i am getting stuff like this... The nodes that get evaluated are done based on their order in a PriorityQueue, comparator:

@Override
public int compareTo(Node otherNode) {
    return (int) Math.signum(this.target.distanceSquared(this.location) - this.target.distanceSquared(otherNode.getLocation()));
}
#

any ideas on how to make this a bit more optimal? I would have thought it would be more direct

hardy swan
#

i thought the priority key is the distance from source plus distance to target

mighty vine
#

what is the best database to safe data for my server

hardy swan
quiet ice
#

I prefer my DataOutputStreams

lean bone
#

Getting this error on the following line: val worldServer = (location.world as CraftWorld).handle on the 'handle' part. I've made sure I don't have any duplicate JARs and don't have multiple imported, but that hasn't fixed anything.

spiral light
young shell
#

Is it possible to edit the message in the sign editor above the sign (the one that says "Edit Sign Message" by default

quaint mantle
#

no

#

maybe via the resourcepack

young shell
#

okay

opal juniper
#

like that?

hardy swan
#

it is weird to think that a higher priority key actually means lower priority in the queue but sure haha

#

have actually never tried that on 3D

hardy swan
opal juniper
#

speed-wise, yes

#

not sure tho

#

doubt it does

blazing scarab
#

welp getting root is an expensive op[e

#

ration

buoyant viper
#

should only concern performance, not functionality

hardy swan
#

but surely they do not imply each other

#

oh apparently A* has had different implementations, Bertram Raphael is the guy who suggested adding of distances from source and to target

feral egret
#

Hey everyone 😄 I'm trying to save/load hashmap data from/to a data.yml file, I saw plugin.saveDefaultConfig() however that's only for config.yml, what if I want to store data in a separate file?

#

Also, would a yml file be the best way to do it? I have a map of String (mc uuids) => Int (citizen id)

tender shard
#

why tf does intellij that this is always true?

#
            if(!Arrays.stream(Enchantment.values()).anyMatch(ench -> {
                return ench.getKey().getNamespace().equals(new NamespacedKey(this,"test"));
            })) {
                Enchantment.registerEnchantment(Enchantments.GLOW);
            }
#

oh I am stupid

#

I am comparing a String with a NamespacedKey

#

lol

buoyant viper
#

isnt there a

#

.noneMatch

tender shard
#

yes, already did

#

I tend to create way too complicated streams until they work, then let intellij simplify them lol

buoyant viper
#

poggers

#

ez fix just dont use streams

tender shard
#

I actually started with .filter() lol

buoyant viper
#

from the wise words of maow

tender shard
#

streams are the best things ever

#

I use them everytime I can

#

because of their lazy evaluation they are also pretty fast

hardy swan
#

?!

quaint mantle
#

i stopped used streams
new ArrayList<>(oldList.size());
for(Item i : oldList)...

molten cloak
#

anyone know a good way to make plugins without coding appart from skript or visual bukkit

tardy delta
#

visual bukkit?

molten cloak
#

rlly

crimson verge
#

i mean you could pay for a dev to do it for you

#

¯_(ツ)_/¯

quaint mantle
#

There's no good way

#

Learn java

feral egret
buoyant viper
tender shard
#

streams are great to convert stuff
e.g.

List<String> materialNames = Arrays.stream(Material.values())
                                   .map(Enum::name)
                                   .collect(Collectors.toList());
molten cloak
tender shard
#

all those alternatives are just stupid and way more work

crimson verge
#

{TheSourceCode} on yt -- for specifically spigot dev***

#

is pretty good

#

he has a whole playlist

buoyant viper
undone axleBOT
quaint mantle
#

I would not recommend anything on YouTube

buoyant viper
#

i see trans flag i send friedn request

molten cloak
feral egret
quaint mantle
#

There's a lot of people who dont understand what they do

feral egret
#

TheSourceCode is very good, I gotta agree with @crimson verge there

buoyant viper
quaint mantle
#

showing bad practices and such

hardy swan
#

youtube is a place where you learn some abstract concepts and listen to people complaining about oop

feral egret
tender shard
#

it's always funny when someone sends their source code and it contains this

public void onDisable() {
  // Plugin shutdown logic
}

lol

crimson verge
#

if you need something simple and want it done fast yt is pretty good, lets put it that way lmao

quaint mantle
#

jetbrains academy is great

tender shard
#

show build line 15

buoyant viper
#

paper issue

#

this is spigot

hardy swan
tender shard
#

you didn'T register the command "build" in your plugin.yml

buoyant viper
#

i will never forgive bukkit for its horrid way of registering and managing commands

crimson verge
#

lmfao

#

theres lots we cant forgive bukkit for

quaint mantle
#

Ewsy solution moge to sponge

buoyant viper
#

true

#

i do want to learn sponge some day

hardy swan
#

oh fk, enum's values() returns arrays

tender shard
#

🙂

quaint mantle
hardy swan
#

^

crimson verge
#

show us your InventoryCommands() method

kind hatch
#

Make sure you are using spaces and not tabs.

buoyant viper
#

my point was u need to register in plugin.yml AND then register in code, instead of just registering it in code

tender shard
tender shard
crimson verge
#

okay thats definitely not right haha

hardy swan
#

you were right...

#

._.

crimson verge
#

what ide are you using? eclipse and intellij accept tab in yml properly

tender shard
#

that's intellij

#

and intellij converts tabs to spaces in yml files

#

show your full plugin.yml please

crimson verge
#

default intellij themes oof

#

this looked right

quaint mantle
#

hello guys, how can I add a custom block in my game (its just a normal block with a lucky block texture)

tardy delta
#

it will literally print "/<command>"

spiral light
#

resouecepack

tender shard
quaint mantle
crimson verge
quaint mantle
tardy delta
#

i saw people using barriers tho i dunno why using them

feral egret
tender shard
quaint mantle
#

Yea using barriers is dumb

hardy swan
tender shard
#

its open source

quaint mantle
#

I see

tardy delta
crimson verge
#

cant break em maybe

tardy delta
hardy swan
#

im embarrassed to share that lmao

quaint mantle
hardy swan
#

it was my first ever plugin

tardy delta
#

xd

tender shard
#

?

quaint mantle
#

English please

crimson verge
#

i dont speak that lang soz

tardy delta
#

ah yes we can read that

crimson verge
#

xd

hardy swan
#

you see, barrier blocks makes you not have to worry about handling of noteblocks state or sorts

spiral light
#

you should rly try to explain what your problem is ... you wrote again just "please help"

crimson verge
#

line a new line?

tardy delta
tender shard
#
List<String> lore = ...
itemMeta.setLore(lore);
kind hatch
#

ItemMeta#setLore()

crimson verge
#

either add them as separate lines to your arraylist of lore or you can use \n as an "enter"

#

i think they mean have them each on a new line

tardy delta
#

Arrays.aslist 💙

hardy swan
tender shard
crimson verge
#

i mean fair

#

ill give ya that XD

tardy delta
#

oh i understand that's why

crimson verge
#

toby

#

the easiest way

#

would be to add \n in your string

#

wherever you want an enter

hardy swan
#

nooo

tardy delta
#

Player#setDisplayName?

crimson verge
#

its messy looking code but works haha

tardy delta
#

wdym by name tag exactly?

spiral light
crimson verge
#

it does lol

tardy delta
#

thats not possible without packets or teams

kind hatch
#

You need to pass a List of Strings into the setLore method, not just a string.

crimson verge
#

like "blahblah\nblahblah"

hardy swan
#

or armor stands

crimson verge
#

but yes better practice is to make a list of strings for setLore

hardy swan
#

oh nvm

tardy delta
#

why haven't you looked it up?

crimson verge
#

most servers use PAPI so

#

would recommend trying that if ya need an API for packets

kind hatch
#

Also, you are trying to set the lore on a string when you already inside the setLore method.

crimson verge
#

wouldnt really recommend it but up to you haha

tardy delta
solid cargo
#

why doesnt the following code execute?

            gui.addElement('a', MiningItemManager.TITANIUM_SWORD, click -> {
                if (p.getInventory().contains(MiningItemManager.TITANIUM, 2) && p.getInventory().contains(new ItemStack(STICK))) {
                    for (int i = 0; i <= 2; i++) {
                        p.getInventory().removeItem(MiningItemManager.TITANIUM);
                    }
                    p.getInventory().removeItem(new ItemStack(STICK));
                    p.sendMessage(CommonStrings.PREFIX_GOOD + "Dabūji Titanium zobenu!!");
                    p.getInventory().addItem(MiningItemManager.TITANIUM_SWORD);
                } else {
                    p.sendMessage(CommonStrings.PREFIX_BAD + "Tev nepietiek materiālu!");
                }
                return true;
            });```
`return true` isnt important atm
tardy delta
#

not well explained but none of those threads do

solid cargo
#

i use InventoryGui as the inventory thing

solid cargo
tardy delta
#

i think we need more code

crimson verge
#

is there a specific error?

solid cargo
#

tried containsAtLeast btw. doesnt work

solid cargo
solid cargo
tardy delta
#

well na but what isnt working? it doesnt remove the items?

solid cargo
#

it goes to this part:
p.sendMessage(CommonStrings.PREFIX_BAD + "Tev nepietiek materiālu!");
even tho i have fulfilled the plugin's needs

hardy swan
#

which of the conditionals is not fulfilled?

coarse shadow
#

how do i get an items name through nbt

solid cargo
#

i will check

kind hatch
tardy delta
#

idk if this will trigger
p.getInventory().contains(new ItemStack(STICK))

crimson verge
#

Material.STICK

#

thats your first prob

tardy delta
#

thats probably a variable

crimson verge
#

it could be but

#

something tells me it isnt lol

hardy swan
#

narrowing the scope can, most of the time, give you the direct explanation of failure

tender shard
#

damn... spigot should have a method to get a materials composting chance...

solid cargo
#

i have narrowed down the issue

#

it doesnt like the titanium thing

crimson verge
#

I would just make a static ItemStack for your titanium sword and reference that anywhere you need it

#

would probably work smoother(coding wise)

tardy delta
#

make your own custom items enum i'd say

#

if you have many

solid cargo
#

i dont have many

#

i have like 4

#

this is the way i define them

crimson verge
#

yeah thats not going to work if you dont give them at least a material

solid cargo
#

nonono

#

that works

#

at bottom

hardy swan
#

capitalization should only apply for static constants

tardy delta
#

please static

#

what help

hardy swan
#

nvm

crimson verge
#

lol

tardy delta
#

xd

hardy swan
#

im tired

solid cargo
tardy delta
#

take a nap bro

solid cargo
#

CONTEXT

crimson verge
#

show us what the lore looks like, explain what the issue is, etc.

hardy swan
#

programmers don't sleep

tardy delta
#

i do and the next day i'm still sleepy

#

sometimes i wondering why i would even sleep 🥵

sonic basin
#

is there anyway to wait before doing a function without making the server go into sleep mode

hardy swan
tardy delta
#

sleeping at school 😎

crimson verge
#

toby

#

what issue are you seeing

tardy delta
#

the blank lines not showing up?

opal juniper
tardy delta
#

use Arrays.asList("", "", "") instead

crimson verge
#

odd, must not work in that lang or something

crimson verge
tardy delta
#

#setLore(Arrays.asList(shit here))

hardy swan
tardy delta
#

yes

crimson verge
#

all that goes within the parenthesis of your setLore() thing that you already have

spiral light
tardy delta
#

it will use a new line for each

crimson verge
#

it worked on something i did not long ago xD

humble prairie
#

Hey, does anyone know how i can rotate a log block via script? (I'm using the 1.8 version)

tardy delta
#

minecraft not liking String.format either :(

spiral light
tender shard
#

?showerror

crimson verge
#

not sure which i used on that project tbh lmao

tender shard
#

?showerror

#

why doesnt this work

#

it used to work fine

crimson verge
#
setDisplayname("§2Builder +. Build").setLore(Arrays.asList("Svet pre určeny pre väčšie stavby", "Príjemný čas strávený stavaním!", "Stlač pre pre nastavenie creativu")).setLocalizedName("pro").build());
tardy delta
opal juniper
crimson verge
#

idk crap about skript lol

humble prairie
crimson verge
#

yes

opal juniper
#

ok so if i just do this :

#

it works

tardy delta
#

i understand but that isnt an answer to my question 👀

quaint mantle
#

1.8 cringe!

crimson verge
#

no, not String.valueOf

#

dont want that

hardy swan
crimson verge
#

too many )

#

at the end

tardy delta
#

hover over the error

hardy swan
#

you can estimate diagonals to be 3/2 tbh, if that affects your efficiency

tardy delta
#

we arent doing everything for you

crimson verge
#

🥣

tardy delta
#

nom nom cereals

opal juniper
#

OH THAT WORKS

#

LETS go

hardy swan
#

lmao

#

LETs GOOOO

#

this is not step-by-step help channel Tobys_

spiral light
#

you litterly use an ItemBuilder and dont know anything about it right ?

tardy delta
#

are you using your setLore method which accepts a string?

crimson verge
#

🤦‍♀️

spiral light
#

wow... and your here for spigot help ....

#

we dont know which resource you use

tardy delta
#

hehe it looks like my itembuilder

spiral light
#

you should take a look at the resource where you copy/paste it

tardy delta
#

and adapt the code

crimson verge
#

so \n does work, just not in your method

#

im not crazy xd

spiral light
tardy delta
#

changing it needs you to understand what youre doing

crimson verge
#

dont use an item builder if you dont know how it works

hardy swan
#

stack trace

spiral light
undone axleBOT
crimson verge
#

im too lazy to build an entire plugin just to test xd

spiral light
tardy delta
crimson verge
#

i must be thinking of something else then xd

tardy delta
#

only DecimalFormat worked for me

crimson verge
#

i believe ya lmao