#dev-general
1 messages · Page 616 of 1
so for small amounts of data its probably no different, for large amounts of data such as custom and vanilla item lists its better
how is arraylist n^2
it iterates once over the array
im looking it up on stackocerflow
kek
hashmap is also not O(n) lol
im just copy and pasting what that says
arraylist o(n) hashmap o(1). they multipled it by n for whatever reason
the stackoverflow post
was saying about n searches
so for n searches in arraylist it is O(n^2)
yeah
it does say arraylist is o(n) and hashmap is o(1)
lmao
no it depends, but generally speaking HashMap is O(n) but Ω(1)
i guess like depending on size and hashing function and spread and stuff
but theoretically it should be O(1) access
yeah in abstract terms yeah
and I can't remember whether java uses linked list collision strategy or just bumping along the keys
your mother
but god it would be awful if you got O(n) access
iirc it uses some sort of linked list
yeah im pretty sure it does
Anyone worked with the bw 1058 api here
You do, big oh for hashmaps is O(n)
Where did Emily go?
It is…are u on ur phone?
is emily dead
this is serious
she's still in Matt's discord
she left HC and Dev Den though
Oh no, why?
not super sure
Have you read through it?
It by itself mentions that worst case is O(n)
O(1) is the average case, big theta not big oh
Yes
like shit has to seriously hit the fan for it to be bad lol
Yes, but the worst case bound is used more often than the other 2 afaik, not that it really matters much in this case
O
yeah no I totally agree
just everyone refers to hashmaps at O(1) cause it's really hard to get it much worse
with autoresizing and a good hash algorithm
and some impls guarantee O(1) I saw
Arrays can beat hashsets due to low level behavior of the CPU
so don't use hashsets like an array...
Someone was probs using hashset instead of array.
no
img.shields.io dead?
It depends on the key type tho, I mean with a good hashCode impl HashMap could be O(1)
i want make player can't break specific block event that can be turn on/off by command
can someone check?
https://pastebin.pl/view/7fdbba19
the event still going on even i run /enabledisable disable
On mobile so it’s hard for me to fully help with that issue, but some things I’d recommend;
- Uppercase your class names, it’s more of the “norm”
- Camel case your event function name (so, onBlockBreak) for example
- You don’t need
if(enabledisable == true), doingif(enabledisable)does that. - Personally, I’d change that variable to something like
isEnabledorcanBreakBlocksso it makes more sense. - I’d change
if(enabledisable == false)toif(!enabledisable)it’s much cleaner
You might find changing those IFs fixes it, as I don’t see any other issues from viewing on phone
jesus
everything is named enabledisable. I thought its just a boolean but no, its the method, its the class, its the boolean
thanks!
oh and its the plugin as well
xD im new
Uhm how would you guys do something similar to mycommands where you can add custom commands yourself. I wanna add a simple custom command in my server management plugin but unsure how it would even work tbh
Code one its easy
https://mf.mattstudios.me/mf/mf-1
If you don't want the burden of doing everything alone..use this library...
or Aikars Command Framework
what would I do is using reflections, which I'm looking to avoid due to the size but if you dont have a problem with it use it, and then do like a command framework
how would it work is like, a manager reads all class files that implement CommandExecutor
and you can use commandmap to add them to the server
@latent dirge @primal crystal not asking for a lib to do custom commands on my plugin lol.
Couldn’t I just use the bukkit CommandManager to add commands?
very sad
Why did she leave
Yea you can extend command and add the commands to the command map
i have made a guide on spigot for that
Could you link it? Pls
how does the .teleport() work ? it cannot handle three integers in the brackets
i presume you pass in a location or something
but for example player.teleport(0, 10, 0); doesnt work :(
how can i teleport a player to some coordinates ?
Player#teleport(new Location(world, 0, 10, 0));
what the hell
incredible docdex
thx
but what does the "new Location" mean ?
Coordinates are parsed through the Location object in spigot
is this a variable ?
So when you do Player#getLocation() for example, that object provides a large portion of methods for getting x, y, z, yaw, pitch, etc aswell as including add and subtract methods for it
declaration: package: org.bukkit, class: Location
ok i just had to import the class :)
hey, im looking forward to a big project, check my status and dm me ig
Float joinZ = plugin.getConfig().getInt("JoinZ") + 0.5;
why does this not work ? it says Incompatible types. Found: 'double', required: 'java.lang.Float'
now i have deleted the + 0.5 part and it says Incompatible types. Found: 'int', required: 'java.lang.Float'
use the float over Float
and also 0.5 would be inferred as a double, so you need to type 0.5f
:(
how can i make a function in java ?
i dont understand the articles in the internet :/ i want to teleport a player to a location, but thats too many code to use everytime. so i want to create a function like "player.resetlocation()" :D
It's discord bug, if you check the reactions it's still there
o ye wtf
Whadafak
who banned em
No one
💀
remind me how to replace $version in plugin.yml with current version using gradle then
nvm fixd it
i need help
There is no time to wait! Ask your question @stone crane!
does anyone here know how to stop hackers?
i may or may not be stuck in a website by hackers
aaaaaaand, they are forcing me to compete for 500 dollars
but i need a competitor
and they wont let me go
until the game ends
all i need to do is to get someone in and one of us hurry
ALT + F4
i doesn't wok
i already tried everything
even trying to get other hacker help
nothing works
im gonna need someone to go in and challenge me to a non-competitive game
also
they threaten to leak my ip address to people if i somehow get off
this is VERY serious
and im scared
guys?
hello?
public void PlayerDeathEvent(PlayerRespawnEvent event) {
Player player = event.getPlayer();
for (Player pl : Bukkit.getWorld("world").getPlayers()) {
player.sendMessage(ChatColor.RED + "You Died...");
player.getInventory().addItem(new ItemStack(Material.DIAMOND));
}
}```
i want give item when player respawn (after died), but this code not working
just restart ur pc lol
leaking ip wont do anything
Is the event registered? Debug it to check if its running. Also that code with give the item to all players in the world.
yep registered, so how to make when player died, only give item to that player?
remove the for loop. And if its registered but not running... debug it.
ah it works, thanks!
to replace ${version} in plugin.yml with the one in build.gradle?
yes
processResources {
eachFile {
if (file.name.endsWith(".yml")) {
expand version: version
}
}
}
you can opt out the file.name
that
or do == plugin.yml
do you have version defined?
yes
My guess is, that this might be caused by the build cache
because I need to invalidate it, in order for it to work again
just run gradle clean

yo
why i trying to download
placeholder
this popping up
Failed to find an expansion named: Essentials
#placeholder-api please.
when you publish a new release for every 10 lines of code changed
what
OH MY FUCKING GOD
💀
You are wrong M0dii
Most of the updates are related to the web editor which has all features since it was made, and recently, for translations!
Added all potion effects to the web editor
Yet, the plugin has like 30 effects
most*
Jk man 🤣
find the difference between these two
he forgot some of them lol
2 days later he found more debug messages
full on new release for translation fix
o hey I found another debug message update
man he's really struggling with russian translation
:/
:))))
I don't want to image wall spam the chat, but yeah, there's more single fix russian translation and more remove debug message updates
obviously, he's also struggling with using a debugger lol
💀
E
question
how to get the nickname from the command? like I'm making a mineflayer chatbot and I don't understand how to get or like extract the string that goes after command
example
!dox ltrhrd // or any other nickname
needed output:
ltrhrd's ip: // (random ip from generator)
Is there any tool to view patches as a whole, like they would be a part of the actual code?
Java patches, e.g. paper
discord is working again
Just as you do normally
Clone repo
Applypatches
Ok, and how would that help?
It is ""working""
?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!

@lean kiln if you are trying to compete/copy paste them, then at least do it better than them lol
is that possible to make custom recipe for custom item that i make with itemstack?
like custom item + custom item = custom item
😂😂 the guys a clown, just basically copied mine, and then made the design a million times worse
Ye 😂
I believe that the default recipe system supports only materials for ingredients
nope i just figure it out and it works, ingredient and the result, all can be custom item that i make with ItemStack class
Nice
Any idea how to make IJ use a certain git account for each project, instead of one for all? I have my github account logged-in but it currently uses my account for work everywhere 😒
there's not really such thing as a "git account", but the relevant settings can be modified per (local) repository (https://docs.github.com/en/get-started/getting-started-with-git/setting-your-username-in-git)
I see
Ssh keys der
Hey guys I am thinking of creating a really small free web tools for hikers, campers, and backpackers. Having trouble finding ideas. (Very simple ones like calorie calculator)
@floral grove
ya
Accept my friend request, please
alr
With many in the MC community using the “GPL requires source code on demand” argument, wouldn’t this mean we could get the source code to DeluxeChat or other clips plug-ins?
clips plugins arent licensed under gpl afaik
I thought all plug-ins are supposed to be GPL?
They have to be
Yeah
they dont
Any plug-ins that use Bukkit API have to be GPL
From what I’ve constantly seen argument wise
As long as they extend a Bukkit class they have to be
Trying to learn myself here, but I always remember that people would constantly mention it in any Discord.
“You must declare the source!!”
I’m pretty sure
We are we even talking about this lmao
this argument has been brought up time and time again
someone had a pretty good argument against this somewhere. can't find where
I believe it was in helpchat
but don't remember who
Is called "dont you have better things to do?"
Legally it's questionable, feel free to sue if you want to see the source and see if you're right lol
🌚
:)))
this was the argument
ty matt
🤣
For me I always thought it was silly and never handed over code, especially to a commercial product. However I constantly see it in Discords, MC forums etc
And it made me wonder, if everyone here follows the protocols and really goes wild over open source, couldn’t we get it
clips plugins, clips decisions
Yes by license inheritance it is supposed to but legally it'll probably be different
Yeah, legally nobody would go that far
Even all these silly NDAs in the community
No server unless you’re like Hypixel would even enforce it, the costs involved would outweigh what you’d even get in return
Hmm you're probably talking about small servers, big ones definitely would
here found it chazza #off-topic message
Hello, Anybody know how to fix "Invites are disabled" ? Although this role have permission to invite people to the server
Only Owner can invite people to the server
ok this argument is not against.
There's a lot of mixed answers to this question, mainly because I think people don't understand the license
This issue on a library might help a little bit: https://github.com/jakobkmar/KSpigot/issues/29
But yes, it would mean that we could get the source to DeluxeChat / other plugins
Depends on size, I’ve never once heard a decent sized server pursuing action, it’s just blank threats usually.
The costs involved to take this to court, hoping it doesn’t get chucked out, would be too expensive in comparison
Mine definitely would :kek:
Your server?
in conclusion: gpl bad mit good
One I work for
It’s like, I had a decent sized mc hosting company long ago threaten me (they were in the wrong btw), thankfully had someone with legal experience explain to me.
I defended my side, and they backed down in the end. I don’t think I’ve seen any court cases that stemmed from an MC server, that isn’t the likes of Hypixel
Even then, don’t think I’ve ever heard of a Hypixel court case (on the topic of plugin stuff)
That’s like saying make anticheats open source
And spigots
Let’s take what we paid for and give it to the public
Give it to some skid who gets the same use out of it now but didn’t contribute at all
In conclusion mc servers should never be open source till they’re gone
incredibly bad take
I mean... The obvious reason is cheats can just make bypasses cause they can see the code...
err if you want to look at the code, you can do so anyways
Security by obscurity isn't security
What’s the bad take it’s not wrong at all
This is not an os or something these are mc plugins
That are paid for, and not to be leaked because it is a large competition between servers
You just give your opponent the upper hand
bruh, everyone can buy it
?
if your anti cheat plugin isn't open source, it's most likely due to the code being a shitfest
Eh, I disagree there
Makes zero sense
It’s not open source because most checks are by-passable
And you do not want competing servers having the same checks
as I said, if someone wants to bypass a check, they will do anyways
Not true
It's like I used to own a MC Spoofer, it was subscription based, and people used to say to me "oh gpl says open source it", I'm like, I wouldn't do that, because that would harm my business.
Yes there are many things that harm the business, then they would figure out a way to reverse your spoofer
yea, or as you said, skid it
Stuff like edited spigots and anticheats are the two that should never be put out to public
It’s handing out paid work at the expense of losing the competition
lol
I guess you don’t really understand that till you work on something large or competing servers
you clearly have no clue how software development works
@obtuse gale but if Hypixel open sourced their anticheat, we wouldn't get any hackers!
Well that’s different cause hypixels anticheat is shit
I’m talking servers like mine men club
With one of the best anticheats eva
I gurantee if mmcs anticheat was open source, then there’s no reason to not play hypixel cause they’ll have the same checks
But they wouldn't have to open source it, GPL doesn't mean your program has to be available to everyone, it means people with access to the binary file (like a JAR) need to have access to the source
Ah yea I was talking about just open source in general
I just generally think in some senses open source isn’t the best call
Oh, got it
yeah that's where you're just wrong
Not like there’s “mc plugin zero days lmao”
You still haven’t brought up a valid point
So keep chatting
your denying everything anyways, not worth for me to waste my time
Cuz this was stupid, they wont bypass something they don’t even know exists. It would be like giving the world the 3.01 check and a way to bypass it
So you're saying an open source anti cheat wouldn't be that secure? Have you looked at Linux?
The gpl thing isn't true but if it was you'd have to open source it whether you like it or not lol
As I said this isn’t an os
And no it would not be lmao
I think the whole thing about plugins being a derivative of the core server is also a very grey area that you could probably argue against if it went to court
We can agree to disagree
Security through obscurity is not a viable solution lol
@ocean quartz comparing mc protocol which has an obvious wall vs a somewhat unexplored kernel in some sense just doesent make sense to me. But sure
btw, checks that can be bypassed are typically called "exploit" or similar :p
It's probably the most used open source project ever
Not in that sense I’m just saying like the mc protocol is much smaller and fully explored
Does not push updates as much as lonux
So if you get a way to catch a cheat best believe you don’t hand that out for the cheaters to patch it
Cause most checks are reversible
Any security is better than no security 😉
linux is "fully explored" too, that code wasn't discovered on the moon
You make security by actually making a good product, not by hiding how it works
Still not as much as mc protocol because it is about 500x smaller
that does not make sense at all
So go tell elon musk open source the tesla software
all obfuscation and closed sourcing achieves is slightly slowing down people with malicious intent
If that was the case, I'd look forward to someone taking me to court
Ok? How is that a counter argument
That would be like asking to get your car hacked
How is it not?
Thats exactly what you're saying is secured code means bad code?
No it helps stop or slow down malicious shit he’s right
wow the code is so secure, thank god its closed source!
Which is a big win for most things
well, that software would likely benefit from being open source too
Yes but now imagine the 20 other ways to inject into your Tesla leaked
All it achieves is slowing it down
I mean just look at games having their DRM removed
Imagine if measures to slow down attacks weren't take in everyday logic.
Not just software
all DRM does is make it a pain in the ass for paying customers
You literally get a better experience having a pirated version of a game because of the DRM being removed
imagine if developers fixed exploits rather than hiding for the code and hoping for the best 😵
oh sorry wrong reply
Both will at some point be exploited, open source tends to find it faster and patch it faster
Meanwhile closed source can go years being exploited without being noticed, we have seen countless examples of that
Yes but my point with minecraft anticheats is that’s not likely@possible
Why not?
the point is that is slows down attacks, not fixes them. Open sourcing will let people help you fix problems and make them known much sooner
The protocol is a brick wall, you make a check by reversing the client. They figure out what you reversed they simply change it
What do you think "Bug hunting" is for?
You act like if software isn't open sourced you can't report bugs
what
then you just have to trust them to fix them lmao
open source, you can fix them yourself
Yeah you can report them but there's no guarantee they'll get fixed
There’s no guarantee it gets fixed open source either but there is a larger chance
a significantly larger chance yes
Ah open source argument is just pros and cons
Not that significant
The amount of people that even can fix it is significantly larger
Especially since you also have the option of hiring a 3rd party to fix it
It shouldn’t be an argument let people chose what they want
I mean
It’s there code anyways
It brings society up when more code is free and open source for everyone
Not anyone else’s
obviously
Everything is pros and cons, idk why yall talk in absolutes
True this is a massive topic with two sides tho
That always just has an opposite side point
As is... every argument?
So this ain’t worth
Yeah lets just ask the military to open source their security for attacks against the nuke launch codes 😉
THIS IS A JOKE
the only "good" argument for closed source is "I don't want people stealing my 1 billion dollar startup idea"
Yea star just wants some shit to skid off
The military probably uses a ton of super outdated code, so probably would be good if they used some open source projects or made their own
fucking what lmao
Why do you think companies like Microsoft have started making a bunch of stuff open source?
VSCodium, Windows Terminal
The point of making something open source is that it can become the definitive "thing" that everyone just uses and imprvoes
Instead of having like 10 different thing, everyone can use one thing and make it better for the rest
There’s never any guarantee it’s a fair point tho
There's never any guarantee for what?
For people to improve or report
If you make a good product, people will use it and contribute to it
Zero gurantee
At the end of the day the most important thing is that your product is actually good
closed sourcing won't fix the fact that it sucks
I 100% guarantee you if you have a good product people will improve and report
Says star?
what is the crux of your argument lmao
Ok I’ll trust your word bro
?
just bullying me?
See I don't open source for contribution. I open source for tutorial. I don't like others code and I don't like working on others code.
"star wants to skid off open source projects" lmao
That's another benefit
Let me put my anticheat open source on my 2 follower GitHub. Let the cheaters view it
Lmao
oh this is about anticheat?
And nobody help it lmao
Who gives a fuck
fix it yourself then, that's your responsibility if you're charging for a product
well if looking at the code helps a cheater, your code is shit
Thats where it started
Open source so people can see my shitty code and make me improve it 
Are you stupid sir
oh anticheat is kind of a different matter as security through obscurity actually kinda works with thresholds and shit
That is not how it works
I see, but you see, who gives a damn fuck
yes it is
Obviously you bud cause If you didn’t you’d fuck off
I mean... if my code isn't "shitty" I'm not living up to the name 😉
https://github.com/TheCrappiest
Clearly not "bud"
That’s the worst argument I’ve ever heard for anticheats
do not be toxic please
🤓 🤓 🤓
Viewing and finding flaws in your application leads to more people actually attempting to fix it
Sorry the checks are easy and clean. Let me show you which packet to delay to bypass my check
If they are part of the userbase they clearly dont want to get exploited
Yea so logical
Cheaters will find exploits whether the anticheat is open source or not, but open sourcing means that other knowledgeable people can help to fix the exploits
^
So use a better detection method lmaoo
They can literally just decompile to find that out anyway
Not if they don’t have it?
if it's public then someone will leak it sooner or later
you're not selling it?
I work for somebody else
they're not selling it?
This is why we need NFT plugins!
then I guess yeah there is an argument to be had if just nobody knows anything ever
bruh we are obviously talking about public products here
Those checks that can be bypassed due to logical differences can be found even by fuzzing with packets
Elara NFT when?
But some of these peoples points are to make everything public
but for a public plugin, open sourcing is a very effective tool to help your product and get people to use it
I guess for a public plugin yea that makes sense
If you’re dropping the jar mineswell drop src
which is like 99.99% of stuff lol
Man if you wanna make your own anticheat and never give it to anyone else sure go ahead, we were talking about public projects
you are in the very small minority of making a completely private plugin
Really? Like everything I’ve done has been private. But stuff like a networking library and shit I’d make open source
yeah dude
having a github with a bunch of projects is like, the best way to get a job
Cause yes help would be nice on shit like thag
I’d more so say networking will get you where you wanna be, but yea you’re right
networking is certainly very important, but once you know someone, you gotta prove you know how to code lol
if you have some sick projects on your github, that's a great incentive
Agreed
my pain with not open source stuff mostly stems from plugins like MythicMobs and ModelEngine
funnily enough, they open sourced MMOItems and MMOCore and it has helped tremendously with stuff we're doing
understand why there's like health scaling and stuff, adding custom skills
very useful
Idk I just think most minecraft plugins stuff is obvious. Like If they are doing something specific that you want the code to. It’s fairly easy to just make it
a lot of the benefit comes from integrations with stuff
MMOItems, MMOCore, MythicMobs, ItemsAdder, ModelEngine, they all integrate nicely and work together
I guess I’m just not a fan of most styles
and I'm the only developer on this server, so it saves me a ton of work
I can focus on important stuff like the cross-server playerdata service lol
as someone who does interviews having some good projects on github helps a lot.
I think 99% of stuff I would agree should be open sourced, but there is a selective 1% where I would say no, e.g. spoofers, anticheats etc etc.
I hugely believe out of those brackets, it should be open sourced because it helps others massively to integrate stuff
seems like I missed a lot
Anticheats should be open source. A good anticheat can withstand their checks being public
If anything, an open source anticheat is actually secure while a closed source anticheat is security through obscurity, which isn't security
Anything that's closed source should be cracked and dumped onto github. Death to closed source plugins.
^^
If your idea is good and unique enough, you'll get the recognition/rewards even if its oss.
based and based and based
Denied
:)))
SO TRUE
/*
Does anyone know a fair price for a plugin that uses the GameAnalytics API (https://gameanalytics.com/docs/s/article/Collection-API) to collect data from a Minecraft server?
Asking so I can post in #948091065645277194
I prefer the features on GameAnalytics (based on their documentation)
what features they got
Are you really gonna use this tho
Yes
Do get the benefit out of it
well, for starters it's free lol
That too
and they have SDKs for any language, so you can do your games other than Minecraft
Lol
But my original question still stands, if anyone has an idea ping me please!
So will we soon 
sure lol
xD
maybe someday you'll put your prices in monthly amounts too
Based
been planned for a bit now
who knows
why would you?
Marketing > lol
because every single other company does because that's the increments you actually pay it in?
Many studies have shown that breaking down a price lets customers see better value
"better value" lmao
you should contact this guy https://github.com/NPException/GameAnalyticsAPI
An API to easily use the service of gameanalytics.com in your mod or game - GitHub - NPException/GameAnalyticsAPI: An API to easily use the service of gameanalytics.com in your mod or game
$5 a month sounds a lot cheaper than .16 cents a day
allows for easy comparison to like a Netflix subscription or something
then they'd see the 16 and go "ah god I have to do a calculation"
The same way that $4.99 is seen as cheaper than $5
that's literally what I did lol
or $9.99 is seen as cheaper than $10
customers read left to right
Plenty of studies have shown this to be a fact too
I mean, I'd hope so
that's how English works
but making people do calculations to figure out your stupid pricing model seems pretty inefficient
how come other places don't do this?
They do
such as?
D.O charges hourly while other companies charge based monthly for example Vultr.
yeah and those are pains in the asses
I mean, There were two types of Oreo boxes, same price but one had 2 more Oreos than the other… so I bought that one xd profit
Appreciated
as someone who would be buying your stuff, it's a pain to calculate
same thing for AWS
DO charging hourly makes sense because you're not on a monthly contract
that's part of the reason I get an OVH box for a fixed monthly price lmao
yeah and lockin is a big part too
Vultr also offers hourly* @prisma wave, it's up to the person.
can you get Analyze for 3 days? lol
Yes
It's especially nice when you have $100 of credit that doesn't expire and you only need to use the systems for a very short amount of time
its called a 14d trial
so you pay by the day? weird
ok
D.O credit expires after 60 days, or when the credit runs out and has to charge card.
ok and?
I've had this credit for ages, I think it's from github student
You said "because you're not on a monthly contract", just pointing out that Vultr offers the same, just dependent on the person.
i dont see how that invalidates the point at all
pricing hourly makes sense if you charge hourly
most services that don't really benefit from the flexibility of like hourly pricing like to get months as chunks
i'm honestly surprised ol' chaz doesn't show prices by the minute
very small number, would be
yeah showing hourly price only makes sense if you charge hourly lmfao
I mainly applied it because I’ve been reading marketing books in the last few months to get more experience. In it mentioned a few case studies where showing broken down prices makes something seem cheaper.
Potential customers read left to write, so they’d see 0 and continue on. On the previous pricing table we showed the monthly price beneath.
The end goal is that server owners go “wow, only $0.x a day?! I could get more than that from a store purchase daily”
I guess lol
I feel like seeing "wow, only $5 a month? I could get more than that from a single store purchase!"
does it show monthly price at all?
We did yeah, I forgot when I added new one, but in the pricing page we do
I updated the pricing table today, and forgot to include but we had
$0.x /day
Only $4.99 a month
doesn't on the main page
But when you go to pay it shows you $4.99 a month
The update before today we did
yeah that feels misleading af then
What?
i would rather $4.99/month in bold (only blah /day!)
show me what im actually having to pay
rather than some misleading technique
You see what you pay for when you go to the billing dashboard
yeah like if you have to pay in monthly increments, show the month up front
oh that's fucked lol
thats like what adobe do lmao
you sign up and go to pay and then it hits you with the actual price
It shows you
Tier 1: $4.99
Tier 2: $9.99
they say "$30 a month" and then lock you into an annual contract
You can select plans
Neither of you are getting it lol
Landing page shows $0.13 or whatever a day, when you click the button and sign in / up and go to billing.
You’re then shown the list of plans
Before you enter any form of payment
Which shows the monthly amount
yeah Adobe does that too
It can’t be misleading if it totals up to the same amount
doesn't make it any less shitty
Scummy tactics
Best cheap hosting for networks?
Yeah I agree, the way adobe do it is scummy
You don't do monthly payments?
I do monthly payments, but when they pay they see the monthly amount, but they can cancel at any point
Adobe show you monthly, but in small writing you’re forced to pay for a year or two
Yeah you're doing the same thing one step down
Adobe: Month -> Year
You: Day -> Month
Not really
It's the same lol
They see daily on the landing, but as soon as they go to the billing dashboard to select a plan, all of them are shown as monthly
And when they go to pay they see monthly
So it certainly isn’t the same
Adobe lock you in, I don’t lock you in, you could buy a month and then cancel
You’d get your month and then you could dip
Don’t get you Star sorry
You show daily payments
pretty sure u can still can cancel ur sub in adobe too? this is the exact same
You then pay and are locked into a month
You’re forced to pay
When you try cancel
They show month but once you go to the billing dashboard to select the plan, all of them are shown as yearly
You can, it's literally the same lol
Many companies show the monthly break down when you pay yearly, so that’s no different
Because you get the yearly total at check out
So people know before they enter their card
Yeah that's just as scummy
Yeah lmao
@wintry plinth it is scummy. bcz you say 0.16/day which would imply that you pay daily. that's what loads of VPS companies do. what you should do instead is something like this:
4.99/mo which is 0.16/day
Yeah nice idea
no no Blitz, you silly
Can add that to the landing
Why even show per day, who cares, just show the actual price
Because showing per day gives a sense of how cheap it is
"mArKeTiNg"
Aka scummy
Let me correct you, "gives a sense of it being cheaper than it is"
gives a sense
"gives a sense"
It isn't, it's a "sense that it is"
yeah chazza. its not bad to show it per day. I've seen it doen correctly but make it clear that the price you pay is monthly and what the actual price is
Thank you yeah, I’ll certainly reword it
Ah okay, it just took Blitz to make him realize his mistake lmao
Because star you’re hostile tbh
Couldn't you just add a little * and say Billed monthly?
Blitz has spoken to me properly
I’ll take someone serious when they speak properly
at this point im unsure if you're being like this intentionally or if you just have no idea what you're doing
In other news, JavaScript is trying to steal back the crown from TypeScript, they just added a proposal to add types to the language lmao
I have a feeling it won't replace it, TypeScript has a super unique typing model and stuff that I feel won't be replicated
But could help I guess lol, dynamic languages kinda suck at least IDE features wise cause you have to do a lot of typing hinting to get anything useful, and it could obviously just be wrong right
Oh yeah I doubt it, their proposal is really bad lmao
They want it with comments
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
disgusting
*TypeScript are adding it to Javascript
Could we have TypeScript with no build step? Could we have types in JavaScript? Maybe!
We're exploring bringing optional type syntax into the JavaScript language!
https://t.co/VUgckfpiHB
5270
1395
Basically so browsers don't need to add a system for type checking and so it doesn't need compilation like TS does
Yes because it's the most asked feature for JS and they'll never add it on their own
That's why people are moving to TS more and more
Interesting tbf
TS very cool
wish ECMAScript supported types like TS does so it could just work
could literally just like not really do anything with them
is possible to make gradle only build projects that are used on the project I want to build? For instance, on my plugin I have the plugin module which depends on some small modules for compatibility with different game versions, and then this updater module. Whenever I build the updater with gradlew updater:shadowJar all modules are being built as well
Add shadow only to the module you want to use it
yeah but wont plugin still be built when updater is? and vice-versa
Cant you build a specific part only?
nvm I found the problem xD I forgot to change gradle project once I moved to modules
Oof
Uhm whats a good way to update config files? By this I mean, when updating a plugin and adding new keys to the config, I would like to update it automatically without the need of me manually updating it
Sounds like a good time to have a config version number and migrations
Is there any way, how to use hex colors in scoreboards objective? I tried guide: https://www.spigotmc.org/threads/1-16-scoreboard-objective-score-with-rgb-hex-color.468079/, but I don't have any idea, how to use it in java, because it's written in kotlin. Can someone please help with this topic?
is the same thing
it literally is the same
@real pilot val and var is the same as Object something, but without you having to specify the type, objective.something = value is a setter, objecting.setSomething(value) and objective.something is a getter
Ok, I tried, but there's something more unclear to me https://imgur.com/a/WOES4JO
you're creating the team after accessing it - therefore it's null
OK, thank you very much. Now it works 👍
forge discord got raided lmfao
Amazing
Why tf does showcase only have up reactions now
That sucks
We cant downgrade the analyse copy pasta website
Sus
please complain to cube
Could we get a vote? Either a separate link or in announcements?
I know there are mixed views on the likes & dislikes, so it'll be good to settle it with the community
Yeah we may, we're just trialing it at the moment to see how it is
i personally think showcase is more of a feedback thing, and if I'm posting something in there knowing it sucks is pretty useful
tbh showcase doesnt need likes or dislikes at all
if you have a feedback, just @ the author here
no, not here, but in #off-topic
shut up
@sly sonnet your project is cool asf 😎
what project
I was joking because you said to @ here
X D
@sly sonnet and @wintry plinth just wanted to let you know dislikes were removed and can no longer be used. thank you
you can however like, subscribe and follow for more
🥰
that's the spirit
can relate
yeah. me trying to help someone fix an app 2 weeks ago
Wait really 😂
nah. but almost ended up doing something stupid
What did you nearly do
Is there a such thing as a custom server GUI launcher? Not the original one which you opt out from using -nogui.
Or is it possible to find the source code for the original?
isn't that what pterodactyl is?
no exactly, at least not what I'm looking for
it's a web interface
found something
https://github.com/Bertware/bukkitgui2
I believe there's one called MCServerSoft if that's what you mean
Is there a reason why you need source?
Well, I like to look at examples and how certain things are done
I'm no expert myself
Someone maybe know how i can do a multiproxy? Just buying load balancer will be fine?
@desert horizon How does that minecart thingy you posted in #showcase work? My guess was an armor stand sitting in a minecart, but judging from what you wrote, this isn't the case. Is this just a normal custom entity? If yes, how did you make it behave like a minecart? Thanks for your time :)
Thanks, but I am not really interested in how to use it, but how it works internally. I understand that it uses CustomModelData for the item itself to look the way it looks. But what trick does this use in order for the entity to behave like minecart, but appear differently.
....
This isn't something from me. I just used it in TrainCarts. Figure stuff out yourself from there
Oh I see now, thanks
btw
if i go ahead download source code from github
do i expect the pom.xml to download all the necessary libraries and expect for them to work? or do i have to do manual work for the needed libraries?
it should
https://github.com/SeanOMik/EnergeticStorage
ok so you see, i like this plugin and it's open source but there are specific options i don't want and i think i can just check where those options are and just remove them properly
my main issue is that after cloning the files via intellij, errors due to "missing libraries" are coming left and right
should i just edit compiled class files instead?
Reload the maven project...it should download all the files from the repository
ok so
how can i import paper 1.18.2 as external library to eclipse and use its content?
paper changed how the .jar patches now
it doesn't actually patch when you start server
you don't get patched.jar
[WARNING] log4j-api-2.0-beta9.jar, log4j-core-2.0-beta9.jar define 2 overlapping resources:
[WARNING] - META-INF/LICENSE
[WARNING] - META-INF/NOTICE
[WARNING] functional-annotations-0.1-SNAPSHOT.jar, item-nbt-api-2.9.2-SNAPSHOT.jar define 3 overlapping resources:
[WARNING] - LICENSE
- LICENSE
- META-INF/maven/de.tr7zw/functional-annotations/pom.properties
- META-INF/maven/de.tr7zw/functional-annotations/pom.xml
annotations-13.0.jar, anvilgui-1.5.3-SNAPSHOT.jar, authlib-1.5.21.jar, bstats-base-2.2.1.jar, bstats-bukkit-2.2.1.jar, commons-codec-1.9.jar, commons-io-2.4.jar, commons-lang3-3.11.jar, commons-text-1.9.jar, energeticstorage-0.7.6-SNAPSHOT.jar, functional-annotations-0.1-SNAPSHOT.jar, gson-2.8.0.jar, guava-21.0.jar, hamcrest-core-1.1.jar, item-nbt-api-2.9.2-SNAPSHOT.jar, json-simple-1.1.1.jar, jsr305-2.0.1.jar, junit-4.10.jar, log4j-api-2.0-beta9.jar, log4j-core-2.0-beta9.jar define 1 overlapping resource:
- META-INF/MANIFEST.MF
commons-codec-1.9.jar, commons-io-2.4.jar, commons-lang3-3.11.jar, commons-text-1.9.jar define 2 overlapping resources:
- META-INF/LICENSE.txt
- META-INF/NOTICE.txt
hamcrest-core-1.1.jar, junit-4.10.jar define 22 overlapping class and resource:
- LICENSE.txt
- org.hamcrest.BaseDescription
- org.hamcrest.BaseMatcher
- org.hamcrest.CoreMatchers
- org.hamcrest.Description
- org.hamcrest.Factory
- org.hamcrest.Matcher
- org.hamcrest.SelfDescribing
- org.hamcrest.StringDescription
- org.hamcrest.core.AllOf
- 12 more...
ok so i tried to compile the source code of energetic storage and idk how to deal with this
does anyone know what i should do or do i just search harder in the internet?
Hey! I added latest craftbukkit-1.18.2.jar as dependency in IntelliJ module settings and when trying to import it, IntelliJ can't find it.
import org.bukkit.craftbukkit;
itemStack = new ItemStack(Material.PLAYER_HEAD, 1);
itemMeta = itemStack.getItemMeta();
if (itemMeta != null) {
itemMeta.setDisplayName(displayname);
itemMeta.skullOwner(skullOwner);
}
}```
hi, the "skullOwner" method doesnt work anymore how can i do this in 1.18.1 ?
setSkullOwner
also requires a UUID, not string
iirc
wait no
OfflinePlayer
because it's special
public ItemStack createSkullItem(Player player) {
ItemStack item = new ItemStack(Material.PLAYER_HEAD);
SkullMeta meta = (SkullMeta) item.getItemMeta();
meta.setOwningPlayer(Bukkit.getOfflinePlayer(player.getUniqueId()));
item.setItemMeta(meta);
return item;
}
Example
oh yeah ignore me i don't make plugins
true you do. I don't make plugins anymore, I am just going off documentation from a week ago.
Is there something like https://spiget.org/ for Bukkit, Paper, Sponge etc resources? I'm trying to make a tool that involves searching through plugins and I need to be able to view the versions each plugin supports, but some people may use plugins that aren't on https://spigotmc.org/resources/ but may be on other sites specific to other server JARs
Well Spiget would show Bukkit / Paper and Bungee if they’re on Spigot
If they are on another platform then no
bStats would be your best bet
Paper plugins are on Spigot??
I had a look, but bStats doesn't seem to return the supported versions
Really? No surprise, I’ve been tempted to remake bStats, god awful
And yeah paper plug-ins are on spigot but they can’t be paper specific
Oh right ye that's what I meant, sorry
Yeah md_69 doesn’t allow it aha
I can see the version each server using the plugin uses, but that doesn't necessarily mean the plugin works on that version, and I'd be missing other versions which do work
Ohhh that’s what you mean yeah
I mean, the resource team are the actual ones who control it, so not purely md5
when u write a bunch of code, then realize 3/4 of it is useless, so u refactor while knowing u just wasted a ton of time
Why you gotta call us out like this?

Yes please 👀
its so bad 😂
Did you think about sharing your valuable feedback with the developer?
No because I’d much sooner just remake a modern version of it
that no one will use
Why be so negative and hostile aha
There is room for everyone regardless of what it is, but you can build a fun project to open source, doesn’t mean someone has to use it
its so bad 😂
Why be so negative and hostile aha
:)
people tried to make other services but they got shutdown, probably due to the lack of users
How I see it, and this applies to everything, there is room for everyone if you’ve got something to offer. Plenty of things that I would personally change to make it better.
Having built a couple platforms, I have more legroom to play with, but I’d prob go the open source route because then it just becomes a fun project
I just think that a supportive community where people work with each other is better than a "its so bad 😂" community
I feel you! We are in this together 💪
bastian is working on an update though
The current stack that bStats uses wouldn’t be something I’d personally touch
Hence why I wouldn’t just PR it
I mean what's so wrong with bstats?
and the biggest part of telemetry frameworks is number of users, and bstats has a pretty big adoption rate
doesn't work with darkreader
honestly tragic
oh the website lmao
🤣
😂
is a good platform, especially when all charts will be usable and will be added a way to add links to stuff like source code, plugin page(s)
That 1 server who uses Yatopia and 4 server which uses Bukkit😅
Cough analyse cough
Exactly 😎 lots of expansion ideas
not just servers
that no one uses
Has anyone built a Javascript MiniMessage parse lib?
why would anyone hate themself enough to do that
I know, 😂 wanted to create a nice web project for something, and haven't found something yet
its all tag shit which makes it a pain
because you can do shit like <rainbow>x
there is https://webui.adventure.kyori.net/ but it's written in kotlin
Ye that was my struggle
Would need to be JS based, i wouldn't want to do a web app with java
well it compiles to js
because tags don't have to be closed, it would mean I'd end up with a ton of regex checks
or well, you need both
Hi, can someone Fix my code ? it says " 'setOwner(java.lang.String)' is deprecated " but i dont know what the new method is
ItemStack itemStack;
ItemMeta itemMeta;
SkullMeta meta = (SkullMeta) itemStack.getItemMeta();
public SkullCreator(String displayname, String skullOwner) {
itemStack = new ItemStack(Material.PLAYER_HEAD, 1);
itemMeta = itemStack.getItemMeta();
itemMeta.setDisplayName("§6§l" + displayname);
meta.setOwner(skullOwner);
}
public ItemStack build() {
itemStack.setItemMeta(itemMeta);
return itemStack;
}
}```
SkullMeta#setOwningPlayer()
just replace it ?
instead of setOwner(), use setOwningPlayer()
I doubt the current grammar is regular
but now, the varible skullOwner is red underlined...
yeah because you never created the variable skullOwner
Oh wait nvm you did
as a parameter
:)
i think it has to be a Player and not a name
ok, by replacing String to Player it works :)
Nice
“Can someone fix my code” got me ded haha
i am not native english speaker :)
My all-time favorite answer https://stackoverflow.com/a/1732454
oh yeah



html regex: \<(.|\n)+>
Welcome back Emily!
meh
Oh very nice
Using the following to get a players IP:
player.getAddress().getAddress().getHostAddress();
Works but some users (like myself) end up with:
cp*****-bas***-2-0-cust**.20-1.cable.virginm.net
any way to get actual ip
nice virgin media
ye 😂
it flaggedup as an error and I thought wtf first seeing this
but idk how to get my actual IP
Why not getAddress()?
I just followed spigot stuff https://www.spigotmc.org/threads/how-do-i-get-a-players-ip.325680/
😂
I wasn't sure
welcome to spigot tutorials
hahahha
some people use the fun method that does a reverse lookup
Guys, I want to make text animation. How can I make the text blink in colors?
There is a way to get it?
In DeluxeMenus
That's how you get text from an IP
getHostName()
it blocks until it successfully gets it, which sometimes happens on the main thread due to incompetence
System.out.println("A: " + event.getPlayer().getAddress().getHostName());
System.out.println("B: " + event.getPlayer().getAddress().getHostString());
System.out.println("C: " + event.getPlayer().getAddress().getAddress().getHostName());
All these return the same thing annoyingly
They might if the lookup fails
you might want to check if it is an Inet4Address
would mc show me if its a ipv4? my login shows it
I've given people my IPv6 because it's funny as they don't think it will work
np
Hi, someone knows python language?
How can I make my Pc write something
Like writing a WhatsApp or a DM
Because I know how to make te code but idk how to write the text
Idk if you are understanding
Ithink I know what you mean
hmm well one way to do it would be if whats app had some py module you could use
print("asdasd")
I want to write dms every 3 segs to one person to try to win
I mean to make my keyboard write
spamming is bad
:c
Anyone knows what placeholder API i need to use to see your name in the leaderboard?
static int i = 0;
public static void sendEquipmentPacket(
final List<Equipment> equipmentList,
final int entityId,
final Player... sendTo
) {
if (i == 1) return;
i++;
Bukkit.broadcastMessage("Sending armor packet of id: " + entityId);
for (final Equipment equipment : equipmentList) {
final ItemStack itemStack = SpigotDataHelper.toBukkitItemStack(equipment.getItem());
Bukkit.broadcastMessage("Adding item: " + itemStack.getType() + " as " + equipment.getSlot());
}
for (final Player p : sendTo) {
PacketEvents.getAPI().getPlayerManager().sendPacket(p, new WrapperPlayServerEntityEquipment(
entityId,
equipmentList
));
}
}
[15:14:59 INFO]: Sending armor packet of id: 6
[15:14:59 INFO]: Adding item: AIR as HELMET
I get kicked with this client error: Internal Exception: ionetty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 104
I put the static int there just to make sure sure it wasn't an issue with multiple packets being sent.
(I'm using PacketEvents)
Any ideas on what I'm doing wrong?
If you could ping me too that would be great.
actually does anyone have the link to the release of the jbr 17 with dcevm?
I cant find it
Are you supposed to be using null instead of air?
I'm not sure, I can check.
found it
never mind that was the binaries
help
oh never mind again
how can i do this
When someone presses an item in a predetermined menu, others, including the person who pressed it, can't press it and have to wait for cooldown.
same cooldown at the same time
Kinda cringe question, dont ask, but anyone knows a plugin that hosts HTML websites and supports JS, CSS and Java (backend)? You may wonder why I need to host it in my minecraft server, dont ask cause I cant explain it either.
dont ask cause I cant explain it either
Gonna take a shot in the dark and say it's because you think you'll save a buck by hosting it through your server instead of renting a separate one
to answer the question though
I have a VM xd
don't see how that effects anything
html/css/js are all browser based so as long as the server returns the right content the browser handles it
not sure what you mean by "java backend"
Ye suppose its not needed if I am already running it on a mc server
Oh welp, thx
Will see if it works for what I need
what I personally believe you need
is a fresh perspective on the problem
because it sounds like an xy problem
how to run a linux os in java
Os.LINUX.start()
new Linux().start();
if (operatingSystem instanceof Linux)
operatingSystem.start();
else
System.blowup();
Eww no {}
if (
operatingSystem instanceof Linux ){
operatingSystem.start ();}
else {
System.blowUp ();}
better?
I love it
wonderful
