#help-archived

1 messages ยท Page 161 of 1

inland oxide
#

restart-script: ./start.sh

neat oxide
#

NEXT!!

cerulean musk
#

thanks

inland oxide
#

or whatever to restart

#

.bat or .sh, etc.

trail basalt
#

Alright.

This is an extremely idiotic question.

I'm aware that servers that rely on your machine can't stay on 24/7, and I won't always be on for that. However, I have some trusted friends and I'd like to know whether or not I'm capable of duplicating my folder and sending it to a friend, allowing them to run the server from their machine while I'm offline? Or is this impossible?

I've heard of it happen prior, but I dunno how true this is.

#

It's just a theory.

#

game theory

cerulean musk
#

what should i do ?

#

restart-on-crash: true
restart-script: ./start.sh

neat oxide
#

You can copy the folder zip it send it they should be able to run it just remember port forwarding

trail basalt
#

Ah! Thanks!

neat oxide
#

@cerulean musk yes but restart-script needs to point towards your start script

trail basalt
#

Thank you!! I thought I was going to have to resort to paying for a host

cerulean musk
#

so i need a script plugin ?

neat oxide
#

@cerulean musk no

#

Don't you have like a file you execute to start the server

cerulean musk
#

calles start

#

called*

#

start.bat

neat oxide
#

Then put start.bat in there

#

Ain't rocket science

cerulean musk
#

oh okey thanj ๐Ÿ˜„

#

its right ? restart-on-crash: true
restart-script: start.bat

fervent sorrel
#

so i did this, now what?

neat oxide
#

You wait

fervent sorrel
#

until?

neat oxide
#

It's done

