#help-archived

1 messages Ā· Page 112 of 1

trim gull
#

i think its 25565

#

i port forwarded it

opal marsh
#

double-check that nothing else is running on 25565 and if there's still problems, try restarting the computer

trim gull
#

i'll restart it, because i removed the files from my laptop. thanks!

#

restarting it didn't work

opal marsh
#

try running it as admin

trim gull
#

it says "error: unable to access jarfile spigot.jar"

opal marsh
#

hmm. you're sure you shut down and powered back on your laptop?

trim gull
#

yea, i can try again?

opal marsh
#

go for it but idk what else to try

trim gull
#

okay, thank you

proper cairn
#

am i doing something wrong again

#

jesus the server comes back with that my plugin.yml isnt found but is right there

opal marsh
#

what does your build process look like?

#

@trim gull if that still doesn't work, try pressing the windows key and "r" at the same time, entering "resmon.exe" into the box, and pressing enter

#

then go to the network tab, and look for 25565 under the "listening ports" section

trim gull
#

okau

#

i don't see it

opal marsh
#

and it still says "failed to bind to port"?

trim gull
#

yea

#

is it possible that the old vanilla server that i deleted is getting in the way?

opal marsh
#

not likely if you don't see it running

trim gull
#

yea

#

should i delete and port forward again? or is there another port i can use?

opal marsh
#

you can use any port you want, 25565 is just the default

#

how are you port forwarding?

trim gull
#

through linksys smart wifi

#

through my router account

opal marsh
#

can you send a paste of your server.properties?

trim gull
#

sure

#

#Minecraft server properties
#Tue Jun 02 22:19:38 EDT 2020
spawn-protection=16
max-tick-time=60000
query.port=25565
generator-settings=
force-gamemode=false
allow-nether=true
enforce-whitelist=false
gamemode=survival
broadcast-console-to-ops=true
enable-query=false
player-idle-timeout=0
difficulty=normal
spawn-monsters=true
broadcast-rcon-to-ops=true
op-permission-level=4
pvp=true
snooper-enabled=true
level-type=default
hardcore=false
enable-command-block=false
max-players=20
network-compression-threshold=256
resource-pack-sha1=
max-world-size=29999984
function-permission-level=2
rcon.port=25575
server-port=25565
debug=false
server-ip=
spawn-npcs=true
allow-flight=false
level-name=world
view-distance=10
resource-pack=
spawn-animals=true
white-list=false
rcon.password=
generate-structures=true
online-mode=true
max-build-height=256
level-seed=
prevent-proxy-connections=false
use-native-transport=true
motd=Kat's Minecraft Server
enable-rcon=false

#

i took my ip out but i did bind it

opal marsh
#

make sure server-ip= is empty in the file too

trim gull
#

ah okay

opal marsh
#

that's almost certainly the problem

trim gull
#

thank you

#

its working, how will people join without it being bound to an ip?

#

sorry for being an idiot btw

opal marsh
#

nah, you're not an idiot, just new. the server-ip setting is for binding to a particular ip when the machine the server is running on has multiple ips

trim gull
#

ah okay

#

so how would someone join? on the vanilla server i just gave them my ip and used direct connect

opal marsh
#

that should still work

trim gull
#

okay

#

thank you

#

I tried to connect to it myself, it failed

#

it says "connection timed out, no further information"

opal marsh
trim gull
#

Error: I could not see your service on [my ip] on port (25565)

#

Reason: No route to host

opal marsh
#

make sure the server is running and that the port forwarding is set up correctly

trim gull
#

the start.bat / cmd.exe says it is running

opal marsh
#

I don't have any experience with port forwarding so I don't know how to debug that side of things, sorry

trim gull
#

all good]

#

when i had problems with the vanilla server it turned out to be an issue with my firewall

#

thanks for all the help!

frigid ember
opal marsh
#

no problem šŸ‘

frigid ember
#

ok thanks I'll check it out

proper cairn
opal marsh
#

@proper cairn you didn't answer my question - what does your build process look like?

proper cairn
#

Oh sorry

#

What do you mean by build process like how i have the artifacts setup in my project structure

#

@opal marsh

trim gull
#

i realized that i made a mistake very early on

hot fable
#

Hello good, how can I make PlaceholdersAPI register my variables? I have an extended class to PlaceholderExpansion

trim gull
#

the spigot.jar and the craftbukkit were in the same folder as build tools

#

which files should be in the buildtools folder and which should be in the server folder?

torn robin
fleet crane
#

pretty sure theres an api method for that

torn robin
#

last I checked there isn't

#

I'm trying to get the weapon's cooldown

fleet crane
#

getAttackCooldown?

torn robin
#

oh nice

torn robin
#

sweet ty

#

it was renamed to getCooldownPeriod for anyone that still needs it for some reason

#

but the API is much easier

trim gull
#

after installing buildtools and running it through git bash, i downloaded spigot. is is just the spigot.jar file that needs to be under a different directory, or are there others? I accidentally installed them all into one folder. (rephrasing question from earlier in case it was confusing)

#

actually, nevermind. ill just reinstall both and figure it out

opal marsh
#

