#dev-general
1 messages · Page 604 of 1
why is there no mention of this anywhere
I’ve never used it but I want to, especially for private projects that utilise NMS but always had to use the silly names, so if you use a mapping, and let’s say #doThis, on compile it’ll change it in source to say #aV
There is, in the paper discord, lol
im not in the paper discord
gg/papermc
Here's one of my projects I just updated the other day to use paperweight. https://github.com/darbyjack/Rocketeer/commit/f3c02c97f20f75fd2e98c72dd6a5214e845ce8d4
ive hit the limit for servers smh
Thats cool, glare
And then it compiles back into spigot stuff
So in your workspace you get to work with the real code
So if you use a mapped function like getDinosaur it’ll change to aV in the code?
When it compiles
Yes
That’s so cool
Damn gonna have to use this for a private spoofer I have
Because for 1.8 to like 1.15 I had the obfuscated method names and variables
How far back do we have mappings for?
Pretty sure you can only use this in 1.17+
Don't hold me to that though but I'm like 80% sure it's only newer versions.
Oh haha, I mean would be fair enough because ancient versions are pointless to support, but would be dope haha
just dropped 1.16 support cause its easier to do ci with 1.17 + 1.18 😆
cause 1.16 only supports java 16, and 1.17/1.18 supports java 17, and i really wanted to upgrade anyways
What looks nicer?
if (true)
{
} else
{
}
or
if (true)
{
}
else
{
}
None, allman 🤮
This is C++
Still ugly
Ok well I'm not gonna use
if () {
} else {
}
``` in c++ tho
k&r or die
Is k&r this?
Sucks to suck
Anyways iirc second one is the correct for allman
Haskell be like
I personally use this:
if() {
/*coooooooooodeeeeeeeeee*/
} else {
/*coooooooooodeeeeeeeeee*/
}
Readable 
Doesnt hurt your eyes while seeing it 
You dont suffer while coding with it 
I don’t see how that matters.
I’m just more of a fan of compact code
literally none of them
this the real way
get real
Haskell style is ```cpp
if (expression)
{
} else
{
}
I think
But it's hard to say because it doesn't have if / else blocks
I do that but without indenting {} when doing PHP, just because it’s like the standard
But I don’t do it myself, formatter ftw
Better option: don't use php
For $500 I’d be wanting to take over the project!! Lol
then I can release updates quicker than the current rate 😂
Yugi when do you want to deploy sj to my repo or whatever? I ran into the gson bug and deployed an updated version to my repo to use it
Is tonight ok?
Idk what time it is for you rn
Bloody hell
Studying for exams
It’s only 9am here
I'll be free in the after noon
Damn okay you're 11 hours ahead of me
Could you make a user/token for io.github.slimjar?
Then I can just push to that later
Ye I can do that
Yeah cause I have like 99.8% update over 3 years on that puppy. Only goes down when OVH dies or I do an update
Awesome 💯 💯 💯
I'll give it its own repo but then also make it show on the public repo so it can be grabbed from etiher.
Sure 💯
While browsing spigotmc forums I found something stupid...
public void onQuit(PlayerQuitEvent e) {
e.setCancelled(true);
}
You can't just restrict player from leaving your server, right? xd
Correct
how do i do reaction roles for like stuff fo ryour profile on a server
if it was a signature, that's common wxip
idk how to code or anything so
uhmm, you can make your custom bot, but there are other bots available that do that, carlbot, for example.
https://carl.gg has reaction roles
xd
a prefix usually is for commands
idk how or what to do with that
imagine prefix !
!help
!role
it goes before command
it is needed for the bot to understand you want to execute a command
something to indicate to the bot that your message is a command
jeez now i know im actually dumb lol, i have no idea whats happenign
it says general, idk what to put, is it important to type anything there?
When someone sends a DDOS attack onto your server, you can also do:
public void onDDOS(DDOSAttackEvent e) {
e.setCancelled(true);
}
CC: @kindred hatch
😄
Oooh good one write that down

