#help-archived

1 messages ยท Page 6 of 1

silver pewter
#

It's based around OOP and Setter and Getters

#

getting information from the database and setting information to put into the database using OOP methods aswell

dense pike
#

Trying to donate to SpigotMC, but every time I keep clicking the donate tab it just redirects back to home?

subtle blade
#

OOP is more than just creating getters and setters. It's avoiding static abuse, proper object-oriented code design

#

I have a thread on this if you'd like

silver pewter
#

thanks

subtle blade
#

The donate button in the header links to a specific widget, Jakes. Look on the right hand side

dense pike
#

Ah I see it now! I feel like an idiot.

subtle blade
#

It's fine. Easy thing to miss tbh

#

Should really highlight the widget

dense pike
#

What should I put in the first donation

#

Which service is in the most need?

subtle blade
#

The minimum is $10 but you're welcome to donate more ^-^ As for the message, I'm fairly md distributes it evenly if you don't put anything

#

Can just be an appreciation notice if you'd like

dense pike
#

Well, I've used Spigot for nearly eight years, and ive always been meaning to donate to show my appreciation but i was always short of money. So I'm just taking this chance to say thanks really

subtle blade
#

Happy to hear it ๐Ÿ˜„

clever jasper
#

This is the same for all mobs & players

dense pike
#

Update the spigot software? Could just be an bug?

clever jasper
#

okay ill test it

dense pike
#

No worries

clever jasper
#

ill test it mate

#

thank you @dense pike

subtle blade
#

A number of factors could be at play there. Plugins, item attributes, what looks like low TPS

silver pewter
#

Well, spigot Terms of Service don't say you will look at our code?

subtle blade
#

When you submit any User Content to us, you grant SpigotMC, its partners, affiliates, users, representatives and assigns a non-exclusive, unlimited, fully-paid, royalty-free, irrevocable, world-wide, universal, transferable, assignable license to display, distribute, store, broadcast, transmit, reproduce, modify, prepare derivative works, or use and reuse all or part of your User Content for the purposes of providing any services associated with the Platform. Additionally, you grant to SpigotMC a worldwide, perpetual, irrevocable, royalty-free license to use and incorporate into the Platform any suggestion, enhancement request, recommendation, correction or other feedback provided by you relating to the operation of our Platform.

tiny dagger
#

where did i saw this before

#

wow?

subtle blade
#

Spigot's terms of use

tiny dagger
#

wow

silver pewter
#

@subtle blade can you dm please?

subtle blade
#

They're open but I may not respond right away. Playing some games with friends

clever jasper
#

@dense pike still the same, using latest build now

dense pike
#

Probably an TPS issue then.

clever jasper
#

tps is at 20

dense pike
#

can you do a ./timings report

clever jasper
#

yeah what am i looking for?

dense pike
#

Anything that might tell you why there's a delay

clever jasper
#

isnt really a delay tho, its just that my weapons feel weak, like yeah video look laggy but thats gyazo.

#

ill get a new video for ya

#

You can see the hearts not going down

random lark
#

Best Anti Bot plugin?

sinful coyote
#

Hey everyone

#

does anyone here already dealed with making a custom belowName objective, per-player ?

#

Just like that

#

I posted on SpigotMC if anyone is willing to help

#

F-E on the screenshot, the * is the player Faction rank and Zeubi is the Faction Tag

velvet halo
#

has been compiled by a more recent version of the Java Runtime (class file version 53.0), this version of the Java Runtime only recognizes class file versions up to 52.0 Pretty sure I compiled it to be version 11...

subtle blade
#

53 is Java 9 iirc

#

But yes, compiled against more recent than what is on the server

velvet halo
#

Yeah I fixed it

frigid ember
#

Can someone explain why right clicking white bar on top of window freezes the game

velvet halo
#

@subtle blade That error happens when I include hibernate as a dependency in the jar

#

I am having an issue with Hibernate because it seems to have elements from Java 12

sick citrus
#

then either update to java 12 or don't use hibernate ? :v)

#

it seems to be java 8 starting with hibernate version 5.2

#

@velvet halo how are you using hibernate ?

velvet halo
#

It works now dw.

soft iron
#

Alright, anyone here proficient in the Quests plugin?

sick citrus
#

Please tell people what you did so they can replicate if they have the same problem

velvet halo
#
        <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>9</source>
                    <target>9</target>
                </configuration>
            </plugin>
```Changed 9 to 8
sick citrus
#

Obviously ๐Ÿ™‚

velvet halo
#

lol

keen compass
#

I would imagine it would be in whatever order they are in, in the config

grizzled heron
#

so i updated a server from 1.13.2 to 1.15.2 last night now i want to make sure i update the plugins we use as well do i just copy over the plugin's jar files and leave the configuration data there so we dont lose any claims , territory etc? Just want to make sure no one loses anything thanks everyone!

fleet crane
#

? Just copy everything, you can use the same folder even (keep a backup)

frigid ember
cloud sparrow
sharp hollow
#

look through the src?

cloud sparrow
#

Are you trying to make a custom bungee list?

#

You'll need to make your own plugin I remember in the past to override it.

#

like alphabetically?

#

Ah.

quick arch
#
for (final ServerInfo server : ProxyServer.getInstance().getServers().values())```
cloud sparrow
#

I could make a plugin tomorrow on it if u want.

quick arch
#

that's inside of /glist

#

and is wonky

cloud sparrow
#

Ah lol

#

I'll still make a plugin anyways tomorrow

sharp hollow
#
for ( ServerInfo server : ProxyServer.getInstance().getServers().values() )
        {
            if ( !server.canAccess( sender ) )
            {
                continue;
            }

            List<String> players = new ArrayList<>();
            for ( ProxiedPlayer player : server.getPlayers() )
            {
                players.add( player.getDisplayName() );
            }
            Collections.sort( players, String.CASE_INSENSITIVE_ORDER );

            sender.sendMessage( ProxyServer.getInstance().getTranslation( "command_list", server.getName(), server.getPlayers().size(), Util.format( players, ChatColor.RESET + ", " ) ) );
        }
subtle blade
#

Looks like md code

sharp hollow
#

๐Ÿ˜›

quick arch
#

Still slightly triggered by those spaces e.e

subtle blade
#

You can tell pretty much instantly lol

unreal anchor
#

Triggered by spaces? You'd be a big fan of the plugin code I was shown recently that has zero indentation

subtle blade
#

no

final verge
#

lmaooooooo

unreal anchor
#

Entire plugin, zero indentation.

subtle blade
#

Don't say that to me

quick arch
#

lul

frigid ember
quick arch
#

I wouldn't be triggered by that at all

unreal anchor
#

At least a thousand lines of code.

public class MyPlugin extends JavaPlugin {
@Override
public void onEnable() {
this.getLogger().info("My plugin enabled");
}
}
#

Like this, but you'd have situations where there were just piles of } lines in a row closing things up

quick arch
#

Why not just...

"String".toString()
.toString()
.toString()
...
...
unreal anchor
#

Calm down please, let's all relax.

quick arch
#

no, that's the best clearly

sharp hollow
#

You know @unreal anchor
I've actually seen plugins like that uploaded to spigot

unreal anchor
#

Choco I'm requesting a ban of KingAlterIV for threatening behavior! ๐Ÿ˜›

#

Optic, the plugin I'm talking about is on spigot, yep!

sharp hollow
#

once or twice it was just the plugin.yml
a few different times it was 0 byte jar

quick arch
#

I request a ban on mbaxter for telling me some new stuff ๐Ÿ‘€

frigid ember
sharp hollow
#

I request a ban on these two because why not

quick arch
#

I can live with that

subtle blade
#

Amazon IPs are blacklisted for the time being

manic raptor
#

Hey guys

@EventHandler
public void onHeadPlace(BlockPlaceEvent event) {
    if (event.getBlockPlaced().getType().equals(Material.PLAYER_HEAD)) {
        BlockFace blockFace = ((Directional) event.getBlock().getBlockData()).getFacing();
        event.getPlayer().sendMessage(blockFace.toString());
    }
}

I'm trying to get the Rotation of a Player head as a BlockFace when placed down but Skull#getRotation() is deprecated, says to use BlockData. Not sure how to go about this?
Have looked into using Directional, but I don't think I'm casting to the right place.

The above code produces:
java.lang.ClassCastException: org.bukkit.craftbukkit.v1_15_R1.block.CraftBlock cannot be cast to org.bukkit.block.data.Directional

subtle blade
#

The exception you sent above won't be thrown by the code you sent. It's impossible. Though on the other hand, Skulls are not Directional. They're Rotatable I think

#

Directional uses the cardinal directions, Rotatable uses other additional block faces

#

So the above code you sent will work just fine, only you need to cast to Rotatable instead of Directional

manic raptor
#

