#dev-general
1 messages · Page 8 of 1
int x = 80;
ServerPlayer[] fakePlayers = new ServerPlayer[x];
private final String URL = "http://textures.minecraft.net/texture/ffcc53e10678a0de3dcb1b020e82685eb53aa556a7d2310d9b60823aeeb52bb0";
public PlayerNetworkListener() {
String toEncode = "{\"textures\":{\"SKIN\":{\"url\":\"" + URL + "\"}}}";
byte[] encodedSkin = Base64.getEncoder().encode(toEncode.getBytes());
for (int i = 0; i < x; i++) {
GameProfile profile = new GameProfile(UUID.randomUUID(), " ".repeat(16));
profile.getProperties().put("textures", new Property("textures", new String(encodedSkin)));
ServerPlayer sp = new ServerPlayer(((CraftServer) Bukkit.getServer()).getServer(),
((CraftWorld) Bukkit.getWorld("world")).getHandle(), profile, null);
SkySurvivalPlugin.addFake(sp);
fakePlayers[i] = sp;
}
}
I have the following code which generates fake players with a gray skin but for some reason they don't get the skin, does anyone know why?
Hello do I report issues in here?
Regarding what?
I have this issue:
An issue in my terminal? Error code?
How can i upload a lot of code because discord wont allow?
!paste
?paste
!paste
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
• HelpChat Paste - How To Use
I have no idea what is up with this..
Its always been alright till now..
uh are you developing a plugin/expansion or do you just run a server and happen to have an issue with PAPI?
cuz general support for it is #placeholder-api
person who has clearly never used linux
I'd switch to Linux if windows wasn't the priority for the majority of apps
^^^
Late
22*
That's even better
But what are the pros of "dev"ing in linux?
I feel like it would just be inconvenient to reboot every time you want to dev and then play, etc
unix terminal is the biggest pro honestly
rest are just inconveniences
I don't really use terminal that much but when I do, yea I prefer linux
maybe it's because I never use cmd prompt so idk any of its syntax
but linux also has the package managers too 🤤
well thats mainly due to it sucking on windows
it feels so natural on linux
its just done better there
I don't play games in between my dev sessions. I play them quite rarely.
That being said I had to reboot the other day and it was less than a 30 second transition.
Yeah... I tend to procrastinate quite a bit 💀
I just wanted to have extra tooling like sql easily accessible, and windows doesn't have those features as easily as Linux does.
wdym sql?
Like starting a database and working with it
i mean its the same process with both (start the service then run sql)
If you use linux terminal a lot though then using cmd prompt would be quite a change
not even close no
services are so readily available on linux
not so much on windows
but once you have set it up
on windows it becomes basically the same
I also like the terminal in general. Super powerful
this but to me it doesnt feel worth to switch constantly
same
even though I only know like 10 commands
Tis why it's not a switch
especially since some of the software i use for work (cad especially) suck on linux
It's a dual boot
but like every time you code, you're not going to use the unix terminal
so theres not much benefit added
I do in fact
nah once you are used to it
it becomes a constant thing
oh
anything dev related is so much faster on linux
I use it from ij even
wdym?
Just use whatever you're comfortable with
im used to GUI stuff so I don't understand what things are faster in linux in terminal
and I don't use unix terminal that much
i mean its quite a civil discussion lmao
No one is jerking wtf
that's not what i meant
I meant in general
Not to this discussion in particular
People will keep hyping something up
oh
I meant, e.g. i can build paper from absolute scratch in like 3 minutes, and the whole of jdk in 6
for some reason dev stuff on windows sucks balls in terms of literal speed
It might not be equally useful for someone else
lmao
I really wish I had a server so I could just launch server instances as needed on it
Not saying any points are valid/invalid. Just may not apply for anyone to instantly jump to someone else's work style
Oracle VPS :))
Yeah we get it thanks yuhioh
Cost?
$0 if setup correctly
Also software development in general, (mostly) regardless of language or environment, is far more mature on Linux than on Windows
Huh
no guarantees though, it's a free service 🥲
The few games I play have Linux natives or work with Proton and.... they work better than on Windows lmao
ok but like
anticheat games
Other than that I don't do anything at all that requires Windows exclusivity
EAC
I mean if you're gonna dual-boot just to play games
sure
go for it
i'm not going to stop you
That's what I did
in fact i'd encourage you to do it
because odds are setting up proton is going to be a pain in the ass for some games or even impossible
When it comes to dev environment, this
https://www.youtube.com/watch?v=Hj1a7QuwjSI
Y'all asked for it - here it is! Anything I don't answer here is probably in the faq: https://t3.gg/faq
Limit7k coming in CLUTCH with these edits thank you so much man
People seem to be enjoying my instagram so follow me there? https://www.instagram.com/fakiebigfoot
Also check out my twitter https://twitter.com/t3dotgg
And everything else http...
§x§5§8§6§5§f§2
Isn't this #5865f2? Which if I google gives me blurple but if I do say §x§5§8§6§5§f§2 in console it gives:
Do they still use that symbol?
yes
paper uses adventure
oh wait something is probably changing it to green
like rounding the color
although green is a weird color
@boreal needle so can you help me with deluxe tags please?
please leave me alone
» Give the helpers some details
» Ask suitable questions
» Be polite
» Wait
bruh
they keep dming me
can smbd help me in general plugins 2 ?
wow you must be deluxetags pro
?help
» Give the helpers some details
» Ask suitable questions
» Be polite
» Wait
no one here is paid to help, it's ran by volunteers
Okay 😄
edit: how do you use hex??? since §2 is green lol
I couldn't find any documentation on it
besides someone trying to convert 𞉀 to hex
Even ChatColor.of() doesn't work
this is a Paper 1.18 server
oh cmon
someone has the same issue but didn't post the solution
and the thread is not open for further replies
Simply use MiniMessage
Oh I see
obviously
@EventHandler
public void onStrom(WorldEvent e) {
Bukkit.getScheduler().runTaskLater(this, () -> {
for (Player player : Bukkit.getOnlinePlayers()) {
e.getWorld().setStorm(true);
player.sendMessage("The Storm started.");
}
}, 200);
}```
Hey, I'm trying to make a storm occur every couple of hours. I've tried using this method but having no luck, would anyone be able to help me try to resolve this?, fairly new to coding in Java so trying to get a decent understanding.
When you say "no luck" do you mean there's an error or is nothing happening?
Does the plugin load? Does the Event fire?
Also- wouldn't that consistently loop/spam?
Milliseconds iirc
That's nasty
Use https://paste.helpch.at/ for errors, logs and configs. So we don't spam the discord.
woop
why are you using WorldEvent
put this in like onEnable
and 200 ticks = 10 seconds
so you might want to increase the number
(1 second = 20 ticks if there's no lag)
I thought the event would work better with a WorldEvent, I just sent a small tick on it just so I could see it fire up on start. But i'll incrase it
you want to put it in onEnable so that it gets called when the server starts, and that's it
You're registering a task to run every x time every time that event is fired.
So you'd end up with a nasty amount of timers causing storms left and right
oh you can keep it at 200 ticks then
and increase it later
Yeah, it was just to see it at the start to ensure it worked, I plan on having them occurring every couple of hours. I did get an error with the method I used, I'm following a course on Udemy to try to understand what I'm doing a little better. I got this error with the plugin https://paste.helpch.at/zojijolovi.php
It seems to load on the server with no problem, obviously, the event isn't being fired up.
it's because WorldEvent is not an actual event
it's a "base" for other world events
but again you want to put this in onEnable
not a listener
Okay, yeah I get you. I'll give this a go and see what I end up with, thank you so much!
worldevent is abstract
Woowhoo, this worked. Thanks so much for your help!
ur abstract
yes
Wyd
Yeah
Trying to find a project to do. Been a hot minute since I've played Terraria, you liking it?
well i havent started, im waiting on a friend to start up the world and we are playing modded terraria which i dont usually do
Oh fun, I haven't done too much of that.
Good luck with your game!
im quite a light drinkerand have never gotten drunk and ive had like 125ml of jack daniels and the world feels a bit distorted and moving around doesnt feel like it had that friction that the regular world has, is that normal?
Sounds about right
is this what being drunk is like?
Sometimes it's emotional
i guess im a little giggly
i wish i knew about objects a month ago 😭
Bröther what did you think Object Oriented Programming meant
huh
does anyone know of a REST Project which I can quickly upload onto my local webserver to test my Java project that interacts with REST without getting blacklisted or creating unnecessary load on some else's API.
You can create your own though
Or maybe https://reqres.in/
A hosted REST-API ready to respond to your AJAX requests
SpigotMC offline for you guys too?
yup
oh boy
does anyone know why jetbrains ides sometimes use extreme amounts of cpu
feels like there is something going wrong with indexing since it gets fixed with a restart
hello
does anyone know why spotify status doesnt work anymore
with discord
i tried everything
Hi, that's a Minecraft related discord, not a discord one, also that channel is for development
I started to feel that recently…especially when intellisense fires up..it literally freezes for 4-5 sec
Hey, Could anyone help me out here - I'm trying to have the storm stop after 5 minutes, I tried running this through a .runTaskTimer, but it doesn't seem to be stopping it.
Bukkit.getScheduler().runTaskTimer(this, () -> {
for (Player player : Bukkit.getOnlinePlayers()) {
Bukkit.getWorld("Build").setStorm(true);
player.sendMessage(ChatColor.translateAlternateColorCodes('&', "&FA Storm has arrived."));
}
}, 12000, 6000);
}```
You're setting storm as true in the world for every player.
Also you don't stop the storm you only set it as true.
Yeah, I am looking to have the storm arrive every so often and last for 5-10 minutes then it goes off again at the first interval for every player. But I'm trying to get it to stop after the 5 minutes, could you help guide me as to how I can make it so it does stop after the 5 minutes?
Start the storm in the world and do a delayed task rather then a timer. Also you can use Bukkit.broadcastMessage() since you are sending to all online players.
cant you just listen to weather change
then fire a task to run after 5 minutes to stop it?
🤓🤓
why would you set the storm to true for every player and not just once at the top of the task
also wouldnt you wanna set the weathercycle gamerule to false aswell?
Gamerules effect the server don't they?
also using a broadcast would be better then manually sending a message to every player
they are per world
afaik always
im pretty sure it was always but /gamerule set it to every world 
/gamerule always set it per world as far as i remember
I know it's per world on Sponge.
But I haven't hosted many spigot servers
or atleast ive had to set keepunventory on each would manaully in the past
Anyone know how to disable MongoDB Logging? I have spent probably 2-3 hours googling and trying different things but I get all the standard logging messages no matter what I do.
wdym by logging? you mean the ones posted by the library?
Yea
all the org.mongodb.driver.client on startup that most people use
Logger mongoLogger = Logger.getLogger( "org.mongodb.driver" );
mongoLogger.setLevel(Level.SEVERE); // e.g. or Log.WARNING, etc.
to disable
I'm genuinely baffled by it.
are you sure its using the same logger instance**
what do you mean?
get logger finds or creates a logger instance
if mongo registers under another name or uses custom logger implementation
then that wont work
and you wont get null error either since it returns a new logger if its not found
yea i get what you mean, but people use different imports all over, alot user the standard package and some use log4j's loggert
Anyone that knows why maps that are not in a player hand refresh slower? I suspect it has something to do with a refresh rate that is handled by the server and if this is that case is there any way to circumvent it?
i think you have to resend the map to all players
using the map id
if you want them to update according to the world, then you need to do some nms to regenerate it
^ is only for whats shown client side
aight I see thanks
I think I got an example that relates to what you just said, found it on coincidence so I think I can make it work 😄
may i ask here something related to bash
or i need to ask that in #off-topic
related specifically to bash scripting
yeah it's fine here
is there a way to change the commit description of the last three commits? accidentally commited something i shouldnt have because cool intellij added stuff it shouldnt have
um, it doesnt show the latest commits
there are two missing
im mega confused
yes
i think if fucked everything
yeh whatever
ill just remove these commits
well see what happens
how do i make it apply?
im in vim
what do i do now
alr
code gone haha
pain
yes!
I'm more of a projectreactor gal myself but the core idea is the same
it's the best most poggers stream system in the world
ever
I have used it already in the Android game I've made as a project of a subject of my degree
I didn't really enjoyed it, and now that I know Kotlin Coroutines and Project Reactor, seems like RxJava is worse than those two
What's the fastest way to check what plugins depend/soft-depend ProtocolLib on my server?
Idk if there's any other way to do this other than using the PluginManager to get all the plugins then going thru all of them, checking if they're not null and are enabled and then get their description
Ah okay, I was looking for a non-code way tbh xD
Open every jars plugin.yml
Remove protocollib, start your server and check log 🤷♀️
uhm any recommendations for intellij themes?
I remember someone sending me one that matt made
but I am on my new pc and cant find it
ye
well you can unzip all of the files (easily done with WinRAR) and search with smth like GrepWin
Idk why it edited my message instead of sending a new one but here you go @pastel imp
just softlocked intellij by trying to open crafteventfactory :)
ggs
how do i fix it
just removed workspace.xml and its now loading fine
lol I've done this before
I had it open and closed intellij so when I tried to open intellij again, it had the hardest time
porting crafting to a chest gui is more work then i thought lol
github copilot isn't as good as it is in python
do people still use databases without encrypting when sending data to the database? even if it's not password or anything important?
by reading your code
^
Man. I just love adds that are made to look like real posts.
why are you still consistently doing translateAlernateColourCodes
i swear even youtube tutorials tell you to make it into a method
imagine using legacy color codes in 2022
i mean
and do what instead
if you want basic colours like white or whatever do you wanna type #ffffff every time
or some cringe mini message <white> system

