#dev-general
1 messages · Page 628 of 1
It's becoming...
alright. that's good to know. Now to figure out how to do the rest. thanks
it's becoming
youre becoming annoying
this server is weird
with one of the most weirdest chat i have ever seen
more like awkward


I encounter a bug or not wanted behaviour when I used Object::toString. of some reason it convert both values and the key toString (I use #toMap in stream) . So both key and value transform to map key.
took me like 1/2 hour´s to find the problem lol 🙂
Is way I both like and hate stream 🙂 some times you get unwanted results.
Well if you have a stream of Entries, that’s obviously what you get
Not really an issue with streams
Yeah I explain it poorly, but did not expect that method would covert both value and key to the same place.
what is it they say, you learn from your mistakes 🙂
you're streaming entries
the object is Entry
that's what you're calling toString on
entry contains both the key and value
you can call toString on the key or value specifically in toMap
Yeah I still is little confusing about the stream api. I have recently start to understand map and flatMap (is really nice to use, instead of the normal way).
You just need to know Haskell
TRUE
you mean ({[<..;[haskel';;.,,>.>>}})?
no
other programming language 🙂 Don´t know how that should solve that small issue.
yeah those methods are like fundamental concepts in haskell
functions* 🤓
Interesting, then i learn something new today 🙂 will next thing be spring influenced included (like streams are today)? 😉
how did yall get funding for your mc server
bot spawning youtube account with lots of wives.
||I´m only joking||
advice taken
Have a job? I think that’s where a lot of people start
What are some of the best frameworks or something like that, to have experience in for future jobs? Or good to have on a CV
depends
in terms of java spring would be good
What is spring used for?
Web applications but also many other stuff
its a huge framework
Any recommended guides for it? When already knowing Java
it’s huge
Or where to start
their website
You have to learn slowly ig
Oh they have a "learn" page, will use that then
Thanks
Does working on open-source minecraft plugins help getting future jobs? Not minecraft related jobs
experience is experience after all
not everyone makes popular libraries and/or applications
But does it help to have on a CV or is it just experience?
It doesn’t mean if it’s a video game it can’t be professional
I mean it can help but if that's all you have there, doubt it. They do like to see you have hobbies tho. Something you work on outside of jobs just bcz you like it
I mean I guess this is also true.
Alright makes sense, thank you
I like how angular uses a root symbol instead of a check mark for messages lol
√ Compiled successfully.
√ Browser application bundle generation complete.
I asked an interviewer for some advice(after I didn't get the job btw) and one of the things he told me is that he will take someone with work experience over personal projects/portfolios almost every time. It's not just about knowing how to code. It's also about experiencing the work environment
And granted that was his personal opinion, so others might not feel the same
But how can I get work experience when it's my first job? Just open-source projects?
Or well I got a job in a grocery store but that wont do much lol
Internships are how I did
You could also potentially get lucky
But if you want to increase your chances, internships are a good option
Ahhh yeah makes sense, I can't work full time right now which is an issue though, I should probably just focus on learning for now
As always I feel like networking deserves an honorable mention as well
How to get a job:
- have work experience
https://cdn.discordapp.com/emojis/839869018445971476.webp?size=96&quality=lossless
(at least 5 years)
You're probably saying this as a joke but this was on LinkedIn as entry level https://cdn.discordapp.com/attachments/859836451562323998/990747635981885490/unknown.png
yeah good luck finding that one person lol
Like, granted, testing, tooling, git, sure, but jfc
I saw one that wanted 5 years required of experience with two different languages
For an entry level position lol
no haskell skills needed?
trash company
"We dont really need a person but if someone wants to apply, why not"
I found your offer @ Emily https://www.reddit.com/r/ProgrammerHumor/comments/vto2xw/masters_degree_and_only_2_years_experience_needed/?utm_medium=android_app&utm_source=share
Question, so im trying to move a file into a logs directory and then zip it but im getting this error: https://paste.helpch.at/agumucanic.bash
and this is my code:
Map<String, String> env = new HashMap<>();
env.put("create", "true");
URI uri = URI.create("jar:file:/" + this.getDataFolder().getAbsoluteFile() + "/logs/" + new SimpleDateFormat("yyyy-MM-dd HH:mm").format(new Date()) + ".zip");
try {
FileSystem zipfs = FileSystems.newFileSystem(uri, env);
Path externalConfigFile = Paths.get(this.getDataFolder().getAbsolutePath() + "/config.yml");
Path pathInZipFile = zipfs.getPath("/config.yml");
Files.copy(externalConfigFile, pathInZipFile, StandardCopyOption.REPLACE_EXISTING);
} catch (IOException e) {
e.printStackTrace();
}```
don't use the full path in the zip
Should just put the name of the zip inside of the logs folder?
so like new SimpleDateFormat("yyyy-MM-dd HH:mm").format(new Date()) + ".zip"
it's not about the name of the zip file, it's about the name of the entry in the zip file
The path in zip file is only config.yml?
ah lol now I see
then it might be related to the mixed / and \
just don't use the old file api anywhere :p
You can try https://stackoverflow.com/a/54687000/14105665 which doesn't require creating a URI
Or
wait
you shouldn't need an URI for the file system either
use /
thats what i was using
no just use a Path
ok
ill try that
tf
I got it working with this thanks!
Path.of("foo", "bar", "baz.txt") 😌
hey ya'll, so it's my first time scripting with java and I'm trying to make an autoranking script for new player. (7 groups you can be off the bat) Thing is, i have less than zero clue what I'm doing and I'd like to request if one of ya'll could go over my script and help me figure out what I'm supposed to be doing. I feel like a 1st grader making new words.
Scripting with Java?
ew
scripting is what kids do when they wanna look cool on a cod lobby
of course not, this is helpchat, the least you'll get here is actual help but get flamed for ""doing things wrong""
thats fine
when you say autorank script, makes me thing you have everything in 1 class
i just wanted someone to go over my script because i have no clue here
go over it and do what exactly? usually people come because something doesnt work right
just tell me if it looks ok. Once again I have no idea what I'm doing so I don't know if what I have will work or break. Simple as that
This is usually where someone would tell you "try it and see"
if i had the slightest clue on how to do that, this would be a different conversation
I have zero idea on how literally any of this works. I only know if, thens, and functions, not placeholders, static thingys or just idk man this is cancer for me
if i knew what that was 🤷♂️
you might want to start from basics then
jumping into plugin development with no prior programming knowledge is a bit
difficult
i was just told to make an array with my groups, and randomly pick them, and some other things about other things
Yes. Very painful!
they didnt show how to compile?
not from what i recal
tbf compiling a spigot plugin is different from compiling a regular java project
noot really honestly
then again last time i compiled a java applet i didnt use maven or gradle
like what does "PlaceholderAPI.static.setPlaceholders(Bukkitplayer" mean, that right there is my most confusion
what the
that not related to making a basic bitch spigot plugin
you are basically hooking up to another plugin
API means that its an interface basically between your code and their internal code
Imma just sit here and twiddle my thumbs
you need to make an empty spigot plugin project
you really need to just watch couple of basics videos
thesourcecode's first couple videos are okay
thats what im watching
just dont get too used to their coding conventions
Yeah they are bad
theres a guide on the spigot website in there development section
honestly some things went right over my head
for an empty spigot project
Also, don’t expect to learn this in one day
I’ve been learning for almost 3-4 years now
yes, its a year long process minimum
you can probably make okay plugins in a month or two though
I just wanted to randomly assign someone a group off join because I'm not always there to do it myself
LuckPerms?
through luckperms yea
so you gotta hook up to that and assign
Mhm
You know in LuckPerms you can set the default group on join
In the configuration
yea
So why not try that?
Instead of coding cause you only code when you have to
But I’m not saying learning to code is bad at all. I’m just saying that you should always try to search for something first in the configuration file
I have 7 groups to choose from
a menu with some buttons to pick a group can work, with like deluxemenus or something
ok
i mean yes, but not necessarily
there might be a plugin for it already honestly
I believe that at the beginning you should resort to solutions as what Luna said because you don’t have a great coding experience. But along that learn coding too
there is but its broken on me twice
AutoRank by Staarvin
it had troubles enabling then disabling do to some file issue that I don't have access to
but yea, what Luna said is actually an optimal idea. Then another problem occurs for my ranking system. but thatll be another problem for another day
Thanks!
hi guys what do u think of my webseite? https://127.0.0.1
Absolutely stunning
i spent many hour on it 🙂
Gorgeous
I love it
¯_(ツ)_/¯
🥴
Luna, deluxemenus works perfectly after a tad struggle, darn ' ', so annoying lol.
Hello, I am looking for a Placeholder timer that starts at zero and then counts up infinitely. If the server restarts, the timer should just keep counting. I want to display this timer on a Holograph, how long the server has existed. Does anyone know if there is such a thing? Like the %server_uptime% placeholder but that it continues to count time even after restart that players can see how long the server already exists.
it was a misfire, i guess, i hope
i don't think that there is an expansion which provides what you want but you can make some work for server_uptime
what for work? i don't want to show just the server_uptime... 😄
you need to store last count to remember again when server started to continue from the last value
something like a config file or just even a text file would be enough
idk if papi provides a data holder for this situation
How is this an invalid request?
[Serivece] Experienced server owner or server manager
[Request] I'm a developer looking for someone to start a server with, the server will most likely be Skyblock or Prison but I'm up for suggestions, I will handle the development side of the server, but need someone to manage it that has experience with attracting new players etc.
typo in [Serivece]
Any idea if its possible to have "Sign commits" enabled for all projects by default?

okay to properly answer that, just looked up my settings, it's in commit.gpgsign, set it to true, lol
I remember spending too much time searching in the docs what the setting is named
Ty xD
uhm any ideas of a plugin that lets users join even when mojang services are down?
Auth services decided to die
lol
online-mode=false
fair
that'd allow players to fake being other players 🥴
unless you mean checking via like an IP or something
ye, just ignore it, I was dumb, it's just for my test server
but that's actually a good idea, checking via ip
I wonder if it's possible to make an AI model that's made purely to fill out web forms as humanely as possible
Tricking recaptcha v3

probably
pretty sure you can change the uri it connects to
without going out of your way and using a fork
yeah I'm sure you can, problem being a reputable authentication server provider lol
Does BungeeAPI have a similar method to Bukkit#getOfflinePlayer(Player)? I'm looking to get a player's UUID from a player name string provided via a command argument.
no
bungee doesn't store any user info, you'd need to either do the caching/storage yourself or web req to mojang (or, like, both with the request as fallback)
Aight, cheers.
Messaging channel to get the user offline data from the server 
lol
get it from one of the hubs ez
fyi pretty sure paper is pro reporting
at least that's what I gathered when I looked in their discord the other day
"pro reporting"?
Oh the chat
Its the client thats banned not the auth. You have to create a new launcher.
Unless they have both (Server side and client side).
What
You can still play singleplayer if you‘re banned afaik
Yeah it says so in the FAQ
Singleplayer. But not multiplayer or realms. It will black out the options and tell you you're banned.
What's the command that send this output?
/spark gc
oh yeah, the pauses being 0ms is the dream
well everything else would be weird when using ZGC
Could you please help me with a timings/spark i have?
I'm having some lag issues, it was yesterday (i had old gc)
now it's to early in the morning so i have just a few player to do some other timings
if you used G1 on a current JDK version and aikars flags and you had lags due to GC, there's most likely something wrong
idk if they were caused by aikars flags
i just had big lag spikes
server went to 13 tps, and then 20
down to 14, and then 20
it even reached 7 tps yesterday
for like a couple of seconds
do you have timings from that time?
what CPU is that?
it says it only has 4 cores
are you running it in a docker container or something like that?
Where did you see it?
wrong ping
in the config tab, system config
that's the question :p
I think spark can show that info too, maybe you can find out if it says the same
not sure if it's accessible via a command
The system is running Linux (amd64) version "5.15.0-40-generic" and has 4 CPU threads available.
hm
idk, but you should try to find out ig
while the main thread is the most important one, there are more threads involved (e.g. chunk loading, lighting) and also the JVM profits from having more cores available, especially when using ZGC (but also applies for G1)
So can it be the problem that’s generating the lag?
well it certainly doesn't help in reducing the lag
Yeah i see
So, right now I’m searching a solution for this
In the meanwhile, did you find any other relevant infos from timing/spark?
it all looks pretty normal besides the old gc runs
So why those lag spikes?
well if it's overloaded constantly, it's just too much going on
if it's only 4 lag spikes, it came from the old gc runs
wym with "if it's only 4 lag spikes"?
The system is running Linux (amd64) version "5.15.0-40-generic" and has 16 CPU threads available.
Problem fixed.
It was because of old aikars flag limiting cpu available power
there were 4 old gen collections, those take a lot of time and will stall your server
So that’s why of the lag spikes?
if those lag spikes were only a few seconds, most likely
there were only 4 old gen collections before you did the timings, so it can only be relevant for 4 lag spikes
4?
So I suppose that’s not fixing the problem
So what are the lag spikes I have caused by?
quick question, does anyone know if Plotsquared API has changed much from v4, v5 and v6? I wanna know if I can make a plugin compatible with those 3 versions since 1 is paid (freemium) and the others are free
pretty sure they're like complete rewrites
only v4 is fully free
but there's a lot of restructuring between v4 and v5, and v6 has some parts basically rewritten too
you can't even get v5 anymore. its the same spigot page as v6
did v5 used to be free? or was it always paid
well if you purchase it, can't you get it still?
on the versions tab
So since they are complete rewrites, the api has completely changed?
v5 was the first version that was posted as premium resource
for the most part they're different yeah.
they aren't complete rewrites, but v4 had other package names and there are large differences between v5 and v6 too, mostly about messaging though
rewriting everything at once would be an insane amount of work lol
depends on what you actually need, but you'll most likely end up writing separate code for each version
Oof okay
I mean that's basically the reason why they are different major versions
Ye fair enough
Why are cakes not water-loggable
Lowest TPS I could find was 19.64
https://aikar.co/mcflags.html could help
I'm zgc garbage collector
oh alr makes sense lol
green = tps
orange = tps loss
Yeah most people who run servers only do it as a side project so they usually have a comfortable source of income to fund it themselves properly
I've gtg rn but maybe someone can help
try sending a spark report when the lag spike happens
Turn off timings permanently and send a spark report
And ofc use aikar's flags
aren't those old?
No
a lot of people told me zgc are way better
They still work as efficiently as ever as far as I know
I'm not an expert on Garbage Collection so I wouldn't know better though lmao
im thinking of making it my main source of income since im still a student
That's a bad idea
trying zgc, i had some bad lag spikes with aikars
and now they're gone
Servers aren't as profitable as you think unless you make it big
but ofc i dont open it for money i just wanna have fun with it
profiler?
Yeah /spark profiler --only-ticks-over 50
oh fr?
do you think something like 100 players will be at least profitable?
idk i have never got past 10 concurrent players because of my bad management
or the profit is not measured in terms of concurrent players
i had a 300 players network
Depends on what your server's like and how p2w you're willing to go lol
and i can tell you that, if you can market it well, you can make a lot of money
thats something i wanna hear
but i bet you have a big brain to manage all that right
like besides plugin coding theres a lot more going to management and marketing
I'm the owner, i try to split all the works that has to be done trought the staff members
like coding, staff management, marketing etc
i'm pretty sure i couldn't do what i did without them
so be sure to have a GOOD staff team
that will work with you because of passion
and not because of money
Tbh those are hard to find for anything that isn't just a moderator/helper etc
if you take someone in your staff and he just thinks about money it will ruin everything
i know
that's part of the owner job
but, from a personal experience, it's better missing a staff role then having a staffer that should cover that role but can't do it
(sorry for my bad english, i'm italian)
Maroon btw i think the profiler is ready
Here's the link
Does anyone know any decent weather APIs that update frequently for forecasted weather?
Currently using weatherapi.com but it only updates every 4-6 hours
Yeah you don't seem to be having much lag at all in this profile
I know
-XX:ZCollectionInterval=30 why do you have this flag set
then we can't find the issue 
What's wrong with it?
oh alr you have a very big staff team?
and have like a lot of departments including arts maker and something like marketing right ?
are your staff members paid?
I just would like to understand from what those tps loss i see in the timings are caused
you shouldn't need it
I'm guessing he grabbed the whole configuration from somewhere
They're not paid, they do it because they like it
We can't tell you what the tps loss is if there is no tps loss in the profiler
so timings sucks ahahahah
and how did you even find all your staff members
do you need a microphone or sth? or something like a resume
ea resum?
Yeah timings makes tons of calls and lags your server considerably, so its better to just disable it
i see
tysm
or something like a resume
If you update your purpur version, they remove timings completely I believe
That's in 1.19 though
also you said you HAD a mineraft server
now its sold or down i suppose?
Does it mean it needs a lot of work to maintain the server
Purpur already disable them on startup
Yeah don't re-enable them lol
No, we just changed everything
And the one i have one it's a complete remake
oh alr
It does need a lot of work yes
If you want to make something special, that is
With the new server the player peak has been like 82 iirc
and that's pretty good since we just been closed for like 6 months
im thinking of making a hero/anime based fighting server
basically a fully rpg server with a bit of gamemodes
And it needs intensive plugin coding
I did open one back in 2017 with two characters but nobody wanted to play
closed for 6 months and still 82 players wtf
yeah we did a amazing job
me and the staff
i'm so happy with this
we did a AMAZING vote system
with rank and stuff
and with just 82 players PEAK we are the 3* server in italian server list
glad to hear that
how much time did you dedicate to make your server? and which part did you mainly focus on
sorry a lot of questions
I basically dedicated the time from when i wake up till when i go to sleep to the server
Well you'd have to find a developer who's willing to do that for free, which are very few and if they do exist, they're usually not very skilled.
So your other option would be learning to do it yourself
i did all the coding myself with a bit of nms
Oh nice nice
but i just dont know how to make it a brand
i think you have to think from the player's view when you create a server
wow thats a lot of time
i always just lose motivation midway
or not, not even 1% of the server made
Yeah it'd need aggressive marketing to become one
Not enough trust in the project
Developing this stuff sounds like a pain
player's view hmm
thats the thing i suck at
So take someone that do it
yes it is
Im estimating a full-fledged server like that would take 1-2 year to develop myself
get someone that plays mc enough?
its alr just some GUI and a bit of maths and nms for now in 1.8
but i suck at arts and im trying to make the skills look pretty
its fun to see the outcome
but its not fun at all for the development having to constantly refresh your mind visualizing how it will be displayed
thats why i quit back in 2017
thx for your sharing man you are a legend
Im doing the code myself and i guess i need more expertise and passion for my project
learnt a lot :)
Dw buddy!
Just find some people that can beta test your server and play it from a "player's view"
alr thx a lot
im more of a programmer than an owner so i have zero experience and tend to be super clumsy when it comes to these stuffs
you are a living legend
can i come back to you when i have more questions about running a server?
hey guys just one quesiton is 6gb a lot for calculation intensive servers?
calculations alone use negligible memory
For sure buddy
Whenever you want
What about this buddy?
Forgetting the CSS file be like the cheese falling off the pizza lol
looks like you failed to find the correct channel
MMORPG is not an easy genre, it by default sets the content and mechanics complexity much higher than most of regular Minecraft servers, or games.
It's not only very difficult to code, it's also as hard, or even harder to design first.
To create this kind of a server you would need a substantial experience in game design.
I definitely wouldn't recommend it for a beginner or inexperienced creator, because that's a complex topic.
On top of programming and game design knowledge, you also need good experience in project managing, because it's not a simple survival server which can be done in 2 weeks.
It's a long road to go, and you will have to wisely pick your goals and features that you should work on, and abandon the unnecessary ones.
I have been making servers for 8 years already, and only since this year, I have been able to turn any profits. Since then, I've been making lots and lots of servers to play with my friends, I've been coding some fun features, and we were playing it together. This way I have learned a lot, so now I'm able to undertake tougher challenges, which would never be possible if not all these years.
Weak
Does anyone know any decent weather APIs that update frequently for forecasted weather?
number -= -1
This is something
why
I remember using one called open weather map or something like that
but that was like at least 1 year ago
Yeah, only updates every 3-6 hours. Seems to be the common time range 3-6 hours
There are some that give hourly updates but that's like over $200/month
Us government I think supplies weather data
Hello can I get help in this server for issues with discord?
Looking for discord support?
HelpChat is a Minecraft plugin and development support server and is not affiliated with discord in any way.
If you require support from discord, we recommend you to visit their official support website at https://support.discord.com
On this website, you can read their FAQs, or open a support ticket if necessary.
I mean you can ask for questions that don't require discord staff
in #off-topic
but this isn't a discord help server
it's a server mainly for minecraft stuff
Okay thank you
is it fine if i look for developers on this chat?
no
okay thank you
but make sure to follow the rules from those channels as well
they're pinned in each channel
awesome thanks
If i need a packet listener, and some of the packets I need to listen to have an event in the Event Api, is it worth using the api or is it better to just use the packet listener?
it depends
sometimes the event gives more and better context about what is going on
sometimes listening to the packets directly gives you more insight on some of the interactions
I’d suggest the API unless you need a reason to use packets
Such as anti cheats should usually always use packets because bukkit doesn’t expose enough
thank you @cursive jolt
I just had to look into why I can't get all entities on a server async (since I just want the list)
So had to get the entityManager from ServerLevel.
Bukkit's (spigot's) API is limited more then just what you can access with it.
Still not safe…
It is. I get the ID's then switch to sync
There are weird cases where stuff is safe
It should not be safe to get a chunk from outside the main thread but it is
The server will execute that request on the main thread
You can alter entities such as armorstands async lol
Although once you have that chunk, reading anything is unsafe
Although it may be safe because Mojang synchronizes the palette killing performance
Although they don’t need any synchronization… it’s weird. It’s like we tell people to not do stuff async then we hurt performance by allowing them to do stuff async that they weren’t meant to do
You gotta remember when servers were first introduced, I don't think it used a separate thread at all xD
Im using foreach loop to iterate between messages sent before and send them to the user. for some reason I'm getting an error that is repreducable but on my computer nothing weird happens..
Maybe due to downgrading java version in mvn to java 17 (I'm using replit)?
Error:
Exception in thread "Thread-3" java.util.ConcurrentModificationException
at java.base/java.util.ArrayList$Itr.checkForComodification(ArrayList.java:1013)
at java.base/java.util.ArrayList$Itr.next(ArrayList.java:967)
at me.fozystyle.JavaChatServer.readThread.run(readThread.java:54)
Code at me.fozystyle.JavaChatServer.readThread.run 54:
if (server.messageHistory != null) {
for (String s : server.messageHistory) {
sendMessage(s);
}
}
btw messageHistory is a String list:
List<String> messageHistory = new ArrayList<>();
**Please ping me if you think you've a solution **
Also you are modifying the collection somewhere in the sendMessage method
this is not a minecraft plugin
#development is for general programming support
Still
not specific to mc
this is more of a chill chat to talk about dev stuff
like flaming kotlin

ok

why are u dislike kotlin?
Bcz when and there yes
Because it's "funny" and trendy to do so
Nah, that's also a trend withing Kotlin devs
Exactly
They are both incredibly annoying
@kezzzzzzzzz
Kezz left us wtf
was kezz in this server?
probably idk
They were for some time yeah
just say you r too stupid to learn better language
https://i.imgur.com/dmLKIbQ.png
woahhhhhhhhh
since when was this added?
or is it only for large servers
but Minecraft doesn't have it
For now, this feature is an experiment available to a select number of communities. Eventually, Home will be a part of every Community-enabled server.
If your community has Home and you want to leave feedback, you can find a survey in the Home settings context menu!
Oh
👀
when tf did we get 13k members
thought we were at like 10k
idk if I can check on phone if we have it or not
We've had over 10k for a while now
^ cause of me obviously
ur so popular star omg
ik ik ik
and even with all that popularity, i'm stuck using a single shitty laptop screen when i have three 24" monitors just sitting around waiting to be used
why not use them
it haunts me night and day, i just want to do work for my company!
💀
don't have a dock, can't
lol
hmm?
ik ik ik
nothing todo with a dock
i try so hard
ur just bad
yep
what do I have?
popularity
hmm
yeah but that's not worth shit
when all you really want is to have that one person
😔
i'm sure you understand pig
don't you have a special someone?
maybe she goes by the name PlaceholderAPI?
That’s very inspiring to hear!
I should have no problem for programming,but I have little to no trust to my project as the other pro owner said
I’m just too desperate for the results instead of enjoying the development process.Idk maybe because I don’t have friends to play on my server?lol
Also tons of other business to deal with when opening a server like marketing and stuffs
It’s surely hard especially I’m aiming for a server that has super complex game mechanics
me
oh shit nice
Fingers and eyes atleast
hi im new to opening minecraft server
do you guys recommend buying a vps for minecraft server?
!host
!host
hey you don't know, I could've dictated that message and had it read aloud to me
It's also possible that Emily could've helped you
ello guys
Heyy
how to add gradient in deluxemenu can anyone help me?
Good point
click_commands:
- '[console] bx'
- '[console] advancement grant %player_name% minecraft:story/enchant_item<delay=20>'
[18:47:01] [Server thread/INFO]: ...nt Jimaie minecraft:story/enchant_item<--[HERE]
need help,I want the second command to run a few seconds after the first
add space before <delay=20>
[20:00:04] [Server thread/INFO]: ...nt Jimaie minecraft:story/enchant_item delay=20<--[HERE]
same problem
Why did you remove < and >
I tried with and without and it doesn't work.
- '[console] advancement grant %player_name% minecraft:story/enchant_item <delay=20>'
Guys, I think I broke github :)) https://i.imgur.com/xiBfK8m.png
U broke
- '[console] advancement grant %player_name% minecraft:story/enchant_item <delay=20>'
need help don't work
Found out that gson... has a number limit??????????? (even though it's a long and so it should be able to store long numbers)
😕
Anyone know why? And should I replace it with a BigInteger or a String?
probably a BigInteger
RIP 1224 lines of json data 💀
most of which have an ID linked to it
will test in like 10 mins
but apparently long isn't stored correctly with gson 🤔
if it's too long, the end just has 0
:what:
Not a gson issue, more like javascript numbers
it seems diff from js numbers though
will be afk for like 10 mins so I can't test rn, but I'll test when I get back
🥲
hmmmm
i am confused
im going to go insane
path.createFileAndDirs()
val text = gson.toJson(get(), MainDataFile::class.java)
path.toFile().writeText(text)
logDebugInfo("\n\n\nSaved: \n$text\n\n\n", print = false)
```It logs the correct info
**but the file has the incorrect info**
❓ ❓
😖
😭
sucks
what
text is a string?
yes
Does anybody know how much of a cut SpigotMC Take for purchases on the site?
??
I thought it was a relatively straight forward question
??
I'll make it clear
Unga Bunga! 🪨 Typey man sell plugin on spigot 🪨 .
Ooga Unga! 🪨 Spigot want take money from typey man 🪨
Bruh
🪨 💥 How much money does spigot want? 🥁
I'm not sure, I'm asking if and for how much.
I don't think Spigot takes a cut? At least I've never heard anyone say anything about that before and there's nothing about it publicly available on their site either
@obtuse gale
yes hello?
They don't take a cute I don't believe
I don't own a restaurant lol
hush
Because I am looking for devs to help me out
On my mc server
But if u work for commissions I am sorry
😭😭😔😔
Lul
Why
People (generally) don't work for free
Yeah 😭😭
Slavery is not okay
Can I get op?
Can I get an Aventador?
I’m a plugin researcher and I publish paper on how to use plugins more efficiently and including skript syntax research and stuffs
You can check my publication it’s my thesis for my bachelor degree
My academic name is Ho lee fuk and I’m an asian
Please have the indulgence of cooking me a meal using Skript lol
I won’t discriminate u bro I am Asian also
bro….. try pronouncing the name yourself…
Lol bro can’t you feel the susness?
lol
I know
But don’t let that discourage u
Whoever says anything to you say at least I was able to write a thesis
yeah i wont discourage myself im working at a toilet company that deals with shit
and im earning "shit" ton of money
gonna change my name to ho lee shit maybe
bro...
did this guy just say skript?
my eyes are burning
it's even sadder with the way he sentenced the message so "professionally"
it was good until I saw "Skript"
lmao
I don't see a reason to hate man
I can see plenty of reasons, but I am aware his message was a joke (so he doesn't get riled up for no reason again)
hate Skript? plenty of reasons ye
hate him? Why would a man hate another just like that?
My offer still stands for making a 3.01 reach check in skript for 5k
Skript truly can be pushed to the limits
But the people who know how don’t use skript
Say the one that gets triggered seeing a troll comment
Speechless at this point, absolutely speechless
Losing brain cells at this point, absolutely lack of brain cells
Plenty of reasons?
Was wondering how one could specify which economy for vault to use. Trying to add an option where people can specify it in a config file but im completely lost.
I believe that the one with the highest priority on the services manager will be used
Sounds about right
you can create a new instance of the economy you want and register it with the highest priority
Ik the one with the highest priority is used. But trying to allow people use like a token economy plugin. which wouldn't take priority
or well, not an instance, but an wrapper for it
I doubt any tokens plugin uses vault for economy
trying to make it so people can specify which economy to use from the /vault-info list
Can somebody help me with something in java? DM ME
or... you could post your issue in #development and someone can help you out
Async gpu accelerated anti cheat in Skript 😮💨
SQL GC
PHP Anticheat that injects into your BIOS
hello i want to make a way for people to get the discord and youtube playerhead and when they place and right click on the head they get a message in chat. how can i do this in spigot
yes i am coding my own plugin
PHP OS
pls i need help
What have you tried till now?
alot but if you have some code i can try it
huh?
have you actually tried to implement what you want?
Like what are you struggling with exactly?
the whole code
🙃

I'd suggest reading up on some guides in that case?
or you always have #992627660146626601 / #992627658229809162
i am a beginner coder so
Alright, you still gotta try to learn tho
I assume you are new to Java as well?
?learn-java
Online Courses:
Online courses are also great for learning java. Some websites that offer them are:
- Coursera - Free unless you want a certificate
- PluralSight - Great courses from what I've seen. Mostly Paid
- Udemy - Never used them myself but they seem to all or at least most be paid.
My first ever course was one from Coursera. - I can say it was pretty good at introducing me to the programming world as a whole not just java.
Oracle Docs:
Oracle docs can help a lot at learning and understanding java:
- Start with this,
- Breeze through this (skipping stuff that doesn't seem relevant like bitwise operators),
- Hit this.
They're the first three from this larger thing which you should definitely go through overall. But those three should be enough for slightly better understanding of what is happening here without feeling like a huge time sink.
That one is a small part of this larger site wherein "Essential Java Classes" and "Collections" also have good useful stuff
Other services:
Some other cool services that will help you learn java are:
As you can see there are plenty of good ways to learn as long as you're willing to invest the time. Have fun learning!
what a throwback
lol
All good, I wasn't sure
lmfao obviously
Which is why, when you messaged me out of nowhere to ask me for free work, I told you people have bills to pay and shit to buy
I get that you don't work, but people generally don't work for free unless they A) Undervalue their work OR B) Accurately value their work.
Ok
Uhm is using an api like Holographic Displays for holograms better performance wise than making my own holograms with armorstands?
its been a while
ive been doing other languages and such and i wanted to get back into minecraft devoplment
but with kotlin
is there a good place i should enter or some kind of recources online?
@prisma wave have u made the youtube tutorials yet? 😂
yeah he's on it right now
unfortunately that was a joke
:((
do u think u could help with this
yeah he's getting on it right away
"playing visual studio code"
i made what myself?
I already spend about 10 hours a day doing C i need to do something that i actually like
Not specific to MC but the official docs are pretty good
is it possible to use deluxemenus on a 1.8 server?
or simply trial and error until you find something that works
Sir, this is #dev-general
does plugin makers have documentation for specifically kotlin or just java
well do u know the answer?
I don't, cuz we don't talk about deluxemenus here
alr alr
kotlin for minecraft plugin is not so different from java
it should not matter
^
#general-plugins tho
easiest solution is to just code the java language from scratch and work from there
you'll generally interact with the libraries in the exact same way
im incredibly helpful yes
now i remember why i wanted youtube tutorials so bad
its already summer
"this summer"
im doing contracting work for summer ill give u like 80% of my check to make youtube videos
like 12$ they dont pay so well
💀
nah i make 15-20 n hour
its actually amazing
and all i have to do is get punched in the face by some bipolar kid that works with me
🤨
wtf is kotlin
x: Int
instead of int x
- why need the colon
- why does it need to be capitalized
its the best language in the world compared to java but it still makes my heart cry
no semicolons though so actually kind of nice
x: Int is the same as int x
and that's thee equivalent of java's Integer, because kotlin doesn't have primitives
ew
declaring the type isnt even necessary
what about functions
for variables/fields is not always necessary
- because types are optional, i.e
val x: Int = 3==val x = 3and so postfix notation means that it's easier to change from implicit to explitiy - because it's not a primitive type
why does python do it but not kotlin
probably suck
x = int(value)
it has type inference
what does that have to do with anything i said?
I hope you know that int() is Integer.parseInt
^
haskell better tho
TRUE
why cant everyone just be c++ with python syntax ;-; never a perfect language
what would that even look like
that is literally java 10+
yeah but java has painful syntax
var and val means mutable and immutable btw
TRUE
classes
imagine having classes
writing a class in java
or objects
TRUE
or i can suggest memory safe blazinglx fast language!
^^
yes
i like
thats what i mean
what is haskel used for
all
soy object fan vs chad algebraic data type enjoyer
no one making that meme looks like a chad
what
no one that can understand it looks like a chad i meant to say
wdym we all do
just me then... ok
I had a theory and idk if its right but all the actual good java programmers get a real jobs that pay really well so all the top tier devs on minecraft servers are low level real world programmers right? it kind of makes sense but idk what the world is
minecraft can be a well paying job
not more than like 100k a year
and mid level programmers can make that
maybe only at hypixel
brw https://survey.stackoverflow.co/2022/#technology-top-paying-technologies if you want to check salaries
Look at all those functional languages 😌
Assembly devs explaining how youre code is slow and too high level
Note: you are a C dev
@prisma wave u know kotlin so why can java be so easily converted to kotlin but converting kotlin to java is harder
any idea if chart.js is capable of doing something like this?
kotlin is somewhat more abstract than java and some features would be impossible to express in a single java file
to do a for loop in kotlin it says for (i in 1..5){} to do it 5 times while in C its for (int i; i < 5; i++){} is there a way to do something like this in kotlin or its strict syntax
why would you want to do it c style way lmao
use java for that matter
^
I just mean the i> 5 for conditional part
But why
The kotlin version does the same thing
And you can just add a condition inside the loop if you really need
https://youtu.be/AaZ_RSt0KP8 worth watching tbh, I'm 4 minutes in and is very interesting
Edit: totally dope
Tiny particles from distant galaxies have caused plane accidents, election interference and game glitches. This video is sponsored by Brilliant. The first 200 people to sign up via https://brilliant.org/veritasium get 20% off a yearly subscription.
This video was inspired by the RadioLab Podcast "Bit Flip" https://ve42.co/BF -- they're brillian...
When using hashmaps, do I have to sent all of them to null onDisable? I heard somewhere its good to do that to prevent leaks. They are from another class and I would have to access them with new since I dont have them static, but this doesn't make sense to me since it will have plugins already disabled when calling that. Any advice?
You should not do that, also you wouldn't be able to access them by using new, that would create a new instance
If they aren't static, they will be handled by the gc
Static will as well, but there are more nuances when it comes to that
Gotcha, thank you
If they're not static it's almost certainly fine
The only thing you should be careful about is hard references to things like Players and Worlds, since that might prevent them from being unloaded and cause an actual memory leak / problem
Oh this was 6 hours ago
just set the hashmap itself into null
if you are worried about leaks etc
Uhm is using an api like Holographic Displays for holograms better performance wise than making my own holograms with armorstands?
Well... depends
You might not have as many features to loop through.
wdym
Well for the features, you might not have everything that HD does. So you wouldn't have all the bloat to loop through like it does.
Then also you might be using better API calls if you code it in later versions of MC then HD is coded for.
so what would be the best option in your opinion?
My opinion... Always code your own. You won't have to worry about someoneelses code.
Simple holograms are pretty trivial so if you don't need any special features yeah just do it yourself
keep in mind though, unless you go into packets they will be ticked by the server
i remember someone saying decentholograms is okay but i have never checked their source code
Honestly using packets ain't all that difficult, consider all the tutorials for exactly this
What do you guys use for hosting? I’ve used MelonCube before, but I feel there might be something better for the money 2022. Advice?