Thanks for the reply!
My mistake, I copied the wrong exception from all the different things I tried.
That code threw this exception:
java.lang.ClassCastException: org.bukkit.craftbukkit.v1_15_R1.block.impl.CraftSkullPlayer cannot be cast to org.bukkit.block.data.Directional

Thanks again. ๐Ÿ™‚

subtle blade
#

Yea that's more like it

#

Rotatable cast should fix it

manic raptor
#

Woohoo! It works, thankyou! ๐Ÿ˜„

subtle blade
gleaming cradle
#

Is there a list of people recommended for server work hiring?

cloud sparrow
#

nope

#

?services

#

!services

austere ridge
#

Hey Guys, not sure If the Spigot Discord can help, but my minecraft launcher says Im not connected to the internet when I am and I cant login. ANy suggestions?

cloud sparrow
#

You must make a thread on the forums @gleaming cradle.

gleaming cradle
#

ten four

cloud sparrow
#

@austere ridge #general.

austere ridge
#

kk

wanton delta
#

I have never ever used ProtocolLib before, and I currently need to update a lot of code that uses it, this is one of the many blockades i'm running into

cloud sparrow
#

Don't post here assuming quicker responses just wait for someone to see the thread.

wanton delta
#

It's just another way for me to reach out. People that may be willing to help that wont ever see my thread on the forums might see it here.

#

@sinful coyote i know i'm late to your conversation, but I have a resourced called "Martophs Medals" that's open source you can check out

#

but that was 1.12, things mayve changed since then

storm vessel
#

Does anyone know why this won't work?

wanton delta
#

the A record and SRV record are the same name

storm vessel
#

Now it says "Invalid data"

wanton delta
#

screeenshot again?

storm vessel
wanton delta
#

what happens when you set priority and weight to 0

#

and what DNS service is this?

frigid ember
#

that's google, and priority and weight = 0 == most preferred for that name.

#

priority = first preference, then weight = preference at that priority

#

use for HA

wanton delta
#

yea i dont see then need to have weight/priority when directing to a mc server

frigid ember
#

@storm vessel you cannot use a numeric IP address in an SRV record

storm vessel
#

It still says "invalid data"

frigid ember
#

By spec, they must refer to a name.

storm vessel
#

Ok

wanton delta
#

are you sure?

frigid ember
#

Yes.

wanton delta
#

with cloudflare i can

frigid ember
#

cloudflare is special

wanton delta
#

LOL

frigid ember
#

they also do cname flattening

#

which is not spec.

wanton delta
#

not really sure what that is

frigid ember
#

can set a cname for root

#

wont work anywhere else

#

guaranteed

#

(unless they do cname flattening)

wanton delta
#

how do you mean

#

"wont work anywhere else" ?

frigid ember
#

for a domain, say example.com

@ == your root record, yes?

You cannot set a CNAME there at most providers unless they do CNAME flattening.

#

It normally has to be an A record.

wanton delta
#

oh

#

so what do you mean by wont work anywhere else

frigid ember
#

I mean, that's probably inaccurate. CF is the only I know that provides CNAME flattening though.

#

It may work elsewhere, but on Google for example it wouldn't work.

#

As they don't flatten CNAME records.

wanton delta
#

OH

#

i understand

#

yea

#

is that good or bad thing

#

cname flattening

#

the thing that annoys me most about cloudflare

#

is using SSH

#

i have to create a different A record that isn't proxied in order to access ssh

frigid ember
#

it's not bad, it just makes it so it acts as an A record

wanton delta
#

which idk if im doing something wrong

frigid ember
#

nope that's pretty much intentional by CF

#

What I do is just use an SSH config file instead of DNS for ssh access

#

i dont expose anything that can be used to access the backend server in DNS

wanton delta
#

wdym ssh config file

#

99% of the time my ssh access is just for development purposes

frigid ember
#

~/.ssh/config

inside:

Host server_nickname
  HostName <numeric IP here>
#

then you can just type ssh server_nickname

wanton delta
#

oh that makes sense

#

hey do you by chance know how protocollib works lol

frigid ember
#

nah i dont, sorry

wanton delta
#

thats ok

storm vessel
#

It is still not working. Could it be that I am trying to host the server on my own private Comcast internet?

dusky herald
#

So, if something suddenly doesnt work, should I assume that the JVM is GCing it?

storm vessel
#

Possibly because of dynamic IP?

dusky herald
#

Like, something that should be working; but I afk for so long its like it goes away?

wanton delta
#

@dusky herald not 100% sure due to the lack of information, could be code problem, could be laeking, could be GC

#

and @storm vessel i'm not sure, since DNS records really have nothing to do with the ip address

#

you have elyriamc domain correct, i would assume

storm vessel
#

Yes

wanton delta
#

so what is not working

#

google wont let you create SRV record?

dusky herald
#

I guess it appears to be ...

wanton delta
#

@storm vessel make sure that the A record is DIFFERENT from the SRV record name

dusky herald
#

player.isOnline() is throwing null

#

hmm

wanton delta
#

because last time the A record was names "play" and the srv record was also named play

dusky herald
#

interesting

#

I think I know why its happening

wanton delta
#

i hope you get that fixed, GC and leakages are the worst!

dusky herald
#

yep, found it

#

nah

#

its not a leak or GC

#

I'm just being stupid.

wanton delta
#

lol

storm vessel
#

I am now seeing that comcast found "suspicious activity" and closed all my ports

#

That may explain it

frigid ember
#

Uh, yea. Comcast is dumb.

#

(Am comcast customer)

wanton delta
#

i have something called Mediacom... which im 99% sure is comcast

#

idk i dont have issues

frigid ember
#

I called them and told them to stop closing my ports because I have a hardware firewall and they said ok and never did it again.

minor laurel
#

FYI

frigid ember
#

So call em, I guess.

#

@storm vessel what domain are you doing this for?

minor laurel
#

Seems like it's due to their most recent software but recently had to call them.

#

Had to remove around 200 ports for my dedis

storm vessel
#

"Call Comcast" ... oh. my. god

wanton delta
#

LMAO

storm vessel
#

@frigid ember Wdym?

wanton delta
#

Shade_, is Google Domains the issue or Comcast the issue? because if youre having trouble CREATING the record, thats google

dusky herald
#

That's weird, I've never personally had a problem with comcast, but it seems that everyone has a different experience with em

wanton delta
#

if youre having trouble connecting, thats comcast

frigid ember
#

@storm vessel as in what's the domain name you're making the srv on? I was going to dig it and see if the SRV applied or not.
that's a quick way to tell which side the issue is on

#

but if you think it's comcast, then /shrug

storm vessel
#

I got it

wanton delta
#

elyriamc i think

frigid ember
#

yeah its not set yet

#
; <<>> DiG 9.10.6 <<>> _minecraft._tcp.play.elyriamc.com SRV
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 1687
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;_minecraft._tcp.play.elyriamc.com. IN    SRV

;; AUTHORITY SECTION:
elyriamc.com.        187    IN    SOA    ns-cloud-a1.googledomains.com. cloud-dns-hostmaster.google.com. 11 21600 3600 259200 300

;; Query time: 32 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Sun Apr 05 21:06:08 PDT 2020
;; MSG SIZE  rcvd: 152
storm vessel
#

I had tp click the plus next to the ip section

wanton delta
#

dont make the srv and A the same name

storm vessel
#

then I had to enter my IP in the first box and my parameters in the second

wanton delta
#

that is going to cause issues i think

frigid ember
#

shouldnt be an issue

wanton delta
#

oh

#

ok

#

maybe CF is different in that way too lol

#

i remember trying to do the same thing and not working out'

#

but yet again i can just make the SRV with the numeric ip so

frigid ember
#

yay cloudflare!

wanton delta
#

im starting to get nervous that my spigot thread is just too complicate

#

and that no one is gonna know how to help

storm vessel
#

So correct me if I'm wrong, but I can route a different sub domain to a web server, right?

dusky herald
#

ยฏ_(ใƒ„)_/ยฏ

minor laurel
#

You can't expect a response within a hour or two and can wait up to a day dependent on the time @wanton delta.

#

People have lives and aren't paid to look at the threads.

wanton delta
#

@minor laurel its not about the time lol

frigid ember
#

sure you can Shade.

#

also just digged your SRV, it's applied.

dusky herald
#

@storm vessel you can route subdomains to individual links.

frigid ember
#

should be ok from the DNS end

wanton delta
#

its just about ive searched almost everwhere and usually if its not anywhere else it doesnt do good on the forums

dusky herald
#

or ip addresses, etc

storm vessel
#

Ok cool, thanks for all the help

wanton delta
#

i wish documentation was less vague ๐Ÿ˜ก

dusky herald
#

whats the problem then

#

Lol

#

I'm definitely no pro, but you can at least humor us. Maybe someone does know a solution to your problem.