@proper cairn I mean what the ide does to build the plugin (since it looks like you're not using maven)

#

@trim gull what do you mean when you say you downloaded spigot? running buildtools should generate the spigot jar and you can then use that jar with the patch file to run the server

#

after you're done running buildtools to get the spigot jar file, the buildtools folder isn't important anymore and running the server doesn't depend on it

thick summit
#

So this is a bit weird for me atleast.
I am wanting to spawn in a custom model to my server...

I can do the / give player minecraft:diamond_sword{CustomModelId:123456} IN SINGLE PLAYER

In single player and get the model, but it doesn’t work on my server even though the resource pack is loaded in it says ā€œCan’t find itemā€ can anybody help with this please?

trim gull
#

@opal marsh that's what i meant, yea. do i just move the spigot.jar into it's own folder? that's what's listed in the pre reqs

#

if paper would be easier, i'm willing to try that. I've just worked a lot today to work out the issues i've had with spigot

opal marsh
#

@thick summit try preceding the "/give" command with the minecraft namespace so it's "/minecraft:give ..."

thick summit
#

Hold on I’ll test right now

opal marsh
#

@trim gull yep, just move the spigot jar to its own folder and set up the batch file and you should be good to go

trim gull
#

thank you

opal marsh
#

do you have any plugins that might mess with nbt?

thick summit
#

It’s worked, kind of. If I load the resource pack on my client I can see it, do the server must not see the resource pack files?

#

Not sure on how to change that but I’ll have to look into it

#

Ty for ur help

opal marsh
#

yeah, the server has to send the resource pack to the client for other players to see it

thick summit
#

How can I do that?

#

It’s prompted me to download as I join

opal marsh
#

so you're sending the resource pack from the server and it's not working?

thick summit
#

Yes, I am downloading the resource pack when I join, but can’t see the things

opal marsh
#

try logging out, removing all the files in ".minecraft/server-resource-packs", logging back in (to download the resource pack again), and then there should be one file in the server-resource-packs folder

#

rename it to a zip file and double-check that it's the same one you're using in singleplayer

trim gull
#

is there anything in the server.properties, bukkit.yml, spigot.yml, that i need to change in order for my server to run?

opal marsh
#

no, not for it to just run

frigid ember
#

You need to agree to the eula

trim gull
#

yep

#

and then i just need to launch the start.bat file?

opal marsh
#

yes. make sure the jar is named the same way it is in the batch file

frigid ember
#

Yeah that should work

trim gull
#

okay

#

it says that it's done loading up the server

#

ill see if i can direct connect again

frigid ember
#

in the server properties folder make sure you are using the correct port as the one you are connecting too in case you changed this value

thick summit
#

Ok the issue is I have an emoji chat plugin which over rides the resource pack when I login

#

Is there anyway I can merge the 2?

trim gull
#

yea it's on the port that i forwarded through my router provider

#

i

thick summit
#

Emojichat is just a JAR file and a config folder

opal marsh
#

@thick summit if the config allows for disabling the automated sending, yes

trim gull
#

i'm still getting an error message. "connection timed out. no further information

frigid ember
#

Is it a local server or are you connecting through an external ip?

thick summit
#

Can I not like, drop this config file into my resource pack folder?

opal marsh
#

can you connect on your computer if you use "localhost" as the ip?

trim gull
#

it's my own ip @frigid ember

#

local host works?

#

yea it works

opal marsh
#

in that case, it will very likely be a portforwarding issue

thick summit
#

It can be disabled, but then they wouldn’t see the emojis?

opal marsh
#

they will if you merge the two resource packs manually and make them download the merged pack

trim gull
#

at this point should i just try using paper instead? or hope that someone here might know about port forwarding?

opal marsh
#

paper will almost certainly not fix this issue but it's simple to try

trim gull
#

i might try port forwarding again

#

remove the current one and do it again

thick summit
#

Thanks for your help @opal marsh I’m going to drop the emoji config file into the server resource pack

opal marsh
#

that won't do anything I think

frigid ember
#

Anyone know how to get the maximum coordinates & minimum coordinates from a BlockVector3?

opal marsh
#

@trim gull yep, that's probably your best bet

thick summit
#

Config is my only file linked to emoji chat tho I think

#

So resource pack must be coming from there?

opal marsh
#

@frigid ember BlockVector3 should just be a single x,y,z

frigid ember
#

oh, I see

opal marsh
#

@thick summit I'm saying to modify the config file in the "plugins/EmojiChat" folder

frigid ember
#

The vector is just encompassing an area

thick summit
#

And disable auto download?

opal marsh
#

yes

thick summit
#

Ok doing that now

frigid ember
#

Well, no, I'm sstill confused by that

#

While I understand the BlockVector3 has an x, y, & z, it encompasses an area

opal marsh
#

@frigid ember there isn't enough information in a BlockVector3 to encompass an area

frigid ember
#

So there will be a maximum and minimum y coordinate

#

Then I guess I do not fully understand a BlockVector3 object

opal marsh
#

you can think of it as a bukkit Location without a world attached to it

frigid ember
#

I see

thick summit
#

I disabled that, and although now it doesn’t auto download, they can no longer see the emojis

opal marsh
#

@thick summit after you disable the automatic downloading of the emoji pack, you'll have to merge the two resource packs manually and set up the merged pack to download

frigid ember
#

But when I do a clipboard.getDimensions(), it returns at least a 1,1,1 area

#

BlockVector3 com.sk89q.worldedit.extent.clipboard.Clipboard.getDimensions()

Get the dimensions of the copy, which is at minimum (1, 1, 1).
Returns:the dimensions

opal marsh
#

I'm assuming that's using 0, 0, 0 as a basis

thick summit
#

I’m not sure where the emoji resource pack is tho ...

#

The only file I have are the plugin, and config

opal marsh
#

it should be in the server-resource-packs folder in .minecraft

thick summit
#

Can I just drag both those files into a folder

#

And setup that folder as my server resource pack?

frigid ember
#

@opal marsh I think this makes more sense

            BlockVector3 minimumVector3 = clipboard.getMinimumPoint();```
#

Then I can get all blocks between these two locations

#

Correct?

trim gull
#

should single port forwarding be fine?

opal marsh
#

I believe that should work but I'm not very familiar with the worldedit api

#

@trim gull yes, it should be running on just 25565

trim gull
#

coolio

opal marsh
#

@thick summit that could work, you can give it a shot

thick summit
#

That didn’t work

#

Did nothing, hmm

opal marsh
#

can you elaborate? what specifically did you try?

thick summit
#

I went into my server resource packs, dragged the emojis file and my resource pack file into a folder on drop box, the. Gave my severe the new drop box link to use as the resource pack with both files inside

opal marsh
#

you have to unzip the emojis file (it's a zip file without an extension), unzip your resource pack file, merge the two, rezip it, and use that

thick summit
#

Emojis file meaning the plugin?

#

Or the server resource pack thing

opal marsh
#

the server resource pack

lusty basin
#

Is it possible to load a mod like Worley's Caves within Spigot (linux CLI-only host)?

true patio
#

How do I delete my resource fro spigot?

trim gull
#

oh my gosh it worked!! thank you so much @opal marsh ! you are really out here saving everyone's lives

opal marsh
#

@lusty basin as far as I'm aware, there's no stable solution to use mods and plugins at the same time in modern minecraft versions

#

@trim gull yay, I'm glad it worked!

thick summit
#

I don’t have the option to unzip it, I can only zip it

#

On a Mac btw

trim gull
#

how do i op myself?

#

is it just /op then my username?

opal marsh
#

yes

#

@thick summit rename it to a zip file

#

@trim gull if you're using the console, commands don't start with a slash by the way

trim gull
#

ah thank you

thick summit
#

Uploading to Dropbox now, this looks about right so far

frigid ember
#

does anyone know how to make a multiverse portal go to a specific location?

opal marsh
subtle blade
#

How do I delete my resource fro spigot?
@true patio Report your resource and resource staff will tend to it when available

opal marsh
#

oh dang, I was not aware you couldn't instantly delete your own resource

#

is there a reason for that or is it just a xenforo thing?

subtle blade
#

I'm sure there's a reason because 99.9% of the time, we comply and delete it

#

Only time we really don't is if it's a premium resource

opal marsh
#

ah, makes sense

frigid ember
#

ty

jaunty night
#

is there an event that triggers when the held item has changed, and is there a similar one for your off hand?

subtle blade
#

PlayerItemHeldEvent

jaunty night
#

Thank you šŸ™‚

thick summit
#

@opal marsh dragged them both into a drop box folder and it still doesn’t work when I join the server :/

#

But it says ā€œdownloading resource packā€ when I join

#

But doesn’t even show in my resource packs in esc

opal marsh
#

You need to merge the two unzipped folders into one folder on your computer then zip just that one folder and upload just that zip file to dropbox

thick summit
#

Right ok

opal marsh
#

If you want, you can dm me and I'll see if I can do it for you

#

When merging the two folders, it should prompt you to overwrite or skip the pack.mcmeta file

frigid ember
#

If we want to adjust horse health, jump, etc, do we have to use nms?

#

Does anyone know of an easier way to interact with nms than reflecting into each class & just guessing what a minecraftserver_1.15.2.a() method does?

#

I mean I have no idea how to interact with these methods as they are completely non-descript

opal marsh
old carbon
#

how do i allowcate more ram to the server

hallow surge
#

you jokin rite

vernal spruce
#

Trying to stop myself from saying a download ram joke

hallow surge
#

i hope hes joking

vernal spruce
#

@old carbon local server or hosted

hallow surge
#

allowcate really

#

no way thats real

old carbon
#

nvm

hallow surge
#

hes joking

old carbon
#

so there is nothing for downloading ram shit

hallow surge
#

just download more ram xD

#

seriously

old carbon
#

but i heard that default servers only have 1 gbs of ram

hallow surge
#

well if you download more ram

#

you can have more!

old carbon
#

LOL

hallow surge
#

i always lauch my servers with command prompt i dont use the fancy ui

vernal spruce
#

When you start a server you use a start script containing the param "-Xmx2G"(2 is how much ram)

hallow surge
#

change the numbers

#

it'll start working eventually

#

also gl running a server if you dont know how to change ram yet xD

old carbon
#

ok

#

so only changing the xmx?\

#

my .bat file is not booting

#

it cannot open with more than 1G

vernal spruce
#

Then most likely java is set to a max limit,look on google to remove that limit

old carbon
#

how

#

i can't find any tutorials

frigid ember
#

so, i just got bedwars-rel into my bedwars server. never worked with it before, and i don’t know why one of the islands don’t work. (you can’t build or break on the island) i feel like it’s because the island was copy pasted but i don’t really know.

#

does anyone know how i could fix this?

chrome lark
#

you need 64 bit java to use more than like 1.3G of ram on the heap, oracle for some reason offers the 32 bit version by default

pastel condor
#

I mistakenly installed a 32 bit os on my 64 bit system, and didn’t realize until I bought more ram and java didn’t let me make a 6 GB heap.

frigid ember
#

what license are the spigot modifications of craftbukkit under

tiny dagger
#

gpl3 i think

green oasis
#

Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap

#

i got this error when i start my server

frigid ember
#

i want to know from one of the spigot devs

#

i dont want to rely on a i think

undone narwhal
#

Generally you can check out the licence on git

frigid ember
#

there is no license on the git

#

:p

undone narwhal
#

As the patch repo doesn't have a license, this is the same

frigid ember
#

thats not spigot

#

its craftbukkit

undone narwhal
#

Now read the second line of my message

floral isle
#

hi everyone I would have a problem with placeholderapi as addiction the various placeholders don't work

silent frost
#

Now read the second line of my message
@undone narwhal and what makes you say that?

#

why would a patch repo just inherit a license šŸ¤”

hoary parcel
#

Modifications to a project follow the projects licence

#

Unless otherwise stated

#

Patches are modifications

#

For example: The patches of the fork that shall not be named are (l)gpl by default, cause that's the licence the project inherits, but many regular contributors decided to licence their patches as MIT so other projects (and mojang!) can use them more easily

undone narwhal
#

@floral isle Can you show us your code?

floral isle
#

@undone narwhal yes but not all the code because as I said it is a private plugin

hoary parcel
#

We don't care about your code, we could way easier write it ourself than steal yours

#

But if you want help, you gotta show us your code

undone narwhal
#

@floral isle As MiniDigger we don't care about that, and if you really want you can delete it after, we just need the part where you use PlaceHoldersAPI + errors

floral isle
#

ok how i can sen the code

#

send*

undone narwhal
#

```java
<Code here>
```

sturdy oar
#

?paste

worldly heathBOT
floral isle
#

un sec

sturdy oar
#

I-S are you here?

#

I need to ask you a question

#

don't feel like pinging you -.- so I hope you're reading

floral isle
#

the code are here

sturdy oar
#

and?

undone narwhal
#

You can't parse the placeholders right?

floral isle
#

no for example in the hologram because is a papi support for an hologram plugin i put the placeholder like %player_name% and dont work

sturdy oar
#

are the placeholders static or dynamic

undone narwhal
#

PlaceholderAPI#setPlaceholders(Player, Message)

#

And in your server you have to enable the correct papi package

#

For example %player_name% and players related are in the Player module

sturdy oar
#

yeah I don't remember the entire process, but didn't it require the eCloud expansion download?

undone narwhal
#

/papi ecloud download Player

#

/papi reload

floral isle
#

yes i have download it

#

and i tried with vault essentials ecc ecc

undone narwhal
#

And do you use the

PlaceholderAPI#setPlaceholders(Player, Message)

#

?

sturdy oar
#

either something is wrong with your PAPI usage, or that if statement never succeeds

undone narwhal
#

Yep sorry just saw it

#

Where you send the parsed text try to add something like parsed = parsed + "Debug" to see if the hologram is well updated

floral isle
#

ok but is stange because in the hologram plugin code there a automatic sistem to update holograms

undone narwhal
#

Tell me if the text is well updated (if you use the parsed = parsed + "Debug" test)

floral isle
#

ok

#

and a another question for optimize packets of the holograms there's a method?

sturdy oar
#

don't block the thread to stop packets i guess

#

you might want to check if that kind of packet can be sent concurrently, but usually they can and don't cause any issue

floral isle
#

yes

sturdy oar
#

do you make the packets with ProtocolLibs' factory

floral isle
#

ok thx for the help

undone narwhal
#

Am I the only person to prefer basic Reflection than using ProtocolLib?

sturdy oar
#

I try to use my own packet library

#

actually not my own, just a kotlin porting

undone narwhal
#

Oh great

#

I never took the time to understand ProtocolLib

sturdy oar
#

Should i make downloads from URLs concurrent in my plugin?

hoary parcel
#

Protocollib is really easy

#

You just tell it which data type to write

#

Rather than accessing fields by name

#

It's way safer

undone narwhal
#

Yes right, but if you just want to make basic things (like spawning and updating an hologram) NMS is great

#

But I'll take the time to learn PLib soon

#

What do you mean Fendi?

sturdy oar
#

Well

#

i followed this tutorial to download a resource from an external server

#

and I was wondering if i should do it on another thread instead of the main one

undone narwhal
#

Obviously, it is even strongly recommended. Downloading on the spigot thread will literally kill your server.

sturdy oar
#

oh, it didn't happen so far. I guess i'll update this ASAP

undone narwhal
#

When it's not big files it's okay, but it will still freeze the thread while downloading

sturdy oar
#

it is big files I guess

undone narwhal
#

Bible yes ^^

sturdy oar
#

xd

#

i'll just use the bukkit async scheduler, i really like it

undone narwhal
#

I mean you're not downloading a game ^^

#

Yep it's enough and easy šŸ˜‰

chrome heron
#

anyone know how to write skript

#

addons : parties

#

skuniverse

undone narwhal
#

Make english sentences

sturdy oar
#

skript has a documentation

#

i still haven't wasted my time reading it , so I can't help

sudden osprey
#

Is anyone familiar with the TerrainControl plugin and is willing to help me?

sturdy oar
#

_Rolyn do you think i should make JSON Deserialization concurrent as well?

#

or GSON is fast enough

undone narwhal
#

Nop zfx Sorry, you can still tell us what you want to do to see if we can help you

#

GSON is fast enough I love it

sturdy oar
undone narwhal
#
  • made by google so it should be fast
#

"Big files" ^^

sturdy oar
#

lmao

fickle surge
#

lmfao

sturdy oar
#

the 7 bilion lines file on StackOverflow

#

that meme is good

undone narwhal
#

Ahahahh

fickle surge
#

think writing it from yourself

#

blackout: i will end this man whole life

sturdy oar
#

writing what

undone narwhal
#

The Bible lol

chrome heron
#

so anyone know the use of skuniverse?

sturdy oar
#

I use Python to parse the bibles that I can't find online as JSON

#

i have them as PDF \ txt

undone narwhal
#

You should publish these parsed files on GitHub this is useful!

#

"The Bible Repository"

sturdy oar
#

yeah some of them that I use are from another user that did this on GitHUB

#

however latin, italian, and other languages will require manual parsing by me

undone narwhal
#

Of course.. Do not forget French šŸ˜‰

sturdy oar
#

already got it

#

ā¤ļø

undone narwhal
#

Yeahh ā¤ļø

fickle surge
#

french?

#

i hate french

sturdy oar
#

Bruh

fickle surge
#

i am italian

#

u are bullies

#

"pizza corona"

#

and what if i say bAgUeTtE nOtRe DaMe?!!??!

floral isle
#

@fickle surge you are italian?

fickle surge
#

yeah

floral isle
#

salve collega

undone narwhal
#

Not that cool @fickle surge 😢

fickle surge
#

ciao fratm

sturdy oar
#

yeah don't discriminate french

floral isle
#

ok maybe i have found the problem with placeholders

fickle surge
#

yeah don't discriminate italy

sudden osprey
#

Is anyone familiar with the TerrainControl plugin and is willing to help me?
my problem is that I want to generate I world with a specific config for a uhc gamemode but the map has to reset everytime the server restarts. But when I delete the world and generate it again the world config doesnt get taken over so I would have to put it in the file manually every time

sturdy oar
#

Terrain Control has a documentation

#

What version are you trying it with

#

zfx

#

I don't remember if this works, but you should look for the bukkit.yml terrain generation

#

Many terrain generators allow to hook in bukkit yml to directly specify the generator of each world

sudden osprey
#

I think its the newest version

sturdy oar
#
worlds:Ā 
 [world]:
Ā  Ā  generator: The_Generator_Name
#

You should look if this is supported

undone narwhal
#

@floral isle What was it?

sudden osprey
#

@sturdy oar should that be in bukkit.yml?

floral isle
#

did not update the lines with the placeholders due to a small code error of mine

sturdy oar
#

Yes zfx

#

It should be added

#

You should look if it's supported however

undone narwhal
#

Okay ^^

sudden osprey
#
worlds:Ā 
 [world]:
Ā  Ā  generator: The_Generator_Name

@sturdy oar I dont have that in the bukkit.yml

undone narwhal
#

You can add it

sudden osprey
#

I'll try it

#

But how exactly is that gonna help me with my problem because the config still resets everytime I delete the world and create a new one

sturdy oar
#

Oh wait

#

The config resets?

#

like it erases the values?

#

Whenever you remove the world

sudden osprey
#

Wait I'll try to explain it again

#

I think I expressed it wrongly

#

So I have a world with a Worldconfig.ini which I want to use for all other worlds to generate. In the gamemode I want to make the world has to reset everytime the server restarts. I tried doing it by deleting the world and letting a new one generate but then the worldconfig.ini is a new one because I generated a new world. Is there any other way to do it or can I make a global config that is applied to every generated world?

fleet crane
#

?jd

worldly heathBOT
fleet crane
#

why tf are the nullable annotations duplicated and why am I just noticing this now

tiny dagger
#

i thought you wanted to make it clear

#

"Not null mens Not null 😔 "

#

considering is just in java docs it's not that important

tawdry blaze
#

it's annoying though :/

sturdy oar
#

I actually even found

#

4 not null once

#

like @NotNull @NotNull @NotNull @NotNull CommandSender sender

#

that was real fun

#

looks like NotNull annotation is doing mitosis

undone narwhal
#

The most NotNull you put the most you're sure it won't be null šŸ˜‚

sudden osprey
#

So I have a world with a Worldconfig.ini which I want to use for all other worlds to generate. In the gamemode I want to make the world has to reset everytime the server restarts. I tried doing it by deleting the world and letting a new one generate but then the worldconfig.ini is a new one because I generated a new world. Is there any other way to do it or can I make a global config that is applied to every generated world?
anyone got a clue how to fix?

pastel fox
#

Let's say I save a sign Block and update the sign text after the chunk unloads- would this work?

fleet crane
#

I think it’ll reload the chunk and do it

#

Not 100% sure off he top of my head

#

Like many things, tryit.mov

silver pewter
#

Hello, how can I store a worldborder in the config then change the sizes when needed?

fleet crane
#

Sure?

silver pewter
#

?

fleet crane
#

Find a worldborder plugin?

silver pewter
#

I'm creating a custom cells plugin but I need to get the worldborder of that region and set a new size when upgraded

fickle surge
#

HI anyone knowing good travel plugin?

#

like a car or something like that

undone narwhal
#

Do you want a cool premium on, or you prefer a free plugin?

smoky tundra
floral isle
#

as mentioned the placeholders don't go that stress

#

@undone narwhal

sturdy oar
#

LMBishop

#

that method is not true vanish tho

#

there are some specific things that have to be done through packets

lament wolf
#

@smoky tundra Actually it's more complicated than that, I have to go through this packet because I have to delete it, to display his nickname in the tab in a different way. I shouldn't have used the term vanish I guess

sturdy oar
#

you're using ProtocolLib?

lament wolf
#

No

sturdy oar
#

you really should to be honest

#

it makes stuff like that simpler

lament wolf
#

I don't have a problem with relfection

silver pewter
#

Can you change a size of a region using worldguard api?

#

It's simple maybe add more features

fleet crane
#

@lament wolf theres literally .setTabListName or whatever

marsh hawk
#

anyone know how to convert a short player uuid to a long one with hyphens

fleet crane
#

substring + throw in hypens as required

honest blade
#

Can anyone spot anything obvious and/or outdated with this? It worked before, and stopped working around... 1.9 iirc?

marsh hawk
#

Is there a reason why mojang api uses non hyphenated but spigot uses hyphens?

fleet crane
#

probably issue with the destimations or Portal code

#

spigot uses the UUID class

marsh hawk
#

ah right

honest blade
#

nvm, I noticed the problem; wow, I really need to go to bed

shy shard
#

Hello there can some one tell me is my plugin responseble for this error or something is wrong with mysql

#

BeastTokens

#

is my plugin

#

and then other plugins as you see have same error

#

it is error from one of my

#

customers

#

no one yet report it

#

He talked dev of lucky permiss which told him problem is my plugin

#

because I use deprecated method

#

But nothing is marked as deprecated in my source

#

So I am really confused

#

If some one could help it will be really nice thanks šŸ™‚

#

my mysql class

cerulean musk
#

Guys i Want to make a bungeecord server. Should i do upload bungeecord plugins to bungeecord/plugins ?

odd knoll
#

Make sure you're using an up to date version of LuckPerms as a dependency.

#

@cerulean musk you upload them to the plugins folder on the bungeecord server, yes. Once you start the bungee for the first time, it will generate.

cerulean musk
#

@odd knoll no need Other server folders ?

odd knoll
#

Huh?

cerulean musk
#

For example i Want download the advancedban

#

İ just upload it on the bungeecord folder?

odd knoll
#

No, as I said, you upload them to the plugins folder on the bungeecord server.

#

The plugins folder inside of the bungeecord server.

neat lion
#

upload to the /bungeecord/plugins folder and restart

cerulean musk
#

Oh i understand thanks

hot fable
#

Helloo, how can I block the ping of the cmd towards my server?

neat lion
#

please explain

lament wolf
#

How to sort the tab list ?

neat lion
#

plugins such as bungeetablist

sturdy oar
#

is it possible to give access to a spigot user access to one of my premium resources without him having to buy it?

fossil shoal
#

I think you can add people to the buyer list

sturdy oar
#

great! He did buy it as a prerelease with a private transaction, so I hope i can do that

fossil shoal
#

Note that you can't remove people from the buyer list so be careful with who you add there

sturdy oar
#

ahah don't worry, he's my friend

red aspen
hidden mica
#

how do you sort a yml file from highest integer, to the lowest?
like a highscore?

#

cause i've tried, but it won't return the arraylist

bronze marten
#

Sort in memory or physically save sorted?

hidden mica
#

it just says something like "OutOfIndex"

#
Level:
  player:
    Amqlie: 21
    Fikodino: 5
    Mattheboss: 43
    DogOnFire: 23```
 sorted so when u type a command, it shows the highest level is at the top of the list, and the lowest at the buttom with the name of the player where the level is
bronze marten
#

I dont think you should expect yaml to be in a sorted fashion, you should sort this in code

#

You could create a TreeSet of a custom object with name and score value

#

Then make the treeset use a custom comparator which sorts based on the score value

#

And whenever u want your scoreboard just iterator over the set (with your upperbound, like max 10 iterations) to show your top list

hidden mica
#

so should i use your solution instead?

sturdy oar
#

you should use a list

#

and sort with streams

bronze marten
#

That wont be efficient when inserting values though

#

TreeSet is better

sturdy oar
#

well i didn't totally understand what he wants to do anyway

hidden mica
#

she*

#

and i want to make like a command were you type /top, and get the integers in order from highest to lowest

sturdy oar
#

so only get?

#

they will stay unordered in the config, but will output sorted from in game right

hidden mica
#

exactly

sturdy oar
#

are those players name dynamic or static

hidden mica
#

i'm not sure...

#

don't judge, but i have only worked/played with java plugins for a couple months

sturdy oar
#

I think you should make a player object so the config would look like this

Level:
  Players:
    - name: "Amelie"
      level: 21
    - name: "FikoDino"
      level: 5
#

this would allow you much better options

#

So then you would have a List<YourPlayerObject>

#

and you could easily keep it sorted

#

and as @bronze marten said, you could even use TreeSet

hidden mica
#

so java for (String p : Level.get().getKeys(false)) { map.put(p, Level.get().getInt("Level.player." + p)); } won't work?

sturdy oar
#

if your player objects implement a comparator

#

well I have to go now i hope I helped

naive goblet
#

Storing stats by players or playernames seems kinda wack

subtle blade
#

It is very wack

#

Names have not been a supported means of storing persistent data since 1.7.6

tiny dagger
subtle blade
#

Well at that point you're just senselessly wrapping a Map

tiny dagger
#

i know

subtle blade
#

You'd be able to do the exact same thing by just replacing wherever you define a Settings instance with just a Map ;P

tiny dagger
#

i would have to do casting there

subtle blade
#

Sure. Though generally you want to avoid an Object value anyways

tiny dagger
#

oh

#

how else should i go about it

#

it can be numbers or string

subtle blade
#

Ideally your settings are fixed. There shouldn't be any reason to have an arbitrary amount of settings

naive goblet
#

Settings#getDouble(String) perhaps add an instanceof Number check and return 0 otherwise idk if it might throw an exception otherwise

subtle blade
#

You KNOW what settings exist

#

So why are they not fields instead?

tiny dagger
#

oh

#

global / per game

#

that's why

subtle blade
#

So assign an instance of settings per-game

tiny dagger
#

wait

subtle blade
#

Java is an OO language lol

tiny dagger
#

i think that might work

#

but then i would have to make objects

#

for every type

#

šŸ¤”

pallid turret
#

I'm having trouble copying a world to recreate a new arena, can anyone help?

subtle blade
#

I took a property approach for my arrows

naive goblet
#

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

pallid turret
#

When I try copying it I get an error saying that java.NoFileFoundException /level.dat

#

And No permission ^

#

Though there is a level.dat in the folder

naive goblet
#

could you provide us some code?

pallid turret
#

Sure happy to

#

To copy the world:

            File toCopyTo = new File("STArena/Flat1_8_8GDSkytouchArena");
            File toPasteTo = new File("");
            try {
                fileManager.copyFolders(toCopyTo, toPasteTo);
            } catch (IOException e) {
                e.printStackTrace();
                sender.sendMessage(ChatColor.RED + "Something went wrong with copying the world!");
                return false;
            }
#

Copy Folders Fucntion:

#
    public void copyFolders(File sourceFolder, File destinationFolder) throws IOException {
        if(sourceFolder.isDirectory()) {
            if(!destinationFolder.exists()) {
                destinationFolder.mkdir();
            }
            for(String files : Objects.requireNonNull(sourceFolder.list())) {
                File srcFile = new File(sourceFolder, files);
                File destFile = new File(destinationFolder, files);

                copyFolders(srcFile, destFile);
            }
        } else {
            Files.copy(sourceFolder, destinationFolder);
        }
    }
#

The Files.copy is com.google.common.io.Files

tiny dagger
#

oh i see

#

somewhat similar to the datawatcher structure

pallid turret
#

DataWatcher?

tiny dagger
#

yeah the internal entity value tracker

naive goblet
#

LorKeeper I'd highly advice you to take a look at implicit else. Also are you just trying to copy-paste a world with a new name?

subtle blade
#

I took inspiration from the data watchers, yes. Their data watchers are static constants as well but each entity has their own instance of a way to assign those constants (which are basically unique keys) to values

pallid turret
#

Well

#

I have a game

#

I want the arena to reset each time it ends

#

So I delete the previous world

naive goblet
#

wth

pallid turret
#

And recopy that one that was unchanged

subtle blade
#

Though you can accomplish the same thing by just having a bunch of fields for each of your settings

#

So long as you create new instances of those settings per game

burnt sable
#

Hey, looking for some help. I believe my spigot account has been compromised and it's password and email has been changed.

pallid turret
#

What do you mean Choco?

naive goblet
#

Uhm LorKepper I'd certainly just try to rollback the world

#

Why create a new world each time?

#

Doesn't look essential to me

pallid turret
#

Oh, how would I rollback it?

naive goblet
#

You could go about schematics or something

#

Having a "fixed structure" which you then paste in

#

I think worldedits api would be great for that

pallid turret
#

That's still a little confusing, do you mean rollback the world or arena structure?

#

Oh ok I'll look into it, thanks!

naive goblet
#

The arena?

pallid turret
#

Nevermind

#

Two more things

naive goblet
#

sure

pallid turret
#

Do you know where I can find the Worldedit API and do I need to grab it as a plougin and put it into the server?

naive goblet
#

Just add the jar to your build path

subtle blade
#

My answers are towards Fr33styler, Lor. You can ignore me ;P

pallid turret
#

Ok thanks

#

Ohh ok Choco sorry

naive goblet
#

Wait

pallid turret
#

?

naive goblet
#

Are you using gradle or maven?

pallid turret
#

Gradle

#

Though I can switch to Maven

naive goblet
#

No nonnonoonno

#

gradle my boi

pallid turret
#

Ok nice

naive goblet
#

Okay so just go to the world edit repo and it should be some instructions how to add the dependency into your project

#

Probably start by browsing to the plugin page

pallid turret
#

Thanks

fickle surge
#

i need a plugin that gives the player an effect when the player is wearing full armor set
like hypixel skyblock

#

please

vocal eagle
#

Ummm soo I was hoping that someone tell me how I can exclude jackson-lib from spigot using maven

subtle blade
#

It doesn't come with Bukkit nor CraftBukkit

vocal eagle
#

I tried bukkit 1.15.2 it had it

subtle blade
#

Well I'm looking at the pom.xml right now and it's not defined by either project

#

So if it's included, it's done by one of its dependencies. Could be vanilla that includes it for all we know

#

Why do you want to exclude it?

vocal eagle
#

I am using jda so it interferes with the custom Version inside it so I want to exlisde it from spigot

#

@subtle blade

subtle blade
#

Well, for any given dependency, you can exclude transitive dependencies

#
<dependency>
    <groupId>org.spigotmc</groupId>
    <artifactId>spigot-api</artifactId>
    <version>1.15.2-R0.1-SNAPSHOT</version>
    <exclusions>
        <exclusion>
            <groupId>whatever.jacksons.groupid.is</groupId>
            <artifactId>jackson</artifactId>
        </exclusion>
    </exclusions>
</dependency>```
gusty swallow
sturdy oar
#

ew jackson

#

@gusty swallow isn't that like Aikar's ACF

#

where you can do commands with annotations

gusty swallow
#

Sort of but it’s compiled ahead of time and doesn’t rely on reflection

#

Also it’s built on-top of brigadier

sturdy oar
#

maybe i have one thing

#

it's probably minor but

#

you should write a little notice on the last section of code that 'var' is available from java 11 onwards

#

which many still don't use

gusty swallow
#

Yeah sadly :/

#

The library’s written in Java 11 so that’s kinda....

sturdy oar
#

oh

#

i didn't realize it lol

gusty swallow
#

Yeahhh lol

sturdy oar
#

I honestly use java 8 as well

#

mainly because it's not worth dropping support to a lot of people

#

since i would not gain a huge benefit from J11

gusty swallow
#

Yup it’s a pity though, Java 11 really has a lot of nice stuff compared to Java 8

#

Wish more people adopted it

sturdy oar
#

yeah i know, there's a lot of cool methods like Files.writeString

#

that we don't have in j8

regal pendant
#

can sb help me with voxilsniper

gusty swallow
#

The collection factory methods and var makes writing code so much more pleasant

sturdy oar
#

im not aware of the collection factory

gusty swallow
#

Basically you can do ā€œSet.of(...)ā€ to create sets and other collections

#

Cool stuff

white kite
#

Hello yesterday I post this topic but noboby anwer to this.

How I can get the sound about blocks this the Block.
I am using this code on 1.13.2 but it's not working in 1.15.2.

public Sound getSound(Block block) {
        try {
            WorldServer nmsWorld = ((CraftWorld) block.getWorld()).getHandle();
            net.minecraft.server.v1_13_R2.Block nmsBlock = nmsWorld.getType(new BlockPosition(block.getX(), block.getY(), block.getZ())).getBlock();
            SoundEffectType soundEffectType = nmsBlock.getStepSound();

            Field breakSound = SoundEffectType.class.getDeclaredField("q");
            breakSound.setAccessible(true);
            SoundEffect nmsSound = (SoundEffect) breakSound.get(soundEffectType);

            Field keyField = SoundEffect.class.getDeclaredField("a");
            keyField.setAccessible(true);
            MinecraftKey nmsString = (MinecraftKey) keyField.get(nmsSound);

            return Sound.valueOf(nmsString.getKey().replace(".", "_").toUpperCase());
        } catch (IllegalAccessException | NoSuchFieldException ex) {
            ex.printStackTrace();
        }
        return null;
    }```
sturdy oar
#

oh yeah also i think there were new Collectors in java 11

#

like unmodifiableList

gusty swallow
#

Oh yeah I think so too

sturdy oar
#

@white kite you know that NMS have a 99% chance of breaking from version to version right

#

you should just go check the decompiled jar and see if the values are still named like that

subtle blade
#

Right. Obfuscation changes, ESPECIALLY in the SoundEffectType class because sounds are added every version

gusty swallow
#

Curious but isn’t that supported in the API already?

subtle blade
#

afaik, no

#

Would be strange to implement. Most people would want it on a Material but that enum is Bukkit exclusive

#

Awkward to have it on a Block

gusty swallow
#

True that

subtle blade
#

Could pass Sound constants to the Material enum but that's a tad gross as well

sturdy oar
#

Choco when will chunks implement PersistentDataHolder

subtle blade
#

Chunks don't have NBT so it's a bit cumbersome to implement as well

#

Was suggested in the past. In fact, I want to say there's a PR for it

sturdy oar
#

I think Paper was doing something with them

#

but still nothing there as well

subtle blade
#

Ah, there isn't. Maybe it was a ticket

#

I remember seeing a discussion on it

white kite
#

@subtle blade How I can do this.
I don't understand NSM very well.

sturdy oar
#

then don't use it

#

Why are you trying to use reflection if you don't know how it works

#

Choco

white kite
#

I use the nms to redefine method but for the Field i'm don't unterstand for the moment

sturdy oar
#

nvm was about to ask you a question about IntelliJ but i remembered you don't use it

#

🤣

subtle blade
sturdy oar
#

was just wondering if someone here has a way to make IntelliJ generate singleton classes

undone narwhal
#

Wym?

sturdy oar
#

you know intelliJ generate right

undone narwhal
#

Like static Instance instance ?

#

Yep

sturdy oar
#

generated automatically

undone narwhal
#

Getter Setters Constructors etc

#

I'm probably sure you can create your own template, going to check that

#

It's interesting

sturdy oar
#

yeah i know IntelliJ has templates

#

but they're kinda hard to learn and create

#

i'll go search for a plugin maybe

undone narwhal
#

omg

sturdy oar
#

hope it works

#

i'll try it out

undone narwhal
#

Tell me how it does the job

sturdy oar
#

it does use a kinda old syntax, but it's fine

#

100% reccomended

gusty swallow
#

Blasphemy we all know NetBeans is the one true IDE

undone narwhal
#

I found a small tuto to use template

#

Seems cool:

private static $CLASS_NAME$ instance;
public static $CLASS_NAME$ getInstance() {
    return instance == null ? instance = new $CLASS_NAME$() : instance;
}
sturdy oar
#

you're missing a ()

#

i think

#

? (instance = new $CLASS_NAME$()) : instance;

undone narwhal
#

Yep exactly

#

But the Live Template works well too

#

I just have to type single then push TAB key and boom

#

You can also put javadocs šŸ™‚

sturdy oar
#

is getting currentMillis at start and ending of operation the best way to measure how long it took?

undone narwhal
#

Think so, that's the only method that comes in my mind

#

Let's create an idea plugin for spigot dev ^^

sturdy oar
#

?

#

it already exists smh

undone narwhal
#

Really?

sturdy oar
#

MinecraftDevelopment by DemonWav

undone narwhal
#

Oh damn Minecraft Dev

#

yep

#

Thx !

tawdry venture
#

is player#sendblockchange good for showing blocks only to certain players?

sturdy oar
#

i guess so

wind dock
#

hey, so if any of you know skeppy, I kind of want to get a queue/players remaining plugin

queue plugin: kinda self explanatory
players remaining: plugin that counts how many players havent died, and you can revive them(adding them back to the counter and the game) by executing /revive

anyone know these plugins? prob self coded but anyone know anything similar?

sturdy oar
#

they have them or their patron i think

#

wait nvm

#

i confused youtuber

wind dock
#

ye

sturdy oar
#

no idea where you could find one of that kind

wind dock
#

oh

sturdy oar
#

and in my opinion they're definetively custom made

wind dock
#

oh

tawdry venture
#

hey! I want to cancel the blockplace event, and send a blockupdate, like if the blockplace only happened on client side, but it doesn't work. any idea?

@EventHandler
    public void onBlockPlace(BlockPlaceEvent e) {
        if (e.getBlock().getType() == Material.WOOL) {
            e.setCancelled(true);
            plugin.getServer().getScheduler().runTask(plugin, () -> {
                //deprecated I know, it's for 1.8
                e.getPlayer().sendBlockChange(e.getBlock().getLocation(), Material.WOOL, (byte) 0);
            });
        }
    }
#

me: * asks a question *
entire spigot community: * hides *

sturdy oar
#

sorry i don't speak english

#

🤣

#

have you tried restarting your router?

subtle blade
#

is player#sendblockchange good for showing blocks only to certain players?
Considering that's literally its purpose, yeah

#

You have to send that change 1 tick later

tawdry venture
#

isn't runtask runs on the next tick?

subtle blade
#

iirc it runs on the current tick

tawdry venture
#

. . .

subtle blade
#

runTaskLater() with a 1 tick delay

tawdry venture
#

thanks a lot

subtle blade
#

The way Bukkit handles block break event is that it will tell the client that it was broken before it actually was, process logic it needs to, then re-send the client another packet after the event has completed

#

If it's cancelled, it sends another packet

#

Red being the packet sending, blue being the event processing (where your listener is going to be called)

#

In your case, you're sending a change packet right between where the server sends its packets so it's effectively snuffed out by the server's packet which tells it the result of the event

tawdry venture
#

oh I see

cerulean musk
#

guys i didnt use multiverse-core

#

but how to close this "world" prefix ?

tawdry venture
#

there is a prefixchat value in config

#

set it to false

cerulean musk
#

where config @tawdry venture ?

frigid ember
#

What other plugins you using?

cerulean musk
#

i use bungeecord server btw

bronze marten
#

i use arch btw

frigid ember
#

That shouldn't matter, what other plugins do you have @cerulean musk ?

tawdry venture
cerulean musk
#

deluxe hub - luckperms -luckpermschat-

#

tabplugin-viaversion

frigid ember
#

Most likely that chat.

cerulean musk
#

sunstorm dude i said i didnt use multiverse

tawdry venture
#

i tought you mean 'I didn't use mv before, therefore I don't know where to do'

cerulean musk
#

oh k ty again

frigid ember
#

luckpermschat or DeluxeHub

#

would probably handle why the [world] is before your name.

cerulean musk
#

thanks šŸ™‚ and tab does not show commands

#

why ?

#

for example /tp mus(tab) tab was filling automatically

subtle blade
#

Ensure that your spigot.yml's commands.tab-complete value is not set to -1

#

It should be set to 0

cerulean musk
#

thanks:)

