#dev-general
1 messages · Page 243 of 1
how so
also is "unsafe" really your primary concern after you've had a breakdown about not being able to open eclipse
lol
im quitting eclipse
i cant export from IJ cause i dont have JDK 8 on IJ
and i cant install JDK 8 cause the oracle website is broken
and throws me an error
don't use the oracle jdk
HALLEYUAH
i didnt know there was other JDks
omg
my life is saved
how do i export it as jar tho
cause idk how to use IJ
cause when i export it gives me 2 option
export as zip or to eclipse
use maven or gradle
if you got no idea about either and you still want to export it today look up intellij artifacts
well what do u wanna do with gradle?
thius fucking sucks
im switicvhing back to eclipse
IJ is terrible
i knew since pycharm sucks IJ probably would too
i cant fucking export shit
Dude fucking chill your stupid tits
IJ is doodoo
You were told to take a look at "artifacts"
And you didn't try to search and fix them?
I DID
What a programmer you are
it doesnt matter
ive already had tons of problems with IJ
while the only problem with oracle is refactoring
why does IJ have to be so extra
and why does eclipse have to be so broken
why are IDEs so bad
use text editors then, compile using javac and pull your hair out
im gonna go use notepad
brb
im gonna compile it without javac
imma compile it myself
optifine compiling
PainsChamp
compiling a jar
I never understood why people expect programming to be a walk in the park
Like, learning a new language, workflow and build tool is never easy
What do you expect lol
i havent eaten a thing today
Brister is a very nice guy
thank you
It should be imo
so im getting mad easily
fair enough
i swear to god brister you're the only guy who had patience to explain some stuff back when i didn't know shit
I think people are right to complain about build tools
It's like the type of thing devs build for themselves and they never get this right for some reason
facts im gonna go cry in a corner real quick
well I guess there are just too many differences between languages to have a "standard" for everything
makefiles are very different to gradle because they need to be
Etc
brb gonna go make my own build tool
well...
brb gonna go make my own IDE rq
true
obv if you focus on the ecosystem of one language they need to be different
brb gonna go make my own OS rq so it works with my IDE and build tool i made myself
I think we've had this discussion here before and I brought up lein and cargo
@weary epoch do it
I think every language should have something like them
its done i have a wikipedia page https://en.wikipedia.org/wiki/TempleOS
I haven't warmed to Lein yet purely because it's based on maven
wow that was quick
im just that good
cargo seems pretty good
done with the IDE https://en.wikipedia.org/wiki/Notepad%2B%2B
That's not an ide
well lein wraps maven but it's very straight forward if you just want to dive in
https://en.wikipedia.org/wiki/Eclipse_(software) here is my IDE its very buggy and it sucks btw
yeah it isn't awful
cargo is different in the regard that it is the rust build tool, but similar in that it also tries to be as simple as possible
But I now have a mild bias against anything that isn't Gradle
oracle was gonna buy tiktok good thing they didnt cause if they did tiktok would be buggy and crash every minute
i pick randomly between maven and gradle, i like both
I like neither
Elara build tool when™️
Maven feels like I'm working at an office in 1998 and gradle is just a hot mess to see through
Favourite for what language?

