#dev-general
1 messages · Page 108 of 1
No proof
Korm is the best
I said nothin
data class User(val name: String, val pass: String)
val korm = Korm()
val user = User(name = "Sxtanna", pass = "BadPassword")
// converting from object to korm
val push = korm.push(user)
println(push) // user: "Sxtanna"
// pass: "BadPassword"
// converting from korm to object
val pull = korm.pull(push).to<User>()
println(pull) // User(name=Sxtanna, pass=BadPassword)
val same: Boolean = user == pull
println(same) // true
thats proof
Yeah idk wtf that does but cool
very ugly
To put things into/take stuff out of JSON? Is that what Korm does?
works though
o
its like json, but without all the bullshit
So I'm going to make Frosty's joke now
welcome to the korm fields
Forgot he's staff so can abuse the caps thing
so unfair
WELCOME TO THE KORM FIELDS
YES
Thank you Frosty
That makes it worth coming back over from the Dark Side
haha lol
Ok so @ocean quartz I still don't really understand how your events system works, basically I want a method that takes an ActionType, and an ItemAction (my version of your GuiAction interface), how would I take the event associated with the ActionType, and perform the contents of the ItemAction lambda thingy thing on that event?
It's a functional interface that takes an event as a parameter
Fancy shit
my boy smart
Yeah I have that already @ocean quartz , but idk how I'd auto do that from the ActionType. Like java public void addAction(final ActionType type, final ItemAction<> action) { } I want the ItemAction<> to take the event that the ActionType has
Uuh what? I am confused xD
generics
<? extends PlayerInteractEvent> or smth like this, right?
This would be so perfect for sealed classes
U gon explan that Sx
Why it would be perfect?
I've wrote my first kotlin code today, be proud of me @topaz bay
sealed classes are like enums, except they are full classes
No, like how to use it
public void <T extends Event> addAction(final ActionType<T> type, final ItemAction<T> action)
@distant sun i'm very proud
:3
write more
can't be that hard
what's that?
http libraries for kotlin
Ok Sx mind explaining how I would use your example since it obviously won't work with what I have now?
Spark Framework - Create web applications in Java rapidly. Spark is a micro web framework that lets you focus on writing your code, not boilerplate code.
@errant geyser you would use it the same way?
You cant pull a generic type out of nowhere, so you need to define it on the action type
I am dissapointed in all of you
Ok then let me rephrase, how would I make that, like, exist
Y'all starting a kotlin kult or what?
@topaz bay what about Spring?
Frosty
Y'all starting a kotlin kult or what?
Starting?? Its been around for months now
years*
what's wrong with spring?
I meant you an KM's Kotlin circlejerk
I don't like all the annotations but oh well xd
not a cult, just some enthusiasts stating facts
h m m
To hell with all of you
Its really THAT simple
Thats ALL you need
for a simple rest api
with ktor and spark
just some enthusiasts stating facts
You mean the same one over and over again?
I mean... when you dont listen, what do you expect?
^^^^
I will circlejerk to the end of days but saying "you should use kotlin" isn't circlejerking
nor is helping people who have decided to use it
Its just all you seem to say, even when I asked yesterday why I should use Kotlin, the first answer I got was "kotlin good java bad", which is all you guys seem to say about it
I gave you reasons?
yeah you did
I love context @topaz bay
The reason you should use kotlin is literally because its kotlin
jerk
Every single thing about kotlin makes it superior
hey KM want me to show your Reddit post again so we can all enjoy lots of context?
I would suggest no
The first time I saw it I actually started crying laughing, idk why
understandable
without context I'm sure it's quite absurd
Although I think it probably is with context too...
I would very much like to witness this
The message is pretty "deep", if you get what I'm saying
Ok Sx, this is on you, not me
😏
here comes
shit shit
YEP
lol
Literally every soul on this planet knows about ram ranch
I still dk what it is
WHAT
you're in for a hell of a time
Bruh Ik its some kind of porn-related thing from what people at my school were saying about it, but hell na I'm not searching that in yt
It's barely porn related
o ok
but have you heard Ram Ranch 7?
Have you heard of spring?
Niall, get out of here with your Spring adverts
But have you heard of KOTLIN??!?
Genre?
DAE kotlin is underrated in this discord?
Yeah, needs more kotlin
You know what else is a great song
Tiktok Part at 0:42❤❤❤
Don't forget to like and subscribe 😊😊😊
Beatking - Then Leave Lyrics:
[Intro]
(Why your face so ugly?)
[Chorus: Queendome Come]
Like ClubGod say, throw that ass, poke it out
I ain't gay, but I'll let a bitch eat me out, yeah
Bad bitch, and my bitches ...
ram ranch 85
same goes for ram ranch 85
Ohhhh BM. You should make the earrape machine v2, which deep fries it, slaps "kotlin" on it, and then earrapes you
truth
also what does ! mean at the end of a data type?
is it the resultant non-null data type called as a value from a non-null data type?
Its what happens when the nullability is ambiguous
ah okay
should only really happen when youre calling java code without nullability annotations
which is exactly what I'm doing lol
The best song ever, sx, is this: https://open.spotify.com/track/01zEyqBizEZ1MDOaJ4nL4d?si=7MX6phn9Rj-cmkR-s8oOEw
I'm trying to get the song that's currently playing in a server, to add to the queue, but I can't check if it's not null, meaning if it is null, it throws an error
MY EARS
it's obnoxious
very loud
wdym you cant null check it?
well you could've MENTIONED THAT @errant geyser
you can still use the null operators on ! types
Its a known Spotify thing
or just a standard null check
I thought you all woulda known that
I probably could sx but IntelliJ whinges at me, complaining that it's useless lol
screenshot or it didn't happen
nvm all I had to do was just add an elven operator to set the value to null if it's null and that seemed to've worked
OOOOH Sx, this one's good too, just skip like 10 seconds in. Its also in Japanese. https://open.spotify.com/track/6DJ6Va1jpFcErKtQi7BAJv?si=mnwRS11OQK2YgQpqB2fC_g
i beg to differ
(╯°□°)╯︵ ┻━┻
┬─┬ ノ( ゜-゜ノ)
Official Audio | CUCO x CLAIRO - DROWN
Subscribe to Cuco’s YouTube: http://smarturl.it/CucoYouTubeSubscribe
Lyrics:
Aye, man, c'mon man don't leave
Fuck, what the fuck
Why you leave me on read
I don't like this, fuck
Ahh
If I told you what I'm thinking 'bout
It's hard to say...
@jovial warren ```kotlin
someJavaMethodCall()?.doSomething()
good song
@prisma wave yeah that works I guess
I'm not going to explain what I'm trying to do right now
actually I will
basically I'm trying to create a bot command that gets the music queue and formats it to an embed
Ok so is there actually a good way to go about what I'm doing here? java public void addAction(final ActionType type, final ItemAction<> action) { I want the ItemAction to take the event that ActionType has. Sx you mentioned abstract/sealed classes or smth, how do I implement that like this?
what are sealed classes again?
classes with a known amount of subclasses
they are abstract classes with constrained implementations
a restricted amount of subclasses I should say
ah okay
kind of like enums but usually better
@errant geyser you would make it an abstract class
Sx I meant like, how does that translate to doing what I need? I don't comprehend the comprehende that you comprehende to comprehend the comprehende
Explan
What goes on in that pea brain of yours
send the action type class
Very weird dreams
My head is fucked
Anyway, here ya go
public enum ActionType {
LEFT_CLICK(PlayerInteractEvent.class),
RIGHT_CLICK(PlayerInteractEvent.class),
SHIFT_LEFT(PlayerInteractEvent.class),
SHIFT_RIGHT(PlayerInteractEvent.class),
JUMP(PlayerJumpEvent.class),
SNEAK(PlayerToggleSneakEvent.class),
SHIFT_JUMP(PlayerJumpEvent.class),
SHIFT_JUMP_RIGHT(PlayerJumpClickEvent.class),
SHIFT_JUMP_LEFT(PlayerJumpClickEvent.class),
SPRINT(PlayerToggleSprintEvent.class);
private final Class<? extends Event> event;
ActionType(Class<? extends Event> e) {
this.event = e;
}
public Class<? extends Event> getEvent() {
return event;
}
}```
abstract class ActionType<T extends PlayerEvent>
{
public static final ActionType<PlayerInteractEvent> LEFT_CLICK = make();
// etc...
private static <T extends PlayerEvent> ActionType<T> make()
{
return new ActionType<T>(){}
}
}
You can add in the code for tracking the class, but I dont really think its actually needed
When youre just using them as type markers
You would also probably want to make the constructor private
Ooo ok got that thanks. But now how would that help with what I want to do?
You would use the method I gave you earlier
public void <T extends PlayerEvent> addAction(final ActionType<T> type, final ItemAction<T> action)
Once you pass a specific ActionType, T would become constrained to that
Oooo ok I get you now. I've never done this kinda funky cool stuff before
the generic should come before void though
I didn't take a Java course, who do you think I am? We also dont do Java until A level at school, fun times
I know like, the basics of it, just not that you could do all this
you ever wonder how much faster buildtools would be if they used gradle?
nope
i kinda wanna find out
Sx ily, you saved me so many hours of staring at my screen like what the holy fuck do I do now.
Km fork it, convert it to Gradle and make a PR on whatever Spigots internal Git thing is
doing that right now lol
Ah
i wonder what hykiu is gonna say
Same
Lurking for this
And then you stop typing hykui?? What an anticlimactic end...
then its just "hi"
bruh where do you get Spigot-Server and Spigot-API from?
from building?
with build tools?
no
Never heard of spigot-server, spigot-api is the one on Spigots maven thing, no?
clone the repo
i can't build without those directories
and run the build
it doesn't have them
i've cloned and building fails
because they're not present
it's like the chicken and the egg
i'm trying spigot
i'll try paper tho
cloning spigot from JIRA fails despite the documentation
LOL
[00:13:23 ERROR]: Error occurred while enabling Guilds v3.5.5.3-DEV (Is it up to date?)
java.lang.NoClassDefFoundError: co/aikar/taskchain/BukkitTaskChainFactory
at me.glaremasters.guilds.Guilds.onEnable(Guilds.java:170) ~[?:?]
PaperSpigot used
you probably need to do #spigot-linking and #guilds
thanks
could try #general-plugins though
someone make a guide on how to update gradle wrapper
it's 1 command lol
where do I put that commands tho
Whichever project you're using gradle in
can you give me in example of what I need to type ?
Read the page
It shows you what to type
./gradlew wrapper --gradle-version {version}
'.' is not recognized as an internal or external command, operable program or batch file.
...
./gradlew wrapper --gradle-version 6.5
so i have this in a new document
in a what?
on my desktop
Is that an image of nothing?
wtf
sxtanna, so you say I can use spark for a REST api?
`./gradlew : The term './gradlew' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
- ./gradlew wrapper --gradle-version 6.5
-
+ CategoryInfo : ObjectNotFound: (./gradlew:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException`
this is using power shell
reverse the slash
C:\Users\youfi\IdeaProjects\youfishcommands > .\gradlew wrapper --gradle-version 6.5
Mhm
Does anyone have anydesk ? then u can do it for me since I don't understand a thing about this mess 🙂
Probably better for you to learn how to do it yourself
That command is step 1
From there evertything should work
Like if I get gradle to work , I can help myself watching youtube tutorials while coding a simple plugin
THIS IS also not working in the terminal
./gradlew wrapper --gradle-version 6.5
of Intellij
In IntelliJ, you don't need to type the ./
Which btw, like I said, you should reverse the slash
It definitely does
C:\Users\youfi\IdeaProjects\Test 10200\server>gradlew wrapper --gradle-version 6.5 'gradlew' is not recognized as an internal or external command, operable program or batch file.
Did you consider it can't find gradlew... because its not there?
I already said I have 0 idea of what I'm doing
so do I create a file name gradlew ?
Ok but like... come on now...
common sense...
No, you do not create the gradlew file
You need to actually make that project use the gradle wrapper
open a terminal there, and type gradle init
but when I create that it says its not there
When you create what?
a project using gradle
Select type of project to generate: 1: basic 2: application 3: library 4: Gradle plugin Enter selection (default: basic) [1..4]
You have got to use google
for ?
for what do I need to use google now ?
You need to use google to find solutions to your problems
And to find out how things work
but google is like to complicated to understand
nvm I will stop with this crap
or just make a gradle project with intellij
I have been doing that the whole time
and it keeps giving me an stupid error
Install jdk8 and make it your default
Theres like no reason for you to only have jdk14
As I said
The error is because old gradle versions don't support Java 14
just install Java 8
you need it anyway for working with older MC versions
@topaz bay can I have the framework? 🥺
oh yeah lol
your Iij looks diffrent than mine
You need to run BuildTools if you want spigot
if you don't want nms classes, use spigot-api
Instead of spigot
but when u told me in the afternoon
to paste that code form spigot
well I just made the most simple plugin
how do I get the plugin.yml ?
yes...?
make your plugin.yml in that directory
Then when you run gradle build it will be included in the jar
Under this bit lol
Right click on resources, new > file
Also the spigot gradle guide specifically says // Pick only one of these and read the comment in the repositories block
Don't just copy and paste without reading the docs
No
You have 2 dependencies and repositories blocks, merge them
And you are depending on spigot which, like I said earlier, means you have to run BuildTools
Use spigot-api
like the docs say lol
1.15 xd
What is an nms ?
so what I need to do just from project structre add that spigot-api
for packets and things
no not in project structure
In build.gradle
change spigot to spigot-api
compileOnly 'org.spigotmc:spigot:1.15.2-R0.1-SNAPSHOT' here
np
Once you've done that and merged the blocks, go to Gradle on the right, Tasks, and double click build
I have this rn
Remove the random { }
And you should set group to the actual group
Which is the starting part of your package
eg in me.bristermitten.pluginname group is me.bristermitten
Does spark have any kind of cache system? Or I need to handle that? 
I don't think it has anything no
group 'me.commands.plugin'
like that
It's basically just a Tomcat wrapper
I think so @normal talon
What's your full package?
like under srs
gaby netflix and chill status? 
Tomcat is a webserver, but it's very verbose
So things like spark wrap it to make it nicer
for now only netflix @onyx loom 😢
I don't have any packages
xd
well you should probably make one
is there any nice way to send html code as response?
(or src/main/kotlin for the cool kids ;))
possible with placeholders for data xd
what is kotlin
@distant sun html is just text
set the body to the html
Also I was completely wrong spark does have caching
https://paste.helpch.at/evayabaqoh.rb keep getting this error and
and I believe it's actually standalone rather than building upon Tomcat
its not downloading the external libraries
you're still not using spigot-api @normal talon
ic
you just gave me the code and I copied it
bruh
oeh
change spigot to spigot-api
@prisma wave
can I make it send the same response for /path and /path/
yes @normal talon
Because you don't have central declared
I just implemented it in through project structure
?????
I added spigot-api-1.8.8-R0.1-snapshot
from project sturcture
to the project
its now in the external libraries
How do I have multiple versions of craftbukkit with gradle? It only compiled one
(without downloading jar and using as local repo library)
Show your gradle
Youre declaring multiple versions in the same module scope?
How do you expect it to choose?
You need to have separate modules for separate versions...
Obviously...
yeah but I don't want that
I need craftbukkit 1.7, 1.8, 1.9, 1.10, 1.11, 1.12, 1.13, 1.14, 1.15, 1.16 in one module
is the only way to compile the jars alongisde?
All of those dependencies need to be included in one module
I suppose maybe I can just split up functionality between modules
ill try that
Oh god, the imports
@hallow crane thats literally just not how that works
And you definitely dont need all of those in one module
That would be stupid
If you have them all in one, theres no reason to have all of them
@quiet depot you said to use js to display data from rest, right? How can I do that without exposing the access token? Env or smth?
If this is for a public website afaik you can't avoid exposing the token somewhere
Apart from using an intermediary server for the requests
Yes
damn ok xd
Question:
Making a website for my friend, if I dont wanna use spring for backend since he just has standard web hosting that wont support that, what should I use, the next language i'm most familar with is PHP
Are you familar with any frameworks (related ofc) in PHP?
ayy
[07:08:23 INFO]: Task Runnable Has Started! (0)
[07:08:53 INFO]: Task Timer Passed Another 30 Sec! (30)
[07:08:53 INFO]: Task has started!
[07:09:03 INFO]: Task interval!
[07:09:13 INFO]: Task interval!
[07:09:23 INFO]: Task Timer Passed Another 30 Sec! (60)
[07:09:23 INFO]: Task has finished!
Why not just use getStringList ?
Cause you need to use String List
then u wont need to cast
in before its an NPE or not registered 😎
Is registered + config setup is fine
yes
So whats not working?
Its not blocking the command
nope
Aj, this is what I call neatness https://paste.helpch.at/asizowosup.java
someone should really make a tutorial on how to make a plugin with gradle
its not hard
well I tried yesterday
Piggy is making one iirc
it keeps giving me errors
And yea you just select gradle instead of maven kek
I did
what does errors mean
HelpChat Paste
Please use a paste service to share configs, errors, code and long logs.
• HelpChat Paste
this is my code
https://paste.helpch.at/tijumiburo.cs
for build.gradle
https://paste.helpch.at/lepipuroge.rb
the error
Damn gradle gives you a solution
like can someone walk me through it from the beginning of setting up a new project ?
I dont see multiple errors there
but you are different 🙂
but fact is fact
Basically what its saying is that
Could not find org.spigotmc.spigot-api:spigot-api:1.8.8-R0.1-SNAPSHOT.
in these repositories
- https://oss.sonatype.org/content/repositories/snapshots/org/spigotmc/spigot-api/spigot-api/1.8.8-R0.1-SNAPSHOT/maven-metadata.xml
- https://oss.sonatype.org/content/repositories/snapshots/org/spigotmc/spigot-api/spigot-api/1.8.8-R0.1-SNAPSHOT/spigot-api-1.8.8-R0.1-SNAPSHOT.pom
- https://oss.sonatype.org/content/repositories/central/org/spigotmc/spigot-api/spigot-api/1.8.8-R0.1-SNAPSHOT/maven-metadata.xml
- https://oss.sonatype.org/content/repositories/central/org/spigotmc/spigot-api/spigot-api/1.8.8-R0.1-SNAPSHOT/spigot-api-1.8.8-R0.1-SNAPSHOT.pom```
and this might fix it
` - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html`
(you just fucked up ur dependency)
https://oss.sonatype.org/content/repositories/central
so this needs to be changed
no
your file literally says dependencies somewhere
(you just fucked up ur dependency)
group 'youfishcraft.commands.commands'
also what the fuck is this package lol
:amazing:
why .commands.commands tho
anyway, that shouldnt change things
you just need to fix your dependency
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
One other question do I create a new package under srs/main/java ?
yes
and plugin.yml under /srs/main/recourses
yes
aah
yea that
typo
it give me the same error
I don't see any mistake in my dependencies
and the error
different spigot versions
?
so what is the error about.
it just says couldn't find that spigot-api there
It says it couldn't find Apache commons lang, which is required by spigot-api
do u know a fix for it ?
they dont lol
compileOnly 'org.spigotmc:spigot-api:1.15.2-R0.1-SNAPSHOT' // The Spigot API with no shadowing. Requires the OSS repo.
I pasted it from that spigot stuff
u do need it i think
Right let's clear something 1 sec
Are you trying to get just the API or the whole thing? Your comments make it look like you want the whole thing, yet you use spigot-api
^
Which are you going for
Yesterday while talking to KM he said I needed the api for my pluign
Yes, you do
But you can get that from the entire spigot jar (from your comments what you seem to be going for) or just just spigot-api, which you have rn?
https://paste.helpch.at/kudeloheni.sql
I runned dependencies only and it worked
but plugin doesn't extend javaplugin
But you can get that from the entire spigot jar (from your comments what you seem to be going for) or just just spigot-api, which you have rn?
What do you mean
have you typed extends JavaPlugin lol?
yes ?
AJ give us a minute
kk
Let's just clear this first
So, you can get the entire spigot jar which includes the api, NMS and everything you'll need for SQL, etc. From your comments this is what you were going for. You've then specified spigot-api, which is just the API. What are you going for here?
for the spigot-api ?
compileOnly 'org.spigotmc:spigot-api:1.15.2-R0.1-SNAPSHOT'
this right
this is what I'm asking YOU
Read my message
From your comments you want the full jar, yet you specify spigot-api. Which do you actually want?
👌
I really don't understand what your talking about really
Cool
Yes, we can see that. But your comments say the full jar
The differences are
So, you can get the entire spigot jar which includes the api, NMS and everything you'll need for SQL, etc. From your comments this is what you were going for. You've then specified spigot-api, which is just the API. What are you going for here?
We need to know if you want just the api or if you want everything, as your comments say
I just want the api
How can I use the papi api? The github isnt avaiable
and the github is down for some reason
oh wait
dunno either
We need to know if you want just the api or if you want everything, as your comments say
any idea
because i just want the api
<repository>
<id>placeholderapi</id>
<url>http://repo.extendedclip.com/content/repositories/placeholderapi/</url>
</repository>
<dependency>
<groupId>me.clip</groupId>
<artifactId>placeholderapi</artifactId>
<version>2.10.6</version>
<scope>provided</scope>
</dependency>
🤢 brb
Tbh I think that should work. If you wanna use everything as well as Matt's command and GUI frameworks I have a template I use https://www.github.com/katsumag/examplePlugin/tree/master/build.gradle
You'll need to run BuildTools for whatever version you need
@normal talon
huh
Works fine for me
Me too
Yep, I refreshed and now it's working for me
That's fine
Then to build @normal talon just use gradle clean shadowJar
in therminal ?
Lmao, don’t mind me
i did it
On the Gradle tab you can click the elephant then write that command and it'll build
BUILD SUCCESSFUL in 22s 3 actionable tasks: 2 executed, 1 up-to-date
and it's still gray
nvm
it just updated
Ok
now I have a bigger issue
I can't create a package
src/main/java(java folder is red)
Have you marked src as the sources root?
I don't think so
Do it
because last try it did it automatically
Just try doing it and see if anything changes
uhm I actually don't know how
right click -> mark directory as -> sources root
Np
public void onDisable() {
super.onDisable();
getLogger().info("&c&lThis plugin is disabled!");
how is this working without @Override
You're supposed to override it, but in my old plugins I never did and it worked ¯_(ツ)_/¯
ah
Its a feat of spigots engineering
2 more questions:
How do I export the plugin now?
and is the plugin now only 1.15.2 ?
How do I export the plugin now?
gradle clean shadowJar
and is the plugin now only 1.15.2 ?
Uh, plugins are usually only the version you use. In this case you used 1.15.2, so yeah. You can stretch multiple versions but its harder. If you wanna switch versions change the version of your dependency, run BuildTools for that version and you're done
oke now. my package name is me.youfishcommands.plugin
so the main should be like this ? me.youfishcommands.plugin.commands
Package structure for the main class is usually
groupId.artifactId.artifactId
So plugin main classes tend to be the name of the plugin
So say I'm making a plugin called Chat, I'd put the main class in
me.katsumag.chat.Chat <- the last Chat is the class
then I got it right
so where do I find the plugin that I exported
and is gradle build not the same as the shadowJar one ?
No, shadowJar includes all of Matt's library for you
ah
You can find the jar in build -> libs
oke thank you
Your plugin should work fine on most versions as long as what you're using in it exists in those other versions
Then don't use the 1.15.2 api
I already changed it
np, gl
you saw nothing
Well I'm confused I coded a while ago in 2018 on eclipse
a fly and vanish plugin
but it disappeared
Some would say it vanished
jezus
Lol
and is gradle build not the same as the shadowJar one ?
Ik this was already answered but just to elaborate: shadowJar will include the classes of any dependencies that you mark withimplementationorcompile. This is a process known as shading
about that
when I build it with shadow
it didn't give me anything
but when I did gradle build it did give me the jar
You sure?
yes
gradle shadowJar should make a jar in build/libs
Although the jar will have a different name
You sure you were looking in the right folder?
clear isn't a thing
clean is, but you don't need that every time
hi
Howdy
A wild 4head has appeared
Ok
We're all 4heads
what is this all about all of the sudden
I'm excited for Piggy's paragraph 👀
@distant sun js is local storage, so technically the end user will always have access to the key. That’s not a bad thing though. The people who go looking for it, probably know how to use it anyway
You need to use it to compile your pluuugin tooo brouda
I got these weird penguins on every .jar thing
lol
OS?
don’t want what
that's the Java mascot
people having the key?
Yes
how do you start the server?
why? I literally can’t think of a reason. Purposely hiding the key just sounds like needless restriction
how do you start the server?
run.bat
@ECHO OFF java -Xms2048M -Xmx4096M -Dfile.encoding=UTF-8 -jar paper-443.jar nogui pause
run java -version and tell me the result @normal talon
java -version and then the rest
no
oh on cmd
yes
openjdk version "14.0.1" 2020-04-14 OpenJDK Runtime Environment AdoptOpenJDK (build 14.0.1+7) OpenJDK 64-Bit Server VM AdoptOpenJDK (build 14.0.1+7, mixed mode, sharing)
you're running Java 14 still
Either update the PATH, or directly reference the Java 8 binary
if he just followed my guide from the beginning, none of this would've been necessary 😏
welp, please tell me where it all went so wrong, so I can fix it next time
Iirc it'll be something like C:\Program Files\Java\jdk-8-something\bin\java
tbh you may as well uninstall 14 unless you have a particularly strong need for it
I don't use it
I use jdk 8 now for plugins
wew I removed it
openjdk version "14.0.1" 2020-04-14 OpenJDK Runtime Environment AdoptOpenJDK (build 14.0.1+7) OpenJDK 64-Bit Server VM AdoptOpenJDK (build 14.0.1+7, mixed mode, sharing)
I don't have it installed anymore
and I edited the path
to C:\Program Files\Java\jdk1.8.0_251\bin\java.exe this
what's the output now then?
ok cool
path should just point to \bin, not the java executable
thanks mate
2020-06-19 11:41:09,157 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
I get this error also.
it was longer before this code -Djline.terminal=jline.UnsupportedTerminal
but stil get the first one
A lot of people get that, its nothing critical that you should worry about
oh okay
terminal updates
aayyyyyyeeee
Ngl the new windows development stuff looks pretty good
WSL2 + the new terminal + chocolatey or the windows package manager would be pretty nice I think
why use chocolatey if you have wsl
and use zsh with oh-my-zsh
to make your terminals spicy
private final DataTable<Operator> operatorDataTable = new DataTable<>(
/* col 0: name */ Operator::getName,
/* col 2: country */ operator -> operator.getCountry().getName()
);
Maybe I do like functional programming now
oo
helper class for spring returning json support for DataTables.js
@frigid badge zsh is great, but wsl can't install things like intellij no?
maybe we can move in to the future, to a time where linux and windows aren't so much competitors as they are partners, conquering the new world, together
also, is it just me or did I see Rythm in here earlier
rythm is here
thats just because barrys too lazy and wont do it himself 😠
a.k.a meaning cube's too lazy to program music capabilities in @obtuse gale
i think he said it was actually a bandwidth thing or something lol
👍
it's a pain to work with but works like a dream
I used LavaPlayer before
yeah the youtube searching is a pain
I'm considering just querying the YouTube API myself then giving lava player the formatted URL with video ID
since the inconsistencies bug me
I think it's getting better though
anyone here know how to use YouTube's Data API by the way?
cheers Yugi
so do I need to use something like retrofit to query it directly using HTTP queries then?
Depends on what you want to use I guess
my question is do I need to query it directly using HTTP queries or is there some sort of library for it?
requests
requests yeah that's what I mean lol
oh wait
library for Java
Yes
that'll do
also this literally just queries the API lol
which I could just do myself
¯_(ツ)_/¯
Can you use google shit to host an api server on your machine?
wha?
Nvm
api server? tf gaby? lol
also, wouldn't https://cloud.google.com/speech-to-text be cool to use in a discord bot
if I could get it to work lol
@frigid badge zsh is great, but wsl can't install things like intellij no?
@prisma wave why would you install intelij using wsl
well exactly but you said
why use chocolatey if you have wsl
Hey guys,
Anyone know a good inventory builder api or source code where i can buy? I am trying to find a really good and detailed api where i can work with. I mean i can make one myself but i honestly want one that can do like this:
●Hey, DiamondRushXD here ultra permissions is a next level permissions system that can be fully controlled via GUI's Ingame. It is able to suggest you permissions based on installed plugins so you no longer have to search the internet for those!
●Revivenode
https://revivenode...
Hello
hello
Can it make like animations like that?
buy 👀
Disguisting that you'd even show UP 🤢
Sure you can make animations
Disguisting that you'd even show UP 🤢
@hot hull ?
He was on about Matt