#

its already 0 ?

#

what is the problem :/

subtle blade
#

In that case, it may be the fault of a plugin you have installed

#

Perhaps they force a permission for tab completion. PES_SadShrug Depends on what you've installed

bronze marten
#

plugin could have implemented tab not correctly ĀÆ_(惄)_/ĀÆ

subtle blade
#

Well considering /tp is vanilla

bronze marten
#

but does any plugin override it maybe?

#

deluxehub?

cerulean musk
#

my setting is =

#

commands:
tab-complete: 0

bronze marten
#

thats fine

cerulean musk
#

its bungeecord problem ?

#

bcs i use 2 day ago multiverse server

#

tab succesfull working

subtle blade
#

it may be the fault of a plugin you have installed

cerulean musk
#

i have a multiverse server too and i use same plugins

subtle blade
#

This is assuming you have permission for these commands as well, correct? If not, tab completion won't work

cerulean musk
#

i have op

frigid ember
#

I have Dynmap-3.0-beta-10-spigot

#

looks like theres a newer version. going to try that

#

instantly fixed

cerulean musk
#

i found this

#

but already i have latest version

subtle blade
#

That's also from 2013 lol

sturdy oar
#

lol

tiny dagger
#

rip 1.8.8 users ?

sturdy oar
#

yeah