Gianluca @GiansCode 13h
They don't want you to know this:
@EventHandler
public void onDDoS(DDoSEvent event) {
if (event.getDDoS().isActive()) {
event.setCancelled (true);
}
}
16
t214
103
ScottehBoeh @ BoehMod @Sc... 11h
But what if !event.isCancellable()? ;-;
21
3
Mitch
SK1ER
@Sk1er_
Replying to @ScottehBoeh @GiansCode and
@ev...
Always an easy fix
Done
unpopular opinion
🤣
Hahaha
What'd you use to make that so fast? Just Photoshop?
Had to hunt for the generator
@jovial warren
[11:42:17 WARN]: Nag author(s): '[Ome_R]' of 'WildStacker' about their usage of System.out/err.print. Please use your plugin's logger instead (JavaPlugin#getLogger).
the fuck man?
Ahh
Tired of all the crappy bart simpson chalkboard generators? Yeah so was I, so I whipped this monster up! Have fun and follow me on twitter @iyae!
Was harder on mobile I had to screenshot
Save png didn’t work lmao
Why are you tagging Bom for that and hwy did that make me laugh so hard
i know, but why not?
Idk 😂
I think I'm sleep deprived so that way too funny the way that came across in my mind
Hahaha, got the giggles
As soon as you said write it down I was like Google Bart Simpson thing lmao
Yeah
paper making the world better once again
imagine using wildstacker 
Today is the day to be mad a plugins that are obfuscated for literally no reason.
every day is a good day to be mad at plugins that are obfuscated
Every day is a good day to be mad
mad cuz bad
Why wouldn't it be Glare
Yeah, I defo agree that 99% of plug-ins shouldn’t be obfuscated, only obfuscate where there is a genuine reason to
Not some crap player warp
Because that can be easily remade
My only reason to do that would be to minimize jar size lmao
meh
Spigot do be shafting us on jar size limits :(
The only time I’d obfuscate still would be for important projects to protect, like for me when I owned that spoofer you didn’t have anything else on the market similar
ew
I'd just throw MiniMOTD on and let it change my player count on the ping list
But then they join and nobody
Like dudes do rn, people just join and then leave because there’s no one ingame
Time to make live acting NPCs
Yessss do it
that's just some idiot deciding to use sout instead of the logger
Uhh... Why didn't gradle create the /src directory?
Ah, nvm, when I clicked New -> Directory, it said I can create them
Good morning guys, I just wanted to wish y’all a merry chrismast. I know Discord is filled with copied-pasted messages that people don’t read but I really wanted to write with my heart today. In this server I met some people with who I developed a big and deep relationship even if it was virtual. Thanks to all the staff for this server, it is the best furry roleplaying one.
can someone give me a link to an easy good music bot
tf ?
helpchat is a "furryrole playing" server ?
Yeah, you didn’t know?
bruv i definitely didnt
Have you not joined the #furry-talk channel?
Wow, I’m shocked, it’s the rave
lol
yeah
Learn something new, even better on Christmas Day
HelpChat, the land of the furries
kek
LOL
I can see it
It would silently piss me off
Lombok users

Hello
So I have a raspberry pi, and the plan is to ssh into it through my desktop. However, first I have to install the raspberry pi OS on it right?
i mean yeah you gotta run something on it
Java development environment
Python env screenshot
Also that looks like windows XP lol
Blurry pic but the resolution’s fine now
So what I’m installing here is called Raspian iirc
Oh ok
Well my screen’s black
I’m assuming that’s normal and I gotta wait?
Anyway I just realized I have a PiSwitch I forgot to install
Except it’s usb-c and the usb-c slot is taken by the power supply…
||Nvm it just went to sleep 🥲||
wow im impressed people actually use the video of a raspi
i just ssh into those bad boys headless
Headless?
Oh that’s cool
Eh, my Pi seems to be done installing things. So do I need to shut it off and access it though my desktop now? Or is there something else I have to do with the pi
I mean you didn't even need more than ssh to update too
you can literally just drag and drop Raspbian onto a microSD card and slot it in and bam lol
I only have one microsd card and that’s the one I put into the Pi tho 🥲
huh?
This thing
Ok forget that imma just do it headless the way you mentioned
Do I need to turn the Pi off for this
I like it, so yeah I’d recommend it (:
Alright I'll take a look, however smile faces like this (: should be illegal
@white breach Wasted my time, if you don't want to scammed, don't make plugins for him.
wasn't gonna
LOL
Oh ok (:
Hey i want to get all the Names out of a YAML file (in java). The YAML File is build like this:
Name of Location:
==:
world:
x:
y:
z:
pitch:
yaw:
Another Name of Location:
==:
world:
x:
y:
z:
pitch:
yaw:
``` so now i want to get all Name of Locations + their stuff below it so i can add it into a hashmap
by the way
you get save and get a location directly from FileConfiguration
FileConfiguration#getLocation("path")
Thank you and i'll continuing to text in Development, sorry for posting here
i figured out how to use nms for itemstack nbt and now have a way to store my custom encahntments on the item
Good shit Luna proud of you
ill move the code from my command to a seperate method so i can use it else where
but its a start
i was trying to figure out why it just wiped the nbt data of my item but figured it out eventually
Why does it suck?
There is no time to wait! Ask your question @obtuse gale!
from my server
so Can anyone Setup Reactions Emoji Verification
Sir, this is #dev-general
oh lmao
hey
where i can download deluxe chat for 1.18
i verified now
hmm, i verified my account The bot confirmed it but I still can't see the channels
ok now
thx
I still can't see the channel for deluxe chat
@chilly zenith
you'll have to wait until one of the admins updates the database
they should get online soon tho
Yeah the bot here works where the quicker you ping the admins, the quicker you get the channel
Thats a joke, pls don’t, just be patient
E for Effort
damn time to wait then

how long does it usually take for deluxechat verification? I've been waiting for hours, it's the only thing I'm missing
?database
Have you linked your spigot account and don't have the premium plugin role yet?
Spigot doesn't allow us to check for buyers automatically, so we have to do it manually. This means that we can only update the buyers list in our system every 24-48 hours.
If you wish to see when the database was last updated, you can by using the /buyercheck status command.
Once the buyer's list has been updated for that plugin, you can recheck your roles by using the /spigot check command, then you should have the role, and will be able to view the respected plugin's channel!
#bot-commands message
what do u need
deluxe chat for 1.18, but I already saw that we have to wait
👍🏻
Typically trying to friend staff and ask them to verify you doesn't work. Please wait, only one person in this discord can update the database. Its not automatic, we need to manually let him know. There is a dev build in the #deluxechat channel, however, you will need to wait for the role to be given to you.
=check @obtuse gale
Successfully checked that user for new purchases!
thank you ❤️
i can't get lunar client logo (next to name) or cosmetics to work on an offline server
I'm using Skins restorer and Velocity forwarding is set to NONE
does anyone know what I need to do?
and if I set the forwarding mode to bungeeguard, it shows lunar cosmetics, but doesn't render optifine cape or playerskin
Hello, I've been trying to make an expansion using the wiki guide and spigot wiki guide
both of them are using placeholderhook expansion which are no longer supported for some reason
r placeholders via a PlaceholderHook class which is no longer supported!
i'm using this class btw extends PlaceholderExpansion
#development
send the full error and ur code
Is it ok to create a main class object of a plugin to get a non-static method? 
It'll throw an error if you do that
Dependency Injection
Dependency Injection is a way of providing objects with the objects they need ("dependencies"). This is usually done with a constructor, but can also be done for individual methods
Read more here: https://en.m.wikipedia.org/wiki/Dependency_injection
Dependency Injection in Java:
https://paste.helpch.at/yijawupoju.java
Dependency Injection in Kotlin:
https://paste.helpch.at/esogakutod.kt
bruh 1.18 mc be hogging ram
How much is “hogging”?
What do you define a lot? Lmao
Well, usually speaking 8GB to MC is decent enough for good performance
at this point I Feel like you're trolling heychazza#0001. So I'm going to stop entertaining you now
Haha
LMAO
Legit eating up anything that's left
Max I go is 6-8GB, wouldn’t see going anywhere further, but holy shit you over here with 12gb
don't let it do it then... put a limit
You put a limit
at this point I Feel like you're trolling BlitzOffline#0531. So I'm going to stop entertaining you now
but where's the fun in limiting it
thank god. finally

I should offer a chunk loading service
“Need your blockgame server chunks loaded quickly?”
Okay yea it was limited to 2 gigs but for some reason still using 12 lmao
It just crashed btw
Oh memory leak
How nice?
Seems to be behaving properly after setting it to 7gb
No lol, default textures with optifine
Oh, no I don't run shaders, I just want my mc optimised enough so I can launch quick and get good fps
oh
oh wew
120 fps no stutter
dang
didn't even know I was using 1 gb of ram
tbh ive never tried shaders
shaders dont affect launching, loading shaders take place after the starting afaik
no, you aren't
do u mean graphics card ram?
I always forget that MMC defaults to like 512MB or 1GB of RAM on new version profiles so it's like weeks in before I realize I'm trying to shove everything on such little RAM.
no?
bruh
Hahaha
yes
Whats graphics card ram?
I don't have that
impossible
#SoC lol
Then I just change it to 8GB or whatever and I'm good.
pretty much VRAM
10G to the server, 8G to the client, that's how we roll.
I dont have that
I give a max of 2 gb of ram to my clients
I have shared ram across gpu and cpu lol
whats your ram
fucking hell
i have 32gb, but im on apple silicon
so its shared ram
so if gpu needs more, it allocates more to gpu, or cpu etc
I have like 32 or 64 I can't remember
2gb max when it can only use half of it
64? why do u need 64 bruh
But I literally only run dev environments so I could get away with 1 - 2 GB on the client and maybe 3GB on the server
I use 2 gb of ram with shaders and a 256x256 texture pack
i guess its fine when people like LTT buy 2tb ram laptops its for content but why the fuck does a normal person need 64 gb ram
but I also throw on like 7 mods + fabric
ur obv lying
Im using fuck all ram rn
its so obvious man
When you're running 5 instances of IntelliJ, Discord, 50 browser tabs, MC, Server, and other misc stuff, it adds up.
You just have a potato for a pc
I think it's 32 actually, I'd have to check.

i legit have 8gb ram w/ 1gb vram with 30 fps on sildurs medium shaders
well whatever lol
o xd
Yeah it does
fps in my default settings is 230
Spring Boot go brrr with RAM
50 browser tabs?
bruh
i get triggered when i see 10 tabs open
Define quick
a few secs
imagine spam clicking ctrl + t
from boot to fully usable
Yeah I turned off my AV scanning on anything related to work and it fixed 90% of my issues
When npm used to take 3 minutes 
wat
3 minutes?
On installs for projects
I turned off that and switched to yarn and it takes like 20 seconds now.
wdym, initializing projects or installing packages
Installing packages
yeah yarn hella quick but it has alot of bugs that conflict with some packages making them impossible to install and correctly use so i just left it as it is
But IJ initializing used to take a bit too like index scanning until I turned off AV scanning on that
and never used it
Someone once explained to me years ago that npm = spigot and yarn = paper in terms of speed
Glare idk what kinda machine you use, but if you're running on ARM, defo apply this: https://mustafaakin.dev/posts/2021-12-08-running-intellij-idea-with-jdk17-for-better-render-performance/
Over the years, although a tremendously valuable tool, IntelliJ IDEA started to feel slowed down, even on these latest M1 Pro machines. It’s become frustrating. I disabled as many plugins as not needed. However, it’s still not sufficient. I have discovered that you can improve the performance by switching IDEA to the latest JDK. JetBrains has it...
i just use vsc for javascript and eclipse for java
vsc is pretty good to say the least, for javascript python
Nah I'm amd I'm pretty sure
yea
It only installs stuff in 1 place vs like node shit in every project
I thought yarn stores dependencies in 1 folder in your home folder
in the project folder
nah
i've used yarn alot before
python is really good for low end pcs because it stores packages in the home folder
Oh I see why, it uses a home location to cache the dependency, so when you install it pulls from cache rather than downloading every time
Yarn and NPM both have global folders for installs but yeah it's per-project on both of you don't specify global.
What makes yarn faster then
they do have global folders but for global packages, for example packages installed with the -g in npm, and im pretty sure its different in yarn its something like -d i dont really remember it was a long time ago
Cloudflare Pages go brrr
I tried vercel lately, so good
did you guys know that 1 kilogram of iron weighs the same as 2.20462 pounds of feathers?
ok
what's that
https://vercel.com hosting
free
oh ok
omg. I Completely forgot to make my own paste bin using cloudflare pages
I use it for my personal site
u should also try railway.app, people have been using it alot these days
choo choo
oh yeah I can do that lol
this sentence may have just caused a mild aneurism in my head
very easy using database
dont recommend using sql for it if the website is public
the best recommendation i can give rn is to use mongodb
or similar forks with better functionalities
yea true but its just as insecure as it can be, i mean its storing stuff in a semi-exposed file
What do you mean?
i believe it makes a hidden file containing stuff
i dont know if its only for certain packages tho
its a .sqlite file
oh yea
lol
but SQL isn't "insecure", its as insecure as you make it, you can do stuff like encrypt columns
With a key to decrypt
So your app can reverse it, but someone who gets in cant
its pretty bad if you have a complete open source project and you dont know how to use gitignore and you're storing very sensitive information in it
Honestly, I'd say thats on them if they cant use a gitignore
yea same
most of the time the people are the one doing stuff they really dont want to and mess up badly
Yeah lol
like pushing sqlite files into a huge project with alot of stars and forks and stuff
they get noticed pretty easily
damn
lol
i used to use discord.js to make bots on discord, and there was 2 times where i accidentally pushed my env with the bot token on a public github repo
thankfully discord finds these type of stuff and regens the bot token as soon as possible and dm the bot owner
Yeah, super cool
did it sound like i was asking for your opinion?
ok. we still don't care
TZ2339 reminds me of C++ errors
take that back 
sorry
Emily is mad cause bad
Maps
Magic
what about the angle
yeah
Armor stand?
Swear I saw a plugin that did that before
that photo is from player's pov
if you look closely behind those images is end skybox
that is just a bossbar with an image. You can set images using custom fonts.
and the first ones are armor stands
@static zealot help i cant post in #915480942976589864
yeah. bcz you've already posted there and deleted. so it considers it bumping.
But i wanna post a dif service
I believe you are only allowed to post one message per month and then in that you can post multiple services
hmm. need to check with cube.
K
yeah. turns out there is a rule for that. xD found it
should be there because is programming help related
#development it not only for plugins
LOL
one random sql question, does LIMIT affect performance in any way when the query is expected to delete 2 rows (from a friendship table)? Is worth to put LIMIT 2 at the end (to improve performance, if it does), or I'm better off just keeping it simple and not adding the limit (because it doesn't improve anything)?
I’d only use this when dealing with let’s say 100k records, and you want to chunk delete like 1-5K at a time (for database sake)
i mean you add a limit whenever you need to limit something
When I had 80mil rows, I would append LIMIT and only delete like 10k at a time
Yeah I agree, usually for the sake of not straining the database
what I wanted to know is, given a DELETE operation I know will only affect one row, does adding LIMIT 1 to the end of the query make a difference (from a performance standpoint)?
well, if you're doing e.g. DELETE ... WHERE col = 'val' and col is unique, I wouldn't be surprised if the sql engine optimized that away (given that it's unique)
if it wasn't then it's probably good to add a limit there
^ especially with the correct indexes
mhm
God, going back to when I was dealing with 80-90mil rows was a nightmare
Especially when I used to batch delete every so often and had to throttle it so I didn’t strain DB
I just let google excel lite handle the dirty work
Microsoft Access
MongoDatabase
Gradle or Maven
which one would i click to download the normal version
theres binary tar.gz, binary zip, source tar.gz and source zip
i like how two of those are minified javascript, one is a stock image of binary, and the last is a matrix program, none of which are even close to resembling an actual terminal lmao
It’s a meme
I love how configurate has a CommentedConfigurationNode but it doesn't save comments 🥲
configurate isn't YAML-specific, and the snakeyaml version currently used by configurate doesn't properly support comments iirc
Makes sense
Well yaml specs explicitly says that comments aren’t bound to any node or scalar or sth which makes it hard for libs to support all type of comments as they can be almost everywhere
fuck yaml
I wrote this in the spigot server not too long ago but hopefully it demonstrates it
just to demonstrate how messy it is:
#valid comment
--- #valid comment
#valid comment
Time: 2001-11-23 15:01:42 -5 #valid comment
#valid comment
User: ed #valid comment
#valid comment
Warning: #valid comment
#valid comment
This is an error message #valid comment
#valid comment
for the log file #valid comment
#valid comment
--- #valid comment
#valid comment
Time: 2001-11-23 15:02:31 -5 #valid comment
#valid comment
User: ed #valid comment
#valid comment
Warning: #valid comment
A slightly different error #valid comment
#valid comment
message. #valid comment
#valid comment
--- #valid comment
#valid comment
Date: 2001-11-23 15:03:17 -5 #valid comment
#valid comment
User: ed #valid comment
#valid comment
Fatal: #valid comment
#valid comment
Unknown variable "bar" #valid comment
#valid comment
Stack: #valid comment
#valid comment
- file: TopClass.py #valid comment
#valid comment
line: 23 #valid comment
#valid comment
code: | #valid comment
#valid comment
x = MoreObject("345\n") #valid comment
#valid comment
- file: MoreClass.py #valid comment
#valid comment
line: 58 #valid comment
#valid comment
code: |- #valid comment
#valid comment
foo = bar #valid comment
#valid comment
yup, it is stupid ngl
😔
Better than INI
If I add the 1.18(.1) to the build path in my IDE, it is normal that it is not registering anything (1.17 fully registers everything, and I am able to make a plugin enabler, unlike 1.18)?
what does "registering anything" mean?
I mean
When you create the loader
(on your language its Main)
You need to make the class extend JavaPlugin
But using 1.18 it is not working.
I hope it is just because of 1.18 basically just changes the terrain, and does literally nothing else.
I still don't understand where the actual issue is
like at compile time? at runtime?
Eeeeh----
package null.null.null;
public class Loader extends JavaPlugin() {
}
This one
🥴
😵💫
'k then it looks like I am really bad at English .-.
To actually TRY to understand: using the 1.18 jar won't make me the abality to import the JavaPlugin, while the 1.17 does.
(idk why I wrote register files xd)
Looking to hire a paid plugin dev, add me
how do you add the jar to your project?
you should use maven or gradle
so true
I do not understand mavens.
The same with gradles.
I just wanna know if the problem is with the jar itself
most likely yes
Then I guess I really should change to Paper... 🤔
you just punish yourself if you don't use maven or gradle
Why I am punishing myself by not using them?
yep
Do you know object is??? ! @prisma wave
BlitzJoin
i dont extend it
yep
Why
Every class extends object
Why i cant see
soon we'll have BlitzMenus as well. kek
This guide talks about Object Is
if i extend other object i extend object?
yes
ok
Help pls
can't find the meme
It's an Object Oriented language, what do you expect? lol
you cant8
Java is designed so that every class extends the class Object - either directly or indirectly.
nope
hmm
Interfaces also extend Object
google. imagine using it
i am bad at google
The question is, why do you want to remove it? lol
id know

learning java
ok thanks
Actually
Object doesn't extend Object
(:
Gottem
no one asked you tho
so int extend object?
hmmmmmmmm
but the wrapper types do
wrapper?
Integer, Long, etc
Expect to finish it three years from now
why
You don't learn Java in an afternoon, let alone make a whole anti-cheat
i learn java and make anticheat
you don't know what int is, and you trying to make anticheat?
anticheats require a good math knowledge too
and a shit load of patience to look at raw values
sooo, good luck
anticheat yes learn java no
need to learn java
Ha, primitive types!
Ridiculous
but i tried anticheat
Object Oriented my ass
@prisma wave @prisma wave
so primitive dont extend and others object extend object
Absolutely
Primitives arent objects
why
Because they arent?
They arent reference types
they live on the stack
No object properties
SO TRUE
IKR!
^
i dont extend object and object still extend object
Its very easy
extend 🤢
bad java
so true
i should learn haskell?
import Minecraft.Anticheat (isHacking)
onAnyEvent:: Event -> Maybe Banned
onAnyEvent e = if isHacking e then Just $ ban (player e) else Nothing
Absolutely
is haskel a programmeraring langauge?
Its a neccessity
Its a way of life
It's a kind of soup
hmmmm
You wake up at 6 and perform the six-sage chakra meditation
but minecraft owns java
After which you turn into a Lambda Sage
Some say the first java compiler was written from redstone
Then it formed sentience
And moved out
wheres the monad???
Absolutely!
ok
ban has side effects
MAYBE!!!
😄
🥴
it doesnt actually ban
oh ok
Side effects bad!
true...
side effect????????
anyone here know xgo from golang?
Yea
xjoe
Some functions give you alergic bronchitis
xgo?
Hence side effects
hmmmm
cross compiler with docker
ok
for golang
PURE functions
@everyone
The 'everyone' mention is disabled so you can't annoy people.
In short, a pure function is a function that doesn't have side effects. And side effects usually come from mutating variables that are not within its own scope (for example, mutating method parameters), causing possible unintended side effects outside the method to occur
very shitty explanation
dude
yes?
BYE
@prisma wave
cant use haskel and minecraft
girl clearly don't know what she talking about
any help
what maven do i intstall
Lol
howcome gradle
how come not gradle if I must ask
bcuz ive used maven b4
and im jus tryna compile a few plugins
Well I’m honored and indulged to tell you
Gradle is basically maven
Just more concise
And better
And faster
Instalation guide for gradle: https://wiki.helpch.at/piggys-barn/java/gradle
Argument for gradle against maven: https://wiki.helpch.at/piggys-barn/java/gradle/argument
Tutorial for gradle: https://wiki.helpch.at/piggys-barn/java/gradle/tutorial
And gooder
piggy has it all. kek
so if i already installed maven then no point in gradle
well yes.
Yea point in gradle
hmmm
mmmhm
maven never workin bruh
i got build failure
but me not know why
how do i figure out why my build is failing
and how to fix it
org.bukkit.Location cannot be converted to java.lang.String
main error im seeing
Where in your code is that
i'm not compiling my own code, i'm trying to compile a public source
i have no experience w this kind of stuff whatsoever, but when i try to compile it it's giving me an error and the build fails
Hmm
Looks like the public source has incorrect code grammatically/syntactically speaking
Can you send the class where the issue occurs?
sorry, class?
idk what that means lol
this is what happens when i start the compile
epicspawners
Yes.
Iirc you can't compile it because songodacore is private
Hmm i guess it's no longer private, but it used to be
so if it's not private then what could the issue with me compiling it be?
[ERROR] /C:/Users/benro/Desktop/EpicSpawners-master/src/main/java/com/songoda/epicspawners/EpicSpawners.java:[225,59] incompatible types: org.bukkit.Location cannot be converted to java.lang.String
[ERROR] /C:/Users/benro/Desktop/EpicSpawners-master/src/main/java/com/songoda/epicspawners/EpicSpawners.java:[237,24] no suitable method found for updateHologram(org.bukkit.Location,java.lang.String)
I'm not really exactly sure what that means but I did see it.
It was always public but they made it near impossible to compile, it would depend on so much other stuff
and they don't provide support as its "internal"
so i'm not gonna have a lot of luck compiling it you mean?
Did you change anything in the code?
No idea then
weird.
its possible, a friend did it like 6m ago or something, but it depends on a lot iirc
Maybe its changed since then
i did it aswell not too long ago, and it never had any issues.
i was looking forward to compiling it
fingers crossed that somebody can help!
due to the rather poor reputation of songoda and any of its plugins that use it i would recommend wildstacker over epicspawners.
MongoDatabase
MongoDatabase
Real ones know
relieved
i know a lot of people dislike their plugins but to be honest i like this specific one a lot and it never posed as a problem for me
if your wanting to compile a spawner plugin that is, if your hooking into it then do the major ones
if i have no other choice then to pay for epicspawners then ill use something else
but if i can compile it then i'd like to do that
RoseStacker 😌
ive seen mentions of rosestacker but not used it myself, im assuming its good?
Ooh wow.
Nicole 

it uses persistentdatacontainers over nms, interesting
That actually looks really clean and well done.
and it's not just spawners, it stacks multiple things.
how does it perform vs epicspawners?
Nicole on deez nuts
id assume alot better
ive heard epicspawners has performance issues for some but i never had an issue
but if rosestacker has no complaints like that then 💯
Epic spawners did have some issues with performance when I used it but that was when like 1.8 was the real shit but since there were no alternatives we used it, presumably fixed now
whats the meme?
MongoDatabase
not a real one smh
That word used to be blocked
Because it was similar to songoda
Which was also blocked
blocked on spigot?
no in here
oh LOL
You weren't allowed to say songoda for a period of time
ye I left in like 2018 i think
was here from 2014/2015 (whenever helpchat discord became a thing after skype), stayed until 2018 or 2019, then didn't come back until early this year
when you leaving again?
ongoDa
When you grow a pair 😂
regex be like: banned
you'll have to explain
:)
(:
Ü
∀W∀W ƎOſ
UwU
Idk, sorry
@ocean quartz Can u take a look at #off-topic pls
pinging staff isn't going to help
yo. anyone using flameshot? when you use their flameshot gui command how do you actually take the screenshot after you finish adding text or whatever you do? do you just press enter? bcz for some reason My keybind got changed to ctrl + c to save it. And I can't set it back to enter. It just removes it when I set it to enter
Prob don’t
if I have a .flatpak app how do I run it? Bcz turns out I was quite a bit outdated. kek.
TAB no longer has a premium and a free version
I believe they're both free now and you pay if you want to help the creator
hm, i had thought if you wanted the premium version it was paid and non-premium was free
heyyyy it works
well. it doesnt save the capture to my pictures folder anymore but it at least copies it to my clipboard
and not its also saved
cool
oh hey thats me!
discord mobile
I agree
u guys probably seen this already but it just randomly showed in my feed and I think its pretty nice https://www.youtube.com/watch?v=Igh-vBI2LXc
There are no hard distinctions between what is folder and what is code, nor between what is language and what is object. A thing is not necessarily either true or false; it can be both true and false.
LINKS:
GitHub repo for folders https://github.com/SinaKhalili/Folders.py
Original Folders blog post http://danieltemkin.com/Esolangs/Folders/
On ...
yeah seen that and loved it
has someone ever used this? https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/browse/src/main/java/org/bukkit/util/FileUtil.java
LOL, bukkit itself does
d;jdk Files#copy
public static Path copy(Path source, Path target, CopyOption... options)
throws FileAlreadyExistsException, IOException, SecurityException, UnsupportedOperationException, DirectoryNotEmptyException```
Copy a file to a target file.
This method copies a file to the target file with the options parameter specifying how the copy is performed. By default, the copy fails if the target file already exists or is a symbolic link, except if the source and target are the same file, in which case the method completes without copying the file. File attributes are not required to be copied to the target file. If symbolic links are supported, and the file is a symbolic link, then the final target of the link is copied. If the file is a directory then it creates an empty directory in the target location (entries in the directory are not copied). This method can be used with the walkFileTree method to copy a directory and all entries in the directory, or an entire file-tree where required.
The options...
This description has been shortened as it was too long.
source - the path to the file to copy
target - the path to the target file (may be associated with a different provider to the source path)
options - options specifying how the copy should be done
FileAlreadyExistsException - if the target file exists but cannot be replaced because the REPLACE_EXISTING option is not specified (optional specific exception)
IOException - if an I/O error occurs
SecurityException - In the case of the default provider, and a security manager is installed, the checkRead method is invoked to check read access to the source file, the checkWrite is invoked to check write access to the target file. If a symbolic link is copied the security manager is invoked to check LinkPermission("symbolic").
UnsupportedOperationException - if the array contains a copy option that is not supported
DirectoryNotEmptyException - the REPLACE_EXISTING option is specified but the file cannot be replaced because it is a non-empty directory (optional specific exception)
the path to the target file
🤡
kek

and java 7 was released 2 months after, on July 2011 🤣

if they only had waited two months lol
XD
I love how he didn't even updated his code to use nio or whatever
I Love Water
I have a design structure related question:
So I am currently working on a Npc system, and I have a NpcRegistry (Hashmap with a uuid key and a Npc class value), where Npcs are being added to when you create them, so I can properly make changes to them at runtime.
Now it comes to the entity part.
I want every npc (which is a fake player, send to joining players through packets) to have a second line of a name, displayed by an empty armorstand. To keep track of both the npc as well as the hologram/armorstand entity, I have to store them somewhere.
Would you have a Hashmap, where all the corresponding entities to the Npc are being stored under its uuid, or..? Ideas and tipps are very much appreciated 🙂
I would use another hashmap that store the UUID of the NPC that is owner of the armorstand and that has the armorstand itself
okay, just what I thought as well.
Do I have to despawn the NPC like the armorstand onDisable() / restart, or is it redundant, as the NPC just exists in form of packets?
then I'd need to store the entity uuid of the NPC as well
..and Merry Starmas to you as well!
I'd say yes and yes
havent played with them for a while but it would avoid some errors and stuff maybe?
My thoughts were, that if you don’t send the packets to the players anymore, the NPCs aren’t there either
yeah