is kotlin just java?
no
yeah
I'm pretty sure you can do it in like 8 lines
thats what they did right?
On Linux systems anyway
depends on the assembly
The moon was punch cards lol
yeah cause they had linux in 1969
didn't they have assembly in 1969?
NASA should've used lisp machines tbh
They used punchcards but the instructions on them were still machine code for the processors
yeah
And for basically any cpu there is an assembly language
mfs in 850 B.C.E. making punchcards out of rocks https://prnt.sc/w9w2hi
Nice crop
because assembly is mostly just the machine code in human readable form
Shut up
'readable'
As soon as we get a JVM compiler I promise you that will be the first thing I do
"readable" is a strong word
better than reading raw bytes
it's more readable than machine code
me yugi and katsu
mostly me and yugi atm
"yugi and I"
🙄
there is a dude on fiverr that can code anything for $50 brb gonna go make him code a OS, a IDE, and a JVM compiler
did anybody here ever had to use assembly for some important task?
if its porn probably not
depends
I haven't
i think lemmo might be the only person thats used assembly
@prisma wave How would add a \n every 3 indexes on a list? (Kotlin)
Let me try
Or just do it imperatively, that usually works if you can't figure out a standard library way
interpose :clojuremoon:
these memes sum it up
pro tip: code java underwater so no one can see you crying
actually, hardest language to learn is C++ imo
I can make something basic in just about any language with a bunch of googling, but C++ has crushed me whenever I tried
I have a big C++ book at home
it was an impulsive buy
for some reason I thought I wanted to do something with the language
I've had a C++ course that I bought on Udemy years ago
C++ is hard?
yes
Heard it’s good for games since it has manual memory management
well, that's kinda random
it's mostly used for games
ye
It is fast, yes
Probably because unreal exists though
I guess that's more of a chicken Vs egg thing though
but manual memory management isn't something that automatically (no pun intended) makes your code go vrooom vroom
Oh well. Which one is generally faster? Assembly or C++?
depends on your code
I mean what value does "assembly is faster in theory" hold if you don't have the skill and time to write good assembly
True
@old wyvern Done, had to use the magic square too
though yes in ideal code scenarios assembly will be faster because it has literally no runtime
But theoretically, human optimised assembly will always be faster than any other language
Yeah i didn't add any of that, made it all in one class xD
oh xD
Also @prisma wave the solution for that was fucking awful:
board.withIndex()
.groupBy { it.index / 3 }
.map { indexed -> indexed.value.map { it.value } }
.joinToString("\n")
o.o
@ocean quartz custom craft grid?
Tic tac toe
I just had each player check if they won
That is horrible
Might as well just do it imperatively at that point
interesting that you can have purely functional languages, but as far as I know there are no pure OO languages
@old wyvern My entire game https://paste.helpch.at/uzisukabuw.cpp xD
Arent the Agents/Actors used in FP not purely functional?
lol
No idea, I presume so - but given Haskell and others advertise themselves as "purely functional" it's just odd that there aren't any purely OO languages
Smalltalk is an object-oriented, dynamically typed reflective programming language. Smalltalk was created as the language underpinning the "new world" of computing exemplified by "human–computer symbiosis". It was designed and created in part for educational use, specifically for constructionist learning, at the Learning Research Group (LRG) of...
I think thats supposed to be purely OO
No idea
Yeah. Though it has almost nothing to do with java style oop
yeah from what I heard the core idea behind OO got kinda misinterpreted
It was more about sending messages between objects or something
Not AbstractMailBeanFactoryFactory
Yeah
FactoryProvider
?json
Here you can find a couple of online JSON creators
Amazing, console, amazing
xD
Wonder if adventure has a strip style method
Noice got it
Hello idk if i am in the right channel to post this but i need some help in developing something or finding somehow to do this.
I have a hispanic server myself i am a learning small dev just for fun, I am using a plugin that has X amount of commands, with CommandAlias plugin i am translating myself the commands to Spanish for it could look more professional, but if any of my users figures out which plugin i am using, they could just type the original command of the plugin. So my question is: Is there actually anyway to disable the use original command for the user at the same time letting the CommandAlias plugin doing its job?
Ik smh
Firstly probably not the right channel, unless you want to make a plugin to do that
Ask in #general-plugins
Okay, righty then, let's try and explain this:
So, I'm experimenting with PHP (because it seems like a kinda easy and not that bad language to learn), and I was just trying to make a simple calculator, because I couldn't really think of anything else, and I have this code: https://hastebin.com/kexinetire.php-template and calculator.php: https://hastebin.com/xoxuxadara.php
So, it does its job, the one issue is that the <p> tags with the result will show when I haven't inputted anything, meaning they'll show errors. Does anyone know if/how I can update these within PHP? I've tried updating them with JavaScript, but they update just before the page reloads (since it's a form and so it gets submitted)
I want to ideally have the <p> tags hidden and then show them when the result is calculated
I'm not sure this is what PHP is used for
Because the dynamic content is all evaluated on the server end, it gets converted to static content
ah okay
So you couldn't have anything like that without JS querying your "backend" somewhere in the mix
You could have:
Static site for calculator
JS sends query to PHP backend
Backend calculates, then update result on frontend
But that's a lot of work
Where PHP is """good""" is for dynamic but also static things, like blogs, online shops, etc
Yea ik, my point is that this isn't really an appropriate use for PHP
it's like spring + thymeleaf, all the dynamic stuff is evaluated on the server side
any ideas for what I could make just for messing around and learning PHP?
I just chose this because I had no better ideas lol
Make a basic blog perhaps
if I had premade CSS files with all the designing done for me then maybe that would be a good idea
If you're wanting to learn PHP the frontend is irrelevant though
It could literally just be text
If you really have no particular interest or reason for learning PHP, I'd give that a second thought
lmao yeah, I shouldn't really be encouraging PHP
Ayy nice, now it's all handled the same way, console messages, private messages, chat messages
How come ProtocolLib has "Lib" instead of "API" in its name? Is there a specific reason for that?
I mean, it's a lib
but isn't it also an API?
Ive never used protocollib before
so idk
but how would u use it without an api
a lib provides an API, but an API doesn't always have a Lib
oh
can protocollib be also protocolapi?
iirc
lib = the code that actually does the thing
api = the code/interface that uses the lib to run the code
huh?
wait but how can u use something without an api?
would SomeLib lib = new SomeLib(); be considered an API?
Bm just explained it to you
an API is just an interface for interacting with something else
okay
not necessarily an interface
An API is (as defined by its expansion) an interface to communicate with another application or library
would
SomeLib lib = new SomeLib();be considered an API?
As SomeLib doesn't exactly have an "API"
libraries usually provide APIs because otherwise they wouldn't be very useful
^
the API is just the bridge between your code, and the library's code
what if there is no bridge
would
SomeLib lib = new SomeLib();be considered an API?
As SomeLib doesn't exactly have an "API"
like that
Then its a useles jar
if there was no bridge it would be a bad library
🙂
because there's no way of using it lol
API is the access point of something, be an application or lib
would
SomeLib lib = new SomeLib();be considered an API?
As SomeLib doesn't exactly have an "API"
pls answer this 😦
it's such a vague question
o
no
oh
i dont feel like writing a whole class
What is your question then?
if you can use it to interact with a library, it's an API
OH
wait
how about this:
f i forgot
what i was just gonna type
;-;
public class SomeLib {
public static doSomething() {
System.out.println("hi");
}
}
```how about this
Just an util class
xD
Type
no return type
so now theres util lib framework api ahsdiusahdiuahsd
hm
util is usually a single class
Util is just a class that provides easy to access things
ok
libraries are usually bigger projects that do something that wouldn't be easy to write yourself
wdym
A lib adds functionality to your code usually through an API
frameworks are just libraries that wrap around your code, rather than the other way around
how come protocollib doesn't have api in its name
because it doesn't have to lol
and discontinued protocolapi
Why would it?
^
well other plugins have api
the fact that it's a library implies that it has an API
instead of lib
bruh it's just a name
ProtocolLib is not a plugin
for example an image processing library, it would be very time consuming to do that yourself, whereas a util to make gradients in the chat could be written fairly easily
We already explained what an API is, if you want to put it in the name literally every public project would need to add it lol
ProtocolManager manager = ProtocolLibrary.getProtocolManager();
manager.addPacketListener(new PacketAdapter(plugin, ListenerPriority.NORMAL, PacketType.Play.Client.CHAT) {
@Override
public void onPacketReceiving(PacketEvent event) {
Player player = event.getPlayer();
PacketContainer packet = event.getPacket();
if (isMuted(player)) {
System.out.println("[MUTED] " + player.getName() + ": " + packet.getStrings().read(0));
event.setCancelled(true);
}
}
});
```what is a manager
Something that manages things lol
o
That's just english
ok
ProtocolManager manager = ProtocolLibrary.getProtocolManager();
manager.addPacketListener(new PacketAdapter(plugin, ListenerPriority.NORMAL, PacketType.Play.Client.CHAT) {
@Override
public void onPacketReceiving(PacketEvent event) {
Player player = event.getPlayer();
PacketContainer packet = event.getPacket();
if (isMuted(player)) {
System.out.println("[MUTED] " + player.getName() + ": " + packet.getStrings().read(0));
event.setCancelled(true);
}
}
});
```is ProtocolManager an API?
Bruh
the whole thing is an API
because it's how you interact with the library
Have you been reading what were saying?
"API" is not a formal thing, it's just a thing that you naturally write
you don't usually say "this is my api class"
it just exists
no
oh
;-;
APIs are the way you interact with libraries
Can you access it through your code? Then it's done through an API, API is not a single thing it's the entire thing
but sometimes APIs have the library intergrated in it
No
no
Libs have the API to use it
the library has an API, not the other way around
like java SomeLib lib = new SomeLib(); lib.doSomething(); wouldn't SomeLib be an API?
No
My brain hurts
😐
Bm shoot me
shoot me first
😭
in that (kind of unrealistic) example, that class is part of the API
although it depends
because as I said it's not a formal definition
how about ```java
SomeAPI api = new SomeLib();
you are confusing yourself with hypotheticals
:C
Dude
that's not usually how it works
API is not a physical thing, it just describes the connection between one application and another or application and a lib
^
oh
"API" is not a formal thing, it's just a thing that you naturally write
you don't usually say "this is my api class"
it just exists
so theres no such thing as an api class?
No
wut
There are classes that are part of an API
mhm
your API could be a single class, it just usually isn't
of what
How can you give an example of something that is just a concept that describes an interaction
API is literally just the interaction
Nothing more nothing less
Viaversion has an api class
Instead of api class wouldn't it be better to say an api that contains a class?
A library is a collection of functions / objects that serves one particular purpose. you could use a library in a variety of projects.
A framework is a collection of patterns and libraries to help with building an application.
An API is an interface for other programs to interact with your program without having direct access.
To put it another way, think of a library as an add-on / piece of an application , a framework as the skeleton of the application, and an API as an outward-facing part of said app.
thanks
Please
Lucky
im already ded
cheers
the api is the public bit, the library is the messy bit that does all of the work
well first off that will most likely never happen
Why r u making such a specific caae
^^
because im curious
you're bringing in hypothetical situations that are pretty much impossible
what would happen
if you have a project big enough to constitute a library, and it's all in one class then you have bigger problems than "what is the api"
Spigot is an api that lets you interact with the minecraft server. The entire thing is the api not just the JavaPlugin class
although more specifically, spigot is an application that provides an API
interact with something else = api
Here let me try giving you a dumb example
the lib's api:
interface Message
interface Player
lib implementation:
MessageImplementation
PlayerImplementation
#dev-general message this got me confused
i literally clarified what i meant a few messages later
APIs are the way you interact with libraries
interact with something else = api
so if you can interact with something its an api
Are these different?
slightly
I guess
you can interact with the spigot internals, that doesn't mean they are an API
huh?
nms
if you are using NMS you are not using an API because you're interacting with the library / application directly
huh????
When you eat an apple, the eating part is the API
The apple
but ur interacting with NMS even if you're not supposed to
let's oversimplify it:
Is it public? probably part of the API
Is it private / hidden? Probably part of the library / application
This is so dumb
ur running its methods
yes
but you're bypassing the API part
to interact directly
it's about abstraction
oh
You don't do that through the API
^
No CraftBukkit does
i meant cb
CraftBukkit is nms
im confused again
CraftBukkit is not the API is the software
lol no
maybe it is
the entire thing is called Bukkit
but the actual server is called Craftbukkit
yes
weird thought:
If a human is an application, its senses are the API