wanton delta
#

in protocol lib theres this ProtocolManager#createPacketConstructor method and i have no clue how to use it

#

docs are super vague

#

not seen any other threads about it

#

maybe theres no other threads because its easy and people dont need help with this lol

devout sierra
#

Hey there, I'm looking for a plugin that allows me to attach commands to it

dusky herald
#

Did you try this?

#

/**
* Construct a packet using the special builtin Minecraft constructors.
* @param type - the packet type.
* @param arguments - arguments that will be passed to the constructor.
* @return The packet constructor.
*/
public PacketConstructor createPacketConstructor(PacketType type, Object... arguments);

wanton delta
#

yes

#

that is very vague

devout sierra
#

is there any plugin you guys know of that could do such thing

wanton delta
#

"arguments that will be passed to the constructor" im updating it from 1.12 to 1.15 and before it was String[] but now it says there isnt any constructor that matches

cloud sparrow
#

Explain by attach commands @devout sierra ?

wanton delta
#

@devout sierra what do you mean attatch commands

cloud sparrow
#

You mean create commands?

#

DeluxeCommands if so

#

@wanton delta you can use the manager to create a packet constructor but not to create a variable from the usages I have found.

devout sierra
#

well basically I take any item, lets say a stick or something... then write something like /attach <//wand> or whatever

devout sierra
#

and when I then right or leftclick that item, it executes that command

dusky herald
#

Did you look at the actual method?

cloud sparrow
#

I could make a plugin within 10-15 minutes if you want me to make one @devout sierra

#

or within a few.

devout sierra
#

that would be awesome

cloud sparrow
#

alright send me a friend request for your ideas and will release for free on spigot.

wanton delta
#

@dusky herald thats what i mean i have no clue how it works

devout sierra
#

itll be used for any of my minecraft projects tho, are you cool with that because I dont have money on my hand

wanton delta
#

i dont know what its looking for for the Object... parameter

devout sierra
#

on discord or spiggot?

cloud sparrow
#

@wanton delta ^

#

discord zlp

dusky herald
#

Object? Anything.

#

Objects are all classes.

wanton delta
#

i know

devout sierra
#

done

wanton delta
#

but it has changed since 1.12

#

and i dont know what to change it to

#

idk how people know what to put in

#

how do they know lol

#

currently i get java.lang.IllegalArgumentException: No suitable constructor could be found.

#

its a matter of what i need to use for the Object... arguments parameter

dusky herald
#

Maybe Packets?

wanton delta
#

nope

dusky herald
#

using net.minecraft.server.v1_15_12.PacketXXXX?

wanton delta
#

no

#

if u look at code examples

#

they're variables

#

like integers and strings and etc

#

i tried seeing if the Object... parameter corresponded with the packet things, but they dont

storm vessel
#

Apparently you can disable Comcast's xFi Security which stops them from closing your ports without having to call them

dusky herald
#

Well

#

What is it you're trying to do with the PacketConstructor?

wanton delta
#

add a PacketListener that detects tab completion

#

i have tried the bukkit/spigot methods

#

tehy do not work

#

i cannot get them to work

#

this will work once i know what to put for the parameter

dusky herald
#

Tab-Complete?

wanton delta
#

yea

dusky herald
#

that just appears to be like an auto-complete packet

#

for commands when you type

#

1 sec

#

well

#

What do you mean exactly by tab completion

#

I guess would be a good start

#

when you type a command

#

and press Tab?

#

I don't really think you would be able to get something to work if it's stuck on the client side...there'd be no way for the server to detect that the player did it

#

I mean, unless you can receive Keystrokes from the client

#

but I highly doubt you can do that.

#

Tab-Complete is a Clientbound packet, so it goes One way Server - > Client, but not Client -> Server

wanton delta
#

oh i think i found it

#

in 1.12 the only aruments was int and Array of String

#

now there are more

dusky herald
#

Ahh so its something you made work before huh?

wanton delta
#

yes

dusky herald
#

ProtocolLib isnt something I've worked with, so this is just speculation based on the information that I have right now lol

wanton delta
#

well not me

#

yea me neither

#

im entirely new to this lol

dusky herald
#

I probably should start working with it though lol

wanton delta
#

now i just need to decipher this

#

idk how that translates to code

dusky herald
#

Object[] ?

#

lol

#

Object[] arrayExample = new Object[2];
arrayExample[0] = "Test test";
arrayExample[1] = true;
arrayExample[2] = ChatObject w/e

wanton delta
#

could be but im suspicious lol

#

ill go for it i guess

dusky herald
#

idk why you would be

#

lol

#

There's a reason some of the packets call for Object[] arrays

#

that would be one reason

#

then you could cast them later

#

String arrayString = (String) arrayExample[0];
boolean arrayBool = (boolean) arrayExample[1];
ChatObject arrayChat = (ChatObject) arrayExample[2];

#

but, you wont ever know if that object actually matches the same object type / data type

#

so you'd want to check at least...

wanton delta
#

yea i know

dusky herald
#

if(arrayString instanceof String)

#

lol

wanton delta
#

ive never seen that done before

whole night
#

RQ question does everyone on my spigot server have to install spigot?

dusky herald
#

No

#

Minecraft works on Spigot servers.

whole night
#

I was using an old version of spigot

#

and it say it requires spigot 1.8.8

dusky herald
#

Are you playing on the correct minecraft version?

grim sapphire
#

if you're running a 1.8.8 server minecraft version requires 1.8.8 too

dusky herald
#

that'd be a good place to start

whole night
#

gotcha

#

๐Ÿ‘‰ ๐Ÿ‘ˆ

#

SORRY I AM A BIT SHY

subtle blade
soft iron
#

What's the best VoteListener that will allow me to give "Vote Keys" using Crates plugin?

#

I'm on 1.15.2, Spigot the same

grim sapphire
#

NuVotifier and GAListener not a thing anymore?

soft iron
#

Just found GAListener, now to get my host to let me use a port, lol

#

Not entirely sure how to get the specific key for the crate though, hmm..

#

Cause it's just a stupid tripwire, but it has a special name

grim sapphire
#

crazycrates?

soft iron
#

CratesPlus

grim sapphire
#

ah, not sure

soft iron
#
    Key:
      Item: TRIPWIRE_HOOK
      Name: '%type% Crate Key'```
#

Like this is how you name it rofl

grim sapphire
#

Is "Vote" not the key type?

#

They have no give command?

soft iron
#

Yeah there's a give command.

#

Oh wait, hmm, I could run that via console and make that plugin, run the command technically right?

#

Just do %player% as the receiver?

grim sapphire
#

yeah I would assume so

soft iron
#

Lawd, thank ya LOL

grim sapphire
#

/crate key %player% vote

soft iron
#

Yep, that's what I need

#

โค๏ธ

grim sapphire
#

assuming the plugin supports some kind of placeholder

soft iron
#

I believe it does, will test and see

final verge
dusky herald
#

Not build breaking errors.

#

Could be as simple as variables that "might" not instantiate

bitter haven
#

Hey how do i load a map without it making a new world?

sharp mauve
#

Well what does Methods.Color return, @final verge

final verge
#

thats not whats erroring

#

the Material.OAK_SIGN is

sharp mauve
#

@bitter haven Define "Loading a map"

#

And define "map"

#

Ah, that is weird...

final verge
#

for some reason spigot 1.14.4 isnt recognizing that OAK_SIGN exists

sharp mauve
#

try restarting your IDE?

final verge
#

Ye i did

#

i also deleted the project and recloned from git

#

tried 1.14.3

#

all same issue

bitter haven
#

Well I'm trying to move my map to my spigot server, but when i move the map folder it wont load the map, it overrides the map to a normal terrain map.
I have chosen the level-name.

soft iron
#

Okay, well, now I can't figure out how to get GAListener to work with Votifier...ragh...

sharp mauve
#

for the love of god, @fleet crane plz add a second and maybe 3rd help channel. We're bottle necked. lol

#

Like I still want to ask MY q as well...

#

huhhhh

fleet crane
#

No that's stupid

sharp mauve
#

So remliv it sounds like you want to quickly be able to load and unload world files.

#

multiverse wouldnt be yuour best solution

#

you probs want one of those other world management plugins...

bitter haven
#

I just want to change map.

sharp mauve
#

What? Sanity is stupid? Come on that is crazy talk.

bitter haven
#

Are you talking to me, because it isn't so crazy for me.

velvet halo
#

Caused by: org.hibernate.service.UnknownServiceException: Unknown service requested [org.hibernate.engine.jdbc.connections.spi.ConnectionProvider] Anyone that has experience with hibernate know what this means?

sharp mauve
#

Telling md_5 we need extra help channels. read chat.

#

Literally there are 4 people in one channel all trying to get help at the same time

bitter haven
#

Well what can you do

sharp mauve
#

@velvet halo not a clue. what does google say?

final verge
#

most issues that arent quick answers should go to forums anyways

bitter haven
#

So how could i change map, because it just wont load the map i put in the folder, it gets overridden.

sharp mauve
#

K screw it, I'm dropping my question.
<Pangamma> Help my dumb ass. I am trying to do autocomplete for a custom implementation of the /title command right now and the vanilla syntax is getting in my way.
<Pangamma> Basically I get the auto suggestions that you'd see on the spigot side. But I want to be able to show the suggestions from my overridden bungee command instead.
<Pangamma> How do I prevent autocomplete on the spigot side for that one command?

velvet halo
#

I have researched on google for an hour now @sharp mauve telling me to go on google and research is kind of rude. I only ask questions here if it is my last resort.

#

and people with experience like to help in these situations

sharp mauve
#

I'm not trying to pull a stack overflow.

#

I'm just saying I havent googled it yet. What did google tell you?

#

I have not seen what you have seen yet.

velvet halo
#
[18:30:11] [Server thread/INFO]: HHH10001005: using driver [com.mysql.cj.jdbc.Driver] at URL [jdbc:mysql://localhost:3306/minecraft?useSSL=false]
[18:30:11] [Server thread/INFO]: HHH10001001: Connection properties: {user=root, password=****}
[18:30:11] [Server thread/INFO]: HHH10001003: Autocommit mode: true
[18:30:11] [Server thread/INFO]: HHH000115: Hibernate connection pool size: 20 (min=1)
[18:30:11] [Server thread/INFO]: HHH000400: Using dialect: org.hibernate.dialect.MySQL57Dialect
``` I am successfully connecting but when I try to open a new session, create a transaction and then close the session it errors.
fleet crane
#

