#dev-general
1 messages ยท Page 200 of 1
A member of staff has requested I move your pastebin.com paste to our paste.helpch.at!
line 35
?paste
Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
โข HelpChat Paste - Usage
โข Hastebin
is it possible such that getInstance will return the casted instance of that class
for example
if I do ClassType.KING.getInstance() I want it to automatically return an instance of King rather than KingdomClass
and same for Queen, Archer etc
No, this isn't possible with enums
D:
try something like this
public final class ClassType<T extends KingdomClass> {
public static final ClassType KING = new ClassType("classes/king", King.class);
private final Class<T> kingdomClass;
private final DataFile dataFile;
private ClassType(String path, Class<T> kingdomClass) {
final Kingdoms plugin = JavaPlugin.getPlugin(Kingdoms.class);
this.kingdomClass = kingdomClass;
this.dataFile = new DataFile(plugin, path, true);
}
public T getInstance() {
try {
return (T) kingdomClass.newInstance();
} catch (final Exception exception) {
throw new AssertionError("i don't know how to code woops");
}
}
}```
No, this isn't possible with enums
how is it not? ๐ค
enums can't be generic
the enum isn't generic
it is
it isn't? it takes another class as generic (the constructor)
ClassType would need to have a type parameter for this to woerk
ClassType<T extends KingdomClass>
@winter iron btw ^
ye im looking thru it
i have never used types or generics before
so just tryna figure out whats going
what is T
T is a generic type parameter
T is just the name of the parameter
it can be anything
Y for example
or R
or X
generally the letter represents something though
T represents "type"
https://paste.helpch.at/umuzuqalar.java
dude that is 100% valid
that's not what he's asking
that code is valid, but it's not what he wanted
he wants to have the true type of getInstance known at compile time
which is impossible without generics
is it possible such that getInstance will return the casted instance of that class
I mean it will be an instance of that, it's like say getItemMeta on a banner, it will return ItemMeta, but it will be an instance of BannerMeta or whatever
that's not what he wanted though
he wanted the specific type to be returned
not a super type
@ocean quartz any idea ? (sorry for the mention ^^')
Oh, wasn't here, what is it again?
Sorry ^^
Same problem at line 35
https://paste.helpch.at/ucavegezox
I have added the dependency
I guess that should work, how are you building it?
Run mvn clean package and see if that'll do it
Terminal at the project seed ?
Either should do it, i prefer doing it on the IDE, creating a configuration for it
command not found
Try using the configuration, something like this
hmm, I have packaged, Build Success
Yep, even after the clean package, i don't see any changes
Sorry, haven't messed with maven in a while
Maybe it needs the shade plugin
Try adding
https://paste.helpch.at/xebamayeva.xml
This to your plugins
Okay
commons-codec-1.15.jar, FE_Character-0.1.jar define 12 overlapping classes:
- org.apache.commons.codec.DecoderException
- org.apache.commons.codec.EncoderException
- org.apache.commons.codec.binary.BaseNCodec$Context
- org.apache.commons.codec.BinaryDecoder
- org.apache.commons.codec.Decoder
- org.apache.commons.codec.BinaryEncoder
- org.apache.commons.codec.binary.Base64
- org.apache.commons.codec.binary.BaseNCodec
- org.apache.commons.codec.binary.CharSequenceUtils
- org.apache.commons.codec.CodecPolicy
- 2 more...
maven-shade-plugin has detected that some class files are
present in two or more JARs. When this happens, only one
single version of the class is copied to the uber jar.
Usually this is not harmful and you can skip these warnings,
otherwise try to manually exclude artifacts based on
mvn dependency:tree -Ddetail=true and the above output.
See http://maven.apache.org/plugins/maven-shade-plugin/
If I had a dollar for everyone asking for pdm relocation I'd be able to hire someone to do it for me
And by that I mean give me money
gives a bucket to Elara
it generate two files now, I suppose the original is my own plugin and the other one is mine + apache
Three files: original, normal name and shaded.
gives a bucket to Elara
@reef maple dear god...
x)
anyway
Where can I verify the DeluxeChat purchase certificate I want to use 1.16.2
Thank you !
Interesting, was testing time it takes to sum the length of different strings in a list, the results where more different than i thought
Kt: 1.3174ms
Kt for: 0.0232ms
Jv stream: 3.3082ms
Jv for: 0.0526ms
I'm assuming what made the firs one slow was the filterIsInstance
So
var length = 0
for (node in parts) {
if (node !is TextNode) continue
length += node.text.length
}
Is faster than
val length = parts
.filterIsInstance<TextNode>()
.map { it.text.length }
.sum()
Both still faster than Java
Hmm
Most of the overhead probably comes from instantiating collections
What's it like when using sumBy?
Oh wow, speedy
And / or with sequences
Kt: 0.1438ms
Kt for: 0.0212ms
This is just changing to sumBy
As sequence
Kt: 12.3816ms
Kt for: 0.0429ms
huh
Just one run, but doesn't change much to average
That doesnt seem right
Seems odd that sequences are so slow
Also the time includes the println() which i know it's what slows it even more
What string lists are you using to test matt?
But all of them has it, so it's still a good comparison
Just simulating what it'd look like in the lib
0.0232ms I am sped
I feel like Java shouldnt be slower than kotlin in that case if anything
Were you using the java stream API via kotlin by any chance?
Doing some changes now yeah
Alright here is my test code, i know it isn't exactly great for measuring but just wanted to have an idea of it
Also removed the println
https://paste.helpch.at/ezibidipar.cs
Results:
Kt: 0.00293ms
Kt for: 7.54E-4ms
Jv stream: 0.045081ms
Jv for: 8.01E-4ms
Average of 100 runs
Kt: 2345.5ns
Kt for: 341.7ns
Jv stream: 7951.1ns
Jv for: 378.4ns
there's also the possibility that some of the operations are getting optimized out
Nah nah
since you don't actually do anything with the values
compare the bytecode for fun
Yea checking rn
Well, normal for is faster than Java's normal for, while kotlins "stream" is faster than java's stream
Matt were you calling the stream api from kotlin?
Wdym Yugi?
definitely check bytecode / decompiled output
Wdym Yugi?
I meant as in were you accessing the Java Streams API from kotlin code or directly from java
No, no way is it faster than java. Impossible
@old wyvern I have a Java class with the stream, then i call the class from Kotlin
Biased benchmarks, typical
pub static fn
Rust does not encourage the use of static ๐
Ada could beat this
oh sum
It's just
return parts.stream()
.filter(TextNode.class::isInstance)
.mapToInt(part -> ((TextNode) part).getText().length())
.sum();
Excuse me
procedure Main is
begin
Put_Line("Hello from ada")
null;
end Main;
๐

procedure Main is
begin
Put_Line("Hello from ada")
null;
end Main;
@heady birch
print("Hello from Elara")```
wow
what a comparison
Yo BM you still talk with Sx?
elara is cleaner in every way
not any more lol, he unfriended me ๐ฆ
not sure why
He got kicked from Paper's discord, then unfriended me, got rid of all his servers, and just disappeared ๐ฆ
o.o
ah yeah
What happened on paper's discord?
He told people to use kotlin too much
xD
๐คทโโ๏ธ
Basically really dumb, he was arguing with Kotlin stuff, someone told him to drop, he didn't and got kicked
:/
He should have promoted Elara
Kotlin help required
dont ask to ask
add Kt to the end
Still have him on SnapChat, so might try talking
I only experienced this a few minutes ago, no longer than 10
if it's a main file
This was working before, I do have Kt on the end
oh damn didn't know y'all snapchatted too
I will view the output
a little
circlejerking irl huh
Nial is it on spigot?
;p
nahhh
Tbh i really don't use it, just open stuff people send 
A kotlin file with more than just a class acts like a package
yeah lol
Tbh i really don't use it, just open stuff people send :kek:
this is so me lmfao
i've got streaks with a few people but I mostly just leave sx on read
This was all working fine, until I packaged it again
My package is not in output jar
pretty sure it's mostly for sending nudes
Typical
I just have it coz someone installed it on my phone when it was with them
Kotlin
nah it really isn't