👀
human is more of an application than a library
oOf
fair enough
Basically, and it uses the API to interact with the other libs in the universe software
There we go
😮
Makes sense since we live in a simulation
okay, another question -
Is it possible to eliminate dependencies and somehow just implement it in my own plugin?
that's called shading
can u do it with gradle?
you probably already do
o
if you've ever used shadowjar
nope
never used mf-gui or anything?
nope
how do I do it?
shadowjar gradle plugin
https://imperceptiblethoughts.com/shadow/introduction/ is this the wiki?
relocate, build with shadowjar
it just says shadow
what library are you intending to shade
idk
lemme look for one for an example
https://www.spigotmc.org/resources/signgui.17781/ how about this 👀 not possible?
We are weakly referenced objects in an ever growing heap waiting to be GCed
🥲
😟
cant wait to be garbage collected myself
Well they already improved the GC a lot in the 2020 covid update
so I guess time to wait
lmao
just a little longer 🥲
https://img.bristermitten.me/20-44-15.png
System.out.println("block = " + block);
String name = block.name().toLowerCase();
System.out.println("name = " + name);```
what
e_block
whAT
e_block
WHY
E_BLOCK
it seems to be something to do with that
but why
how
it's also breaking my GUIs for some reason
but wait, Material overrides Enum#name??
d;spigot material#name
There was no direct match for that query, did you mean any of the following?: org.bukkit.Material#values org.bukkit.Material#valueOf org.bukkit.Material#isBurnable org.bukkit.Material#getId org.bukkit.Material#isAir
non

Spigot does some hacky fuckery to keep legacy support afaik
but it's also causing MANY issues
d;spigot material#tostring
There was no direct match for that query, did you mean any of the following?: org.bukkit.material.MaterialData#toString org.bukkit.material.MaterialData#toString org.bukkit.material.MaterialData#toString org.bukkit.material.MaterialData#toString org.bukkit.material.MaterialData#toString
lol
lmao
Ock!
henlo frrosti
Henlo
yes
Anyone wanna judge something I had to cook up in like two hours for an event cause the spigot plugin that was supposed to be used didn't work at all
Ock
Don't judge too hard, it was rushed
My judgment is already "bad!" smh
Is better
no
It's so much nicer than single quotes
Yes
NO
single quote gang
😎
horrible
disgusting
absolutely horrible
Matt, I'm using your msg lib and I forgot to disable the ____ formatting so some names were italic :p
__ __ or _ _? Because __ should be underline
Discord formatted it
way to reinforce the "matt framework" monopoly... 🙄
Also Frosty what happened here?
good question
thats what happens when u use ""
^^
obviously a "" user doesn't know how to properly format things!
!!!
Matt, I was rushing and didn't format lol
Can't wait to have even shittier performance on 1.17
not that worse
we will have enhanced caves also :]
Only thing I'm hiped about Kali
Also @hot hull you might wanna change your wildcard import settings
Oof thanks for noticing, it used to only fuck up when using kotlin
I have mine at 1000 and static at 20
For both Kotlin and Java
I hate it that it's separate
I think those settings messed up not so long ago, cause I had a project which had a lot more and it didn't fuck with wildcards
lol
That moment when you make something and don't remember how it works
That moment when you make something and you don't remember what you made 
Like, i don't remember how i made it so a injected node would skip the color check and let the following node be colored like the previous one xD
But hey it works so not gonna complain
For packages, what are some packages that I should use? (such as making a util package)
entirely depends on your project, for example if you're using some form of database a database package would be a good implementation
do what stuff?
Inside the package so the package may be me.dkim19375.<plugin>.database and then inside that you'd put the classes that do the database handling
um use singular instead of plural forms
Not exactly a good example, but here is my current project packages
whats func?
Functions
Is that kotlin matt?
Yeah
wait what would go in functions package
Top level functions
?
Basically utils yeah
Kotlin has extension functions? So for example, I could add another function to a String? such as "Hello World".myCustomFunction()
Yeah, it's awesome
Yes harolds
Permissions
Components
And chat related stuff lol
It's descriptive
wdym permissions
you can just check for permissions using Player#hasPermission im confused
Well java was invented in 1970 or smth xd jetbrains had a lot of time to learn
1970 :sus:
Fair
Wish I was learning kotlin at uni but they're old school-ish and I'm on scala :/
F
@somber tulip For example:
internal fun String.parseMarkdown(options: MessageOptions) = MarkdownParser(options).parse(this
So i can "**Hello!**".parseMarkdown() instead of MarkdownParser(options).parse("**Hello!**")
😦 so useful.
whats up with internal thingo
I don't want them to be public
Module level hiding
^
So is only available to your project or to that package?
btw, for some reason even with just the changed name, I couldnt access internal variables from Java
in the module
If I had a minigames plugin what package would I put most of the code in?
The module, so like
api
plugin
Since it's only on plugin it'll only be accessible inside the plugin module
Aight
are you talking about your base package?
no
In Java it'll look like Method$plugin though
well it depends what this minigame will be doing
all packages will depend entirely on what ur making, we cant name the packages for u
as long as theyre descriptive and corresponding it shouldnt really matter
What's the equivalent for "internal" in java
There is none
https://github.com/tastybento/askyblock/tree/master/src/com/wasteofplastic/askyblock in here they put a lot of the classes in the base package, I want to put it in another one to make my javaplugin class the only one
Closes thing to it would maybe be protected but not even that is close
Ok
Wait why protected?
Idk, it's the closest thing to public without being public in java xD
hmm fair enough
package private?
Not exactly
ok
Package private would be closer because internal doesn't allow access from foreign sub classes either I believe
Scala is still a respectable language
And Kotlin borrows a lot from scala
better than learning visual basic like i did for college
Yes
yes?
No need of plugins
Oh no, definitely. I'm by no means upset to be learning scala however, since scala skews further from java kotlin would be easier for me to learn and understand in comparison
Use terminal
good luck
I would say scala is probably more valuable to learn
Because it gives you knowledge of FP alongside OOP from java
Learning things you don't know yet is a good thing (hot take ik)
And once you know them both Kotlin is trivial
Wait really???
very hot take
The new Scala revision has just come out hasn't it
No idea
Really cool stuff I remember reading about
Scala is definitely cool
I've hardly used it but it seems cool
No algebraic data types though so +1 to elara
that one time u used scala for a plugin 👀
That's the only time I've used it lol
Ah yes Dotty/Scala 3
How did you even get the plugin to launch with scala wtf lmao
Scala was one of the easiest
Because it compiles to plain Bytecode
Clojure was the hardest because it does classloader stuff which spigot doesn't like
Btw, I was just scrolling through #showcase, came across @Andre_601#0601 s blog post and... holy shit, this other dude's article is hilarious in every way
kangarko's?
Yes
Me too lmfao
Though he somehow managed to make it even more ridiculous with the Gandhi quote at the end
That was the icing on the cake
He takes himself so seriously
In the last 8 years, SpigotMC has failed to provide a tutorial on using their own software that’s complete, simple, up-to-date, structured and with personal customer support. Instead, they’d call people idiots and wonder why little donations have been raised. We built our classes out of the need to help people understand their software.
... what?
im rereading this and it's even worse
like
in what sense is spigot obligated to do that
You know it's good when it's just a bunch of random screenshots taken out of context and crying about free speech because the mean internet people didn't let you scam enough people
Governments want to ruin hobbyists and small entrepreneurs, forcing them to go out of business by imposing restrictions and lockdowns.
He also added a subtle anti-lockdown point 🤔
Yeah, good start
lol
It's so dumb, he was obnoxiously advertising for months and doesn't even acknowledge that
You immediately recognise the type
I've actually looked at his course about 1.5 years ago and it was very fishy to say the least
I've seen some of the code they use
it's hillariously bad
let me try and find it
This was it
they encourage all of the users to use it as far as I know
first thing i see
obviously
Oh lord
Yep
LMFAO I just discovered the burner email I used to get the free trial of the course again
Jfc
So many ads
🥶
I think this is one of my favourites
🥶
I have no idea what's going on
what the fuck is that
https://github.com/kangarko/Foundation/blob/889a84d5e9d157a7b64a297e01aa5995d2ebbe50/src/main/java/org/mineacademy/fo/plugin/SimplePlugin.java#L130 this is also great
wat

no lol
won't this... not work?
A dirty way...
yeah fuck off lmao
When you order optimisation on wish.com
private static final long serialVersionUID = 1L;
Well that is java serialisation for you
Fair enough LOL
arbitrary values are arbitrary
for that matter I'll just use 0L in all my serializable classes
that's stupid
lazy
"Running garbage collection... increasing delay between operations... hacking the mainframe..."

Oh I really wanna see if the course material has gotten any better
highly unlikely
yeah it should be
Makes sense
What is a proper way to check though?
I know bstats uses a byte[] with their package in it
there isn't really a way that doesn't involve minor hacks
@deprecated do not use 👌
What is the symbol of the lines that appear in the categories?
relates to where variables are stored - volatile things are always stored in memory rather than a cpu cache so every core sees the same value
it's a multithreading thing
very useful in mc
INCREDIBLY useful
🌝
That's not how volatile is specified but I think we discussed this here once already
it's a multithreading thing
well this part is true yeah
Claimed another victim
never saw it coming
lol
🤔
@prisma wave @onyx loom what?
what?
this
nope
okay
what is it?
Clojure is a dynamically typed programming language that runs on the JVM and JavaScript. It is a Lisp, and adopts the functional paradigm with strong support for metaprogramming, multithreading, and statefulness
😂
no problem
@prisma wave thinks everyone is a developer 😛
hello , my premium role haven't update as i have brought the DeluxeChat
want to get a support
Tried kotlin?
Well this is dev channel xD
Just ask in #general-plugins
hmmm i want to upload photos
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
thx
lol
You right
@pearl kiln Any specific reason for the friend request?
I see

Y u change pfp @obtuse gale
@old wyvern that scanner is so bad lol
first page is hella blurry
nvm last page is even worse
How does one set a block from an itemstack, this used to be a thing iirc but it doesn't seem to be anymore in 1.16.4
uh Block#setType
yugi...
What were you looking for then?
before you could apply an itemstack meaning the block would have a let's say texture if it was a head
I looked at BlockData but doesn't seem to have any options for that
might just switch to armor stands with heads since that might allow for more customisability
Are you sure that was a thing?
I'm like 70% sure, unless I'm being an idiot rn
I dont think it was, Ive only seen people make workarounds for their specific cases
don't think it's a thing frosty
but you can still set the texture
my brain no work anymore
you used to be able to use materialdata
but that's deprecated
so what ur trying to do isn't possible anymore afaik
Lemme test
d;spigot itemstack#getdata
@Nullable
public MaterialData getData()```
Gets the MaterialData for this stack of items
MaterialData for this item
d;spigot block#setdata
There was no direct match for that query, did you mean any of the following?: org.bukkit.block.Block#getData org.bukkit.metadata.Metadatable#hasMetadata org.bukkit.metadata.Metadatable#setMetadata org.bukkit.block.BlockState#setData org.bukkit.block.Block#setBlockData
d;spigot blockstate#setdata
void setData(@NotNull MaterialData data)```
Sets the metadata for this block state.
data - New block specific metadata
yeah but you can't get blockdata from an item stack afaik
Anyhow yea it's possible
(itemstack was in the context of I thought it being a thing before, I can just set it normally)
?json
Here you can find a couple of online JSON creators
It's implementation detail
The JVM is too virtualised to make that statement
rate on ew scale from 1 - 10
MessageHandler.TREASURE_FOUND.executeForPlayer(
player,
"{player-name}", player.getName(),
"{treasure-rarity}", treasure.getFormattedType(),
"{treasure-points}", String.valueOf(treasure.getTreasureType().getPoints()),
"{user-points}", String.valueOf(userController.getPointsForUser(player))
);
wow a 10
u dumb
ew @distant sun What is this naming!!11!
final Action Action =
:)
Using your lib cause I can't be bothered to convert mine to java yet
hello
cause running java 15 and it don't work :sad:
omg i need help so gosh dang bad
Don't we all Hazy
hey frosty do you know how to work esssentials?
I have to change some stuff but =/
okay so im literally having anxiety and shit because i cant really
its so hard
im stressing so much
Gaby, I could potentially PR 😏
i need help with essentials with making ranks, setting perms and setting perms for kits
By change I mean rewrite most of it xd
if anyone can help please dm me im literally losing my mind, its with the essentials plugin
yeye Gaby
#general-plugins @obtuse gale
I mean could potentially contribute to mine if you want Gaby
I got the base done just need to add the different actions
i just need instant help but i can wait
Will see, I dont have much time rn =/
all i need
is how to set it up
can we please dm and i can voice chat explain what i need help with
Is it posible to make an item entchanted when you click on it in your GUI and when you click agian it un antchants
Yes
Oke is it also possible to do it with placeholderapi?
Yea nvm
:bruh:
[13:03:00 WARN]: java.lang.NoSuchMethodException: net.minecraft.server.v1_16_R3.PacketPlayOutChat.<init>(net.minecraft.server.v1_16_R3.IChatBaseComponent,net.minecraft.server.v1_16_R3.ChatMessageType)
I see
https://www.baeldung.com/java-lambda-exceptions @half harness you might find this useful