#

nobody cares about them

subtle blade
#

That was even pre 1.8

#

That's like, 1.6

#

Yea, it was 1.6

#

That was a good guess, damn. lol

fickle surge
#

hi

#

i need the command for giving players a perm

#

with luckyperms

#

1.15.2

fickle surge
#

ok but do u know the command?

#

(i am lazy lmfao)

subtle blade
#

Yeah, I'm not going to run your server for you

#

If you can't be bothered to read documentation on the plugins you install, you shouldn't be running a server

tiny pebble
#
warps:
  a:
  b:
  c:

Is there a way to check the length of the subsections in warps? In this example the length would be three, as there are three sub sections. (I'm checking this in my config.yml)

frigid ember
#

getConfigurationSection("warps").getKeys(false).size() unless its .length

tiny pebble
#

Thank you!!!

subtle blade
#

It's a Set<String>. size() is correct

tiny pebble
#

Another quite possibly dumb question, how would I get the integer of each ConfigurationSection? In the example above, a = 1, b = 2, c = 3?

subtle blade
#

Well if you have all the keys...

#

Iterate the keys, "warps." + currentKey

#

Unless you mean the order, in which case order is not maintained for config files

torn robin
#

keys don’t have integers

stoic mist
#

hello

#

can i ask help here if i am using a paper server?

torn robin
#

Should probably ask in the Paper discord

#

but go ahead

subtle blade
#

No, don't go ahead. lol

#

Ask in the appropriate place

stoic mist
#

alright, thank you!

torn robin
#

šŸ˜”

stoic mist
#

🄺

subtle blade
#

They make significant changes to the server and add new API

#

We can't support forks

tidal mica
#

Choco, do you know a method to listen and block packets on BungeeCoord?

subtle blade
#

I don't use bungee often enough to know off the top of my head

#

Someone else may

tiny pebble
#

Sorry I've just gotten a tad confused, what does .getKeys return? Were those the sub-categories of the category specified?

I'm trying to basically do a .getChildren() sort of thing though that doesn't exist. Then I want to turn that into an array

bright forge
#

Will there be any chance on making a 1.8.8 version of spigot LTS? Having to use forks from random sources is... well... not good

#

And it just needs some little stuff patched, it would be nice to have a good source with a polished version of it

#

@tiny pebble Are u talking about ConfigurationSection?

tiny pebble
#

Yeah

naive goblet
#

false goes deeper

#

Nvm

bright forge
#

yeah

#

i mean

naive goblet
#

True goes deeper

bright forge
#

no

naive goblet
#

true would result in getting keys from any child sections iirc

bright forge
#

true:

test:
test:
test2:

false:

test:
test:
test2:

Marked what it will return

ripe ember
#

Hey, please can someone help me with nametags?
It's not working.

naive goblet
#

What isn’t working

tiny pebble
#

Oh thanks Linsa that's what I was trying to type out.

So if I do something like config.getConfigurationSection("warps").getKeys(false) it would return only the children of warps, not the children of the children, correct?

naive goblet
#

It would only return keys of that section?

#

It wouldn’t return keys of a key that holds a section

tiny pebble
#

Alright yeah that's what I meant sorry haha

#

Cause I'm trying to get those keys and then turn it into an array so I can use keys[i], it's getting a bit wonky

naive goblet
#

true is very rarely used

tiny pebble
#

I figured

naive goblet
#

šŸ‘

tiny pebble
#
Object[] keys = config.getConfigurationSection("warps").getKeys(false).toArray();

Seemed to have returned NullPointerException. Is there something I missed?

naive goblet
#

invoking methods on null will throw npe

tiny dagger
#

?support

worldly heathBOT
tiny pebble
#

I'm new to Java so bare with me a stupid question...

How would I make it not invoke on null then? My IDE suggested the wrapping in Objects.requireNonNull(), which I have done yet still results in NPE.

naive goblet
#

Send more code

upper hearth
#

either config is null or there's not a section called warps so getConfigurationSection is returning null

tiny pebble
#

There is a section called warps though there are no keys currently, which I didn't realize. Could that have been the problem?

empty stratus
#

hello, I'm playing on a minecraft server that works with spigot. i like making farms and playing with some minecreft behaviors. But I am a little lost here, and I think you can help me, I am looking for some page, documentation, that says what behaviors the spigot does that is different from the vanilla. do you have something similar to that? I look for this because it will be very frustrating to make a farm and, for a very small detail, it does not work as it should.

upper hearth
#

Maybe? But I think it just returns an empty Set if there's no keys

#

But I would definitely put keys there šŸ¤”

tiny pebble
#

That's what I figured...

    public static Inventory warps = Bukkit.createInventory(null, 54, "Warp List");
    static {
        Object[] keys = config.getConfigurationSection("warps").getKeys(false).toArray();

        for (int i = 0; i < keys.length; i++) {
            Object currentKey = keys[i];
            String a = Objects.requireNonNull(config.get("warp." + currentKey + ".display")).toString();
            ItemStack warp = new ItemStack(Material.valueOf(a));
            ItemMeta warpMeta = warp.getItemMeta();
            String color = Objects.requireNonNull(config.get("warp." + currentKey + ".color")).toString();
            String name = currentKey.toString();
            assert warpMeta != null;
            warpMeta.setDisplayName("§" + color + name);
            warp.setItemMeta(warpMeta);

            warps.setItem(i, warp);
        }
    }

@naive goblet Here's the mass of my warps inventory.

@upper hearth The keys get made when a player creates a warp, so I'd assume I'd have to find a way around keys not being there

#

I'll try shoving a key under warps to see what happens

#

at least it gave a different error haha

slender kernel
#

mood

tiny pebble
#

could probably use that as a work around and just make it so it doesn't display the placeholder ^^

frigid ember
#
        Location start1 = (Location) config.get("launchpads." + s + ".start");

launchpads.put(start1.getChunk(), ...);

I'm doing this when my plugin enables but it appears the chunk is null, any way to fix this?

slender kernel
#

is the location not null?

rapid lance
#

hello spigot discord, i was wondering how people went around filling unused space in an inventory with the glass panes

subtle blade
#

I'll answer that with two questions

#

How would you access every item in an inventory?
How can you check if a slot is empty in an inventory?

rapid lance
#

oh shit thanks

#

smh my head its real dumb hours

dreamy fractal
#

Guys

#

Could not load 'plugins\ProEvent.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: java.lang.IllegalStateException: Cannot get plugin for class me.itzdoctormine.events.Main from a static initializer
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:133) ~[spigot.jar:git-Spigot-dcd1643-e60fc34]
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:327) ~[spigot.jar:git-Spigot-dcd1643-e60fc34]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:248) [spigot.jar:git-Spigot-dcd1643-e60fc34]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.loadPlugins(CraftServer.java:305) [spigot.jar:git-Spigot-dcd1643-e60fc34]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.reload(CraftServer.java:750) [spigot.jar:git-Spigot-dcd1643-e60fc34]
at org.bukkit.Bukkit.reload(Bukkit.java:525) [spigot.jar:git-Spigot-dcd1643-e60fc34]
at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:27) [spigot.jar:git-Spigot-dcd1643-e60fc34]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [spigot.jar:git-Spigot-dcd1643-e60fc34]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:648) [spigot.jar:git-Spigot-dcd1643-e60fc34]
at net.minecraft.server.v1_12_R1.PlayerConnection.handleCommand(PlayerConnection.java:1399) [spigot.jar:git-Spigot-dcd1643-e60fc34]
at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1234) [spigot.jar:git-Spigot-dcd1643-e60fc34]
at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot.jar:git-Spigot-dcd1643-e60fc34]