u r cringe smh
probably but answer the question
He can't
rgb(255, 255, 255)
yeah I'd use some cringe mini message <white> system
components 🤤
i have a likely misplaced hatered for components
You can stick components where the sun don't shine
if you just have a lang file with MiniMessage, you don't have to write #ffffff all over your code
good for i18n, good for your codebase, good for everyone!
if "minimessage" is so good why isnt there a bigmessage
is there a client good at phasing
maybe
do it
yeah cause you're not really supposed to do it literally in your code
even then, it's very easy to understand, and a lot easier to tell what's nesting and what's not than in legacy
but yeah, this basically
i dont really know how the lang files look like when it comes to using components but surely it looks way messier on the user's front, no?
permission-denied: '<red>Sorry! You don't have access to that command.'
user-teleported: '<green><bold>You have been teleported to %destination%!'
etc.
very nice
How do hex codes look in there though
permission-denied: '<#ff5555>Sorry! You don't have access to that command.'
user-teleported: '<55ff55><bold>You have been teleported to %destination%!'
%destination% :noooo:
asjdjaksd (asndasjdd) (
sadknlaksdas (sadjas) (
sadlnlasdnsandkllk (sadljnka) (
sadnlkkas
)
)
);
so it basically looks almost the exact same
but with some fancy <> surrounding the codes
how useful
yeah I was thinking about doing like handlebars literals lol {{ blah }}
until you have to do the ugly-style &f&f&5&5&5&5
why not use MM's own placeholder/tag resolving system
who the fuck is doing that
oh i dunno cause this is just an example and i got like 3 hours of sleep last night lol
damn you alright?
quite a few plugins, from my experience
no actually, still gotta take a calc 2 test 🙃
that just sounds like bad developers imo
i mean it is
md5 §x§r§r§g§g§b§b moment
but regardless, minimessage is much clearer in basically all areas
go do gradients with that
imagine minimessage... but in rust
even just avoiding the magic &4 is worth the trouble
but you also get a lot of other benefits too
Working with components always feels like taking so many extra turns for the same result
like you can do hovers, gradients easily like emily mentioned, it's a standardized format, etc.
maybe im just inexperienced with them but 
you'd have to parse stuff either way lol
i also have a minecraft boomer mentality
translateAlternateColorCodes vs making a MiniMessage builder
good luck adding hover and click events to legacy too lol
no where near the "1.8 is the better minecraft version" im not that stupid
i just don't 
im just a bigger fan of the legacy colour system and older GUIs
i mean yeah, I'm sure there are people who are still bigger fans of Fortran and ALGOL, but most normal people use python or java lmao
I like MiniMessage
MM should parse legacy codes for convenience sake, the end
i can agree with that part too
no
no thank you keep that out of my specification
legacy is nice for small bits i cant lie
luckily MittenLib™️ is groundbreaking and supports both at once
the entire point of minimessage is to not be legacy dumbshit lmao
I also use esophose's message parsing system everywhere so switching to mm is so much extra work for me 
MiniMessage.miniMessage().deserialize(text.replace('&', ChatColor.COLOR_CHAR))
ezpz
i dont think that works
it did in 4.2.0
yeah I also don't think that works lol
420 blaze it lol
it doesn't work lol
throws an exception now
i mean it "works" but you're mixing both legacy and components and the client will render that very funnily
okay guys but can we talk about how awful keeping configurations synchronized between servers is
no
especially with the quote unquote secret management
aka just putting that shit in the same yaml file
very hard to separate people who can add shit and people who are allowed to connect to the database yk
people asked for my tag plugin to support bungee better by making the tags file sync across bungee
though i was looking at this thing called spruce
that combines yaml files lol
so my idea is to have the configuration part of the config.ymls for various plugins, and then the secrets part, then use spruce to shove em together for the final product
You've got a sm0ll brain
supporting legacy, and adding support for a "legacy" style for convenience sake, are two different things
either way, you have to write it as part of the specification for what it does when parsed
which, again, would defeat the whole purpose of moving to a better method
oh and then bundle it into a dockerfile for readonly-ness, and mount the folders that actually have editable data as separate docker volumes
problem being there's a lot of plugins that don't store data nicely cross server in a database cough essentials cough
but like, theoretically, the dream would be to just mount the world folder and have everything else be readonly 😌
CMI 
yikes no thanks
oh yeah how is minimessage when it comes to spigot only servers that aren't use paper since it uses kyori which, i could be wrong, is only a part of paper and paper forks
lmao
i just want essentials to support storing userdata in sql
it's bundled in paper but it isn't paper only
it's just an extra adventure serializer
just shade it into your plugin
oh shit it's $4.99 wtf
lmao
yeah this doesn't seem great lol
i mean tbh I don't use it for the economy
er, well, we don't use the economy on the server at least
honestly there's not even much playerdata, basically just like metadata like logout location and last played time and like command cooldowns
what
There's an impostor among us
😱
oh uh by the way they said they just wanna be banned
idk why when they could just leave and not rejoin but sure
Among Us™️
Ori. I dont want to hear about this anymore. And I don't want to time out more people. K. Thanks. Good night
spine
NOO
I cant unsee it
yeah