I used to be active on it like 3 years ago
I have found 2 people from here on insta tho 
I mean you guys know my real name anyway
[WARNING] No sources found skipping Kotlin compile
max
src/main/kotlin @heady birch ?
What was your full name again lemm?
We all know your real name is Lemon
lenmo
yes
^^^
John Lemon
as I previously stated !!
xD
this was working fine !!
send the stacktrace
maven
Real picture of Lemmo
:/
honestly what do you expect
when you use maven with kotlin
it's got like eighth class support
barely even second class
Gradle didnt even work so...
use maven with kotlin
Third party chinese plugin just to shadow
third party
๐
That's made by Apache
apache-maven-shade-plugin
I think we discussed this
apache is almost as bad as james himself
also elara will come with a 1st party shading tool
mark my words
and it will be 18x faster than gradle
[INFO]
[INFO] --- kotlin-maven-plugin:1.3.72:compile (compile) @ scope1090 ---
[WARNING] No sources found skipping Kotlin compile
No sources found skipping Kotlin compile
[INFO]
[INFO] --- kotlin-maven-plugin:1.3.72:compile (compile) @ scope1090 ---
[WARNING] No sources found skipping Kotlin compile
No sources found skipping Kotlin compile
sounds like a maven problem
๐
Ok so just running the program fixed it when I packaged it again
So that means people who download it and mvn:package, it isn't gonna work
For some reason I have to compile through IntelliJ run?
they should be doing gradle build
yeah
So people dont need to install gradle
mhm
Magic, how can one accomplish this
IJ will do it when you make a new project
or you can manually add one with gradle wrapper
My project is already made, in maven, switch to gradle
gradle init can attempt to convert from maven
bash: gradle: command not found
isn't perfect but it's a good start
oh
i assumed you would have it installed
smh
i dont want to install it
TYPICAL gradle users, provide no solution to the problem at hand
typical maven users, can't take a little bit of initiative to solve a problem
expect everything on a silver platter for them
I dont think you did
never
@ocean quartz
๐
Seems both kotlin eager and lazy streams both unfold to while loops with each step and the sumby is done with a for loop
What's the opposite of intense?
Untense
mild?
Nah
xD
Yeah probably mild or subtle
outtense
outloose
@old wyvern Seems pretty similar to my results
And yeah it unfolds into while loops with iterators, which i thought was interesting, i always thought it would be a for with ifs xD
Well, what to take from this, it's better to not use streams even if it's just small things like the count stuff i had, will be faster to just a loop to count the length in my case
Also, what would Kotlin's internal access modifier compile into?
Huh, decompiles into public
But it's probably handled differently
Just curious how it'd behave trying to access internal from Java
internal is pretty useful
I would love to write a premium plugin in Kotlin and have all sorts of crack protection in it, and see people trying to decompile it in Java to crack it 
Doesnt let me compile while accessing it
I would love to write a premium plugin in Kotlin and have all sorts of crack protection in it, and see people trying to decompile it in Java to crack it :kek:
xD
Looks lovely
if you want true obfuscation decompiled clojure is the way to go
That is actually not a bad idea
@static zealot if you haven't realised already, pdm is fixed. sorry for the wait
or it should be fixed
yeah it works now well at least I can use the version 0.0.28 but the error persists
sure give me 2 minutes.
welp the server just started rn. I rebuilt the jar and seems that it doesn't give an error anymore
interesting.
welp thanks anyways
yeah but I don't get it. Why does it break the jars when the repository is offline?
The gradle plugin is required to fetch the dependencies from build.gradle for pdm to import at runtime I guess?
I'm not sure exactly but pdm uses my repository as a mirror of maven central (as afaik you're not allowed to use maven central in production)
Yeah pretty much
ah
The gradle plugin itself depends on common-lib from my repo, and every project queries the central mirror to fetch the jars
mmm
any mathematicians here?
I forgot everything I learnt in school
need help with a steadily increasing function that reaches a limit
What's the question
I have this number b that represents brightness that I need to limit between 0.0 and 1.0. Now I also have two inputs: dark and light, both integers between 0 and MAX_INT.
I need a function f(b, d, l) that returns a brightness between 0 and 1 where the higher d is, the lower the resulting brightness is and the higher l is, the higher the resulting brightness.
so b' = f(b, d, l)
You already have a value for brightness?
I think a good factor for the darkness would be something like 1/(x+1). If the dark value is 0, the factor is 1 and the brightness is unchanged.
You already have a value for brightness?
@old wyvern Yes, I have a value for brightness and I am trying to make it lighter or darker
Also why do you have 2 variables to represent the same state in multiple ways
this is 1/(x+1) for x > 0
Darkness and lightness are related
yes, they are the reciprocal of each other. which means I basically need to find the reciprocal of 1/(x+1)
but I forgot how that works
I don't think you can simplify that?
I don't want to simplify
That isnt a reciprocal relationship
Light + Dark would be assumed to be 1 in brightness
So you could consider darknesd just just negative values of brightness
That way you can just simplify it to
b + (l-d)/max
what's max here?
Expected maximum value of l/d
also what's to stop b + ... something to be more than 1.0?
Expected maximum value of l/d
@old wyvern there is no expected value
You said it would be maxed out at Int.Max_Value correct?
yes but that's just theoretical. the step size should be heavily skewed towards the lower integerrs
so a dark value of 1 to 2 is a much bigger difference than a dark value going from 563 to 564
Thats possibly not a good choice
it's not linear
also I don't want to, it's an unnecessary limit that only serves to make my task of finding such a function easier. No practical reason to limit it other than that.
ok so I have a brightness value between 0 and 1, right
Not sure how you imagine scaling it down without an upper limit
You wanted to scale the change down to the range of brightness afaik
Exactly my guy
Ok let me ask you this
You have x in the range of [0,inf]. Find a reversible function to map it to the range [0,1]
I need a function f that returns a value between 0.0 and 1.0 with inputs: initial brightness, darkness [0...MAX_INT], and light [0...MAX_INT] where if d-l==0, f returns b. Otherwise it's a monotonous function. I guess I could just say shade = l-d
so let's simplify to f(b, s)
the more positive s is, the closer b gets to 1, the more negative s is, the closer b gets to 0
do scale
Yes
right let's do it this way
Just divide s by Int_max
I'll give you concrete examples if you want
b = 0.5, s = 3 -> should result in something like 0.75-0.9
b = 0.5, s = -3 -> should result in something like 0.25-0.1
b = 0.8, s = 3 -> should result in something like 0.95-0.99
b = 0.8, s = -3 -> should result in something like 0.05-0.01
or whatever, scale it down a bit so that's s=30 and -30 instead of 3
but really small digit s should be enough to bring that b close to 1
Then whats the point of allowing larger numbers?
Yes there is
You just stated it yourself
but really small digit s should be enough to bring that b close to 1
You want small digits itself to be a large factor
forget the limit, it's skewed towards small digit numbers in both directions, think of it like a bell curve
But also want to allow larger numbers
even with a limit, it's not a linear scale
it's a gauss kernel
forget the limit
oh you know what I think I got it actually
Adding legacy format support so people don't cry ๐ซ
The way the default format works on spigot is funky
With the &l, &o, &m, &k, it resets on color
So the way it'll interact with markdown is funky as well
where can I change the max allocated memory for IJ? stupid brother put it at 12gb max and I can't find that on the general settings -.-
Help tab @obtuse gale
thx ilyโฅ๏ธ
Lol
Actually showcase is good for this
@prisma wave Teach me the ways of shadow jar!
What about it
How to
the id is like com.github.johnrengelman.shadow or something
stupid
That's so stupid though
You cant even make a working kotlin project without some third party plugin!
I dont want more features
I just want a working application
Maven master but no gradle guru
well then shadow is the easiest way to do that
it's possible in vanilla with a bit of tweaking of the jar task, but that doesn't support relocation or minimisation or anything
But yeah literally all you need to do is add the plugin
alternatively I think the 1st party application plugin can create a single executable with libraries bundled
if you're actually serious about "3rd party bad"
What
No
I want to be able to build it with gradle build
Cant even find main class
Typical
How can I remove the gradle project
Just delete the files?
Oh WOW
Look at that
Run 1 command
And maven has done it all, I rest my case
๐
Can I do var parameter in kotlin
let
Is it only me or using extensions for event listeners is a bit weird to work with 
Without having to use even.x.y.z
I find it easier
event.player > player / this.player
Cos alot of the time with events I find myself doing something like
val player = event.player``` but I dont have to do that anymore
Mhm maybe
Hi is there any option to suggest a cmd in chat clicking on a menu gui?
No
Yes, only though json
Thank you โค๏ธ
so this just became OS https://github.com/NationalSecurityAgency/ghidra
Yea they have an eclipse plugin
so this just became OS https://github.com/NationalSecurityAgency/ghidra
@frigid badge This has been open sourced for ages
it hasnโt
Well over a couple of months
Pretty sure I had seen this pre 2020
Maybe later
Oh I might be mistaken, it was free to download, not actually sure about open-source
@heady birch Lmao that ghost ping xD
Saw the logs xD
๐

is it OSS or just OS?
OSS?
there is difference
something can be open source but not have the legal actions for legal open source, like anything that you write and you made it for public is only OS while linux is OSS
OSS meaning what exactly is what I'm asking
just sec
open source software
^^
I see
I need a program to make
Rust, C, Ada ๐
will look into it.
What kind of communication?
Pascal
Elara
well sending data to windows from sensors (temps, humidity....)
that data is gonna later be processed by program.
Can do it in java
jSerialComm : Platform-independent serial port access for Java
javax.comm
interesting, but i probably have to loook in which lang that program is coded ๐
i kinda need to make some sort of driver like for mouse and that stuff
so it works as soon as you plug it in
you would just select port in program
Kotlin: Unknown JVM target version: 1.7
Supported versions: 1.6, 1.8, 9, 10, 11, 12, 13
Found them!
any ideas on how to make rainbow wave on text like the glow effect? just rainbow
Like what?
so it scrols colors
Just in rainbow?
Use kiteboard ๐
Do you mean with 1.16 colours
yes
I might make it into a library
Soon
I am not sure how stable it is /likely to change
I dont like releasing stuff if its not finished 100%
lel
i mean i could kinda use hexUtils from nicole and just shift rainbow text by 1 for each frame i think
๐
First I must focus on de-coupling it from the placeholder api
Also- its performance- is adequate- for the way its programmed, I don't like the way its programmed
Yeah I brought it up ages ago, but haven't thought of a decent way to improve it yet
kinda making animations compatible with my new Holograms Plugin :9
i made placeholder registry pretty much the same as HD version but works different, just creating placeholders is the sameลพ
my ENGLISH!
private use ๐
No problem
fixed version first one wasnt correctly metting up
http://images.virtusdevelops.eu/shareX/dmongpo5.gif
Nice
i kinda need to move it to right to no just left XD
Yeah perhaps
no
lucky
๐ณ
bruh the "source code" doesn't even include plugin.yml
oh wait
it's not a plugin
nvm
๐
๐ฃ Kotlin 1.4.20-M1 is now available!
โ
New project templates in Kotlin/JS
โ
Kotlin/JS Gradle plugin upgrades
โ
Performance boosts
โ
Kotlin/Native 1.4.10 backwards compatibility
๐Bug fixes, and more...
Try it and share your feedback with us!
Details โฌ๏ธ https://t.co/Y71QyoI4T1
378
Performance boosts
cant get excited about anything andrey puts out any more
he probably intentionally adds bugs
Go version 1.2:
- No performance boosts, already performs flawlessly
- No new features, everything you need is already included
https://twitter.com/artinnemati_msl/status/1310550728767930369 also can we talk about how awful this is
@kotlin fun main (){
val hi=hi()
val finding =there is anyone want to learn kotlin ()
val friendly = i want to learn and i need a friend to learn
together.()
val regard =Dm me tnx ()
println("${hi}${finding}${friendly}${regrad}")
} #kotlin #android #dave #daveloper #pro...
val regard = Dm me tnx ()
๐
actually
tragic
that could compile i think
no way

disgusting
๐ญ
Same 
omg he left kotlin memes discord ๐ญ
He left everything
๐ญ
He only added me back a few days ago to ask me what the questions were for the job interview.
Then I believe he removed me again.
wow
Probably trying to leave anything mc related since he got kicked from paper so kinda no where else to go ๐ฆ
He got kicked from Paper?
Yeah
it wouldnt surprise me
โน๏ธ
He's not banned though.
Yeah just kicked
The rage tho...
Here as well?
https://i.imgur.com/xzpxY9v.png 11 hours sounds like a lie. More like 5 minutes - 10 hours break - 55 minutes xD
@static zealot imagine not hooking your discord to intellij,
^ literally me
For those who know JavaScript or Python, which between the two should i first go with? I want to get you guys opinion on this
Python is more user friendly I would say
I started with javascript because it slightly helps if you're considering to branch out into Java
as you'll have a general understanding of if statements, variables
I started with Skript
Die
nou

Cool kids start with C
Did you?
Started with Basic
VB
Yeah, started with C
Then Rust
On the IDE Geany 
imagine not starting with java
imagine not starting with kotlin
and if not
sounds promising
will
very promising
how about generics
and reflection
we will eventually
and it will be the best reflection ever
but for now
no
let a = 3
print(a + 2)
``` works ๐
so you have let, var and what more
no var
oh
var is despicable
y not
powers as well?
let mut right?
a = a**3
or a =** 3
mhm
call me an elara genius
elara genius
but u have const ?
so static final let
what
to make a constant
yes
elara is not object oriented
not only functional I hope
no
so static final let
@steel heart cursed
yh good
it's not haskell 2
you're very dangerous my friend
i will take that as a compliment
why shouldn't you?
show me an example masterr
of what
list of ints then?
yeah
I mean thats pretty neat ngl
struct Person {
String name
mut Int age
}
struct Student {
String name
mut Int age
Subject major
}
you could use Student in place of Person because they have the same contract
well this is where it gets really cool
<T { add(T) => Any }>
let add-2 = (T a, T b) => {
return a add b
}
this will accept any type with a function add(T) => Any
like an interface on steriods
okay thats pog
So guys, I was working on deobfuscating something
it went well?
I have a case where the contents of a constructor is synchronized
I think it wouldnt be required, but just want to make sure
The instance shouldnt be available unless the constructor completes execution anyway right?
@prisma wave Any ideas?
yeah I don't think it would be possible
So I can safely remove the synch block right?
there's no way you could access fields from outside of the constructor before the constructor has finished
yeah
@prisma wave Typical, turning more like rust everyday. Almost like rust is the best language!
Add mutable types
let a: mut mut Int
a = 1.05
double
mut immut let a: Int mut String
https://www.youtube.com/watch?v=3Kq1MIfTWCE 14 hour youtube course who wants ๐
Learn network penetration testing / ethical hacking in this full tutorial course for beginners. This course teaches everything you need to know to get started with ethical hacking and penetration testing. You will learn the practical skills necessary to work in the field. Thro...
have you watched?
yes
looks like thats a thing for tomorrow
what would you give me if I finished it by today

