#development

1 messages · Page 40 of 1

hoary scarab
#

^^^

crude gyro
#

Give me a second to check that.

#

It's returning false.

icy shadow
#

well then

crude gyro
#

Wait did you mean .unloadWorld() or .delete()

hoary scarab
#

Unload all force loaded chunks and check chunks with plugin tickets.

icy shadow
#

i meant unload

#

otherwise i wouldve said delete

crude gyro
#

Ok give me another second.

shy canopy
#

Probably easier debug if you add message to worldunload event

crude gyro
#

I will try that because for some reason Bukkit.unloadWorld isnt returning anything.

icy shadow
#

i find that unlikely

crude gyro
#

I did:

boolean test = Bukkit.unloadWorld(worldName, true);

Maybe i debugged it wrong but not sure.

shy canopy
#

Remeber you can't unload world (world you specified in server.properties)

crude gyro
#

Yep i know. and I think it forgot to add my world in my worlds.yml just now but in the event, it did trigger but still didnt delete the world folder

#

So, it did unload the world but it didn't delete the world folder.

shy canopy
#

How you delete the file?

#

Show code

crude gyro
#

.

hoary scarab
#

The world unloading does take time so you will have to wait for it to unload before running the delete method.

crude gyro
# hoary scarab The world unloading does take time so you will have to wait for it to unload bef...

It said this before the command tried to delete the folder:

[21:45:43 INFO]: [ChunkHolderManager] Waiting 60s for chunk system to halt for world 'test'
[21:45:43 INFO]: [ChunkHolderManager] Halted chunk system for world 'test;
[21:45:43 INFO]: [ChunkHolderManager] Saving all chunkholders for world 'test'
[21:45:43 INFO]: [ChunkHolderManager] Saved 0 block chunks, 34 entity chunks, 0 poi chunks in world 'test' in 0.01s
shy canopy
crude gyro
#
if (!worldFile.delete()) {
  sender.sendMessage(ChatColor.RED + "Failed to delete the world folder!");
  return true;
}
shy canopy
#

You just unload world. Unloading world doesn't delete files

crude gyro
#

worldFile.delete()??

shy canopy
#

Not work

crude gyro
#

Why?

dense drift
#

if you want temp worlds, e.g. for minigames, you should look into slime world

crude gyro
#

No, I don't want temp worlds.

shy canopy
hoary scarab
#

This was from my old skywars plugin. (After I kicked the players from the world.)
Wouldn't work if world folder was in another location

Bukkit.unloadWorld(args[1].toLowerCase(), true);

Bukkit.getScheduler().runTaskLater(this, new Runnable() {
    public void run() {
        new File(args[1]).delete();
    }
}, 40l);
crude gyro
#

Hmm.

shy canopy
#

I personally like use fileutils for deleting world files

crude gyro
hoary scarab
crude gyro
#

Really? Odd.

shy canopy
#

World deleting is actually pretty simple. World create without lagg is hell 😄

hoary scarab
#

@crude gyro also set the boolean in the unload method to false. You're deleting the world you don't need to save it.

hoary scarab
crude gyro
#

Ok ok.

hoary scarab
#

And its not really good code xD Its an entire skywars plugin coded in 4 classes lmfao

crude gyro
#

Yeah, better than mine. All my code is in 1 file currently.

#

(Will separate later.)

hoary scarab
crude gyro
#

Too lazy.

#
Bukkit.unloadWorld(world, true);
File worldFile = new File(Bukkit.getWorldContainer().getPath(), world.getName());
final boolean[] deleted = { false };
Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
  public void run() {
    deleted[0] = worldFile.delete();
  }
}, 40L);

if (!deleted[0]) {
  sender.sendMessage(ChatColor.RED + "Failed to delete the world folder!");
  return true;
}

Still didn't work or i did something wrong again.

#

Reason i made the boolean an array: My IDE showing colors give me eye pain.

hoary scarab
#

Saving the world takes forever in the latest versions of minecraft.

crude gyro
hoary scarab
#

Welp... Could do it yourself...

public void worldDelete(File file) {
    for(File f : file.listFiles()){
        if(f.isDirectory())
            worldDelete(f);
        f.delete();
    }
}
kind granite
icy shadow
#

but also using boolean would be an error

#

which is presumably what they mean

dusty frost
#

AtomicBoolean 😌

minor summit
#

not like doing that thing with the boolean would work at all in this scenario

icy shadow
#

?

dusty frost
#

something something callback

#

what does this xD mean exactly here

hoary scarab
dusty frost
#

if only there were a way to reply to relevant information when posting a message in a discord channel

#

would be very useful in times like these!

hoary scarab
dusty frost
#

ok?

hoary scarab
#

So since the conversation still contained the reference A reply wasn't really needed

dusty frost
#

i beg to differ, but sure

hoary scarab
#

Well you joined the convo late so 🤷

crude gyro
# hoary scarab Welp... Could do it yourself... ```java public void worldDelete(File file) { ...
                            Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
                                public void run() {
                                    private void worldDelete(File file) {
                                        for(File f : Objects.requireNonNull(file.listFiles())){
                                            if(f.isDirectory())
                                                worldDelete(f);
                                            f.delete();
                                        }
                                    }
                                    worldDelete(worldFile);
                                }
                            }, 40L);

Is this what i am supposed to do because it's giving me errors. ('file' has private access in 'org.bukkit.plugin.java.JavaPlugin')

hoary scarab
#

You place it elsewhere in the class

crude gyro
#

Got it down to 1 line:

Bukkit.getScheduler().runTaskLater(plugin, () -> worldDelete(worldFile), 40L);
crude gyro
#

It deleted everything inside the folder.

#

But the world folder is still a thing.

#

I guess yeah it did?

hoary scarab
#

Odd. I guess at this point try increasing the delay.

crude gyro
#

I don't think that function was supposed to delete the world Folder

#

but everything inside it.

hoary scarab
#

Ah yeap. Sorry. Add file.delete(); after the loop

crude gyro
#

Yeah, it's working but I'm trying to find a way to make it more compact.

#

Thank you though.

cinder hare
#

For some reason, the entire code fails when i try to load a yml file

here's the error

Could not pass event PlayerJoinEvent to TrackingCompass v1.0-SNAPSHOT
org.yaml.snakeyaml.constructor.ConstructorException: could not determine a constructor for the tag tag:yaml.org,2002:java.util.UUID
in 'reader', line 4, column 17:
PlayerTracking: !!java.util.UUID 'b3eedd52-d512- ...
^

Here's the code

File tplayerdata = new File("plugins/TrackingCompass/UserData/"+UUID.fromString(userdataconfig.getString("PlayerTracking"))+".yml");
FileConfiguration tplayerdataconfig = YamlConfiguration.loadConfiguration(tplayerdata);

tight junco
#

Why do you do /plugins/TrackingCompass

#

may be completely irrelevant but still

wild sundial
#

this is probably very stupid but is it possible to make my custom bow behave like it has the infinity enchantment but without the enchantment being visible?

icy shadow
#

yes

broken elbow
#

@wheat carbon fix please

dusky harness
twin olive
#

Looking for a long-term developer, paid hourly or per project. 1.19.3 event system.

icy shadow
raw cosmos
#