And?

velvet halo
#

Caused by: org.hibernate.service.UnknownServiceException: Unknown service requested [org.hibernate.engine.jdbc.connections.spi.ConnectionProvider] and

#

Says it is an unknown service

sharp mauve
#

So... you can connect. And you can authenticate. And you can execute ONE transaction, just not two. Correct?

fleet crane
#

Google says check you didn't close the session

paper mountain
#

md_5 will you look at my ticket? Sorry for the last ping.

shell fog
#

Rafal, correct me if I'm wrong, but you've been asking consistently over the last day? Constantly pestering him is not doing you any favours. Your personal spigot account, is the least of his concerns. Give it a couple weeks

paper mountain
#

For me it is a lot of worry

velvet halo
#
    public void update(Object object) {
        Core.async(() -> {
            Transaction transaction = null;
            try {
                if(session.isOpen()) {
                    transaction = session.beginTransaction();
                } else {
                    transaction = session.getTransaction();
                }
                transaction.begin();

                session.merge(object);

                transaction.commit();
            } catch (Exception e) {
                if (transaction != null) transaction.rollback();
            } finally {
                session.close();
            }
        });
    }
``` This is what I have in my source code. I even check if there is an open session and close it everytime also.
#

oops

#

I am stupid

soft iron
#

If someone has time, could I get some assistance in setting up GAListener alongside Votifier? I'm pretty new to the plugin game for Minecraft. I've gotten pretty far elsewhere, but this plugin has me stumped!

Problem: I'm not sure where I'm supposed to store the URLs for GAListener to Check. Also, is GAListener supposed to go in the Listener Folder under Votifier, or in the Plugins Folder naturally?

Best Regards,

Shark

fleet crane
#

Yeah you close the session but never open it again

velvet halo
#

LOL

sharp mauve
#

uhhhhh

velvet halo
#

I messed up

sharp mauve
#

yeah that. lol

velvet halo
#

HAHA

sharp mauve
#

like when does it get opened...

fleet crane
#

@bitter haven check there's no errors in your log, otherwise simply copy the whole world folder. It does work, I do it on a daily basis

sharp mauve
#

I think he;'s talking about a hotswap though, right?

bitter haven
#

Well i check

velvet halo
#

Still get the same error btw

bitter haven
#

Nvm, it works.

velvet halo
#

This is really weird

sharp mauve
#

post updated code

velvet halo
#
    public Service<T> open() {
        if(databaseRegister.getSessionFactory().isClosed()) {
            session = databaseRegister.getSessionFactory().openSession();
        } else {
            session = databaseRegister.getSessionFactory().getCurrentSession();
        }
        return this;
    }
#
    @Transactional()
    public void update(Object object) {
        Core.async(() -> {
            Transaction transaction = null;
            try {
                if(session.isOpen()) {
                    transaction = session.getTransaction();
                } else {
                    transaction = session.beginTransaction();
                }
                transaction.begin();

                session.merge(object);

                transaction.commit();
            } catch (Exception e) {
                if (transaction != null) transaction.rollback();
            } finally {
                session.close();
            }
        });
    }
round star
#

What are you trying to do

paper mountain
#

I don't know if it's a bug or not, but I can't logout of my account during the ban.I don't know if it's a bug or not, but I can't log out of my account during the ban.

native trail
#

Shouldnโ€™t have posted a how to ddos thread :/

round star
#

Prob not a bug prob intended to make sure you cant switch to another account

sharp mauve
#

if session is not open, get a new session and open it.

velvet halo
#

I fixed it but ran into a new error.

sharp mauve
#
                if(session.isOpen()) {
                    transaction = session.getTransaction();
                } else {
                     session = databaseRegister.getSessionFactory().openSession();
                    transaction = session.beginTransaction();
                }

Y u no do this

velvet halo
#

It doesn't work that way...

sharp mauve
#

or session.Open() or whatever

#

Alright. Still seems like you arent re-opening the session a second time though.

#

I dont know the exact syntax, but... from what I can gather, you are checking if it is open, and if it is NOT open, you do nothing to open it.

velvet halo
#

Yeah you are right

sharp mauve
#

But you should do something to open it.

#

Soooo.... anyone know how to override the spigot autocomplete with a bungeecord tab completer?

#

Maybe this helps with data patterns?

velvet halo
#

Well Hibernate is an ORM so it works a bit differently

sharp mauve
#

ehhh

#

ofc syntax will be different.

#

The process of managing a connection pool would be similar though

#

make sure connected, disconnect.... check connection... execute query, etc

velvet halo
#

Yeah!

frigid ember
#

Anyone knows why protocolsupportlegacysupport kicks 1.7 players for [19:59:28 INFO]: PlayerFile lost connection: Internal Exception: io.netty.handler.codec.EncoderException: MessageToMessageCodec$1 must produce at least one message. When there is a hologram in the world

soft iron
#

GriefPrevention is great, but uh, I have Crates in my Spawn that I want people to be able to open with keys...is there a better spawn build protection thing?

#

Ah fucking worldguard...sigh. That plugin.

sharp mauve
#

walks away, question burried in the never ending flood of other questions

#

I'll just have to put together a crappy fix

velvet halo
#

I haven't done it before pangamma

snow pawn
#

Hey does anyone know why it says 825 instead of 70 removed advancements? https://jcdn.io/javaw_mbgEh2aVSe.png

According to google there's 70 advancements but this vanilla command is saying otherwise & api says the same ๐Ÿค”

frigid ember
#

ok this channel is pointless lol

runic wyvern
#

there are 825 advancements

snow pawn
#

I'm writing a Drupi script atm that tells you a player's "level" based on advancements, I'm trying to get that 70 number but it seems to be playing tricks. I reset all my advancements, then got one advancement which returns 50 levels for some reason

runic wyvern
#

it's point..ful?

#

but we need actual support here

snow pawn
#

does that include deprecated advancements or something?

runic wyvern
#

no

snow pawn
#

any chance you know where I can find a list of all advancements? I've only found that 70 on google

runic wyvern
#

hmm

#

I thiink if you look up in the version's jar

#

in assets > advancements you can find them

snow pawn
#

& when I award all 855 advancements, my advancements page only shows around 70 (I haven't counted)

runic wyvern
#

nope

#

there aren't

snow pawn
#

I just counted, just shows 69, not sure why since I'm running java version

runic wyvern
#

hm

#

I can't find the advancements

snow pawn
#

hmm

#

I'm using org.bukkit.Bukkit.advancementIterator().forEachRemaining to iterate through all the advancements, but they don't seem to have any method to check the name of the advancements

#

Just the criteria, which just returns an array of things you need to get the advancement

#

in assets > advancements you can find them
does that mean I need to decompile the jar or something? I'm no good at Java

serene inlet
#

Hey Guys! Forge & Bukkit user here. I would like to create a MC server for my 6yo. My main problem is that "administrative stuff" (like WorldGuard) don't work on Forge and on Bukkit I cannot find any "extra items" (like furniture, guns etc). Is there any way to achieve this?

snow pawn
#

turns out the advancement inherits getKey which returns those

#

I can work with this ๐Ÿ‘Œ

proper bison
#

'''[08:33:42] [Server thread/ERROR]: Could not load 'plugins\plhider.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: Cannot find main class `me.kieranslayer.pl.Plmain'''
https://prnt.sc/rtvjt0
https://prnt.sc/rtvk0j

#

any ideas guys

#

im using intelliJ btw

frigid ember
#

How to add plugins to 1.16 server?

proper bison
#

no plugins are 1.16 Compatible as the build tools for it hasn't been released yet

#

so youll be wasting your time bud

serene inlet
#

Anybody...? ๐Ÿ™‚

proper bison
#

what are you trying to make the forge server with @serene inlet

serene inlet
#

the Forge server is working fine, but I can't find any way to make a PvP Arena

#

I've spent half a day with WorldProtector, but I can't find any way to enable PvP on a creative World

proper bison
#

so if you want to add plugins youll need something like sponge todo so

serene inlet
#

I'm ready to do anything in order to achieve the target, no problem, I just don't know what I should do/use.

proper bison
#

u wanna go general a talk bud

serene inlet
#

?

proper bison
#

general-1 vc

serene inlet
#

k

flint grove
fleet crane
#

hurricane electric IP

#

browse the forums via your home PC

buoyant path
#

Can someone help me retrieve my spigot acc? I 2faed it a couple years ago and I got a new phone so I donโ€™t have the 2fa app I used or the backup codes.

fleet crane
#

email support via account email

flint grove
#

That is my home pc i use he.net to browse using ipv6 as my isp doesn't support ipv6 natively yet.

#

whats the email?

fleet crane
#

nah thats re: 2fa

#

as for the IPs, hurricane electric IPs were ddosing the forums so they were blocked

flint grove
#

is there any way to get my block of ip's from hurricane electric unblocked?

#

i have a /48 from them

buoyant path
#

Thanks @fleet crane I didnโ€™t know what I needed to do lol

fleet crane
#

no, the block may be lifted generally if appropriate

tawny karma
#

why even ddos

flint grove
#

i dont know but its the whole reason i cant access spigot because of a few bad apples

#

or in some cases many

fleet crane
#

I mean its a web forum

#

generally supposed to be accessed via home connections anyway

flint grove
#

yeah mine is a bit different then a home connection so there isnt a way that you would whitelist my block?

fleet crane
#

nah sorry too much work for everyone that asks, it will be lifted if/when appropriate

flint grove
#

ugh okay thanks

#

i am looking into seeing if my router supports preventing the use of ipv6 to spigot.org

old heart
#

Oh ye wow I get the same error message with my ovh vps too

serene inlet
#

I'm trying to understand, what's the recommended version of Forge for SpongeForge 1.12.2-2838-7.2.0?

#

on Forge the recommended 1.12 builds are 1.12.2 - 14.23.5.2847 (latest) and 1.12.2 - 14.23.5.2768 (recommended)

fleet crane
#

I think youre in the wrong place

serene inlet
#

Oh, sorry, wrong server!

flint grove
#

either way thanks for the timely reply @fleet crane

#

i think i got it actually lol

#

i did actually get it i blocked outgoing connections using ipv6 to spigotmc.org

valid zenith
#

Hello

#

Can latest spigot for April?

fleet crane
#

Hm?

#

Released yesterday

#

Use /version to check

tribal coral
#

Is the website also slow for you guys?

fleet crane
#

I think its just the internet/networking

#

but yes, has been for last couple weeks

#

actual server performance is fine

tiny dagger
#

what would be the easier way to get all the premium user names from a resource i own? ๐Ÿค”

fleet crane
#

check your paypal receipts

tiny dagger
#

i was looking for an api

#

i need to do a script

vast fog
#

stupid question: how can i convert e.getEntity to Player?

old heart
#

You cast it, check if the Entity is an instanceof Player and then cast it

vast fog
#

i dont really get what you mean?

old heart
#
            Player player = (Player)entity;
        }```
vast fog
#

thanks!

lime oyster
#

@tiny dagger you can look into the Paypal IPN api

vast fog
#

wait, is there something like e.getPlayer().isHit or something like that?

uneven cradle
#

hey

#

I have a problem with my server running on spigot, can someone help me for a second

#

I will be sooooo thankful. Thanks

old heart
#

You can ask it and someone may be able to help

uneven cradle
#

so We are running a survival map that has a size of 35 gb for like 4 months then we stopped for one month
I Compressed the map folder, this month I decompressed it and sent it to the server. But theres so much issue's going around right now

#

Some areas are crashing the server when some people loads them. But we cant really make sure where they are
the log is like this

old heart
#

To be honest I'm not totally sure, someone else may be able to help

solemn grove
#

I am using the latest Jansi library for console colors but when I run the plugin it throw me with this error
org.bukkit.plugin.InvalidPluginException: java.lang.NoSuchMethodError: org.fusesource.jansi.Ansi.fgBrightGreen()Lorg/fusesource/jansi/Ansi;
The plugin built fine I am not sure what cause the issue

nimble solar
#

You are including Jansi in your plugin?

solemn grove
#

depend: ?

#

I am using maven btw I use the install command to add the jansi.jar file into the project

#

and in pom.xml I added it as a dependency

#

ok I should shade it into my plugin .jar

median wing
#

Quick question how do you get the statistics of plants using the player.getStatistic()?

old heart
harsh anvil
#

those arent plants

median wing
#

Yah, I've seen all the available statistics, just can't fin plants

harsh anvil
#

are those even tracked?

median wing
#

so is there a way to get the plants

old heart
#

If they aren't there they arent tracked

harsh anvil
#

i've never seen thme on the client stats either

old heart
#

You could make your own statistic by making use of the blockbreakevent

median wing
#

Are there other API's that allow to get statistics of plants?

harsh anvil
#

your own

old heart
#

What are you trying to get with plants?

harsh anvil
#

check for planting seeds on soil or something

median wing
#

I'll show you

#

sec

#

I'm just trying to get stats of plants harvested

harsh anvil
#

yeah in that case listen to the block break event and track everything thats a plant i guess

#

not sure if theres a generic interface for those tho

median wing
#

Yah, it sucks

#

Is it even doable by md_5?

old heart
#

You need to do it yourself

median wing
#

No, I know, misunderstanding, I'm asking if plant statistics could be added to SpigotAPI?

#

nvm I think I got it

fleet crane
#

All statistics are in the api

#

@solemn grove spigot has console colours, just use ChatColor and sendMessage to the console

solemn grove
#

I mean the unix console
@fleet crane

#

the terminal window

fleet crane
#

Yes

#

It has colours

solemn grove
#

It can work!?

#

wait lemme check again

fleet crane
#

Bukkit.getConsoleSomethingSomething.sendMessage

solemn grove
#

ok

compact marsh
#

getConsoleSender is it.

solemn grove
#

oh

#

now i understand

runic turret
#

Hello, my plugin connect correctly with my redis server but after an hour redis server stuck (and I can not end the service, I need to kill the PID of the procces) and plugin gets error, I think is because I don't close pool connection when server interacts with redis.

Before this error happens I had this code:


    private void settingUpRedis() {
        Jedis jedis = pool.getResource();
        try{
            String server = serverName;
            jedis.hset("max_players", server, getServer().getMaxPlayers()+"");
        }finally {
            jedis.close();
        }
    }

But I saw a lot of people doing this, and I changed this lines:

    private void settingUpRedis() {
        try (Jedis jedis = pool.getResource()){
            String server = serverName;
            jedis.hset("max_players", server, getServer().getMaxPlayers()+"");
        }
    }

#

This is the error, and I get it in all the servers from my network

fleet crane
#

The code does the same thing

#

Make sure redis is up to date

runic turret
#

ah so, I don't need to close the connection?

fleet crane
#

The second code does the same thing as the first code

#

(it's called try with resources and calls .close automatically)

runic turret
#

ok thanks I will check my code

frigid ember
#
int death = player.getStatistic(Statistic.DEATHS);
Team deaths = board.registerNewTeam("Deaths: ");
deaths.addEntry(ChatColor.GREEN + "");
deaths.setPrefix(ChatColor.WHITE + "Deaths: ");
deaths.setSuffix(ChatColor.GRAY + death);
#

why does this not work

#
int kill = player.getStatistic(Statistic.PLAYER_KILLS);โ€‹
Team kills = board.registerNewTeam("Kills: ");
kills.addEntry(ChatColor.WHITE + "");
kills.setPrefix(ChatColor.WHITE + "Kills: ");
kills.setSuffix(ChatColor.GRAY + kill);
#

to what

#

i dont get how thats the problem

#

cuz i have to fix the other things first then uncomment

#

ill uncomment later tho

#

k

gloomy shuttle
#

Hiยก ani can help me with FeatherBoardยดs error

#

@gloomy shuttle [08:45:24] [Craft Scheduler Thread - 30/ERROR]: [FeatherBoard] An error happened inside an animation effect ( [โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– ] <round decimals="0">(*100)/</round>%)! This can lag your server if you do not fix it [08:45:24] [Craft Scheduler Thread - 0/WARN]: javax.script.ScriptException: <eval>:1:1 Expected an operand but found *
@frigid ember I tried to fix

#

I Change for this

#
  • ' &8[<progressbar max="{placeholderapi_mcmmo_xp_needed_fishing}" scale="10" done="&bโ– " remaining="&7โ– ">{placeholderapi_mcmmo_xp_fishing}</progressbar>&8] &e<calc round>({placeholderapi_mcmmo_xp_fishing}*100)/{placeholderapi_mcmmo_xp_needed_fishing}</calc>%'
#

And now only give this error

[09:12:38] [Craft Scheduler Thread - 41/ERROR]: [FeatherBoard] An error happened inside an animation effect ( [โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– ] <calc round>(*100)/</calc>%)! This can lag your server if you do not fix it

cosmic marten
#

Can we make it so only verified users can join voice chat please ๐Ÿ™ ๐Ÿฅบ

verbal crescent
#

hi im having issue starting the server im new to making servers however i was told that the build is outdated despite me downloading 1.15.2

lime oyster
#

you should, update your spigot

worldly heathBOT
verbal crescent
#

where do i put that code?

gloomy shuttle
#

Hi, question how to i can fix Timed Out problem?

dusky herald
#

Follow the instructions on installing Spigot using BuildTools

#

You need an application called Git

#

Download Git, then run Git

gloomy shuttle
#

@gloomy shuttle We'd need to see your server log.
@frigid ember Only disconnect me xd

dusky herald
#

Then follow the instructions on that link under Running BuildTools

verbal crescent
#

what is git bash

#

i am current unable to locate git bash according to website instructions

lime oyster
#

you should install it

verbal crescent
#

should i but build tools in my server folder?

#

use it anywhere?

#

alright

#

im unable to git bash the build tool

#

windows

frigid ember
#

Wait

#

Don't install anything, just put this into a run.bat and run it

@echo off
IF NOT EXIST BuildTools (
    mkdir BuildTools
)
cd BuildTools
curl -z BuildTools.jar -o BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
set /p Input=Enter the version: || set Input=latest
java -jar BuildTools.jar --rev %Input%
pause
#

It isn't 1000 divided by the TPS, that only works when the server is running below 20tps

hoary parcel
#

Bukkit.getAverageTickTime

frigid ember
#

I'm getting The method getAverageTickTime() is undefined for the type Bukkit

narrow crypt
#

Hello! I'm rather stupid and can't find how i update my resources posted on spigotmc

frigid ember
#

It's on the right, under "Resource tools" -> "Post Resource Update"

narrow crypt
#

ah thanks!

#

@frigid ember

#

is the 'message' part where i dump my fixes /features

frigid ember
#

Yes

narrow crypt
#

great, had to know before i wiped my current description xD

forest pendant
#

I just want to make sure I am reading the wiki right. If I run buildtools after having a spigot version install it will just update it and I wont have to do any work at all.

#

Just run it and then I can run the server no problems

wise forge
#

Anyone know of a plugin that links Patreon donors with users in a minecraft server?

#

I saw MCPatron, but it hasn't been active since 2017 and I can't seem to find a download for it anywhere

cloud sparrow
#

I have a plugin in progress but it's atm been inactive till I am re-active on working on it.

uneven cradle
#

[18:26:18 ERROR]: Failed to save chunk
java.lang.IndexOutOfBoundsException: Index: 1859, Size: 1856
at java.util.ArrayList.rangeCheck(ArrayList.java:657) ~[?:1.8.0_242]
at java.util.ArrayList.set(ArrayList.java:448) ~[?:1.8.0_242]
at net.minecraft.server.v1_12_R1.RegionFile.a(SourceFile:269) ~[spigot1122latest.jar:git-Spigot-dcd1643-e60fc34]
at net.minecraft.server.v1_12_R1.RegionFile$ChunkBuffer.close(SourceFile:244) ~[spigot1122latest.jar:git-Spigot-dcd1643-e60fc34]
at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:241) ~[?:1.8.0_242]
at java.io.FilterOutputStream.close(FilterOutputStream.java:159) ~[?:1.8.0_242]
at java.io.FilterOutputStream.close(FilterOutputStream.java:159) ~[?:1.8.0_242]
at net.minecraft.server.v1_12_R1.RegionFileCache.e(RegionFileCache.java:95) ~[spigot1122latest.jar:git-Spigot-dcd1643-e60fc34]
at net.minecraft.server.v1_12_R1.ChunkRegionLoader.b(ChunkRegionLoader.java:212) ~[spigot1122latest.jar:git-Spigot-dcd1643-e60fc34]
at net.minecraft.server.v1_12_R1.ChunkRegionLoader.processSaveQueueEntry(ChunkRegionLoader.java:195) [spigot1122latest.jar:git-Spigot-dcd1643-e60fc34]
at net.minecraft.server.v1_12_R1.ChunkRegionLoader.a(ChunkRegionLoader.java:167) [spigot1122latest.jar:git-Spigot-dcd1643-e60fc34]
at net.minecraft.server.v1_12_R1.FileIOThread.c(SourceFile:37) [spigot1122latest.jar:git-Spigot-dcd1643-e60fc34]
at net.minecraft.server.v1_12_R1.FileIOThread.run(SourceFile:30) [spigot1122latest.jar:git-Spigot-dcd1643-e60fc34]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_242]
[18:26:18 ERROR]: Failed to save chunk

#

can someone help about what this means?

#

I know that I got some corrupted chunks, Is this "sourcefile" represents the actual region's number?

cloud sparrow
#

@uneven cradle ^

dusky herald
#

@uneven cradle ^

teal lichen
#

Hey, I have linked up my bungee servers and they are hosted with Pterodactyl panel. But I get this error while trying to join.

#

(Ping reply)

cloud sparrow
#

bungee servers?

#

you only need one but did you setup a hub?

#

like I assume by bungee servers you mean multiple servers for the config

#

The issue is that your lobby server isn't online meaning bungeecord has nothing for them to connect to @teal lichen.

frigid ember
#

why does this not work

teal lichen
#

@cloud sparrow It is online.

cloud sparrow
#

did you restart your bungee

#

after configuring?

teal lichen
#

Yes

frigid ember
#

system

uneven cradle
#

1.12.2

frigid ember
#

yo system how do i set the suffix to deaths it dont work

#

wdym

#
  • ""
#

or how do i do it

#
deathsTeam.setSuffix(ChatColor.GRAY + "" + deaths);
#

like this

#

alr

teal lichen
#

Any idea anyone why I can't link my Bungeecord servers up?

frigid ember
#

yo how do i export on intel j

#

to the plugins folder

teal lichen
#
listeners:
- query_port: 1232
  motd: '&1Another Bungee server'
  tab_list: GLOBAL_PING
  query_enabled: true
  proxy_protocol: false
  forced_hosts:
    pvp.md-5.net: pvp
  ping_passthrough: false
  priorities:
  - lobby
  bind_local_address: true
  host: 0.0.0.0:1232
  max_players: 1
  tab_size: 60
  force_default_server: false
remote_ping_cache: -1
network_compression_threshold: 256
permissions:
  default:
  - bungeecord.command.server
  - bungeecord.command.list
  admin:
  - bungeecord.command.alert
  - bungeecord.command.end
  - bungeecord.command.ip
  - bungeecord.command.reload
log_pings: true
connection_throttle_limit: 3
server_connect_timeout: 5000
timeout: 30000
player_limit: -1
ip_forward: false
groups:
  md_5:
  - admin
remote_ping_timeout: 5000
connection_throttle: 4000
log_commands: false
stats: 5e27a1cf-04e3-4ae4-b61d-72ca36e43d9a
online_mode: true
forge_support: false
disabled_commands:
- disabledcommandhere
servers:
  lobby:
    motd: '&1Just another BungeeCord - Forced Host'
    address: 62.171.180.54:3213
    restricted: false
#

Sorry

#

I should have use pastebin

frigid ember
#

wdym testing on a live server how do u do that

#

?paste

worldly heathBOT
teal lichen
#

There you go, @frigid ember

frigid ember
#

how do i check

#

oh bruh

dusky herald
#

Wot

frigid ember
#

i thought u were talking to me

#

lmao

#

how do i do a live server

cursive pelican
#

o

dusky herald
#

Do a live server? Wat

dusky herald
#

Lel

#

No comment

still raptor
#

@frigid ember you do a live server by dragging the jar file from where you exported it into your server and turning it on, hence "live"

frigid ember
#

yea ok so ive been doing that alr

still raptor
#

I thought you were asking how to compile though?

frigid ember
#

nah i was asking how to export in intel j

dusky herald
#

Project Structure

#

Artifacts

#

Add jar

frigid ember
#

yea i figured it out

dusky herald
#

Use project module

frigid ember
#

but htx

#

thx*

dusky herald
#

Build

#

Build Project

frigid ember
#

yo anyone know the link to that site for when people ask for help it just types out their question

dusky herald
still raptor
#

google?

frigid ember
#

thx blackveiled

#

how to make badlion windowed

#

where can i ask in gener

#

can u tell me there

mental vortex
#

My server keeps having lag spikes where the console says "Can't keep up! Is the server overloaded?", even though its only using 2-3 GB of the RAM I allocated for it (16 GB). This is happening with only me online. Are there any possible solutions?
Server Version: 1.15.2
OS: Windows 10
CPU: Intel i9-9900k
Startup Script:

@echo off
java -Xms16G -Xmx16G -XX:+UseConcMarkSweepGC -jar spigot-1.15.2.jar nogui
pause

I can provide more information if its needed to find a solution.

Plugins used: (Attached as image)

frigid ember
#

how do i make a line on a scoreboard

#

@frigid ember

#

like these

#

the white lines

vocal wraith
#

Hey @frigid ember can I DM you?

frigid ember
#

system it didnt work

#
Team line = board.registerNewTeam("&f&m-------------");
line.addEntry(ChatColor.DARK_AQUA + "");
line.setPrefix(ChatColor.WHITE + "&f&m-------------");
#

this is my code

#

wdym

old heart
#

It's probably best to make a utility class with a method like this

public static String colorize(String message) {
    return ChatColor.translateAlternateColorCodes('&', message);
}
frigid ember
#

how do i make the lines display in configure.yml

golden vault
#

I have updated a plugin for 1.13+ and now I am working on its extension plugins, the extension plugins have the main plugin as a hard dependency in the plugin.yml. the problem I am having is the main plugins load some classes from the extensions. When that happens I get the "Main loaded class foo.class from extension and is not a depend soft depend or load before" warning. I can't have the extension plugins be a dependency of the main. How do I properly fix this?

dusky herald
#

@mental vortex Struggle with keeping up means that the server is struggling keeping up with the server's CPU basically. A plugin or something is causing the game state to slow, resulting in lower TPS.

#

Or you have too many plugins running simultaneously.

#

Combination of too many plugins / too many players online performing actions at the same time, etc...

mental vortex
#

Can this be caused by dynmap fullrender?

frigid ember
#
Team line = board.registerNewTeam("                 ");
line.addEntry(ChatColor.DARK_AQUA + "");
line.setPrefix(ChatColor.STRIKETHROUGH + "                 ");
#

why does it not let me make it bigger than that

#

@frigid ember

dusky herald
#

It could be, you can experiment and unload it and see if the performance improves.

#

Thatd be a likely suspect.

frigid ember
#

so how do i make the length and bigger

dusky herald
#

You cant.

mental vortex
#

Thanks, I'll try.
I ran /dynmap fullrender to load the entire map I'm using and its been going for a few hours.

dusky herald
#

@mental vortex yeah that's probably what it is then. Constantly running, using up your servers CPU

frigid ember
#

no its gonna have the stikethorug it

old heart
#

you put a line of ---------

#

you cant strike through nothing

frigid ember
#

where i going for repport a creator of plugin?

old heart
frigid ember
#

what

vocal wraith
#

why are you reporting?

dusky herald
#

Report a plugin creator for what? Lol

frigid ember
#

i 200 iqed it

#
String spaces = "                                  ";
Team line = board.registerNewTeam("");
line.addEntry(ChatColor.DARK_AQUA + "");
line.setPrefix(ChatColor.STRIKETHROUGH + spaces);
old heart
#

no xSwift it needs to be ------------

frigid ember
#

no it dont

dusky herald
#

200 iq, lol

frigid ember
#

en5

vocal wraith
#

you 0 IQ'd it

frigid ember
#

because a plugin creator have a create a plugin but he dosen't work , and he dosen't want give me an answers :/ (20euros)

#

TheoPolo

keen moth
#

@golden vault That's called circular dependency. If that is occurring, there is typically a flaw in the design of the program(s). Your dependent projects (your extensions) should always rely on the independent program. That being said, the independent program should remain independent. It should not be requiring or attempting to access it's dependent counterparts ๐Ÿ™‚

#

?kick @misty kettle spam

worldly heathBOT
#

๐Ÿ‘ข Kicked 242243666444419076

dusky herald
#

Lel

#

That's a good way to get unbanned huh

kindred vector
#

Anyone know if there's a way to auto equip armour?

keen moth
#

nevertheless, the discord is not a place to be asking assistance for getting unbanned

tiny dagger
#

so they get caught red handed and yet they still are entitled to an unban? wow

golden vault
#

I wouldn't doubt it ,it was written a loooong time ago by someone else.

kindred vector
#

@frigid ember you lead me here?

#

I guess spigot help

manic raptor
#

Hi everyone,
was hoping to get some advice on the structure of Plugins, or if there's any sort of standard when it comes to functionality that needs Listeners and a Command(CommandExecutor) to modify the same content.
As an example, let's say I have a simple plugin that counts the number of times that a player places down a block, but this value can also be incremented by a command. Each time the player writes the command or places down a block, they are messaged the number of times they've done so. (Trying to use a very simple example, but this would be for a much more complicated plugin).

I'm thinking that this plugin would have a structure like this:

BlockCounter.java
    onEnable()
    onDisable()
    CountingManager Object

CountingManager.java:
    Collection of Key/Values for PlayerName/int
    CountListener Object
    CountCommand Object

CountListener.java:
    Implements Listener
    Listens for BlockPlaceEvent and updates value/messages player
    Has a reference to the CountingManager

CountCommand:
    Implements CommandExecutor
    Provides functionality for command and updates value/messages player
    Has a reference to the CountingManager

Does this resemble any sort of standard practice?
I understand that one class can implement both Listener and CommandExecutor, and further that in non-complex plugins like this it might be better to just have one class that maintains the collection, implements the Listener and the CommandExecutor.

#

My questions are:

  1. For complex plugins, is this standard practice(Listener and CommandExecutor in separate classes with a governing "Manager" class)?
  2. Is this just a silly way to design plugins, and different functionality like this should just implement Listener and CommandExecutor in the same class, even for complex plugins?

I've had a flick through the source of a few different big open source plugins but they seem to all do these types of things differently. I understand that this might be a bit opinionated depending on the context, but was more wondering what approach more experienced users tend to take. ๐Ÿ™‚

keen moth
#

Typically you'd want to keep them separate for better project structure. You're right to have a managing class to handle the block counting. What you could do: keep a single instance of the manager class in your main class, accessible through a getter. In other classes that require accessing the managing class, simply pass the instance of your main class through dependency injection.

manic raptor
#

Cheers, thanks for that guys. :)
Is it okay to @ staff like Choco?

dusky herald
#

He doesnt seem to mind when I do it

#

๐Ÿ˜‚

manic raptor
#

Very well then haha, @subtle blade could I get an opinion on this?

keen moth
#

I've written up a quick example for you. Much like how I implemented accessing the manager in the listener, you'd do for the command or any other place.

https://pastebin.com/uW2q2Qh5

frigid ember
dusky herald
#

implements Listener

manic raptor
#

Thanks! I appreciate that. ๐Ÿ™‚

dusty topaz
#

To load a spawn location I have:
spawnLocation = (Location) getConfig().get("spawn");

And to set it, I use

            Location loc = player.getLocation();
            instance.setSpawnLocation(loc);
            instance.getConfig().set("spawn", loc);
            instance.saveConfig();

And it serializes in the configuration like this:

spawn:
  ==: org.bukkit.Location
  world: Spawn
  x: -31.49341326552553
  y: 164.0
  z: -14.470630113595808
  pitch: 1.9499395
  yaw: 0.14264306

Yet it is null when I run /spawn (after restarting, works prior to restart)

#

Doing some checking, Bukkit.getWorld("spawn") is null, but I'm, unsure why?

#

It's just a world I've created with multiverse and a generator

quick arch
#

did you try "Spawn" yet

#

pretty sure they are case sensitive

dusty topaz
#

wdym

dusky herald
#

If the world folder is uppercase

quick arch
#

I'm sure world names are case sensitive

dusky herald
#

It has to be uppercase

quick arch
#

^

dusty topaz
#

ah, the world name is lowercase (but even so, it's serializing from the players location, so why isn't it updating?)

quick arch
#

๐Ÿค”

heady estuary
#

has it loaded

dusty topaz
#

yep

quick arch
#

o

dusky herald
#

What line is giving you a NullPointerException?

quick arch
#

wonky

dusty topaz
#

the object is null

dusky herald
#

Check your error, and find where exactly you're getting a null.

quick arch
#

the world is probably not loaded ๐Ÿค”

dusty topaz
#
            Location location = instance.getSpawnLocation();
            if (location == null) {
                player.sendMessage(ChatColor.RED + "Spawn location is null. Please contact an administator.");
            } else {
                player.teleport(location);
                player.sendMessage(teleportMessage);
            }
#

I said where was null @dusky herald

#

Doing some checking, Bukkit.getWorld("spawn") is null, but I'm unsure why

#

Location is ConfigurationSerializable

#

Unless I misinterpret what you mean?

#

public class Location implements Cloneable, ConfigurationSerializable {

#

I tried doing that, and Bukkit.getWorld(string)) was null

dusky herald
#

You're using a String

dusty topaz
#

So it's not an issue with serialization, it's something to do with the world being null

dusky herald
#

When you stored a World

dusty topaz
#

No, you can serliaze a location and load it from a configuration file

#

It's actually how you're supposed to do it

#

That's not the issue, because it stores just like it would saving an itemstack

#

I think it's something to do with the world not loading properly with spigot, how would I check that?

dusky herald
#

Have you tried accessing the world another way?

quick arch
#

broadcast the list of worlds to see if the world is loaded

dusty topaz
#

Well I'm physically in the world in game

#

I'll try that

quick arch
#

should show stuff like [CraftWorld{name=Hub}, CraftWorld{name=world_nether}, CraftWorld{name=world_the_end}]

dusty topaz
#

i'll just broadcast the name

#
    public Location getSpawnLocation() {
        for (World world : Bukkit.getWorlds()) {
            Bukkit.broadcastMessage(world.getName());
        }
        spawnLocation = (Location) getConfig().get("spawn");
        return spawnLocation;
    }

is where this came from

quick arch
#

wonky

dusty topaz
#

Literally

#
  ==: org.bukkit.Location
  world: spawn
  x: -31.49341326552553
  y: 164.0
  z: -14.470630113595808
  pitch: 1.9499395
  yaw: 0.14264306

#

I'm so confused

quick arch
#

oh

#

try with getLocation(node)

#

that's most likely why

dusty topaz
#

There is no getLocation

#

And casting would work the same anyway

quick arch
#

thonk

dusty topaz
#

it works just fine in the default world

dusky herald
#

Shouldnt it be

dusty topaz
#

so i'm thinking the issue is registering a world incorrectly or something

dusky herald
#

instance.getConfig().get("spawn")

dusty topaz
#

thats in the main class

#

so we can just do getConfig

keen moth
#

are you loading it in onEnable ?

dusky herald
#

Ah

dusty topaz
#

yes, but then its also loading on command in that method

dusky herald
#

Does it load before you run the method?

dusty topaz
#

that's how i would've had it, but i'm loading it every time the method is called from the config

#

to test it wasn't that

keen moth
#

I remember having a similar issue before when attempting to work with worlds creating by multiverse (or multiworld, don't remember which). Fixed it by adding a soft-depend for Multiverse in my plugin.yml so it can actually load the data before my plugin attempts to access anything

#

you can try that, but unsure if it'll be a solution for your problem

dusty topaz
#

that sounds like it could be right

dusky herald
#

Yeah I mean I dont really see anything wrong with it.

dusty topaz
#

yep, fixed it @keen moth

#

I would've never figured that out, so I have no idea how you did

#

Huh, maybe it does exist @quick arch

dusky herald
#

Seems like what he said, you create the location, but the world was never actually loaded yet so it comes up null

dusty topaz
#

just not in the outdated version I'm using

dusky herald
#

Odd

#

Lol

quick arch
#

wonky

keen moth
#

awesome ๐Ÿ™‚

slim hemlock
#

anyone happen to know off the top of their heads what the highest slowness potion effect level is that still allows mobs to move?

#

it ain't 6

#

not the highest globally, the highest where they can still move

#

pretty sure they're already not moving at 6

quick arch
#

3?

#

actually, 2? (since potions start at 0)

tiny dagger
#

is arraylist get O(1)?

frigid ember
#

I believe they will still move at any value just unnoticable

dusky herald
#

Probably 1

zenith siren
#

I want to let an NPC lay on the ground (I spawned my own NPC with packets) and I get him laying him down but whatever I do it's always floating 0.5 blocks above the ground. As far as I know I tried all ways to move the npc but nothing works. How do it let the NPC lay on the ground?

dusky herald
#

Move Speed caps at 0-1

nimble solar
#

Question, how do you guys handle getting values from your settings/config file? Plugin.getInstance().getConfig().getString("path") is pretty painful when you have a lot of keys.

tiny dagger
#

split it in ConfigSections?

nimble solar
#

That's not the question

zenith siren
#

I would save the config in a variable so you only have to do config.getString("Yeehaw") and if there's 1 big section then use ConfigSections

quick arch
#

what type of data

cloud sparrow
#

He told you the answer.

nimble solar
#

I've seen people make an enum full of keys and then they make a get() method which returns the value but idk if thats good

tiny dagger
#

wait do you wanna get all keys at once or?

nimble solar
#

No, I'm asking how to make my code cleaner.

tiny dagger
#

i guess enum is the way to go

#

i used to do that for messages

#

especially since you don't have to touch config anymore and only add in the enum new keys

nimble solar
#

Okay, I will do that. Thanks

zenith siren
#

I can't find this packet...

#

Oh

#

No embed

cloud sparrow
#

If you are verified you can directly upload images.

zenith siren
#

Got it

#

Thanks!

timid basin
#

Hi anyone knows why all of my packets are broken on 1.14.4 - 1.15.2. I can create the packets and intelliJ shows no errors, but when i launch the server the packets simply don't work

#

was there some kind of change to nms in 1.14?

#

yes I understand that

#

but usually the methods change aswell

#

so you have to use a different constructor etc

#

for example in 1.13.2 I can create an invisible armorstand with a changed name easily, in 1.14 it is visible and it has no name

#

the packet is being created but it is broken

#

i'm not using reflection

#

i'm directly using the nms api

zenith siren
#

I'm also working with packets right now :D

#

Show me your code

#

idk if I can help

timid basin
#

1 sec

#

        WorldServer world = ((CraftWorld) loc.getWorld()).getHandle();

        ArrayList<Integer> armorStands = new ArrayList<>();

        for (int i = 0; i < text.size(); i++) {
            IChatBaseComponent chatComponent = new ChatMessage(text.get(i));

            EntityArmorStand armorStand = new EntityArmorStand(world, loc.getX() + 0.5, loc.getY() - 0.5 - 0.25 * i, loc.getZ() + 0.5);
            armorStand.setNoGravity(true);
            armorStand.setCustomName(chatComponent);
            armorStand.setCustomNameVisible(true);
            armorStand.setInvisible(true);

            armorStands.add(armorStand.getId());

            PacketPlayOutSpawnEntityLiving packet = new PacketPlayOutSpawnEntityLiving(armorStand);

            EntityPlayer nmsPlayer = ((CraftPlayer) player).getHandle();
            nmsPlayer.playerConnection.sendPacket(packet);
        } ```
#

this exact code works on 1.13.2

#

didn't change anything in 1.14 except for nms package

zenith siren
#

Last time I checked an armor stand doesn't live but aside from that idk

cloud sparrow
#

fyi in the future just modify the armorstand rather than creating them multiple times and running extra methods than required.

timid basin
#

it has to be player contextual

#

only one player has to see the armorstand that is created

#

that method doesnt exist

#

import net.minecraft.server.v1_15_R1.EntityArmorStand;

#

is what i'm using

zenith siren
#

Does anyone know a good tutorial for getting started with reflection?

livid island
round star
#

Looks like your config file is messed up

#

Go to a yaml parser and paste your yaml file in there and look at the errors

timid basin
#

@zenith siren where did you get the info that 1.15 armorstand isn't extending entityLiving, i have decompiled the nms code and it seems that it is in fact entity living are you using an old build?

old heart
timid basin
#

where did you find that method

#

i've searched through entityliving, entity, and armorstand classes

#

none of them contain it

frigid ember
#

?whois @frigid ember

worldly heathBOT
#
แต€แต’แต#0033 (SystemEncryption)
ID

675102090342825984

Avatar
Account Created

06 Feb 20 22:14 UTC

Account Age

8 weeks 3 days and 21 hours

Joined Server At

01 Apr 20 11:50 UTC

Join Server Age

5 days and 8 hours

Status

Custom Status:

5 last usernames
 17 Feb 20 13:30 UTC: แต€แต’แต
5 last nicknames
 01 Apr 20 11:50 UTC: SystemEncryption