hello
woah did u just call me qt? thats kinda sus are u impostor?
Queue<T>
'-'
@heady birch no
which ive been banned on for like 6 years
so
Niall
Lets address the elephant in the room
Add mutable types
@heady birch
ew
๐
<T { add(T) => Any }>
let add-2 = (T a, T b) => {
return a add b
}
@prisma wave
:c
PUSSY MF
Typical, turning more like rust everyday. Almost like rust is the best language!
@heady birch
How so?
๐
No as in how is it turning more like rust?
mut
That existed from the initial idea
Only yext
Maybe I will just leave that there? see how many downvotes it gets?
From Niall
do you have cool enum?
struct
u have interfaces?
woow
null is null
shoe me dae wae
Result types
@prisma wave
Good idea
What kind of syntax?
Also would be cool if you can make it compile to null
not like Scalas optional
streams
type Result<T> = Some<T> | None
let result = some-op()
if result {
result.value.blah()
} else {
print "None"
}```
automatic truthy conversion
niall nice documentation
I mean elera is nice and I will def try it if it can run in the jvm
it probably will be able to
yeah i like that

Some<T> | None ๐
You have a weird definition of 'nice'
Typical object oriented programmers
im gonna be the first one to publish a minecraft spigot elera plugin to spigot
๐
๐ณ
i have stupid
Niall why dont you relese the api to github so people can use jitpack?
or upload it here ๐
Third party maven repo

It going on maven central
does it cost to upload to maven central
dont think so
nope
Brain calls
u just need to be accepted
so why does people upload to other stuff
except you have to sell your soul to "apache"
lol
because it has to be verified
^
which takes time
so basically jitpack is better
Nah
whats good then my lords
except you have to sell your soul to "apache"
@prisma wave I wont have a problem with that
repositories {
mavenCentral()
}
ez
apache isn't real
just making people download my api or what
alex can I use your repo stuff
or create my own?
oh thats kind
If my plugin has many different features with multiple commands, should i make a package for each feature and store commands in there or make a commands package with feature subpackages
whatever feels best for you
I typically will do a command package in general and then sub packages for each general feature.
@prisma wave Curious question, what would be the difference between:
val isMessage: Boolean
get() = MESSAGE_PLACEHOLDER in text
And:
val isMessage = MESSAGE_PLACEHOLDER in text
With the custom getter doesn't it like run the method each time you access the variable, as opposed to just when the class has a new instance made? I might be wrong
Thinking that too
that would make the most sense
for example if it was reading data from something like an api or db it would always get the most recent
Yeah I believe that is what it does.
Anyone have any decent ideas for what I could do for my senior project?
I can't decide what I want to do
So far what I'm thinking is creating some kind of database for some unorganized data and then making a rest API and web app to interact with it
what concepts you need to implement
It's pretty open ended
I'm leaning more toward Java/node since that's what I'm most familiar with
Really the only requirements is that it should be around 120 hours for a mostly working product
and it's supposed to make me learn something new
skript is something new ๐
It's not an assignment, it's the whole class ๐
so you're all working on the same thing together?
It's solo
so you've been instructed to just "make something, and spend 120 hours on it"
just making sure I've got all the details
make a scratch game
Those are the only set in stone things
You turn in weekly reports
It's honor system
You come up with the SRS yourself and it's how your project is graded at the end
srs?
URSS
ah
So far what I'm thinking is creating some kind of database for some unorganized data and then making a rest API and web app to interact with it
this doesn't sound like it'd take 120 hours
more like an hour
Well if you know what you're doing
Implement Bukkit ๐
implement sponge
I'd have to make the database, the rest api and the web app
All of which I've never really done/ haven't in a long time
Well if you know what you're doing
well you said you want ideas for your senior thingo ๐คท
yeah, I'm saying for me it wouldn't be an hour long ๐