Can anyone help me with port forwarding because for some reason on my router it doesn't want to port forward even with my settings

proud pebble
#

afaik you should only be saving privitive values and strings, such as the number types, string, char, boolean, etc

tight junco
cinder hare
#

userdataconfig.set("PlayerTracking",toString(tplayer.getUniqueId()));

tight junco
#

what is that toString method

#

UUID has a toString method in it

cinder hare
#

oh my fucking god

#

thanks

raw cosmos
#

Does anyone know anything about mineos?

river solstice
#

I don't

wary spindle
#

I fixed it, just had to actually check what the errors said. For tags for example, just use sender, as you partially said. For the rest, just use sender.getUniqueId()

atomic trail
#

I'm so confused why this config doesn't update. I set the value with this config.set(uuid, playtime); which I have tested, and the code is indeed being run.

And then I save using this

        playtimeFile = new File(path);
        config = YamlConfiguration.loadConfiguration(playtimeFile);

        try {
            config.save(playtimeFile);
            LOGGER.warn("Playtime config saved");
        } catch (IOException e) {
            LOGGER.error("Playtime could not be saved");
            e.printStackTrace();
        }

I'm clueless what to debug, as this exact code works for another file, just with a different path ofc. The file is created and everything, but just doesn't update.

dense drift
#

You need to load it again after you save it

atomic trail
#

As well as before?

atomic trail
#

Ah yeah I only load after now, and it works

#

Thanks

crimson portal
#

can someone help me to fix that only i get the package, but the otherplayers need that package too

@Override
                        public void onPacketSending(PacketEvent e) {
                            Config config = new Config();
                            Player p = e.getPlayer();
                            
                            if(config.getPlayerVanishedList("de.command.vanished") != (null)){
                              
                                if(config.getPlayerVanishedList("de.command.vanished").contains(p)){
                              
                                    e.setCanceled(true);
                                }
                            }
                        }
river solstice
#

My question is why are you storing vanished players in a 'config' (yml) file

#

"Main" 💀
.log(1) ... 💀

crimson portal
pure crater
merry canopy
pure crater
#

When I printed the json twice, the second printout is the same json

#

Though actually, when I print it out it goes like

Promise { <pending> }
Successful log in!
{
  result: 'success',
  clientid: '1',
  serviceid: '',
  pid: '',
  domain: '',
  totalresults: 0,
  startnumber: 0,
  numreturned: 0,
  products: ''
}
#

I think the Promise is the first print out and the json is coming after (from the await) somehow

#

I'm just not sure how to fix it

merry canopy
#

I know in java you have thenAccept when using async idk if that's a thing in js also.

#

Second, let me look up

#

Remove the return method

#

return json make it just json

pure crater
#

yeah some stuff is different in js

#

let me test

merry canopy
#

json.send?

#

I am redding this

#

It something has to do with await or the thing you're returning but pretty sure like you said, it's returning before it grabbed the json

pure crater
#

I'm not entirely sure how Promise works, but this is the code when the request method is called

        return fetch(url, request)
            .then((response) => response.json())
            .then((json) => {
                return json
            });
#

i think it returns the fetch promise first

#

but for some reason

#

im not sure tbh

#

it returns promise first then the json obviously

merry canopy
#

Hm

#

What if you do

#

return response.json and remove the rest?

pure crater
#

that wouldn't return the json though

merry canopy
#

Since it's the same json

pure crater
#

that would just return the response object

merry canopy
#

No

#

You're doing .json so it should return the json

pure crater
#

oh nvm i read your code wrong

proud pebble
#

also cache the results instead of constantly loading and saving the values

pure crater
#

json() is also another thing of its own

#

you have to wait for it to finish

#

idk if that makes sense

merry canopy
#

Oh

#

is thenApply a thing?

pure crater
#

that's then

#

ik in java completablefuture has thenApply

#

but i think the await/async stuff is a bit different in js

#

im not sure tho tbh

merry canopy
#

This is so weird when I look at the code on the docu

#

OHHH

#

I see what is happening

#

Yes try this first

pure crater
#

I tried it but it gives the same result

merry canopy
#

Also with that?

pure crater
#

Yeah

merry canopy
#

Uh

pure crater
#

wait one second

merry canopy
#

Mk

pure crater
#

If I keep whmcs.js as it is

#

and replace the method with

async function getProducts(clientid) {

    const whmcs = new WHMCSRequest()
    const params = {
        action: 'GetClientsProducts',
        clientid: clientid,
    }

    return whmcs.request(params)
}
#

and change the console.log to be

getProducts(1).then((res) => {
    console.log(res)
})
#

it does print it out

merry canopy
#

Hmm

#

So that works?

pure crater
#

yes

merry canopy
#

So that's good right

pure crater
#

i think honestly

#

it may be better to just use the promise

#

rather than block

#

the thing is going to be async anyways because its node cron scheduled api calls

merry canopy
#

Yeah

merry canopy
#

Anyone have a plugin request I should make and release at spigot mc

torpid raft
#

anticheat plugin which secretly runs /op Ivan8or

marble nimbus
#

Heeelloo,
quick question, is it possible to re-add the __cfduid cookie cloudflare used to set?

river solstice
#

@pure crater you have to use 'await' keyword

#

Else you're returning the promise itself, not the result

merry canopy
#

Is there a way i can make PlaceholderAPI expansion return Component?

dense drift
#

No

#

The closed would be to deserialize the components as a MiniMessage string if the plugin where you want to use the placeholder supports mini

minor summit
river solstice
#