Contribute to FJ cause why not
Perhaps
whats FJ
FrozenJoin
https://github.com/BlitzOffline/FrozenJoin
and here's a mimicry I made for Sponge
https://github.com/DrZoddiak/ZoddJoin
you need 4 PRs to get t shirt right
Yes
I got a few repos marked for it, so if anyone wants to contribute, go ahead, just no useless shit like readme's
Just cleaned up a few extra spaced mmk
One day FJ global will be a thing
Platform agnostic?
It's also marked for hf so if anyone wants to contribute 
👀
lol 🤣
many
I do not understand this.
Copilot just wrote an ENTIRE command for me
With nothing
Well it forgot to actually call the reload method but still
This is unbelievable
It even got my chat format and everything correctly
I mean. It is literally trained on millions of lines of code. (probably billions actually idk). It is still pretty bad imo
It's impressive, it gets a lot better the more you use it
oh
no student license?
megamind.jpg
Yeah my friend does that
Don't have a student lisence though
yeah. it tries to understand the way you code and also the way the project is written and adapt to that. but still breaks too many times for me to have it enabled
I also have a student license. so I don't pay for it
ive found it really good generally
Yeah
it has a few funny moments sometimes
It's really good for me
but 99% of the time it works great
Yeah
Oh you're actually paying $10/month?
or are you on the trial
Trial
I will pay for this when its over though
o
$10 for this is worth it
Saves so much time
I still don't understand how I pressed newline twice and it wrote the whole command for me
Can't say it's 99% for me. But it does have its moments. It still does those random repeating lines way too many times, and a lot of the times it just takes over the tab completion given by IJ when I don't want it to
bc ur commands are pretty repetitive ig lol
copilot is still pretty smart
Fair
it takes in the pattern
Yeah I wonder what it'll look like in 20 years
unless you're telling it to do a specific thing and you haven't wrote it previously, it sucks
Our jobs boutta get replaced 🤣
idk about that
😭
at least for now, copilot can't create "original" stuff
although 20 years
thats a lot
so maybe there will be no jobs. maybe we'll live in a "utopia" where robots make everything for us. Or we can live in a dystopia where robots took control and we are their slaves.
well someone's gotta make the robot
I'm fairly certain no AI can. They all take in patterns and use them
true
but I guess when there's a bunch more code available in the future, copilot will be massively improved
that's more of a philosophical question as to what "original" actually means
we all have other patterns and ideas in our brains that we're subconsciously using to create things
you know, I was thinking the same thing as I Was typing. But I'm to tired to get into any of that shit
give it a decade
we are all getting replaced within the next 100 years
AI is becoming more and more advanced by the day
maybe. maybe not. we'll see. or we won't. depends how fast we die
fair
💀
or maybe immortality in humans are developed before then via CRISPR or something of the like
and we dont die
but thats even more of an uncertain question
if gen Z and alpha dont achieve immortality we are probably gonna be the last ever generation not to
well, "immortality", might be like 20,000 years but immortality im not sure of
point is if we dont find out a way to halt the aging process we will be the last generation ever to die before age 10000
I have no idea what you're saying but good talk.
@half harness im too lazy to learn it
what are you doing right now dkim19375?
how about you open minecraft 1.8.8 instead?
hm
if the server was made on 1.18. then sure.
fair
So. What you say my fellow kotlin user?
not atm
gonna code
https://i.imgur.com/EtbkdK3.png
:(
haha
hey blitz you probably don't remember but over the last 2 or so years you've helped me fix like 100 random bugs in plugin configs and java dev so id like to formally say thank you haha
you're welcome
If a dll needs msvcrt.dll does that mean the dll is written in c++ or could it also be written in .NET or even p-code
Ah damn okay was hoping to decompile and see some code
Who do ya main
The losing streak it would appear
;0
hi nova
Hey
are you playing any game
Yes
Hello
......?
I Just found a game in my library called Bad North and I've spent the past 2 hours playing it
that's cool I guess
been debugging why this piece of code wasnt working, turns out im stupid and was using variable slot instead of the loop variable i
i had put it right for everything but the one bit
i love using the wrong variable for one line of code and then using the correct one from every other line before and after it
gotta love brains on autopilot
also i had to make a way for shift clicking items into my custom inventory into slots that are valid to modify or be stacked upon and also to tell if the crafting recipe could be changed cus of it.
now im either adding dupes or item deletions to this crafting table smh
I have a question about gradle plugins:
Can they add or modify files on the project? like create an src folder or shit like that, because I have been looking at making a plugin specifically for making my life easier when making new projects
ig that I could also make an IJ project, but I find it easier to use a gradle plugin than an IJ one
Ik it can modify resources so I'm assuming it can modify Java too
I use a plugin to just avoid having over a hundred lines in build.gradle.kts and a lib for the code
DkimCore, DkimBukkitCore, DkimGradle, and Dkim19375JDAUtils 😎
Not really utils anymore, more like core, but I don't feel like changing it
¯_(ツ)_/¯
Ig u could also make an IJ plugin but that's too much work
Ij has templates for stuff like that
Gradle convention plugins help clean things up a lot especially if you're using a multiproject build
Wait what templates
😮
There needs to be a way to set run configs too
I spend like 5 minutes just setting up a project lol
Dkim 😳
You basically writeup a generalization of what your file looks like using placeholders, and then when you make a new file with that template you just fill in the placeholders and it makes it for you
Live templates are as you're programming
So like if you type fun0 in kotlin for example it generates a function with 0 args
So IJ has templates to make plugins that do so right?
I'm thinking I could make 2 plugins for both IJ and Gradle
The IJ one makes the files and all of that shit
And the Gradle one setups the dependencies. Multiversion modules. The run configs
And everything
That seems like smt fun to do
Where can I see the IJ templates tho?
Currently in the process of moving from using a Enum to a String because theres too many itemstack material types and fuck writting them all out manually
basically, custom itemstacks and using an enum to store all item ids is bullshit and painful
This is a feature of IJ, not something you do with a plugin.
Why not just take the enum and convert into strings?
Oh I see, they're all custom, nvm
Registry relieved
how do i move files with ftp but from one server to another instead of downloading it onto my pc then uploading to the server
Are both linux?
im pretty sure
It's not FTP, but I would suggest the scp command to transfer the files.
Very easy to do
is it possible to do, one server is a dedicated one and the one im trying to transfer files from is a shared host
According to OpenSSH developers in April 2019, SCP is outdated, inflexible and not readily fixed; they recommend the use of more modern protocols like SFTP and rsync for file transfer.[3] As of OpenSSH version 9.0, scp client therefore uses SFTP for file transfers by default instead of the legacy SCP/RCP protocol. https://en.wikipedia.org/wiki/Secure_copy_protocol
ssh onto one of the servers and ftp between them
I didn't need the ping, but thanks
don't go around spreading bad information lmao
I just asked for you not to ping me, I feel that's not unreasonable.
Idk maybe
I have no idea what you need help with so now the 2 minutes I'm looking at this chat have been wasted
so, I'm trying to copy my Discord username but it won't let me. Can you copy your Discord username?
?
why did they change it?
Probably to support all the other UI elements, idk.
You know this is a minecraft help discord right?
see, it won't let me do that
I'm sorry. I thought this was a Discord help Discord
sorry
No worries, just wanted to make sure you knew
FTP bad SSH good
SSH doesn't support file transfer does it?
I guess it does huh
Damnit that was scp again
Apparently that is the way to transfer over ssh
Say google
Oh the scp client defaults to sftp on newer versions
although rsync >>>>>>>>>>>
yeah dude sftp just works with your .ssh/config file
Yeah I setup that already, I've just been using scp
So many articles on using scp, not a single one saying it's bad
Very unfortunate
@obtuse gale what do you think of https://www.microsoft.com/en-us/research/wp-content/uploads/2016/02/fsubro.a4.pdf
i think it has too many pages for me to care 
but there's a lot of funny symbols

FAK
atleast now i can craft with items that have no nbt instead of being stuck to ones that require them
all items have nbt 
Not if you ignore it
im talking about items that dont have the specific id im looking for
im talking about
LunixData {
id:<itemid>
}
ah
So I have a config for messages in my plugin, how can I add placeholder support?
Specifically %player%
d;jdk String#replace
public String replace(CharSequence target, CharSequence replacement)```
Replaces each substring of this string that matches the literal target sequence with the specified literal replacement sequence. The replacement proceeds from the beginning of the string to the end, for example, replacing "aa" with "b" in the string "aaa" will result in "ba" rather than "ab".
1.5
The resulting string
target - The sequence of char values to be replaced
replacement - The replacement sequence of char values
public String replace(CharSequence target, CharSequence replacement)
message = replace(Configuration.get().getString("valuehere").replace(%player%, sender.getDisplayName());
So something like that?
What do you mean?
message = Configuration.get().getString("valuehere").replace(%player%, sender.getDisplayName()
wait
message = Configuration.get().getString("valuehere").replace("%player%", sender.getDisplayName());
ahh thank you
What’s the go-to method for performance testing, optimizing, and getting a server ready for production at set playercounts?
Is it just botting, spark profiling, running timings, fixing code, then live player testing?
Or is there a more tried and true method to this
Sorri to hear that
iirc there's a botting tool called LambdaAttack
note that it won't be realistic though since the players aren't moving, breaking blocks, attacking, etc
and it depends on what your server is about
fixing code
This doesn't really have to do with optimization, but I guess it's good to fix code :))
spark profiling
This is usually better vs timings - although unlike timings, spark (afaik, might be wrong) is better for measuring specific lag spikes or if your tps is constantly low (vs running it for like 10 minutes while tps is 20 or 19)
And, note that if you're starting up a new server, you only need to prepare for minimal players, you don't have to get super high end specs at the beginning
I mean I guess spark is also good for long durations but unlike timings it doesn't show a graph of the entity count/etc and tps at a specific time
?help
» Give the helpers some details
» Ask suitable questions
» Be polite
» Wait
:))
So in other words, basically yes to what I suggested? Haha
Just need to make sure I’m not missing something
well I noted that there's LambdaAttack and gave some "tips" for spark even though you may know them already
But besides that unless you can find something to imitate player activity, live player testing (or beta) is best
¯_(ツ)_/¯
Yea that’s the real struggle
💀
Live players are like a commodity
is this for like an event?
No this is so we can launch what we’ve been working on
Like a whole server
It keeps crashing
oh
well that's not very good 🪦
what type of server?
regular lag based crashes are very uncommon
Yea whenever we get a few dozen on it just croaks. Prison primarily with an interesting avenue for pvp+pve
hm alr
since I was going to say that if it was an SMP, people could crash it that way
BristerMitten helped a bit with a plugin we had made by Sxtanna
Pain for both of them
Tru
Idk bm isn't easily scared
Bm pained by sxtanna’s work
also in the future #1007620980627230730 or #minecraft plz
try to find the crash logs
or maybe a bunch of mines are resetting at the same time
I mean even still, unless it breaks a lot of blocks it should be fine but I don't remember their enchants so idk
for ex with worldedit you have to paste quite a lot of blocks before the server crashes
o ok then maybe that's why
Ye ;,,,,,,,(
in one that I am developing (privately) I had to combat this issue by placing a certain amount per tick
sorted by the blocks closest to the original block mined
I can't imagine trying to optimize that further than reduction
now I haven't used tokenenchant api in months so I don't remember if this is possible
but if it's a custom plugin/addon
maybe you could ask the developer? idk
¯_(ツ)_/¯
Our dev is pretty deep into a prison core and TE is pain for him
So it’s manipulatable
We were using VKAP to handle the explosions till VKAP started wiping pickaxe data
Bizarre bug
So we created our own pickup plugin that seems to be doing fine
Anyway, thank you for the help this far
I think we’re on the right path :)
example here
might've gotten faster times but that's the first image I could find
discord search kind of 💩 sometimes
how if optimized then it can prevent the crashes
and since this is probably a custom addon, it may be possible?
although
idk just wanted to let you know that there could always be optimization done
👍
afaik you can set around 60k blocks in a second using bukkit's setblock before it starts to stall, doing more then that would require you to either space out the blocks broken over a couple seconds or going the nms route which allows for a hell of a lot more blocks changes per second
if you disable physics you can place much more than 60k
and for prison, physics can most likely be disabled
(using Block#setType(Material, false))
it's been like months since I've tested but iirc it's as fast or faster than worldedit
but to be fair, I think WorldEdit applies physics? Although not 100% sure
might also depend on some other factors though
it was my dev server so there weren't other plugins adding lag
maybe I'll test later with worldedit api and see if there's an option to disable physics if it's not disabled already
and also spreading it out through several ticks help
also FAWE
iirc they have an API
I forgot about FAWE
That's what Odin uses
they're called side effects
worldedit is going to be faster than mere bukkit anyway, bukkit does a crap ton of unnecessary conversions
emily why aren't you sleeping
I woke up
go back to sleep <3
:(
hacktoberfest starts in 11 hours 😳
Ayo
Funny how people want types in js xd https://github.com/tc39/proposal-type-annotations
Ain't the whole point of not having types
Typescript??
javascript will eventually come full circle to just being a typescript clone
yup
looking for a plugin dev that can make 1.18 knockback plugin .i will pay
a what now
Customizable knockback prolly
Yo
I got a topdesk server on my school server
I wanna access my topdesk from outside of the server
Meaning I just type in the local IP address in my own browser and it would go to topdesk
Currently it can't be reached
so true lmao
Sx lives or?
nice
hacktoberfest reg open 😏
btw how do ppl create the patches? Especially large ones like that
are decompilers that consistent that you can create working patches with it?
iirc they use fernflower or smth, or maybe I'm confusing it with IntelliJ's decompiler
IJ uses a FF fork
oh
not sure what your question is tbh
but
942 files changed, 20129 insertions(+), 2695 deletions(-)
Ur mom
like what do the base the patches off of
how do you see that info?
so many questions 🙃
they decompile the vanilla jar and go off of the (decompiled once) sources, and the .patch files are the git commits (the modifications) on top of them
I'm surprised something as big as the mc server can be decompiled consistently without any issues
Mappings moment
if you give the same decompiler the same class file over and over again it'll produce the same output tho
not sure why it would be different between runs
Sneaky goblins
lol
oh right there's more than just spigot
LigmaFlower
no
Yes
no
I wish forge and fabric didn't require their own gradle plugins
like how spigot does it
and instead have optional plugins
I don't imagine they're required are they
they aren't mandatory but if you want to have a pleasant development experience then yeah you'll want to use them
for fabric? or for forge too
Same with sponge
iirc forge doesn't
You just do the correct Gradle configs
And with fabric you do need loom
Because it does all the decompiling of mc
And run configs
you need forgegradle
which is stunningly broken
brittle
fragile
how tf am I supposed to explain Mono/Multi-Tasking in a powertpoint
🤯
best idea ever
com.x.x:abc:2.2.0:natives-windows using this from a gradle build config what would a maven version of this look like?
You split it at :
is the natives a scope or where do I put it?
I'm presuming it's a scope
Oh cool I will try that, thanks
Hello, guys! Sorry for the link text, but.. I have not a trivial question.
I want to host an event for players from a few communities. We are planning to make a hunger/survival games event.
There are some expectations on player count: 50+ players – the real prediction, 100+ – will be good.
And, I’m wondering does my server could handle such a load? Both from hardware and software sides.
Like, the hardware:
- xeon 1650v2 3.5 ghz, 8 cores.
- 12GB ddr3 ram
- SSD disc
It is my own serve-pc working in an office, so please do not suggest using any could-services. We are going to use our own machine.
It was bought about 3 years ago. And, unfortunately, I can't afford to purchase a "high" segment CPU with all the related things: memory and motherboard. So, let's keep the hardware in mind and just take it as it is.
BUT, there are 3 other servers hosted and working there. But they can be partially stopped, or RAM usage can be reduced. So, let's say, at least 8GB I can get for the Minigame even server.
Software: here is the key. I worry about performance with such a huge amount of players. And many guys recommended doing the server on 1.12.2 or 1.15.x – because they are just not as much "lagged" as the newest version, and if needed, just use the viaversion plugin.
Like, I have a few plugins that should be there, like LuckPerms, chat, papi, holograms etc. Those are not very complicated things so, I guess that will be ok. No really "heavy" plugins (I guess).
But, 1.19.2 is better just because there are a lot of new blocks and things (light sources etc) that can be used to build the map (actually we have a few variants for the map, and it will be broken on 1.12 cos z lot of new blocks)
The map for this survival game will be quite small. I guess 200-500 blocks in diameter.. In an empty world. With minimum entities, just players. So, will it still be a big performance problem?
Sooo.... that's why I'm here!
Could anyone suggest to me anything on this? Just share your thoughts and predictions.
General questions:
- any feedback or thoughts on what you just read
- Should I try the old ones, that are "more stable and less bug-y" than the newer ones? Or 1.19 is fine for such an event?
That's a yikes server
the question you are asking isnt related to developement tho
isnt it more of a #minecraft question?
'tis dev general
@hot hull that server won't even support like 10 people on 1.19.2
you sure?
idk what xeon 1650v2 is but 3.5ghz & 8 cores and 12gb ram seems quite good
although I guess maybe 3 other servers being hosted could bring it down a bit
but probably not <10 players
i hosted an event server with worldborder 400x400 and it used either a Intel Xeon E5-1630v3 or Intel i7-7700k (Pretty similar i think) and it could handle about 80+ ppl with lag only when large areas were removed with worldedit
oh and only had 6GB ram
With 1.19.2?
Ehhhh ~
But reason I said like 10 people is because he's also hosting other servers on it. And not like small ones by the look of it either.
Additionally he's got ddr3 ram. That's massively slower than ddr4&5, even with a good cpu and an ssd (which one?) That's a performance block.
Oh yeah true
if CommandSender.sendMessage is deprecated, what should i use?
public interface CommandSender
extends Audience, Permissible```
CommandSender has 2 extensions, 4 super interfaces, 162 sub interfaces, 2 implementing classes, and 5 methods.
Looks like only a few methods are depreciated, but others are available.
bungee
d; bungee CommandSender
public interface CommandSender```
CommandSender has 2 sub interfaces, and 9 methods.
Same thing, looks like you'll need to use Components instead of Strings
thanks
https://c.tenor.com/BbHFjtohHUkAAAAC/fast-cheap.gif nice animation
@cobalt marlin what's the difference between your approach and slime world manager?
this is mainly made for minigames / when you dont want to save the result
I see, so it doesn't support serialization?
you make a template and create as many of them as you want
it does, but for the template
most likely not, its for a commission
can also produce weird worlds currently such as:
end skybox with skylight
time night but still has skylight etc
👍
Gray butterflies are holding the buttons down!
nah thats pasta
Ok, I've had enough of your antics, how tf is pasta gonna hold a button down
skill issue
First day of using github copilot, it autocompleted some stuff
Second day, it learnt my message config style
Third day, it learnt to write entire commands for me
Today, it wrote an entire class for me
Literally an entire class, all it had to work with was me defining the class
tomorrow a whole repo
The day after you just shout Hypixel, and ka-boom! 🤣
nope
imagine studying
Imagine dropping out
ay I dropped out, what's wrong with that
depends on country i feel like
its kinda hard to not get a degree here
but usa, i aint even sure if its worth
with how much it costs
Well I mean by dropping out, I mean I finished highschool, applied for additional 2 years, to get a higher level, however dropped out as that field no longer interests me
uhm so I have been using DI to use methods from other classes in other classes, but I have an object class that requires something from another class, and it's quite annoying to always have to put the other class object inside my object constructor, any good way of solving this issue? Would creating a static instance of the other class be the only option?
if it gets annoying, they are likely coupled too strong
but also depends on the actual situation
static is not for passing instances
its used for when you want to have only one instance of something that dont depend on the instance its encompassed in
are your methods that you use dependent on state?
why lucy