frigid ember
#
            for (String msg : this.plugin.getConfig().getStringList("counter.message")) {
              msg = msg.replace("%count%", Integer.toString(Counter.Count.get(uuid)));
              msg = msg.replace("%player%", p.getName());
            p.sendMessage(applyCC(msg));```
I got this to let people be able to use place holders in config.yml
counter
  message:
  - "Hi"

```java
        if (Counter.Count.get(uuid) == this.plugin.getConfig().getInt("stepcommands.steps")) {
            plugin.getConfig().getStringList("stepcommands.commands").forEach(o -> Bukkit.dispatchCommand(Bukkit.getConsoleSender(), o));
        }```
stepcommands:
  commands:
  - gamemode 1 %player%
I want this to do the same now it will just give gamemode 1 %player% and wont listen to a custom placeholder
neat oxide
#

@frigid ember go to the forums beter place for questions like those this is really for small quick questions

frigid ember
#

this is a lot faster

neat oxide
#

True but I can't assist with that

#

As I don't have the full picture

#

Of your problem

frigid ember
#

I want this to do the same now it will just give gamemode 1 %player% and wont listen to a custom placeholder

#

it works for my chatmsg one

#

but when I try it for the console one it doesnt convert the placeholder

neat oxide
#

Use your intellji breakpoint debugger to see why it ain't working

#

Or go to the forums I can't assist with that

frigid ember
#

eclipse :/

neat oxide
#

Eclipse had breakpoints as well

fervent sorrel
#

how do i know that it's done and what do i do next to get the spigot i want
in this case 1.16.1

Run
java -jar BuildTools.jar --rev 1.16.1
?

neat oxide
#

Yup

#

It will tell you when it's done it's quite obvious when it's done

fervent sorrel
#

ok, i just thought it kinda won't tell me that it's done for some reason

neat oxide
#

It wil clear the terminal and say something along the lines of copied final jar

fervent sorrel
#

ok thank you

neat oxide
#

I personally don't use build tools that much I use maven instancing but that only because I make spigot

fervent sorrel
#

the last spigot i downloaded was 1.15.2 and i used get bukkit

#

but when i did it with 1.16.1 my server started crashing and it was 89 versions behind

fallen aurora
#

Hi Guys, I am going absolutely crazy right now, I have been trying all day at this. I have built the 1.16.1 jar, ran it, edited the EULA, changed the port to 25569. I have done sudo ufw allow 25569/tcp and sudo ufw allow 25569/udp. When I try and connect in game, it just says "Connecting to the server...." and then eventually times out. Any ideas? I thought it could be the firewall but even after sudo ufw disable, issue persists

neat oxide
#

@fervent sorrel we are currently updating 1.16 all the time

#

25565 my friend

#

@fallen aurora

#

25565 is default port

#

Also are you sure your connecting your client to IP:25569

fallen aurora
#

i changed it to 25569 in the server.properties

neat oxide
#

Are you telling your client that

fallen aurora
#

and yes, i am connecting to my ip:25569

naive goblet
#

why not just use 25565 lol

neat oxide
#

Are you seeing anything on the terminal

frigid ember
#

mxpph, maybe you can paste your sudo ufw status?

#

how do I fix a "Exception in server tick loop" crash

fallen aurora
#

the terminal runs the jar and it has finished everything

#

@frigid ember sure 1 sec

frigid ember
#

!paste

neat oxide
#

@frigid ember by posting the stack trace so we can see what's causing it

#

?paste

worldly heathBOT
fallen aurora
#
To                         Action      From
--                         ------      ----
22/tcp                     ALLOW       Anywhere
25569/tcp                  ALLOW       Anywhere
25569/udp                  ALLOW       Anywhere
23/tcp                     DENY        Anywhere
22/tcp (v6)                ALLOW       Anywhere (v6)
25569/tcp (v6)             ALLOW       Anywhere (v6)
25569/udp (v6)             ALLOW       Anywhere (v6)
23/tcp (v6)                DENY        Anywhere (v6)
lapis plinth
#

Im getting this error

frigid ember
#

that looks fine

lapis plinth
#

^ class error is happening in

frigid ember
naive goblet
#

The error tells what is wrong

#

Atom

frigid ember
#

that is my crash report

lapis plinth
#

idk what the exception is referring to

neat oxide
#

club.atomicnetwork.valuecore.@lapis plinth

#

Valuecore is the problem

sturdy oar
#

advertising - ban

#

oh nvm it's not a server

#

๐Ÿคฃ

lapis plinth
#

very helpful :kappa:

#

xD

frigid ember
fallen aurora
#

any ideas anyone?

neat oxide
#

@frigid ember me.neznamy.tab.shared.cpu.CPUManager$4

#

What ever that is is causing it

#

Also be patient as you can see there are only 2 experts and a lot more questions

sturdy oar
#

it's a TRAP

#

no idea what that means

frigid ember
#

someone put a trap in the code :o

naive goblet
#

lol

frigid ember
#

Idk what me.neznamy.tab.shared.cpu.CPUManager$4 is

#

idk what would be causing it

neat oxide
#

@lapis plinth that's not the entire class as the error is on line 28 and the code you send me is not even 28 lines long

sturdy oar
#

rip you have songoda plugins

neat oxide
#

๐Ÿ˜†

naive goblet
#

If you have songoda = automatically reached heaven

frigid ember
#

you talkin about me?

naive goblet
#

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

pastel condor
#

๐Ÿคฆโ€โ™‚๏ธ

opal bay
#

I used to have songoda plugins

neat oxide
#

Guys ping the person your talking about

frigid ember
#
            for (String msg : this.plugin.getConfig().getStringList("counter.message")) {
              msg = msg.replace("%count%", Integer.toString(Counter.Count.get(uuid)));
              msg = msg.replace("%player%", p.getName());
            p.sendMessage(applyCC(msg));```
I got this to let people be able to use place holders in config.yml
counter
  message:
  - "Hi"
```java
        if (Counter.Count.get(uuid) == this.plugin.getConfig().getInt("stepcommands.steps")) {
            plugin.getConfig().getStringList("stepcommands.commands").forEach(o -> Bukkit.dispatchCommand(Bukkit.getConsoleSender(), o));
        }```
stepcommands:
  commands:
  - gamemode 1 %player%
I want this to do the same now it will just give gamemode 1 %player% and wont listen to a custom placeholder
neat oxide
#

It's quite busy In here

#

@frigid ember go to the forums

naive goblet
#

Lmao

neat oxide
#

I told you 3 times already

naive goblet
#

@frigid ember send entire method

opal bay
frigid ember
#

ok

neat oxide
#

To his DMS please

#

This is quite a busy room

naive goblet
#

Wth dude

#

this channel is literally for helping or what

neat oxide
#

It is but I can't see the trees thru the forest right now

#

@frigid ember let's locate that rough plugin shall we

naive goblet
#

Unnecessary to chase him away though

neat oxide
#

Can you send me a photo of your plugins folder

#

To my DMS please

frigid ember
#

ok

neat oxide
#

@lapis plinth if you want that error fixed send me the entire class not just a snippet

#

@fallen aurora when connecting do you see anything on the console?

#

Or is the connection being refused flat out

fallen aurora
#

absolutely nothing on console

#

its as if the server isn't even being hosted

#

which is what made me think its a ports/fw issue

#

its not the address otherwise it would say it couldn't be resolved

neat oxide
#

@fallen aurora yeah I'm afraid I lack the experience required to help with this try a Linux discord maybe they can help you or maybe @sturdy oar can help

sturdy oar
#

DID I GET PINGED

neat oxide
#

Yes yes you did

sturdy oar
#

mxpph what's your issue again?

#

ports forwarding on penguinOS?

fallen aurora
#

well, im not exactly sure

sturdy oar
#

try this to see if your server port is running and listening correctly

#

sudo lsof -i -P -n | grep LISTEN

naive goblet
#

mxpph did you even pfw?

sturdy oar
#

also yeah i'm missing lot of info, giving help with network configs is reall hard

fallen aurora
#

sudo: lsof: command not found

untold knoll
#

update from last night i switched it from config to sql base so that was fun

fallen aurora
#

im on debian 10

sturdy oar
#

oh yeah... debian

#

the OS that has nothing installed by default

fallen aurora
#

true

sturdy oar
#

you have netstat?

round igloo
#

I'm having big issues with every single plugin I make. When I load a plugin into the server it says it's already initialized but it hasn't and when one of my plugins eventually started I had to build it again and when I reloaded it, it just used the same code from before.

sturdy oar
#

netstat -tulpn did something very similar to that command, although if you don't have either, lsof should be a lighter package

neat oxide
#

@round igloo can you explain a bit more

naive goblet
#

Polar hmm that would send an error in console right?

round igloo
#

Yeah sure

naive goblet
#

Send that error

fallen aurora
#

got netstat

#

sec

round igloo
neat oxide
#

?paste

worldly heathBOT
sturdy oar
#

:(

neat oxide
#

@round igloo

sturdy oar
#

only pasta

#

no txt

neat oxide
#

Please

round igloo
#

okay

fallen aurora
neat oxide
#

It's for our safety

round igloo
#

Yeah I guess that makes sense

naive goblet
#

No it's because I don't want unnecessary files on my desktop

round igloo
neat oxide
#

1.8r3 ๐Ÿ˜ซ

naive goblet
#

That's irrelevant?

round igloo
#

What do you mean?

naive goblet
#

May I ask what plugins you got?

neat oxide
#

@round igloo by any chance got a plugin that has the same name defined in plugin.yml

round igloo
#

Essentials, a couple other plugins I made, and a plugin that my friend made

#

I could check that

#

And I could remove some of my other plugins

neat oxide
#

Also nuke plugman that thing has a tendency to cause issues

naive goblet
#

PolarDyth well make sure every plugin has a unique name in plugin.yml as well as not a duplicate of the classpath to main

round igloo
#

What do you mean by classpath?

neat oxide
#

Com.thecreepercow.plugin1

naive goblet
#
#plugin.yml
main: class.main.my.Plugin
round igloo
#

Hm, I use the same one for every plugin. I didn't think that would be an issue

neat oxide
#

๐Ÿ˜‚

naive goblet
#

I believe extending JavaPlugin more than once or invoking main can cause that error as well

neat oxide
#

If multiple plugins use the same class path spigot can only ever initiate one of them

round igloo
#

Thanks for the help. I have only recently started developing so my rookie mistake didn't help me at all

fallen aurora
#

If anyone gets back to me, please @ me ๐Ÿ™‚

neat oxide
#

@fallen aurora I'd say ask the question on a Linux discord

#

They are better equipped at helping

fallen aurora
#

the thing is, I have ran other servers off of this machine before

round igloo
#

Damn, now the item I am trying to get doesn't have lore or a name

fallen aurora
#

with ufw

#

and not had this problem

#

so i thought it might be a specific thing for mc

round igloo
neat oxide
#

@round igloo did you refractor properly

fallen aurora
#

do you know any linux discords?

round igloo
#

What does that mean ๐Ÿ˜ฆ

neat oxide
#

@round igloo when changing class paths did you make sure all package assignments changed as well

lapis plinth
#

@lapis plinth if you want that error fixed send me the entire class not just a snippet
@neat oxide K one sec

neat oxide
#

Oh ffs

#

?paste

worldly heathBOT
lapis plinth
fallen aurora
#

i ask because, everything related to linux discord servers just brings edgy "hacker" discord ๐Ÿ˜‚

frigid ember
#

hey mx

neat oxide
#

@fallen aurora I'll look it up in a bit quite busy

round igloo
#

Yeah I do @neat oxide

fallen aurora
#

np, thanks

neat oxide
#

@lapis plinth your list of valuetop exceeded it's entry count

fallen aurora
#

hey _fredde

lapis plinth
#

what does that mean?

frigid ember
#

wait why did it

neat oxide
#

@frigid ember I'm gonna murder you

frigid ember
#

hahaha

fallen aurora
#

nice, but i have seen it already

frigid ember
#

sry mx

fallen aurora
#

๐Ÿ˜ฆ

neat oxide
#

@lapis plinth it means your trying to lookup entry number 50 while only 10 exists

lapis plinth
#

ahhh ok

neat oxide
#

Use a for each loop on the list instead

lapis plinth
#

kk

neat oxide
#

@round igloo is that method bound to a command does it get executed

#

@frigid ember lemme take a look

#

@frigid ember mind putting that error on

#

?paste

worldly heathBOT
round igloo
#

It gives me netherrack but just plain netherrack

neat oxide
#

@round igloo odd did you apply the metadata to the items rack?

#

Itemstack

round igloo
#

I tihnk so

neat oxide
#

You did I don't know that code should work your sure your calling that method

frigid ember
#

?paste

worldly heathBOT
round igloo
cerulean musk
#

guys i got sometimes lag spikes . This timings is good ?

frigid ember
#

its citizen

#

s

cerulean musk
#

what ?

#

citizens makes lag ?

frigid ember
#

apparently

neat oxide
#

I'm going to bed someone else will help you eventually

naive goblet
#

Sleep well ๐Ÿ˜ฎ

mild nebula
#

Hey! i currently got a couple of HashMaps that i want to access from different classes, (usually 1 or two). but in order to modify values on it i'd need to use DI or make the hashmap private static and then make a getter (dont like that). Would it be good putting all my hashmaps in my main class (private) and then creating getters for em in order to access them in my other classes? (since most classes i have inject my main class) (that way i could also easily make a cache cleanup task in order to stay organized)

#

any thoughts?

naive goblet
#

Idk if I did something good but back in the days I did store maps in a map since I eventually got too many of them. But using DI with a public getter should be good enough.

mild nebula
#

would it be appropriate to put all of em in the main class though?๐Ÿค” i've got like.. 20 of em (maybe a couple more)

tender crest
#

Putting 20 static hashmap into main class is not organized

naive goblet
#

Hmm I mean you could eventually have those in another class

mild nebula
#

i dont mean static

naive goblet
#

^

brittle jolt
#

Anyone familiar with dynmap plugin?

mild nebula
#

I said private hashmaps with public getters in the main class,

#

Then using DI to get em

#

(since most of my classes inject my main class)

gleaming dune
#

hi everybody! new to the server so hopefully this is allowed. i'm having problems where trying to go through an end gate crashes my server. I tried on single player and it works. i searched end gate on the server and it looks like someone else had the same problem but it wasn't resolved. can anyone help me? i have crash reports but i'm not sure how to share them

naive goblet
#

I did something like Map<Class<? extends AbstractMapWrapper>, AbstractMapWrapper>

#

That would eventually take away the lines

tender crest
#

DI? still does not make a difference, it is not organized at all

naive goblet
#

Depends what you mean by organized

tender crest
#

you should create classes to group them or something at least

#

20 hashmap is too much for any class

frigid ember
mild nebula
#

Dependency Injection, by organized i mean. in order to get - add data. i'd just inject my main class to the class that i need the hashmap in. get data. add data e.t.c. and instead of injecting a (example) listener class that i need to get a hashmap from

tender crest
#

you should split if any of your class has that much data

neat oxide
#

@frigid ember in sleeping ask someone else

#

Im

naive goblet
#

nikv2 if you red what I said I did make 1 map where I stored all eventual maps

#

then I had a method like this java public <T extends AbstractMapWrapper> T get(Class<T> clazz) { return (T)map.get(clazz); }

tender crest
#

Why would you want to store all maps in same place?

frigid ember
#

anyone else getting error 404s on the spigot docs?

tender crest
#

nope

naive goblet
#

Huh wym in the same place? It's a map lol

#

Yes potato I do

frigid ember
#

hmm ok so its not just me

gleaming dune
#

hi everybody! new to the server so hopefully this is allowed. i'm having problems where trying to go through an end gate crashes my server. I tried on single player and it works. i searched end gate on the server and it looks like someone else had the same problem but it wasn't resolved. can anyone help me? i have crash reports but i'm not sure how to share them
@gleaming dune can anyone help me?

tender crest
#

nikv2 if you red what I said I did make 1 map where I stored all eventual maps
@naive goblet Did I misunderstood? can you explain?

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.

naive goblet
#

evrimsen what did you misunderstood to be specific?

tender crest
#

1 map where I stored all eventual maps so you are saving all maps in this map?

naive goblet
#

Idk if I did something good but back in the days I did store maps in a map since I eventually got too many of them. But using DI with a public getter should be good enough.

#

And idk why you can't understand that sentence.

#

If you have a point please tell me.

tender crest
#

chill I was just trying to understand your approach thus asked why you would want to do that

naive goblet
#

It's not really a why but I told him I used to do it

tender crest
#

cool lol I am not criticizing or anything just wondered

naive goblet
#

But if you want an answer I do like compactness and oneliners

tender crest
#

isnt it makes things harder to remember compared to separate maps etc

frigid ember
#

I need some help :/
I'm completely new to plugins but I want to but some spigot anticheat on my server.
Plz ping me if you can help.

naive goblet
#

Depends I mean eventually having getters for every map in a seperate class can be more maintainable. Though at that time the maps served similar purposes.

#

Mr. Neat maybe NoCheatPlus or something which shouldn't be too hard to set up and it's decent.

frigid ember
#

I'm running 1.16

naive goblet
#

Oh idk if there is any ac that had time updating yet.

frigid ember
#

I didn't see a version for 1.16 on No Cheat Plus

tender crest
#

anyone tried changing item attributes via nbt on 1.16?

naive goblet
#

Through nms?

tender crest
#

ah yea

#

I asked before someone got the same error too

naive goblet
#

Nope

#

What error?

tender crest
#

console: Unable to create attribute: null

#

thats it lol

#

and code have no effect on item

naive goblet
#

Not any st ?

subtle blade
#

uuuuupdate your seerrrrrverrrrrrr

#

Was fixed like < 24 hours after initial release

tender crest
#

I did

subtle blade
#

?bt

worldly heathBOT
tender crest
#

I updated like 5 hours ago but I will try again

fallen aurora
#

I turned off the firewall on my server and its still not working ._.

tender crest
#

just updated with bt and still getting the same error, tried with new and old attribute names(attackDamage & attack_damage)

#

is there a guide for 1.16 changes so I can see if I am doing something wrong?

#

same code was working in 1.15.2 tho

#

any suggestions? like what can I try to do to find a solution?

fair hound
#

On 1.16, are you guys able to use this "ChatColor.translateAlternateColorCodes" in order to change the name of an Item? i can't, it does not do anything, my code used to work on 1.15

sonic pumice
#

is anyone else experiencing server crashes using end gateway

subtle blade
#

is anyone else experiencing server crashes using end gateway
Was fixed 4 hours after initial release. Stop using mirror sites. Use BuildTools (linked above)

#

@tender crest if you're writing a plugin, let's see your code. If you're running a server and can replicate the issue with no plugins, create an issue on the Spigot JIRA

naive goblet
#

evrimsen it should be attack_damage. Idk if you need to put generic. as a prefix though

subtle blade
#

There are no instances where you should be writing out the name of the attribute

#

There is an Attribute enum

tender crest
#
        net.minecraft.server.v1_16_R1.ItemStack nmsStack = CraftItemStack.asNMSCopy(item);
        NBTTagCompound compound = (nmsStack.hasTag()) ? nmsStack.getTag() : new NBTTagCompound();
        NBTTagList modifiers = compound.hasKey("AttributeModifiers")
                ? compound.getList("AttributeModifiers", 10)
                : new NBTTagList();
        NBTTagCompound speed = new NBTTagCompound();
        speed.set("AttributeName", NBTTagString.a("generic.attackSpeed"));
        speed.set("Name", NBTTagString.a("generic.attackSpeed"));
        speed.set("Amount", NBTTagDouble.a(attackSpeed));
        speed.set("Operation", NBTTagInt.a(0));
        speed.set("UUIDLeast", NBTTagInt.a(894654));
        speed.set("UUIDMost", NBTTagInt.a(2872));
        speed.set("Slot", NBTTagString.a("mainhand"));
        modifiers.add(speed);
        compound.set("AttributeModifiers", modifiers);
        nmsStack.setTag(compound);
        item = CraftItemStack.asBukkitCopy(nmsStack);
        return item;
    }```
subtle blade
#

You're using NMS, not API

tender crest
#

yes since there is no way to do this via API?

tender crest
#

for items?

subtle blade
#

That would be ItemMeta, yes

tender crest
#

oh thanks a lot did not know this existed

subtle blade
#

You should be using API, though the reason your NMS was not working is because of the following,

speed.set("AttributeName", NBTTagString.a("generic.attackSpeed"));
Attribute names were remapped to a registry id. It would have been generic.attack_speed

tender crest
#

Tried that too but got the same error

subtle blade
#

Bukkit has an Attribute enum though so it's fine. Best to use it instead

tender crest
#

yea, thanks again

subtle blade
#

o/

mild nebula
#

Choco, i currently got a couple of HashMaps that i want to access from different classes, (usually 1 or two). but in order to modify values on it i'd need to use DI or make the hashmap private static and then make a getter (dont like that). Would it be good putting all my hashmaps in my main class (private) and then creating getters for em in order to access them in my other classes? (since most classes i have inject my main class) (that way i could also easily make a cache cleanup task in order to stay organized)
any thoughts?

sonic pumice
#

\

Was fixed 4 hours after initial release. Stop using mirror sites. Use BuildTools (linked above)
@subtle blade I used the command java -jar BuildTools.jar --rev latest and got 1.15.2

Is this correct?

subtle blade
#

--rev 1.16.1

#

It's not yet latest

#

@mild nebula depends on what all you're storing and why you have more than one map

sonic pumice
#

so did 1.16.1 fix the end gateway problem? I was already on 1.16.1 and it wasnt working

subtle blade
#

More recent versions did

#

The version you were running is ~89 versions out of date, to put things into perspective

sonic pumice
#

alright

subtle blade
#

Literally the version after yours fixed it

#

lol

sonic pumice
#

thanks

mild nebula
#

Most maps store small things like UUIDS , Longs, i've got around 10-15 hashmaps ๐Ÿคฃ and i've made a cache cleanup task that runs every once in a while, clearing un needed data. my problem is that accessing those hashmaps from their classes is a pain..

subtle blade
#

Is there any reason you can't condense a lot of that with a custom object?

#

Things with the same keys?

sonic pumice
#

Do i just replace the spigot jar in my file and its all good to go?

subtle blade
#

For instance, I map a lot of data to a Block but only require one Map because of my object:

public class LockedBlock {

    private Block block;
    private LockSecurityPlayer owner;
    private ZonedDateTime lockTime;
    private String nickname;

    protected ILockedBlock apiWrapper;

    public LockedBlock(Block block, LockSecurityPlayer owner, ZonedDateTime lockTime, String nickname) {
        Preconditions.checkArgument(block != null, "block cannot be null");
        Preconditions.checkArgument(owner != null, "owner cannot be null");
        Preconditions.checkArgument(lockTime != null, "lockTime cannot be null");

        this.block = block;
        this.owner = owner;
        this.lockTime = lockTime;
        this.nickname = nickname;

        this.apiWrapper = initAPIWrapper();
    }

    // etc. getters and setters, etc.

}```
#

Yes, replace the server jar, @sonic pumice

#

You should update with BuildTools like that regularly

#

Once every 3 days or so, perhaps more frequently while 1.16.1 is still in active development

naive goblet
#

Is 1.16.1 still very buggy?

#

Or I mean spigot

subtle blade
#

It's more stable than it was before, but still not stable per se

#

I would consider it stable once it's default

naive goblet
#

Hmm k

subtle blade
#

For the most part, it's runnable though

#

You shouldn't run into many game-breaking issues

fallen aurora
#

@sturdy oar I just noticed on my output from netstat -tulpn it shows that port 25565 is only on tcp6 protocol, not tcp
Do you think that could be causing problems?

edit: i ran with -Djava.net.preferIPv4Stack=true which changed the protocol, but still can't connect...

mild nebula
#

So its basically smth like storing the UUID , LockedBlock on ur hashmap? ๐Ÿค” sorry im a bit dumb

subtle blade
#

I just have a single Map<Block, LockedBlock>, yes

#

I have 2 maps for quicker lookup times depending on how I want to fetch, but you get the idea

naive goblet
#

You look cute lol sry

subtle blade
#

sus

mild nebula
#

i see what u mean now

subtle blade
#

Though really, you're best to handle that sort of stuff in some separate class for the sake of single responsibility. You'll see mine is in a LockedBlockManager

#

I have an instance of that in my main class and a getter

naive goblet
#

I have 2 maps for quicker lookup times depending on how I want to fetch, but you get the idea
HashMap should have O(1) ?

mild nebula
#

Basically each player has their own LockSecurityPlayer object with their own data๐Ÿค”

naive goblet
#

time complexity

subtle blade
#

It does, you're right. Though I fetch blocks both by Block and by UUID (owner)

naive goblet
#

ah

subtle blade
#

Can't have that O(1) lookup time with 1 map in that case. Otherwise I'd have to loop all blocks and generate a collection based on the owner

#

So I keep a Multimap! aPES2_Cheer

naive goblet
#

Hmm MultiLinkedHashConcurrentWeakStrongCollectionEnumMap

subtle blade
#

yes

halcyon snow
#

please don't tell me that actually exists.

naive goblet
#

Nope probs not

#

Would be awesome though

subtle blade
#

Your definition of "awesome" is much different from mine

naive goblet
#

How you define "definition" is also much different.

subtle blade
#

huh

#

aight

naive goblet
#

This is actually kind of different from what I defined it as

subtle blade
#

Yeah that's the real definition lol

naive goblet
#

Chocococo do you have a job?

frigid ember
#

hi there. i bought a plugin. paid for it. got the paypal transaction mail. but its not in my purchased recourses

naive goblet
#

Contact the author

subtle blade
#

Yes, I do. Worked today and will work the next couple

naive goblet
#

What job?

subtle blade
#

Good ole retail

naive goblet
#

Though you were a professional hacker or something.

halcyon snow
#

He programs robots to do the retail for him.

naive goblet
#

Lmao

#

true

#

This is not totally irrelevant from a hacker.

frigid ember
#

How do I increase the view distance for spawned particles?

frigid ember
#

oh thanks

cerulean musk
#

Guys my server start.bat file is "start" . This is right ?
restart-on-crash: true
restart-script: start.bat

languid anvil
#

Hi

#

Good night

#

Hello, good night

This error appears to me when executing the bungeecord commands like "/ bungee, / perms, etc" and it expels me from the server where I am, what can it be? the version? something wrong configured?

https://paste.helpch.at/hequzoxinu.bash

subtle blade
#

Update bungee

#

That bug was resolved 3 days ago

languid anvil
#

The bungee I have is the newest

subtle blade
#

Are you absolutely certain?

languid anvil
#

i use: [INFO] This server is running BungeeCord version git:BungeeCord-Bootstrap:1.16-R0.2-SNAPSHOT:a64c34d:1517 by md_5

#

is correct?

subtle blade
languid anvil
#

but, is there no problem if I use the latest bungeecord and on the servers use spigot 1.8.8?

#

@subtle blade

#

Sorry ping, spigot

pastel condor
#

Youโ€™re on an old build @languid anvil

hardy cedar
#

Can somebody help me with my friken scoreboard

#

๐Ÿ˜

#

Im trying to fix it

#

All the last

#

7 days

#

This is the class

#

There is nothing bad but boom refreshing doesn't work

worn fiber
#

C#?

#

๐Ÿ‘€

languid anvil
#

@pastel condor

#

I want all versions to work, so I ask, if there is no problem using the latest version of Bungeecord and 1.8.8 of spigot

pastel condor
#

@languid anvil 1.8.8 should be supported on the latest build

languid anvil
#

Ok, thank you

hardy cedar
#

@worn fiber

#

No

#

The it's java

#

but uhhh hastebin suck

whole haven
#

If I ran a client using client side only mods like Hwyla or betterFPS, would i be able to join my own spigot server?

hardy cedar
#

Yes

#

It must be fine

whole haven
#

awesome๐Ÿ‘Œ

#

even if they use fabric mod loader?

hardy cedar
#

Idk I have never used "fabric mod loader"

#

Also if u want u can use create server if u want to play with mods and stuff

lone fog
#

Forge will work fine

#

I assume fabric has a client side mod system too, but Iโ€™m not sure

sage summit
#

Im making a plugin that, for example, changes the players rank when they run a command but how would you do this? I don't think you can just run a command because it would only support certain permissions plugins and I can't figure out how I would do this

bleak cipher
#

use Vault

sage summit
#

How would I use it

short tide
#

How do i create a theard?

frosty cave
#
@EventHandler
    public void onPlayerQuit(PlayerQuitEvent event) {
        Bukkit.getOnlinePlayers().forEach((online) -> {
            online.setPlayerListHeaderFooter("\n" + ChatColor.AQUA + "GangSquad Survival Server" + "\n", "\nPlayers online: " + ChatColor.AQUA + Bukkit.getOnlinePlayers().size() + "\n");
        });
    }``` anyone know why this wouldnt work
#

i have the exact code for PlayerJoinEvent yet it doesnt do anything

#

oh wait is it updating the player count while the player is still technically online

halcyon snow
#

you could try running that code a tick later.

frosty cave
#

yeah i fixed it with a - 1 lol

halcyon snow
#

oh or that

short tide
#

How do i create a theard in spigot??

frosty cave
#

theres probably a tutorial on youtube or something

halcyon snow
#

if you want to run some code on another thread, you could use the bukkit scheduler.

marsh hawk
#

Why is blockIterator so weird?

    public final Block getTargetBlock(Player player, int range) {
        BlockIterator iter = new BlockIterator(player, range);
        Block lastBlock = iter.next();
        while (iter.hasNext()) {
            lastBlock = iter.next();
            System.out.println(lastBlock);
            if (lastBlock.getType() == Material.AIR) {
                continue;
            }
            break;
        }
        return lastBlock;
    }``` If i'm looking through water, if the block under all the water is solid, it will return water but if im looking into a deep ocean, it will return null, despite water being a block?
bleak cipher
marsh hawk
#

because the values arent attributed to anything

bleak cipher
#

?????

marsh hawk
#

skills:
- python
- perl
- pascal

#

it should be like this

#

with a proper header

bleak cipher
#

oh so I need more intents

wraith thicket
#

The skin-menu-head-name node has a value. But after that there's some random list that doesn't belong to any path

marsh hawk
#

^

bleak cipher
#

I need 2 more spaces?

#

I'm generating the config by code and thats why I have probs otherwise I know yaml

wraith thicket
#

I don't know how you generated that, but it's not valid YAML

bleak cipher
#

unit tests then are broken cuz with using regular snakeyaml I got no problems

wraith thicket
#

Either

  skin-menu-head-name: # all in one list
    - "%name% 's skin"
    - Left click to set the skin
    - (Keep in mind this skin is being cached and may not be up to date)

or

  skin-menu-head-name: "%name% 's skin"
  some-list-name: # these 2 in a list
    - Left click to set the skin
    - (Keep in mind this skin is being cached and may not be up to date)
bleak cipher
#

whats the difference?

#

except that 1 entry

marsh hawk
#

skin-menu-head-name: "%name% 's skin" is a string value

bleak cipher
#

yes

wraith thicket
#

The difference is that in the first one, all 3 are in one list and in the second one the first is it's own string and then there's a separate list

marsh hawk
#
  skin-menu-head-name: # all in one list
    - "%name% 's skin"
    - Left click to set the skin
    - (Keep in mind this skin is being cached and may not be up to date)``` is a list
bleak cipher
#

wait

#

should I write those list entries also as "whatever"

#

??

wraith thicket
#

I don't know (and probably neither does buoobuoo) what the config is supposed to look like - its your config, you should know

near steeple
#

I am quite new to spigot plugin programming and I am trying to make a mob throw a lingering harming potion at a player.

I tried a few things, none of them working, the most I managed to do was throw a lingering potion with no effect (just the effect particles where there).

I have tried to search up a working solution, and I found this piece of code:

ItemStack potion = new ItemStack(Material.LINGERING_POTION);
PotionMeta potionMeta = (PotionMeta) potion.getItemMeta();
potionMeta.addCustomEffect(new PotionEffect(PotionEffectType.HARM, 100, 0), true);
potion.setItemMeta(potionMeta);
ThrownPotion thrownPotion = enderDragonRider.launchProjectile(LingeringPotion.class);
thrownPotion.setItem(potion);

But it throws this error in the console:

java.lang.IllegalArgumentException: ItemStack must be a lingering or splash potion. This item stack was LEGACY_LINGERING_POTION.

I don't see how this is possible because I wrote Material.LINGERING_POTION when constructing the ItemStack, not Material.LEGACY_LINGERING_POTION

If anyone knows how to make a mob throw a lingering potion towards a player, help would be appreciated

I am using spigot 1.15.2

wraith thicket
#

@near steeple Specify your API version in plugin.yml

karmic sable
#

I always use version: 1.3.2 in plugin.yml

wraith thicket
near steeple
#

thanks, I will try it

karmic sable
#

Oh but is it really needed when its already specified in the pom file (maven) ?

near steeple
#

Thank you so much, it doesn't throw an exception anymore :)

karmic sable
#

Yeah I'll thank you as well for the link, went through it and learned some things

wraith thicket
#

Maven doesn't create your plugin.yml (unless you have a goal that does that)

#

Thus, anything that's in there will need to be defined by you

frigid ember
#

hey,i have a question can i zip full server files but in console it says Acess Deny

solemn grove
#

the net.md_5.bungee.api.chat.BaseComponent doesn't support ChatColor.MAGIC ?

stark oxide
#

Is it possible to generate new worlds in another thread? Trying to do that, I get this exception: java.lang.IllegalStateException: ChunkLoadEvent cannot be triggered asynchronously from another thread.

nimble stump
#

No

#

You canโ€™t

stark oxide
#

okay

fossil shoal
#

@stark oxide not sure, but maybe if you use the p fork

frigid ember
#

my villagers wont change proffession in my server. I summon them with the egg, place down the lectern, they pickup a job and then wont change

#

ping me if you can help

neat oxide
#

Im here to help please send your questions again if you still need help with them and please be patient as im not a superhuman

frigid ember
#

uh

#

my villagers wont change profession in my server. I summon them with the egg, place down the lectern, they pickup a job and then wont change

neat oxide
#

@frigid ember please DM me your plugin list as it looks like a plugin is cancelling the event

tidal mica
#

Guys i have a small question: can a player spoof (or change) the value of player.getFallDistance()?

crimson sandal
#

Heh, BuildTools crashes if your Bukkit folder is completely empty because it can't find the .git repo

neat oxide
#

@tidal mica not easily

#

@crimson sandal Just clear the folder where buildtools.jar is in

tidal mica
#

so without cheats a player can't spoof it?

nimble stump
#

I donโ€™t see how you would spoof anything without cheats

tidal mica
#

XD stupid question...

crimson sandal
#

I'm writing a script so that travis can cache BuildTools, I only wanted to cache Bukkit/CraftBukkit/Spigot folders to prevent them having to be redownloaded every time but seems like I may just have to do that anyway

neat oxide
#

you do

forest plaza
#

someone wrongly marked my issue on the jira as resolved, how do i get reopened?

wraith thicket
#

What's the issue?

wraith thicket
#

It seems pretty clear that your other issue was used instead of this one

karmic sable
#

Does anyone know a good tutorial for using the worldguard/edit api's? The Javadocs are not clear to me; and the latest tutorial I can find is from 2017 and outdated

wraith thicket
#

That plus the javadocs should be plenty to go on

forest plaza
#

the other one is marked as resolved too though

#

they implemented an event call after my first issue, but its not complete

#

so i opened another issue

frigid ember
#

Hey, i have some problems with the Spartan anticheat

neat oxide
#

Hey spigot dev here let me take a look for you

frigid ember
tiny dagger
#

wait 10 minutes

#

vag sure will come see it

frigid ember
#
Ask the SpigotMC community for a fix```
neat oxide
#

@forest plaza The issue has been resolved in deed the PR submitted was approved and implemented on 30/06/2020

tiny dagger
#

well

#

you do seem to miss google lib

frigid ember
#

yea

tiny dagger
#

did you tried other spigot jars?

frigid ember
#

no

tiny dagger
#

well what you waiting then

neat oxide
#

@forest plaza if you believe the issue has not been resolved properly contact the PR creator

frigid ember
#

i must use this spigot....

tiny dagger
#

well this specific spigot

#

misses stuff

forest plaza
#

@forest plaza if you believe the issue has not been resolved properly contact the PR creator
@neat oxide i did message him, he didnt respond

frigid ember
#

and no chance to get this missing sttuff in it?

tiny dagger
#

he would have to build something special for you

forest plaza
#

i even know, why it isnt working properly

tiny dagger
#

without the use of this lib

frigid ember
#

i need a spigot with 1.7 and 1.8 support

tiny dagger
#

why..

#

1.7 is double ded

frigid ember
#

UHC not

#

1.8 = 20 Reddit user

#

1.7/1.8 50

tiny dagger
#

how many of those 1.7 users actually donate to sustain your server?

frigid ember
#
    private void loadData() {
        for (String str : getConfig().getConfigurationSection("").getKeys(false)) {
            UUID uuid = UUID.fromString(str);
            int steps = getConfig().getInt(str);
            Counter.Count.put(uuid, steps);```
#

method

neat oxide
#

๐Ÿคฆโ€โ™‚๏ธ

#

Dude how many times do i have to say this to you

#

go to the forums they are better equipped to help you

frigid ember
#

wtf im not making a ticket for this

#

why would this be a help channel if you would advise people to make a ticket each time

neat oxide
#

Because this is for quick helps not to solve your wanky ass code

#

also your issue is your passing a string "reload" into the UUID parser

#

needless to say "reload" is not a UUID

frigid ember
#

no thats a string

#

well thanks

neat oxide
#

java.lang.IllegalArgumentException: Invalid UUID string: reload

forest plaza
#

so what can i do about my resolved issue thats not resolved?

neat oxide
#

@forest plaza let me talk to parker and blackhole

#

just PM me the details of the issue

#

@subtle blade Did you make PR CB#699?

subtle blade
#

Idk what it is based on number lol

long narwhal
#

I need some help. I just started with making plugins. I want to open a gui and the items in it cant be taken out. Im trying to access the name of the inventory but I don't know if I did it right.

This is what I have rn:

            e.setCancelled(true);
        }```
e is an InventoryClickEvent btw
neat oxide
#

@forest plaza here is claiming you made a error during the implementation

forest plaza
#

@long narwhal may i suggest you create a custom inventory handler and test if the instance of the clicked inventory matches your handler instead of comparing two strings?

neat oxide
#

@long narwhal use .getInventory instead of .getView

long narwhal
#

@long narwhal use .getInventory instead of .getView
@neat oxide getTitle() doesn't exist in getInventory()

neat oxide
#

Dafuq it should

forest plaza
#

no title is always of inventory view

neat oxide
#

derp

#

long time since i tinkered with inventories

#

@long narwhal code should work make sure the title actually matches otherwise it wont work of course

long narwhal
#

this is the inventory
Inventory gui = Bukkit.createInventory(p, 27, ChatColor.GRAY + "Admin Tools");

forest plaza
#

did you log the name and see if its the right inventory?

#

maybe try to strip the name of color and compare it then. but i suggest you use custom inventory handlers instead

frosty cave
#

im having a big brain moment, how would i check to see if there are arguments in a command

#

i tried if (args.length < 1) and if (args[0] == null)

long narwhal
#

maybe try to strip the name of color and compare it then. but i suggest you use custom inventory handlers instead
@forest plaza how do I do that?

tiny dagger
#

args.length > 0

frosty cave
#

alright

forest plaza
#

ChatColor.stripColor()

long narwhal
#

where do I put it?

forest plaza
#

if(ChatColor.stripColor(e.getView().getTitle()).equals("Admin Tools")) {

long narwhal
#

thx

tiny dagger
#

wut

#

that does nothing

forest plaza
#

on second thought, if you just replaced == with equals, it could work too

tiny dagger
#

how can you strip color of a boolean

frigid ember
#

can someone suggest a plugin for 1.15 that can edit item effects like slowness

forest plaza
#

@tiny dagger ChatColor.stripColor(e.getView().getTitle()).

long narwhal
#

if(ChatColor.stripColor(e.getView().getTitle()).equals("Admin Tools")) {
@forest plaza I am still able to take out the items

forest plaza
#

can you pm me your code from the eventhandler?

long narwhal
#

ok

frigid ember
sturdy oar
#

the hell is /backup

#

it's not a Spigot's command

frigid ember
#

its my plugin command

sturdy oar
#

oh ok

#

seems like you're blocking the main thread

frigid ember
#

i mean i try to make all server files .zip to new file

opaque swan
#

Hello

When i write "pl" in console i see all plugins
When i write "pl" in game i see this error in console

[13:18:17] [Netty Epoll Server IO #1/ERROR]: io.netty.handler.codec.EncoderException: String too big (was 38054 bytes encoded, max 32767)

frigid ember
#

lots of plugins

#

lol

opaque swan
#

i don't have a lots of plugins

#

Plugins (73):

sturdy oar
#

i mean i try to make all server files .zip to new file
@frigid ember Are you actually disabling file saves and flushing ?

karmic sable
#

Don't server hosts come with a backup feature

frigid ember
#

no

#

normal java method .close();

#

For output streams

sturdy oar
#

Well be sure that no writing is going on anywhere on the files while making a copy of them

#

you'll just end with corrupt stuff

frigid ember
#

after this happens it crashed

opaque swan
#

Any solution for my problem?

frigid ember
#

as you said

#

the zip is corrupted

#

so you know any methods i can get all server files and make new zip file

#

Java method seems not working

#

can someone suggest a plugin for 1.15 that can edit item effects like slowness

sturdy oar
#

I did make a backup plugin in the past, but I can't share its code

opaque grove
#

i don't have a lots of plugins
@opaque swan did u just say 73 plugins isn't a lot?

sturdy oar
#

as its closed source and not discloseable

frigid ember
#

well i dont code

sturdy oar
#

wut

frigid ember
#

tell me a way i can do it

#

new to spigot

sturdy oar
#

I would

#

but look

frigid ember
#

okey

sturdy oar
frigid ember
#

lol

opaque grove
#

No it isn't

neat oxide
#

@sturdy oar remove the undefined someone screwed up during regeneration of the search index

opaque grove
#

Just replace the first 'bukkit' with spigot

frosty cave
#

can someone help me figure out what im doing wrong with these args

#
if (args.length < 1) {
                sender.sendMessage(ChatColor.RED + "Usage: /control <player> <message | /command>");
            }```
sturdy oar
#

this should return the Server root folder technically

frigid ember
#

oh

neat oxide
#

here

frosty cave
#

when i type /control by itself it says theres an internal error

opaque grove
#

What does the error say

frigid ember
#

i did this lol

frosty cave
sturdy oar
#

Caused by: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 1

frosty cave
#

how do i fix that

sturdy oar
#

you are accessing the array in an illegal index probably

frigid ember
neat oxide
#

yes

sturdy oar
#

idk, but I'm sure that returns the server folder in 99% of servers

frosty cave
#

(args.length < 1)

sturdy oar
#

if args.length == 0

#

is there any other code tho?

frosty cave
#

i mean there is

#

but i dont think its relevant

sturdy oar
#

the error is at line 31

#

of Command_control, which btw, is an unproperly named class

frigid ember
#

makeing an plugin that sends server backup to google drive

frosty cave
#

oh?

sturdy oar
#

Java convention would have it as "CommandControl"

frosty cave
#

oh i see the issue i think

frigid ember
#

server dosnt crash just kicked me off now

#

Ah again crashed

sturdy oar
#

you definetively want to toggle it as false while making a backup

#
public static void stopWorldSave(World w) {
w.setAutoSave(false);
}

Bukkit.getWorlds().forEach(this::stopWorldSave);
#

something like this maybe

frigid ember
#

hmm so i have to stop world save right

sturdy oar
#

you should know that... if you're making a backup plugin

frigid ember
#

oh i understand now

#

Read/Write

#

by server

sturdy oar
#

I wouldn't honestly do it the way you're doing but, if you make it work good for you

frigid ember
#

its working

left plover
#

does anyone know an effective way for stopping players from being able to jump?

sturdy oar
#

yes

#

detect jump,
cancel player move event

left plover
#

when I do that they get stuck in a teleport loop for some reason

fossil shoal
left plover
#

im using the bukkit ones at the moment because the spigotmc.org ones are acting really weirdly

sturdy oar
#

yeah the javadoc got bugged

#

you need to remove undefined

#

idk how they messed up

frigid ember
#

oh finally

#

i finished my plugin

#

thanks to you

#

@sturdy oar

#

does someone have a good 1.7 Spigot with config?

sturdy oar
#

lol wtf

#

1.7 spigot is dead stop using it

frigid ember
#

i need that for UHC bro

fossil shoal
#

there is no spigot 1.7

#

only cb

#

which is illegal

sturdy oar
#

yeah 1.7 sources have been long removed

fossil shoal
nimble stump
#

I have a 1.7 spigot lying around somewhere I think

#

But god knows where it is

#

Itโ€™s Haste @fossil shoal

#

Itโ€™s fast mining/digging

fossil shoal
#

doesn't seem to be in PotionEffectType

nimble stump
#

Iโ€™m saying thatโ€™s what FAST_DIGGING is

#

Itโ€™s haste

fossil shoal
#

oh ok, thanks, I didn't understand at first

little barn
#

Hello, humm.. are there been any server-crash reported since the 1.16.1 ? Or is it just me (and therefore just my server) ? ๐Ÿค’

forest plaza
#

whats the best way to store a lot of player data for a lot of players?

naive goblet
#

Database

#

not plain files

forest plaza
#

what kind of database?

frigid ember
#

Or per player file

little barn
#

Hello, so, my server is crashing kinda randomly with an error that tells me to read it, look for plugins names and if there isn't, to check with Spigot directly.
And that is the case, yesterday there was a plugin name inside of the logs, so I removed the said plugin (it was WorldGuard), but today it happened anew (without any plugin name i could spot)
So hum, i am posting here just the beginning of the error (as it is quite big), if you want to see it all just tell me.
Any help would be appreciated โค๏ธ

#

Done (it's bigger than I thought >.< )

sturdy oar
#

dude

#

please pastebin

little barn
#

oh ! I forgot about that tool !
Alright I go for it, lemme clean this

sturdy oar
#

?paste

worldly heathBOT
little barn
#

I pastebinned it ! :3

sturdy oar
#

I see some CoreProtect and ProtocolLib in the crash

#

it looks like there's some thread blocking operation going on

little barn
#

Oh really ?
Then I should remove them

#

You've good eyes ! :o

sturdy oar
#

I'm not entirely sure but something may be related

#

were your players doing anyting weird?

little barn
#

Well maybe they weren't updated to 1.16 ? ๐Ÿค”

sturdy oar
#

wut

little barn
#

Not as i am aware. There was 4 players online

sturdy oar
#

I mean it could even be a spigot bug, but that's like really rare

little barn
#

Yes I guess so, but I couldn't spot plugin names, so I'm glad you could !
I'll check on the said plugins, it will probably work (since otherwise, you'd have gotten a lot more people talking about it)

#

Thank you a lot for your help anyway, I hope it'll work ! :3

restive raft
#

Hello guys i have server and we have one problem we need authme to 1.16.1 but authme has not creates yet. So i need some similar plugin like a authme

frigid ember
lapis plinth
#

Is there a way to get what entity was interacted with uising PlayerInteractEntityEvent?

#

or PlayerInteractAtEntityEvent

#

oh nvm i got it

undone narwhal
#

Is there a simple way of manipulating the world generation ? (editing biomes rarity, add some blocks, etc)

frigid ember
#

Terraincontrol?

undone narwhal
#

I'll take a look on it

#

thx

jaunty niche
#

im getting a bug on spigot where bees are inside their hives but will not come out no matter what you do, they come out in singleplayer but not in a spigot server

#

is there any way to fix it

small bobcat
#

do you have any plugins?

sturdy oar
#

setVelocity i guess

#

it takes a vector as parameter if i remember correctly

lone fog
#

TerrainControl is old

#

Use open terrain generator :P (Still only for 1.12 though)

sturdy oar
wheat mirage
#

In the latest 1.16 spigot, if I teleport a player during an damageevent, I get the following error:
Caused by: java.lang.IllegalStateException: Removing entity while ticking!

#

This was not the case in 1.12

#

Is there any way to teleport the player during this event without encountering the above error? Idk if this is a spigot bug

#

Pinging @zealous lynx as he's pretty smart

sturdy oar
#

are you teleporting him while he's dead

zealous lynx
#

Afk but whats up?

#

@wheat mirage you can try to schedule the teleport

wheat mirage
#

@zealous lynx That was my thought too, but seemed a little hacky to me.

#

For example what if events occur between the scheduling and the actual teleport that shouldn't occur because the player should be already gone?

#

@sturdy oar No

subtle blade
#

@frigid ember a vector is just a set of 3 numbers, x, y and z

sturdy oar
#

oh ok

subtle blade
#

Someone linked above the setVelocity() method

wheat mirage
#

@sturdy oar Sorry that was a little blunter than I meant it to be, any other theories?

subtle blade
#

What?

wheat mirage
#

setVelocity(new Vector(x, y, z));

subtle blade
#

Yes... you use entity.setVelocity(Vector)...

wheat mirage
#

^

#

It's a set of 3 numbers

#

It can mean a lot in different contexts

subtle blade
#

a vector is just a set of 3 numbers, x, y and z

wheat mirage
#

It's just a tool

subtle blade
#

Get their current direction and .multiply(10)

#

Though as far as I know, thereโ€™s a hard limit on a velocity of magnitude 4

sturdy oar
#

yeah from personal experience

#

if you set an arrow too fast

#

it doesn't go straight anymore

subtle blade
#

There are arithmetic methods on the vector class

crisp widget
wheat mirage
#

Vector has a multiply function.

sturdy oar
#

Vector class just saves you the math behind vectors

#

which i'd honestly recommend to learn tho

wheat mirage
#

Also, on whaty Choco said, don't get their direction if you want to make them faster

#

Use their current velocity to make them go faster in current direction of momentum

zealous lynx
#

@wheat mirage you can schedule it to happen on the next tick. Should be fine

subtle blade
#

Right sorry

wheat mirage
#

@zealous lynx Yeah I think that's my best bet, thanks

mystic yacht
#

Hello everyone, can anyone recommend a plug-in for auto flags in the region for version 1.16.1?

sturdy oar
#

autoflags?

subtle blade
#

Yes that will work fine, Simon

wheat mirage
#

@zealous lynx What I'm actually going to do is set to spectator instantly, then teleport and set back. Hopefully that'll stop any issues with things happening inbetween.

mystic yacht
#

need a plugin so that when a player creates a region, pvp will automatically turn off in it, please help

wheat mirage
#

Services and recruitment on forums @mystic yacht

mystic yacht
#

oh okay thanks

sturdy oar
#

I think you should go for another approach if you want an arrow that is not affected by water

mystic yacht
#

What to do if it spam it in the console?at com.google.gson.internal.$Gson$Types.resolve($Gson$Types.java:383) ~[server.jar:git-Spigot-0287a20-7560f5f]

wheat mirage
#
    @EventHandler(priority = EventPriority.HIGHEST)
    public void onWorldInit(WorldInitEvent e) {
        e.getWorld().setKeepSpawnInMemory(false);
    }```

Spawn chunks in the main world are still being kept in memory :/
#

I'm listening to all chunk unload events and seeing what's going on

#

When I teleport away from spawn - no chunk unloads

#

When I teleport to spawn

#

Loads

#

@frigid ember NMS probably the most reliable, custom arrow projectiles.

mystic yacht
#

help me

sturdy oar
#

Spigot's main class?

wheat mirage
#

@frigid ember Which did you learn first, spigot or java?

#

Just wondering

#

Send your stacktrace

#

@subtle blade Do you know if keepSpawnChunks in memory isn't working atm? Couldn't find anything on jira.

wise spoke
#

hello, i am using the console schedule plugin and i am wondering how to make it use a world reset command. because when i type in the command section worldreset reset world it does not work. do i need to put [CONSOLE] in front of it?

fair abyss
#

was there a worldreset command built in?

wise spoke
#

built in? wdym by this?

fair abyss
#

dont think so, which plugin do you use

#

i mean added by mc bukkit or spigot

built in? wdym by this?
@wise spoke

wise spoke
#

i am pretty sure it was not built in. i added the .jar myself.

fair abyss
#

then am asking its name

wise spoke
#

ConsoleScheduler

fair abyss
#

๐Ÿคฆโ€โ™‚๏ธ

wise spoke
#

yeah ik

fair abyss
#

"worldreset"

#

which plugin adds this

wise spoke
#

yeah thats it my bad

#

Worldreset adds that

fair abyss
#

ok thanks

#

i will tell your problem now

#

i mean probably

#

this command probably maked for runing by player

#

so plugin can understand the world

wise spoke
#

f

fair abyss
#

or you will need to insert name of world

#

are you sure that "worldrest" command supports inserting world name?

wise spoke
#

oh no sorry my bad. just joined the world and it worked fine

#

it wasnt saying the output message

fair musk
#

hello, i was wondering if a plugin existed where it blocked the tab autocomplete for every command except the ones people have access to

fair abyss
#

"people access to"

#

plugin cant understand this automaticly

#

cus theres no way of it

#

i mean none of plugin uses permission in plugin.yml so its impossible

#

if theres- then you will have to tell the plugin which command it should block

fair musk
#

I mean some big servers have a way of sending an 'unknown command' message when people try to use commands they don't have access to

fair abyss
#

simple way is

#

change no perm message to that

fair musk
#

oh

#

alright ty

fair abyss
#

its simplest way

#

u can also edit spigotyml bukkit yml paper yml for more c ustomize

fair musk
#

yeah i get it thanks

fair abyss
#

and you can edit some messages in jars

wheat mirage
#

Re-iterating: e.getWorld().setKeepSpawnInMemory(false); does not work in 1.16 it seems

fair abyss
#

so make a ticket

#

or check is it already created

zealous lynx
#

@wheat mirage keepSpawnChunks works, you just need to early init your plugin

wheat mirage
#
    public void onWorldInit(WorldInitEvent e) {
        e.getWorld().setKeepSpawnInMemory(false);
    }``` isn't valid for the main world due to mc's early loading?
#

It's the same reason world-container broke ah

#

I don't think early init will work for that

fair abyss
#

first of all highest will run last

wheat mirage
#

I'll stick it in my onEnable

#

Yeah king I know that

fair abyss
#

then is it spigot's event=

zealous lynx
#

ya just add load: startup to the plugin.yml file

fair abyss
#

and if im right there was "onload" method

#

not sure that it is javaplugin's method

#

chech it

wheat mirage
#

@zealous lynx Plugin's too big to do that with guarantee of no issues from it, I'm just going to iterate over getWorlds() in my onenable

#

Same result right?

#

(and keep the WorldInitEvent ofc)

fair abyss
#

is it normal world?

#

or generated by other plugins

wheat mirage
#

Just the main minecraft world

delicate shuttle
#

I'll wait

fair abyss
#

why not just use builtin feature

wheat mirage
#

(Where the bug errors anyway)

zealous lynx
#

back when i was adding spawn chunk disable to my config it seemed like setKeepSpawnInMemory() doesn't do anything after spigot is finished initializing everything

torpid field
#

how do i kill an entity?

zealous lynx
#

remove() it

torpid field
#

does remove() drop its loot?

zealous lynx
#

no

fair abyss
#

actually depends on when you kill

stuck stump
#

Is there a http api for getting a plugin by its version? (i.e., similar to Maven. )

fair abyss
#

in old versions if you kill it when server shutting down it drop loots

zealous lynx
#

ah, had no idea about that

fair abyss
#

killing entity ondisable isn't secure

true anvil
#

I have a config where i have 2 seperate guis made, I already load them etc, but i want to make a it change every 24h, so like GUI A is in for 24 hours then GUI B replaces GUI A how would i do that?

wheat mirage
#

Seems the main world is loaded before spigot gets anything going

zealous lynx
#

you need load: startup

wheat mirage
#

So even startup is too late

fair abyss
#

@wheat mirage use builtin feature

zealous lynx
#

no it isn't my plugin does it just fine

wheat mirage
#

KingOf0, no thank you

zealous lynx
#

unless the newest build breaks it

fair abyss
#

@true anvil check runnables

wheat mirage
#

@zealous lynx what version are you on? This seems to have started in 1.15

delicate shuttle
#

Need some help getting started.
I just installed spigot for a server I started hosting last week. I've used spongeForge before for a 1.12 modded server and cauldron back when that was relevant, so I'm kind of familiar with the process of installing an alternate jar and getting addons... but at the same time I'm having trouble navigating to find what I need as far as plugins. Is there a way to filter the hordes of plugins in the resources section of the site beyond category, e.g. by game version? Search terms and category is not sufficient for narrowing down over 1000 plugins (especially when most categories have over 1000 plug-ins themselves)

wheat mirage
#

Regardless, my fix seems more reliable

fair abyss
#

pls dont spam

#

we already see this message

wheat mirage
#

Iterating over worlds in OnEnable is a better solution

zealous lynx
#

1.15 works great, im on CraftBukkit version git-Spigot-beb7d47-145921e (MC: 1.16.1) (Implementing API version 1.16.1-R0.1-SNAPSHOT)

#

still works

true anvil
#

ok

wheat mirage
#

Not bad, seems interesting to me gizmo

#

Thanks

subtle minnow
#

is it necessary to pregenerate the nether in 1.16.1?

delicate shuttle
#

If you're talking about my message, I removed it @fair abyss
I decided to edit it before sending it again

fair abyss
#

probably new chunks will be 1.6.1 nether

#

old will still old

subtle minnow
#

i mean i've never pregenerated the nether before

#

(1.12.2->1.15.2)

#

but new biomes etc.. seems like i need to

fair abyss
#

did you ever gone to nether?

subtle minnow
#

what do you mean

#

yeah

fair abyss
#

so some chunks are generated with 1.12.2 right?

#

they will keep same

subtle minnow
#

it's a new world

fair abyss
#

and new chunks will be 1.16.1 probably

#

if its new world how did you go nether

#

and why you want to pregenerate

#

i confused now

#

if you have old world, created chunks will be same
new created chunks will be have new biomes

if its not old and just created now
just delete it and it will recreate with 1.16.1 features

#

i mean probably didnt try ever in nether

zealous lynx
#

iirc i used worldborder to pregen chunks before

#

but not necessary

delicate shuttle
#

Any advice on sorting through the resources section like I was asking? In particular I'm looking for some sort of essentials plugin and a permission manager

wheat mirage
#

@zealous lynx Just tested with an unload event that logs whether the world has setKeepSpawnChunksInMemory enabled

#

Spawn chunks aren't getting unloaded ,but the flag is false

pastel condor
#

@delicate shuttle luck perms and essentials x

wheat mirage
#

More importantly

#

Even when the server goes offline

#

The chunkunloadevent is never called

zealous lynx
#

are you registering your events properly?

#

it is def called for me

wheat mirage
#

They're logging

#

so yeah

zealous lynx
#

i haven't directly proven it still works in 1.16, but:
on startup it doesn't do the 0% - 100% when loading

wheat mirage
#

Basically i'm logging this

zealous lynx
#

so i figured it was still working

wheat mirage
#
[13:15:21] [Server thread/INFO]: false
[13:15:21] [Server thread/INFO]: CraftChunk{x=-5z=15}
[13:15:21] [Server thread/INFO]: false
[13:15:21] [Server thread/INFO]: CraftChunk{x=-7z=15}
[13:15:21] [Server thread/INFO]: false
[13:15:21] [Server thread/INFO]: CraftChunk{x=-6z=15}
[13:15:21] [Server thread/INFO]: false
[13:15:21] [Server thread/INFO]: CraftChunk{x=-9z=15}
[13:15:21] [Server thread/INFO]: false
[13:15:21] [Server thread/INFO]: CraftChunk{x=5z=15}
[13:15:21] [Server thread/INFO]: false
[13:15:21] [Server thread/INFO]: CraftChunk{x=3z=15}
[13:15:21] [Server thread/INFO]: false
[13:15:21] [Server thread/INFO]: CraftChunk{x=4z=15}
[13:15:21] [Server thread/INFO]: false
[13:15:21] [Server thread/INFO]: CraftChunk{x=6z=15}
[13:15:21] [Server thread/INFO]: false
[13:15:21] [Server thread/INFO]: CraftChunk{x=7z=15}
[13:15:21] [Server thread/INFO]: false
[13:15:21] [Server thread/INFO]: CraftChunk{x=10z=16}
[13:15:21] [Server thread/INFO]: false
#

Boolean whether the world has spawn chunks in memory enabled

#

And the chunk

#

I never see any with both x and z < 5

delicate shuttle
#

Thanks @pastel condor

pastel condor
#

Yup no problem

wheat mirage
#

@zealous lynx No idea why, is there a flag in the server to set? The code just refuses to work

zealous lynx
#

for testing i put code in a timer, before i log in it says:

[13:23:26] [Server thread/INFO]: number of loaded chunks: 0
#

i will log in now

#
[13:24:58] [Server thread/INFO]: number of loaded chunks: 729
#

now i log out

#
[13:25:21] [Server thread/INFO]: number of loaded chunks: 0
wheat mirage
#

Send me over the code and I'll try it myself

zealous lynx
#

the number im outputing is the length of the array returned by the world's getLoadedChunks()

#

i didn't make a tiny plugin for testing, i just added code to my main plugin, if you want i can make a tiny one that just disables spawn chunks the same way my plugin does

wheat mirage
#

I just meant the log task

#

Sec I'll add one

zealous lynx
#
@EventHandler(priority=EventPriority.HIGHEST)
public void onWorldInit(WorldInitEvent evt)
{
  if(Config.DisableSpawnChunks)
  {
    Main.doInfoMsg(Main.ConPre + " Disabling Spawn Chunks For \""+evt.getWorld().getName()+"\"");
    evt.getWorld().setKeepSpawnInMemory(false);
  }
}
#

this combined with: load: startup in the plugin.yml

wheat mirage
#
            w.setKeepSpawnInMemory(false);
        }

        Bukkit.getScheduler().runTaskTimer(this, () -> {
            Bukkit.broadcastMessage("Loaded: " + getMainWorld().getLoadedChunks().length);
            Bukkit.broadcastMessage("Force Loaded: " + getMainWorld().getLoadedChunks().length);
        }, 0, 20 * 5L);
#

In onEnable

#

I'll see what it gives

zealous lynx
#

(ignore my odd way of doing the output message in that code btw)

wheat mirage
#
[13:31:48] [Server thread/INFO]: Force Loaded: 529
[13:31:49] [Server thread/INFO]: Liquake issued server command: /hub
[13:31:49] [Server thread/INFO]: Liquake lost connection: Disconnected
[13:31:53] [Server thread/INFO]: Loaded: 529
[13:31:53] [Server thread/INFO]: Force Loaded: 529
>
#

;-;

#

@zealous lynx Any ideas?