if you return (promise (blah => promise logic)), then you will get a promise back
whereas return await promise(...) or
if you return promise(...) and do promise().then(blah => , then its fine

modest raven
#

Hi,

Is there anyone that is able to help me regarding the Vault plugin API?

neat pierBOT
#
FAQ Answer:
» Give the helpers some details
» Ask suitable questions
» Be polite
» Wait

Source

tall field
#

Is the method Bukkit.getServer().sendPluginMessage(plugin, server, message) available in all versions of Spigot?

minor summit
#

yes

raw cosmos
#

can someone help me with port forwarding on ubuntu server?

dusky harness
raw cosmos
dusky harness
#

iirc ufw is a wrapper for iptables

#

so you shouldn't be using both

#

idk how it works if you use both

raw cosmos
#

Ohh

#

Is there a way i can remove the iptables then?

dusky harness
#

I think ufw requires iptables, but I'm not sure what happens if you setup iptables and then ufw later on

dusky harness
#

i've never used iptables so I'm not sure how

#

also, for me, the VPS I used (Oracle) required opening another firewall on the website too

#

so make sure to check if yours does too

raw cosmos
#

Yeah ive used oracle but im self hosting

dusky harness
#

ohhhh ok

#

port forwarding itself is the same across all devices but its just the firewall that needs to be opened on ubuntu

raw cosmos
#

Dont i need to port foward on my isp?

dusky harness
raw cosmos
#

Yeah I've got spectrum and they have been such a pain gotta call there support again

neat pierBOT
#
Available Plugins/Services for /Links:

actionannouncer, advancedcustommenu, arcanevouchers, areashop, autosell, chatinjector, chatreaction, chatreactionplus, citizens, craftbook, crazyauctions, crazycrates, deluxechat, deluxecommands, deluxejoin, deluxemenus, deluxetags, essentialsx, ezblocks, ezprestige, ezrankspro, fastasyncworldedit, fawe, featherboard, fishslapper, frozenjoin, globalholders, griefprevention, guihelper, guilds, headdatabase, holographicdisplays, hyperverse, infoheads, inventoryfull, itemmanager, javascript, jobsreborn, kiteboard, levellingtools, luckperms, mastercooldowns, materials, mcmmo-classic, mcmmo-overhaul, messageannouncer, minecrates, nuvotifier, oneversionremake, papermc, papibot, piggybanks, placeholderapi, playersettings, playertags, plotsquared, pouches, protocollib, rankupholograms, spoof, tempmotd, teupgrades, tokenenchant, tokenmanager, updatechecker, viaversion, voteparty, worldedit, worldguard

dusky harness
#

I use TCPShield 🤷
they only allow 3 domains/subdomains now 🥲

#

when it was smaller it was unlimited 😔

stuck canopy
#

does the World view distance override Client's view distance?

dense drift
#

If the view distance of the client is lower, no

stuck canopy
#

k so it overrides it when its higher than the World's view distance

river solstice
#

Client view distance wont be higher than what the server side limit is

dense drift
#

The view distance of the client is limited by server's. If the server view distance is 6 and client's is 10, then it will be limited to 6.

stuck canopy
#

ah I see

river solstice
#

You cant ask server more than it's limit, but you can obviously ask less

stuck canopy
#

unrelated to view distance

dense drift
#

Do you do anything with BlockPlaceEvent and AsyncChatEvent?

stuck canopy
#

I am setting the BlockData in AsyncChatEvent

#

oh wait do I need to run it async too?

#

yep, its fixed now

crude gyro
#

Are there any existing commandhandlers that are public?

tight junco
#

mattframwork is the most commonly recommended

dense drift
#

triumph-cmds*

tight junco
#

same thing

crude gyro
marble nimbus
#

Heyo Friends,

I am currently working on a vod platform and I am struggling with the chat stuff.

The goal is to display the chat messages in sync with the player, while also keeping a buffer of the last 50 messages.
Rewinding and going forward (seeking) should also be possible

I have a few questions which can't seem to find a good answer for:

  1. how should I actually load the chat?
    1.a should I just download the whole Json (8h stream = 2.1mb JSON)
    1.b maybe ask the API to give me the message at timestamp x + the next 25 so I don't flood the api with requests
  2. How should I handle seeking? (an Idea was: dump the buffer, ask api or something for the current message of timestamp x + the last 50)
stuck canopy
#

what am I doing wrong here?

proud pebble
stuck canopy
#

MultiBlockChangeInfo[] changes = container.getMultiBlockChangeInfoArrays().read(0);

dense drift
#

well that means the packet doesn't have any MultiBlockChangeInfo ig

#

are you sure you don't want to use write ?

stuck canopy
#

how should I modify the blocks in MULTI_BLOCK_CHANGE then

stuck canopy
dense drift
#

no you are using read(0)

#

what packet is this? I can't find it on wiki.vg

stuck canopy
#

its a ProtocolLib packet

dense drift
#

whats the id?

#

open the enum constant and there should be an id like 0x52

stuck canopy
#

I think it is Update Section Blocks

#

not sure tho

#

63?

woeful knot
#

if i add {deluxetags_tag} to essential config it wont work

broken elbow
woeful knot
#

okay 😄

neon pewter
#

is this the correct way to slide string ? prefix = content[1][-2::]

dense drift
slender whale
#

Приветствую. Подскажите, знаете ли вы, как сделать в deluxemenus такую систему:

  • Перечисление игроков. Показывает в меню (Забанить игрока), головы, которые = количество игроков на сервере (Допустим 10), в меню будет 10 голов.
    Я слышал, что это возможно реализовать, но нигде не могу найти.
dense drift
#

English only @slender whale

worn jasper
#

If I do something like this in my class

public Button setHoverColor(Color c) {
    this.hoverColor = c;
    return this;
}```
it will return the updated object right? (making it basically a builder)
#

(should probably separate the builder from the actual button...)

#

unsure

odd ore
#

Anyone good at reading crash reports and knowing what's broke/

stuck hearth
#

Someone is

dusky harness
#

?help

neat pierBOT
#
FAQ Answer:
» Give the helpers some details
» Ask suitable questions
» Be polite
» Wait

Source

acoustic shoal
tight junco
#

oui oui baguette

dense drift
#

vodka

acoustic shoal
#

Someone have GUI for Plotsquared?

dense drift
#

wrong channel

acoustic shoal
#

I am bolgarin

#

Where?

dense drift
#

you still have to use the right channel, regardless of your nationality 🙂 #general-plugins

acoustic shoal
#

I wasn't sure about my subject

odd ore
acoustic shoal
wary dust
#

Anyone know how to avoid the issue that when armorstands have setMarker applied to them they dont take any velocity

west socket
#

Not sure if you can, marker has a lot of odd side effects

#

Any specific reason why you need them to be markers?

proud pebble
#

id assume they dont want them to have a hitbox

#

tho tbh maybe using packet only armorstands would be better idk

west socket
#

Yeah, issue with packet only is you need to suppress updates on it

sterile hinge
#

What are you trying?

hoary scarab
#

You have to set a new location with the teleport not before.

river solstice
#
Entity entity = ...; // Your entity instance
Location location = entity.getLocation();
location.setYaw(90); 
entity.teleport(location);
hoary scarab
#

^^^

#

I would clone the location incase you variablized it and want to teleport it back though.

river solstice
#

well judging by him adding +5 to yaw and pitch I think he just wants to make it rotate or smt

austere lynx
#

pls anyone have canva for teams

atomic trail
#

Not really a dev question but more a math question:

How do I write this in one equation where the first number in every parenthesis keeps getting 1 added if that makes sense

river solstice
#

((a • b + b) + x ) + ...?

atomic trail
#

Nvm found it, was looking for this

dense drift
#

what you have there is 45000*4 + 45000*5 + 45000*6

atomic trail
#

Oh yeah true, thank you

dense galleon
#

Does Waterfall support fabric servers?

minor summit
#

n * x + x = x * (n + 1)

minor summit
dense galleon
#

Chat-GPT lied to me

#

💢

minor summit
#

it does that a lot

dense drift
dense galleon
#

Is it possible to dispatch a command to backend servers through a bungeecord plugin?

#

Tryinna figure out how

dense galleon
#

Trying to prevent my paper servers from staying on when Bungeecord is not running

#

Is it a bad idea to have these paper servers ping Bungeecord every 10 seconds, and if it fails to establish a connection have these paper servers shut down?

icy shadow
#

that sounds more like you want some sort of container orchestration

#

because how are you going to have the servers turn themselves back on?

dense drift
#

how can players remain connected if the proxy goes down though?

stuck canopy
#

How can I decode this into x, y, z of the Location?

dense drift
#

im pretty sure it tells you how on wiki.vg

dense galleon
minor summit
#

k8s

dense galleon
#

Huh

#

Is that complicated? It feels like an extra layer of complications on top of learning Bash/tmux/bungee

icy shadow
#

kubernetes

#

uh

#

honestly not sure, never used it

#

but it's the "best" way of doing something like this

dense galleon
#

reading about it, it sounds like it's a LOT for what i'm doing

#

What I mean is that it sounds like something I might want to add later on when I got more to work with

icy shadow
#

Ehhh

#

I’d say it’s much better in the long term than making some janky pinging plugin and having to deploy that on every server

dense galleon
#

Nah I mean i don't need that yet

icy shadow
#

honestly doesn’t even need kubernetes, just put your entire stack in a docker compose file then you can start and stop the whole network at once

dense galleon
#

"Entire stack in a docker compose file" what

icy shadow
#

Are you familiar with docker (compose)?

dense galleon
#

Not really

icy shadow
#

ah

#

are you using ptero?

dense galleon
#

Not sure what that is haha

icy shadow
#

pterodactyl panel

dense galleon
#

I'm using PuTTY and TMUX

icy shadow
#

eek

dense galleon
#

What

icy shadow
#

thats a pretty primitive way of doing it that will get quite cumbersome after you have more than a few servers

minor summit
#

especially if you want to automate stuff

dense galleon
#

Ah

#

I have been using this since I have been learning it at Uni

#

What does Ptero do exactly? Do I connect to the server similarly to how I would with PuTTY but it's got an interface instead of just a console panel?

icy shadow
#

it's like multicraft but good

#

if you ever used that back in the day

dense galleon
#

Never heard of Multicraft either

icy shadow
#

just a panel with console and file access and stuff

#

but it uses docker internally

dense galleon
#

I've never really made a server network before, only ever made plugins and mods

icy shadow
#

ah okay

#

well yeah, the best way (if you care about future proofing) is almost definitely going to be docker-based in some way

#

whether thats ptero or you just manage the containers yourself

#

ptero gives you a nice UI but doesnt give as much fine-grained control

dense galleon
#

Reading about Ptero it looks pretty difficult

tight junco
#

The setup itself is relatively straight forward

dense galleon
#

Idk it don't look simple to me 😂

tight junco
#

to be honest for a large part

#

you're just step 2. copy paste, step 3. copy paste

#

a large majority of the guide is just, paste this line in

icy shadow
#

yeah it's mostly copypasting

#

pretty hard to mess up

tight junco
#

it only goes wrong if you do something out of order or set up something else differently

dense galleon
#

There's this huge warning about how the page is NOT about copy pasting stuff in

#

Haha

icy shadow
#

well because you do obviously have to change the values

#

copy pasting + editing a bit

dense galleon
#

Yeeah it says about "consulting with my operating system's package manager" which I have no idea what it even means

icy shadow
#

if you're on ubuntu or debian, apt

dense galleon
#

yeah i am on ubuntu 16

tight junco
#

16?

dense galleon
#

I think

icy shadow
#

16 💀

dense galleon
#

Trying to figure out what version I am on

icy shadow
#

uname -a

dense galleon
#

Linux GGUSM 4.4.0-193-generic #224-Ubuntu SMP Tue Oct 6 17:15:28 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

#

Not sure where I read my version in all that

icy shadow
#

good question

tight junco
#

maybe lsb_release -a ? hm

dense galleon
#

Ubuntu 16.04.7 LTS

icy shadow
#

that kernel is quite old though so probably also an old OS

#

oof

dense galleon
#

Yeah it's a machine my father won at some work lottery

#

It's got 192GB of RAM and it is generally very powerful

#

But I assume it's pretty old?

tight junco
#

ubuntu 16.04 came out in almost 7 years ago

dense galleon
#

Wow

#

Should I tell him to update it haha

#

is it too old to think of using Ptero

tight junco
#

id have to say probably, or if it can run it, it may not be recommended

dense galleon
#

Hmm okay

tight junco
#

even down to simple security patches in the past 7 years

dense galleon
#

I won't move on to Ptero then till my dad updates it then I guess

#

I can still work on paper plugins and bungeecord plugins though right? Without having to rewrite them once I use ptero

dense drift
#

you wont need to rewrite them to work with ptero

dense galleon
#

Yeah I guess it's mostly just configuration changes and learning how Ptero actually works

dense drift
#

it is a general game panel (and not only games)

icy shadow
#

updating should be pretty easy FWIW

#

you could probably do it yourself in like half an hour

dense galleon
#

Cause what I was thinking was to continue doing things through PuTTY, and once I am more familiar with Linux through this I can move on to using Ptero

dense galleon
#

I don't see why he wouldn't be

#

But i'd rather be sure

icy shadow
#

sure

dusty frost
dense galleon
#

So Ptero is easier to use but provides less control

icy shadow
#

it's not like it's urgent, just something to consider if/when you want to scale up

dense galleon
#

But the longer I wait the harder it will be to scale up?

dusty frost
#

yeah that's the whole point of it

#

it's a cute little web GUI that manages your docker containers basically

#

and has a lot of provided features like a scheduler and network allocations and autochanging configs and stuff

dense galleon
tight junco
#

it can do that

dusty frost
#

to do anything really, it's basically just a cute cron GUI

dense galleon
#

Isn't that all stuff that can be done through bash scripts too though

dusty frost
#

but yeah we use it for server restarts, setting temp permissions and stuff

#

well of course

tight junco
#

but why do it in a script when you can press a button

dusty frost
#

but this feels more reliable and gives you a nice UI to customize lol

dense galleon
dusty frost
#

i definitely don't think manually doing a bunch of shit is worth the "learning experience"

#

maybe because i'm already quite familiar with linux but god that stuff sucks

#

now i've just moved up a level to problems ptero doesn't solve, but it's quite hard to move away from it at this point lol

dense drift
#

what can't ptero do that you need? I'm curious

minor summit
#

ur mum

dusty frost
#

higher level orchestration mostly

#

just stuff like nicely synchronizing my config files between servers via an overlay filesystem, making new servers is a pain in the ass, the web text editor is lacking, etc.

tight junco
#

me when ptero does my mum Starege

dense drift
#

but you can create extensions though think

dusty frost
#

sure, but i'm not going to do much of that in PHP lmao

dense galleon
#

What makes setting up Ptero harder?

#

The bigger the network is the harder it gets I imagine?

dense drift
#

fair Star 🤣

dusty frost
#

oh nothing makes setting up ptero harder

#

setting up new servers is still absolutely easier with ptero than manually

#

it's just still a pain in the ass for the kind of stuff we want to do

icy shadow
#

it’s not like it’s much harder, it’s just more files to move, ports to setup, etc

#

The earlier the better really

dusty frost
#

most of the problems we have are synchronizing various files between all the servers in a composable way

icy shadow
#

even with like 1-2 servers there’s not really any reason not to use it

dense galleon
#

I won't have more than 4 servers for the first couple months anyway

tight junco
#

For the common person running a server ist perfectly fine

dusty frost
#

oh yeah no it's more than fine, it's a superb choice

icy shadow
#

Yeah star has more enterprise-y requirements

dusty frost
#

oh yeah lol

#

when you start looking into k8s, that's when shit gets real lmao

dense galleon
#

Well okay, once I update Ubuntu I will look into Ptero

icy shadow
#

To be honest

river solstice
#

don't be honest

icy shadow
#

Regarding your original question with the shutting down, is it even necessary?

dense galleon
#

Alright major issue

icy shadow
#

Lol

dense galleon
#

I will need to give some context about my living situation so this is clearer

tight junco
#

we're gonna get an orhan backstory now

#

a lore drop

icy shadow
#

“Because kubernetes killed my grandma, okay?”

dense galleon
#

The server is in Sweden, in a house my family and I have there
I am currently going back and forth between Italy and England, as I study in the UK and I come in Italy for the holidays

tight junco
#

thats a lot of traveling

dense galleon
#

It is indeed

#

But what I am saying is

#

If through updating the server's Ubuntu version shit goes wrong, nobody is in Sweden to put it back on its feet

#

And I'd have to fly there to get it back together (or my dad would)

icy shadow
#

Well then the question is if you think it’s worth the risk or not

#

For what it’s worth there is very low risk

dense galleon
#

My dad says that there is some risk still

icy shadow
#

There’s a 90+% chance all will be fine

dense galleon
#

Though he also said that the machine has Apache which can be used as a webserver

#

Idk if that's any good honestly, haven't ever looked into it

icy shadow
#

But I can see why that would be a cause for concern

#

Ehh

dense galleon
tight junco
#

nginx supremacy hm

icy shadow
#

It’s not really relevant in this scenario, apache is fine although nowadays nginx is the standard

dense galleon
#

Why is it not relevant

icy shadow
#

why is it relevant?

dense galleon
#

I have no idea

icy shadow
#

How does that contribute to / alleviate the updating risk?

dense galleon
#

He told me that if I need a webserver I can use that idk 😂

#

Nah it's about using that instead of Ptero

icy shadow
#

lol

#

it’s not instead of

tight junco
#

its with

icy shadow
#

^

#

Ptero isn’t a web server, it uses whatever one you have already

dense drift
#

the web ui is just how you access ptero

tight junco
#

using apache with ptero is very simple because its just pressing one of these buttons and continue following the guide

mental cypress
#

Ptero pepeLove

tight junco
#

if your that concerned about the risk

#

you could ask someone to set it up for you

icy shadow
#

you’re*

tight junco
#

im gonna make you derank back to diamond brister

icy shadow
#

I find that unlikely

mental cypress
#

For example, I have a client with about 15 servers, they can spin them up, move them across nodes, etc, with the click of a button.

tight junco
#

im gonna hack into the blizzard mainframe and set your SR to 3200

icy shadow
#

I mean there is objectively a small risk of updating breaking shit no matter who does it

mental cypress
#

Make new ones in under 15 seconds and assign them a port

#

And it does more than just Minecraft.

dense galleon
#

Issue is that Ptero might not work on Ubuntu 16, my dad's not really for downloading it in case shit goes south

icy shadow
#

of course there's always the potential option of just renting a VPS from somewhere if you have a bit of cash to spare

#

and then if you break anything you can just reset it

mental cypress
#

Oof yeah Ubuntu 16 is EOL isn't it?

dense drift
#

what's the use of a server with 190 smth GB of ram that runs a 7yo OS version?

dense galleon
icy shadow
#

damn it's a supercomputer?

dense galleon
icy shadow
#

this gets more and more interesting

dense galleon
#

I guess?

dense drift
#

ok but do you have a reason to use ubuntu 16?

tight junco
#

you could use a VPS to learn how linux is setup and how to use pterodactyl

icy shadow
#

gaby scroll up

tight junco
#

and when it comes to upgrading the fuckin nasa pc you have, you have enough knowledge

icy shadow
#

it's about the risk of updating breaking shit

dense galleon
#

Idk my father's been studying this shit for decades now so it's a bit tough to argue against what he says haha

dense drift
#

yeah, I know, I'm just saying why his dad is against updating

icy shadow
#

for that reason

mental cypress
#

My dad just picked up 100TB of storage for our in-house system. I think that's a total of 132TB now? I'm like... my brother in christ, what do you need all that storage for?

dense drift
#

you never know 🤣

mental cypress
#

He really said "Plex"

tight junco
#

you have no idea how much hentai i could download

#

your dad is planning to store PH on your in house system

dense drift
tight junco
#

guarantee

dense galleon
#

I'm trying to figure out how powerful this thing actually is

#

Tried running lshw but there is way too much shit

icy shadow
#

neofetch?

dense galleon
#

Que

#

neofetch?

icy shadow
#

install it and run it

#

it's what all the real linuxers use to flex

mental cypress
#

We had a 1U enterprise server blade and a regular PC and he's decommissioning that old PC for a new one he just bought.

#

Apparent there's a couple good Reddit subs for this stuff and I think he spent less than $600 for everything?

#

Well, the storage at least.

dusty frost
#

there's a couple good Reddit subs for anything 😌

dense galleon
dense drift
#

you got a 1U what?

mental cypress
#

I think closer to $800 / 900

dusty frost
#

oh\

#

wrong reply

#

awkward

icy shadow
mental cypress
#

I think that's the right term for it. He has a intel enterprise server blade / rack? Idk. It's whatever goes in the racks.

dense galleon
tight junco
#

probably 7 years ago

dusty frost
#

lmao classic

mental cypress
#

I thought those were called blades. Idk hardware. I do software.

dense galleon
#

I've done it but still nothing

dusty frost
#

i don't even know if you have to restart to upgrade to at least like 18.04

mental cypress
icy shadow
#

try add-apt-repository ppa:dawidd0811/neofetch

#

then update then install

dusty frost
#

i guess for the kernel, but you don't have to restart for it lol

dense galleon
dense drift
icy shadow
#

anyway regarding the actual problem, im not sure theres much we can say - it's up to you if you think it's worth the risk or not. but in my experience i've never had a system bricked to the point that you cant even ssh in after upgrading

dense galleon
#

nah im spooked of this

icy shadow
#

it seems like something would have to go catastrophically wrong for that to happen

dusty frost
#

yeah the only time i've not been able to ssh after something is my own fault setting up Wireguard incorrectly lmao

dense galleon
#

i mean

#

Technically

#

The house isn't empty

#

We rented our house out

#

The server is locked behind a door inside of a wardrobe

dusty frost
#

i mean it's incredibly unlikely the server just like won't boot again

dense drift
dusty frost
#

and if that does happen, those people living there are very unlikely to be able to fix it lol

dense galleon
#

Yeah true

#

I'll just call my dad later today and see what we can figure out

#

He's currently in Estonia, worst comes to worst he can just fly back to Sweden haha

icy shadow
#

try using Entity#setRotation instead

dusty frost
#

not the 1.12 💀

icy shadow
#

well that is unfortunate isn't it

#

you're using nms right

#

surely

#

theres like setHeadRot or something similar in the nms entity

#

probably

tight junco
#

damn setRotation was added in 1.13

torpid raft
#

a single server blade is a bit cheaper than a regular rackmounted counterpart but you need to buy the enclosure for it to be usable

west socket
#

Is there an easy way to prevent an Entity's entityID from changing when the chunk is unloaded?

#

I have some static ArmorStands that I'm attempting to modify with packets, but the ArmorStand's entity instance keeps the initial entityID that it is spawned with instead of the updated one once the chunk is reloaded

#

How can I get the entityID of the ArmorStand via it's saved instance?

dusky harness
west socket
#

Client sided meta data change

dusky harness
#

ah

#

wb UUID lookup?

#

also possible memory leak if there are a lot of entities which stay unloaded (maybe)

west socket
#

Essentially, this

public static int getStandID(ArmorStand stand) {
        for(Entity entity : Bukkit.getWorld("darkzone").getNearbyEntities(CONFIRM_LOCATION, 10.0, 10.0, 10.0)) {
            if(!(entity instanceof ArmorStand)) {
                continue;
            }
            if(entity.getUniqueId().equals(stand.getUniqueId())) {
                return entity.getEntityId();
            }
        }
        return 0;
    }```
Doesnt return the same as 
```java
stand.getEntityID();```
dusky harness
#

ye I think you can do isValid check

#

maybe

#

and if that doesn't work then the getStandID

west socket
#

IsValid? Oh I didn't even know that existed

#

Didn't appear to work

dusky harness
#

💀

#

ig you'll prob just have to do getStandID

#

i can't think of anything else rn

west socket
#

You mean my method?

dusky harness
#

ye

west socket
#

Yeah, I try using that but the packet doesn't target the right entity somehow

#

I have no idea what's happening

#

It's like the client is still expecting a different ID

#

Oh wait, there's some super strange behavior.

#

Like 1/10 times it displays the metadata change for like 1 frame before reverting

#

Everything works fine until the chunks are unloaded

#

Ok, I ended up just writing awful code that respawns the entities when the chunk is loaded

dense galleon
#

Is there any way to teleport a player from one backend server in a bungeecord network to another?

#

Through code in a paper plugin

dense drift
dense galleon
#

Yeah it's a paper server but I assume it's the same

dense galleon
#

In two separate lines

dense drift
#

yeah, but you have to do what's above as well, that is just the message, but you need to register a channel and send it

dense galleon
#

Yeah of course

dense galleon
#

I want to create some form of API plugin for my other plugins to depend on, though I want it to be private if possible as I will just use it for own private plugins.

#

Issue though is that if I deploy it to a maven repository, it has to become public

dense galleon
#

I see

#

For now I made it public anyway since it's better for my plans

#

Though, for some reason it won't let me add my project as a dependency

stuck hearth
#

build failure

dense galleon
#

What am I supposed to do

stuck hearth
#

Looks like it's building with an old version of java, so probably need to tell jitpack to use a new version somehow

#

Time to read their docs 🧠

dense galleon
#

just gotta change the java version in my project's pom right?

#

since it's 1.8 though it's supposed to be 17

dense drift
#

jitpack will build the project with java 8 unless you tell it to use a different version through jitpack.yml I believe

#

Maven projects that specify a target version in their pom will be built with that target version.
do you have a target version set?

dense galleon
#

I changed that to 17 from 1.8

#

Yeah build success

dense drift
#

great

dense galleon
#

thank you

craggy umbra
dense galleon
#

Anyone familiar with this error? unsupported class file major version 61

#

Getting it when trying to build my paper plugin

craggy umbra
#

You are building your plugin on newer Java than your server runs on

dense galleon
#

I get that error when attempting to build the plugin though

craggy umbra
#

61 is JDK 17

dense galleon
#

Not in the server

craggy umbra
#

Oh

#

Weird

#

Maven / Gradle?

dense galleon
#

Maven

craggy umbra
#

Are you using maven-compiler-plugin?

tight junco
#

maven is stinky rooSussyHD

dense galleon
#

I used to use gradle but I wanted to try using Maven again since i'd run into a lot more problems with gradle usually

dense galleon
#

Yeah I am

craggy umbra
#

Show me your pom.xml

neat pierBOT
dense galleon
#

Jesus

#

That did not work

tight junco
#

incredible

dense galleon
craggy umbra
#

Do you have JDK 17?

dense galleon
#

Yeah

#

Thing is

#

I have built another plugin with no problem

#

It's this one that's having issues

dense galleon
craggy umbra
#

Try updating maven plugins

dense galleon
#

I mean I imagine that's not the issue? Since I created these two projects 30 minutes apart and one works while the other one doesn't

#

The issue is with Matt's framework for some reason

#

The way I am adding it in my pom.xml

dense drift
#

It can't be

dense galleon
#

I mean

#

Removing it solves the issue

#

Or I mean I think specifically it's the plugin

#

The maven shade plugin

dense drift
#

What is the issue?

dense galleon
dense drift
#

Ah you are using that old library

#

Hm

dense galleon
#

Wdym

#

Is matt's framework old now

dense drift
#

That is, it was moved to triumph-cmds

dense galleon
#

What does that mean

dense drift
#

But it shouldnt stop you from building with java 17

#

This is the continued version

dense galleon
#

Ahh well cool

#

I'll look into that instead

#

Could be that what's written on MF's website is outdated

dense drift
#

Yes

#

Again, you should be able to use java 17 just fine

dense galleon
#

Yeah that's the thing

#

My other plugins on Java 17 work

#

So it's definitely something with what I got from MF's website

dense drift
#

If you go to project structure, do you have jdk 17 selected?

dense galleon
#

Yeah

#

Removed MF it builds fine, i'll try triumph instead

#

Where do I find the version though

#

On the website it just says (Soon)

dense drift
#

You can open the repo and search, I think it is 2.0.0-SNAPSHOT

dense galleon
dense drift
#

Click the link

dense galleon
#

Yeah I'm on there but there is a LOT of stuff

dense drift
#

It has a folder structure, because they are folders

dense galleon
#

Yeah but what am I looking for?

dense drift
#

So go to dev/triumphteam/

dense galleon
#

Triumph cmd-core?

dense drift
#

Bukkit

#

But they have the same version

dense galleon
#

so yeah it is 2.0.0-SNAPSHOT

dense drift
#

Good

dense galleon
#

Now this

#

I already have the shade plugin in my project

#

Should I replace it with that?

dense drift
#

You only need the relocation part

dense galleon
#

Still that stupid error

#

Unsupported class file major version 61

dense drift
#

Ok let me see

dense galleon
#

This is my pom rn

craggy umbra
#

Try mvn -version

dense galleon
#

3.8.1

#

Java version 17.0.3

dense drift
#

you need to update the shade plugin

craggy umbra
#

Then it looks like a Maven plugin without JDK 17 support

#

Yeah

craggy umbra
dense galleon
#

3.2.4 doesn't support Java 17?

dense drift
#

idk, try 3.4.1

dense galleon
#

Doesn't recognize it

#

I refreshed the maven dependencies

craggy umbra
#

Weird

dense galleon
#

invalidate caches and restart here we go

craggy umbra
#

Now it works?

dense galleon
#

Nono

#

Just saying ill try doing that

#

Since sometimes it fixes things

dense drift
#

try to update maven as well

dense galleon
dense drift
#

great

craggy umbra
#

Now try compiling your project

dense galleon
#

And now it works

craggy umbra
#

Nice

dense galleon
#

Though there's a bunch of warnings

dense drift
#

yeah the reason it didn't work when you added the command library is because that's when the shade plugin was used

dense galleon
#

about an overlapping resource

#

Not sure what that means exactly

dense drift
#

if it is a warning and it doesnt stop you from building, then ig you can ignore it?

dense galleon
#

Yeah I suppose so, just curious on what's up with that

dense drift
craggy umbra
dense galleon
#

Huh weird

#

ProtocolLib and Triumph?

craggy umbra
#

Manifest

dense drift
#

klynetapi-1.0.0.jar, triumph-cmd-bukkit-2.0.0-SNAPSHOT.jar, triumph-cmd-core-2.0.0-SNAPSHOT.jar

craggy umbra
#

Yep

dense galleon
#

Ah it's just that all of them have manifest

#

Eh

dense drift
pulsar ferry
#

An easier solution to your problems would be to swap to gradle ;p

stuck hearth
mystic gull
#

Hello how do we remove the multiple players attack with the sword in spigot 1.9.4 ?

#

Because when we attack there is the blast of the sword that damage nearby players

proud pebble
dark garnet
#

anyone know if this would work for updating config files (when user updates plugin that contains, for example, new messages)?
save old values -> replace old file with new default one -> set new values to ones from old ones
or am i just being silly and there is a much easier way?

thorny radish
#

Does anyone have the functional deluxejoin for 1.19?

robust crow
#

DeluxeJoin was discontinued

thorny radish
robust crow
#

You should be able to find an alternative

thorny radish
#

thanks

floral beacon
#

any little help about how to get remapped jar for 1.19.3?
i tried
java -jar BuildTools.jar --remapped --rev 1.19.3 but i didn't get remapped jars

tight junco
#

is it not worth just doing java -jar BuildTools.jar --rev 1.19.3 where you get everything

#

but it should be in /Spigot/Spigot-Server/target

dense galleon
#

I've got ProtocolLib on my 1.19.4 server, though whenever a player joins an insane amount of very long errors start spamming the chat/console

#

Not sure if anyone knows what might be up with that

#

(Paper server)

pulsar ferry
#

Which ProtocolLib version are you using?

dense galleon
#

4.8.0

#

I'll paste the error in in a sec

#

It's just extremely long, it goes beyond the size of the console

pulsar ferry
dense galleon
#

How come

#

is 4.8.0 not 1.19.4 compatible?

pulsar ferry
#

No

dense galleon
#

Ahh okay

#

I hope I can add that as a dependency to my plugins

#

the dev build

pulsar ferry
#

5.0.0-SNAPSHOT

#

For the dependency

dense galleon
dense galleon
#

you sure that's right

floral beacon
#

any chance someone could explain to me why when i import ||(sorry that i dont use gradle/maven, i just dont put anything out there ofr public but i test/try out for myself on my local pc that's why it's easier for me to just import .jar and not rely on somewhere else, but i didn't use 1.19 files yet)|| spigot 1.19.3 either remapped or any other version i got from BuildTools, Particle.DUST_COLOR_TRANSITION or Particle.VIBRATION won't apply (it says Particle.DustTransition cannot be resolved to a type)

#

do i need paper api .jar and if yes, where can i get it? i tried getting it from here https://papermc.io/repo/service/rest/repository/browse/maven-public/io/papermc/paper/paper-api/ but every single .jar file from here leads to 404 not found (nginx)
solved, i did not get paper api .jars but i removed paper 1.16 (or older) jars from my eclipse external libraries because it was having priority and it basically ignored some stuff from spigot 1.19 shaded jar that i got via BuildTools... so i just removed paper 1.16.5, applied dependencies, then re-added it and applied deps again and it works now fully 👍

pulsar ferry
dense galleon
#
        <repository>
            <id>dmulloy2-repo</id>
            <url>https://repo.dmulloy2.net/repository/public/</url>
        </repository>```
#
        <dependency>
            <groupId>com.comphenix.protocol</groupId>
            <artifactId>ProtocolLib</artifactId>
            <version>5.0.0-SNAPSHOT</version>
            <scope>provided</scope>
        </dependency>```
pulsar ferry
#

Ah I see, reason why it's working is because I added jitpack add https://jitpack.io

dense galleon
#

I also have this:

        <repository>
            <id>jitpack.io</id>
            <url>https://jitpack.io</url>
        </repository>```
#

Could that be the problem lol

pulsar ferry
#

Yeah could be

dense galleon
#

Rip then

pulsar ferry
#

Just realized that it's not working for me right now either, it did yesterday though

dense galleon
#

man what is this luck, it's the last day for a couple weeks I can work on this fml

dusky harness
#

Is jitpack down agaib

#

Again

pulsar ferry
#

Nah, plib's repo

pulsar ferry
dusky harness
#

Ah OK I read this for like 5 secs and saw jitpack lol

dense galleon
pulsar ferry
#

No from jenkins, from github

dense galleon
#

The latest version on there is 4.8.0

pulsar ferry
#

Which is from a year ago, the code in master is recent

dense galleon
#

Ah yeah 2 days ago

dense galleon
pulsar ferry
#

It works on 1.19.4 for the most part though

dense galleon
#

I see

#

I can't mvn clean install cause the pom has 38 errors

#
Could not transfer artifact org.spigotmc:spigot:pom:1.19.3-R0.1-SNAPSHOT from/to dmulloy2-repo (https://repo.dmulloy2.net/repository/public/): transfer failed for https://repo.dmulloy2.net/repository/public/org/spigotmc/spigot/1.19.3-R0.1-SNAPSHOT/spigot-1.19.3-R0.1-SNAPSHOT.pom, status: 503 Service Unavailable
#

Yeahh

pulsar ferry
#

You need to run buildtools for 1.19.3

dense galleon
#

What is that

pulsar ferry
dense galleon
#

what then

pulsar ferry
#

Once you run it for that version you can go back to plib and try it again

dense galleon
#

Ah okay so that's all i gotta do?

pulsar ferry
#

Then you need to publish plib to maven local

dense galleon
#

Is that like

#

my .m2 directory

pulsar ferry
#

Yeah

dense galleon
#

Where's that found usually? i forgot

wheat carbon
#

mvn install

#

you don't do it manually

dense galleon
#

Nono i know

#

But idk what I should write in my dependency

pulsar ferry
#

Nothing

dense galleon
#

oh shit yeah it works now

#

I think? at least, 5.0.0-SNAPSHOT is not givin errors anymore

#

Does it make sense to shade in protocollib, if this plugin is actually an API for ALL my plugins?

#

For personal use

pulsar ferry
#

Nah, it makes more sense to have it in the server instead

dense galleon
#

Yeah but then each plugin I make I will need to add ProtocolLib as a dependency and its repository in the pom.xml

#

And when I update protocollib, i will have to update every single one manually

#

If I shade it in my API plugin, won't it be faster/easier?

dense galleon
#

Idk if im missing something that makes this dum

#

Is it normal that the dependency doesn't work until about 5 minutes after you've done mvn clean install?

proud pebble
#

you will still have to depend on the core, hut id assume ypu could do that

#

also afaik you dont have to update the protocollib api everytime, only if it doesnt have something you want to use

#

i could be wrong idk

dense galleon
#

I see

#

Does TriumphTeam support tab completion?

#

I don't see the @Completion annotation there used to be in MF

broken elbow
#

I believe it is called Suggestion now

dense galleon
#

Ah

#

thank you

dense galleon
#

Is anyone aware of some weird bug where in IntelliJ IDEA the cursor stops working

#

It wont let me click anywhere

dense drift
#

No

dense galleon
#

If I make changes to a project on my local maven repository, how long does it take for other projects to see these changes?

pulsar ferry
#

It's normally immediate, you just need to refresh the project using it

dense galleon
#

Am I missing something

#

I run mvn clean install on the project, then on the other I just reload all maven projects right?

dusty frost
#

maven moment

pulsar ferry
#

Not sure how it works on maven, but yeah publish and reload

dense galleon
#

Yeah it's not working for some reason

#

Not even restarting does anything

#

Yeah for some reason even after doing mvn install, the project in my .m2 folder is outdated

mystic gull
dusty frost
#

spigot 1.9.4 💀

dense galleon
#

Does setting a player's Y velocity while jumping not work?

#
    @EventHandler
    public void onPlayerJump(PlayerJumpEvent event) {
        Player player = event.getPlayer();
        playTimeTravelEffect(player);
        Vector playerVel = player.getVelocity();
        playerVel.setY(5000);
        player.setVelocity(playerVel);
    }```
#

I tried with 5 and 5000, it just launches me in the air slightly higher and that's all

gaunt scroll
#

Where can I find people who are doing DeluxeMenus? I need to hire someone to do some DeluxeMenus designs for me.

dense galleon
gaunt scroll
#

I don't have it.

dense galleon
#

Huh what

#

I have no idea honestly

cunning kraken
#

Hello, how can i intercept "PacketHandshakingInSetProtocol" in spigot 1.9 i tried but the packet is just never sent (i want to get the player client version and i dont want to use ProtocolLib ) here is what i made ((CraftPlayer) player).getHandle().playerConnection.networkManager.channel.pipeline().addBefore("packet_handler", "protocol_handler", new ChannelDuplexHandler() { @Override public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception { System.out.println(msg); if (msg instanceof PacketHandshakingInSetProtocol) { System.out.println(msg); final PacketHandshakingInSetProtocol packet = (PacketHandshakingInSetProtocol) msg; final int version = packet.b(); System.out.println(version); } super.write(ctx, msg, promise); } }); I also printed all the packets sent but i cant find Handshaking one on player connection

shell moon
#

and all that to just update config?

#

why not just set path and value if not exists xd

proud pebble
#

like, use either 1.8.8 or 1.12.2, everything inbetween is irrelivant

dense galleon
#

The hell

#

Clicking "new project" on IntelliJ IDEA just keeps throwing some error

proud pebble
dense galleon
proud pebble
#

entity sweep attack cause was added after 1.10 was released

dark garnet
#

the first part of each of my plugins' messages file is just a huge documentation which i should probably just put on github 💀

shell moon
#

a

#

I auto update config on each update

#

comments get deleted but they have default config on github

#

i set path and value for important warnings xdd

dark garnet
shell moon
#

thats the only easy way to make it

#

i hate even more when they say

#

"updated to 2.0, delete config"

#

"add this to config"

dark garnet
#

ye that sucks too, which is y i rly want an auto-updater for it lmao

dark garnet
# shell moon thats the only easy way to make it

whenever that happens, i gotta:

  1. find wherever the heck the default config is
  2. copy it
  3. compare to current config to see what changes i need to make (i tend to copy all new stuff [options + comments] so i dont have to keep going back to default config)
  4. save new config
    depending on how accessible the default config is, how many changes were made, and how organized the config is, the process usually takes 10 minutes to multiple days (if i gotta contact support or something)
shell moon
#

to copy comments you need latest versions right?

dark garnet
shell moon
#

i mean, to save comments and edit them or add them

#

you need new versions of servers

#

i mean spigot 1.19

#

doesnt work in 1.8 - 1.12

dark garnet
#

ohhhh, ive got no idea, never tried editing comments, i assumed it wasnt possible (as per experience with some plugins that would delete all comments after auto-updating)
which is why i thought of my original idea

shell moon
#

i remember they allowed that in new versions bc of snakeyml update

#

but since it was not possible in old versions (legacy) without external libs

#

it's not an option for me

#

autoupdating config and rip comments is the only option

dark garnet
shell moon
#

if spigot doesnt use it, i dont use it

#

so idk what is configurate tbh

dark garnet
dark garnet
round sail
#

Anyone messed around with fine tuning an AI model to replace manual plugin support to users and ease the support friction? Curious what development path you took and which model you built off of etc.

river solstice
#

I haven't

dusky harness
#

I feel like it'd be pretty hard (and likely would cost some money for hosting the ai) since you gotta teach the AI everything about your plugin and possibly a lot of things about minecraft and spigot

#

there are existing services out there

#

chatbot AIs for support which have been out for a long time now iirc

river solstice
#

just use a shit load of regex regarding everything

#

🧠

thorn girder
tight junco
#

Location#distance

#

mayhaps

#

or a silly Math#max - Math#min

#

but i dont know math i could be totally wrong

proud pebble
#

couldnt you get the corner of a plot + 1 block and then the corner of another plot + 1 block and then aabb the area

#

since more then likely your plots are on a grid

thorn girder
#

thx

spiral prairie
#

i am so confused right now

#

i hate spigot

#

in an interact event, when setting the item in the main hand to the exact same item the player had after checking if the player has an item in hand, it breaks juke boxes

#
        var player = event.getPlayer();
        if (player.getInventory().getItemInMainHand().getType().isAir()) {
            return;
        }
        player.getInventory().setItemInMainHand(PermissionUtil.check(plugin, player, player.getInventory().getItemInMainHand()));```
#

PermissionUtil just returns an item, and usually the same

dense drift
#

perhaps cancel the event or smth

spiral prairie
#

but i dont want to cancel it?

minor summit
#

i don't really understand what's going on ngl

spiral prairie
#

i dont either

#

what part dont you understand?

broken elbow
#

what you're trying to do and what is actually happening

minor summit
#

thank you gab

dense drift
#

fucking hell

spiral prairie
#

xD

dense drift
#

NOW I have super reactions lmao, but I didn't earlier

spiral prairie
#

im making a plugin which can apply wraps to an item (different texture) and I want to remove it when the player doesnt have permission

dense drift
#

you started very bad @dense galleon

ChatGPT

dense galleon
spiral prairie
#

so im using the method to remove it

#

and just set the item

dense galleon
spiral prairie
#

so when clicking the juke box, somewhere between me checking if there is an item in hand and me setting an item in the hand, the disc gets removed from the inv

minor summit
dense drift
#

You are setting player's item in hand and it is also used on the jukebox

dense galleon
minor summit
#

that url path for the downloads api has been discontinues long ago

dense galleon
#

ChatGPT being ChatGPT

#

Where do I find the updated one?

minor summit
spiral prairie
#

chatgpt not having updated information

minor summit
dense drift
#

you should only set the item in hand only if they no longer have the permission to use it, not all the time

pulsar ferry
#

Bash really uses fi to close an if? lmao

dense drift
#

YES ugh

spiral prairie
dense galleon
#

That's actually hilarious I saw that

pulsar ferry
#

esle when?

dense drift
#

nah, fi 💪

#

because you technically close the if block kek

spiral prairie
#

so, any ideas?

dense drift
#

and perhaps if you have to update it, cancel the event? Or at least for when the block is a jukebox and the item is a disc