#

what is this error

rapid lance
#

code block?

tiny pebble
#

My main problem has been fixed, though when in a custom inventory, I have event.setCancelled(true) on all items yet I can still double-click them and they still all stack up. How can I make that not happen lmao

rapid lance
#

like this

#

tanku u need a listener class that holds the public void onMenuClick(InventoryClickEvent) { Player player = (player) event.getWhoClicked;

tiny pebble
#

I do have one

#

I have it so when you click it just returns the item to the inventory, hence the event.setCancelled(true). That works, but if I double-click and I can stack all of the items still.

rapid lance
#

huh

#

never ran into that one before

tiny pebble
#

ik lol it doesnt make sense

lilac cradle
tawdry venture
#

doest the NBTTagCompound#get*** returns null if the specified key doesn't exists?

lilac cradle
#

huh

tiny dagger
#

try and see

subtle blade
#

Or check NMS source

#

BuildTools/work folder

tiny dagger
#

trying would take less time imo

subtle blade
#

It really wouldn't

lilac cradle
#

who areyou talkin to

tiny dagger
#

sunstorm

lilac cradle
#

ok

#

btw why does this command not work

#

/mv import MiniGame Lobby NORMAL

#

minigame lobby is the world name

silver pewter
#

Hello, how can I make static voids inside of a interface thanks

rapid lance
#

nizzy its the space in the name

lilac cradle
#

do i put underscore

rapid lance
#

yee

tawdry venture
lilac cradle
#

i done that but when i send it it says thats not the name

#

but when i dont put space it says invalid argument

tawdry venture
#

I'm gonna go with assuming it does return null

tiny dagger
#

lol not there sun

lilac cradle
#

it still does not work

tiny dagger
#

wait nvm

#

its fine

#

just click one of those

lilac cradle
#

ok can someone help me test this server domain

silver pewter
#

I can

lilac cradle
#

test it for me

silver pewter
#

don't work

lilac cradle
#

or this ip

tiny dagger
#

okay i looked for you @tawdry venture and it seems it uses a map

lilac cradle
#

192.168.0.27

#

try that

silver pewter
#

that won't work dm il help you

lilac cradle
#

ok

sturdy oar
#

@lilac cradle that is private lmao

tidal mica
#

Hi, how can i display a custom map on BungeeCord?

tawdry venture
#

@tiny dagger maps return null, right?

tiny dagger
#

yes

#

you're good to go

worthy lava
#

Heya guys, how do i spawn a wither skull, that does not move but does look in a certain direction?

tiny dagger
#

oh that would be fun

#

but you can't

#

the client is gonna go crazy about it

#

you'll see it flicker in the direction each second

worthy lava
#

Huh?

#

But with the summon command you can freeze it

tiny dagger
#

oh

#

really?

worthy lava
#

Well i mean

#

It fires normally

tiny dagger
#

i guess you can setnoai to it then

worthy lava
#

Then slows down in it's momentum

#

Do you have to refresh an armor stand to make changes to it's direction or something @tiny dagger ?

tiny dagger
#

well yeah it's his tick

#

but not yourself

#

it just have to be registered into the world

worthy lava
#

Probably setheadpose

cerulean musk
#

guys i have bungeecord server "/hub" not working /server hub working

#

how can i fix it

sturdy oar
#

because /hub is not a bungeecord command

cerulean musk
#

how can i do this ?

sturdy oar
#

I think simplest way is to use command aliases

ripe ledge
#

How I can disable player collisions?

torn robin
#

scoreboard teams

sturdy oar
#

disabling collisions is a big œf because it's not officially supported

umbral shoal
#

uh does anyone know a tablist and scoreboard plugin that actually works for paper? i installed CTSNC but all it did is give me 100 error messages per second regarding some issue with luckperms api

sturdy oar
#

TAB?

#

although i don't know about scoreboard

umbral shoal
#

yeah i've had a tablist plugin that was doing fine before but as far as i got into my server i realized i really needed a scoreboard too lol

cerulean musk
#

guys i try to upload luckperms on bungeecord/plugins

#

but luckperms not create folders why

sturdy oar
#

are you using LuckPerms bungee version

waxen thorn
#

^

cerulean musk
#

What is bungee version

#

İ just download luckperms spigot

wanton delta
#

is there a way to change the belowName display slot view distance?

tiny dagger
#

no

#

client side

#

unless ofc

#

you use packets

#

to remove, readd when in range

wanton delta
#

thought so

#

it was more of a quality of life thing, cant be bothered to do that

tiny dagger
#

lazy

#

tho nevermind that can't be extended only minimized

buoyant path
tiny dagger
#

welcome to outdated versions where the only way was to set a modified raw byte to modify it šŸ‘€

buoyant path
#

rip