#help-development
1 messages ยท Page 289 of 1
I'm german
only correct reaction
Well for your issue I do know the lingo
do you know why that is?
Your build.gradle.kts does not work. it's not relocating JeffLib. It's still inside com.jeff_media
?jd-s
Correct. Because you only include internals/nms in relocation
p.setDisplayName();
p.setPlayerProfile();
Remove include line if you want all lib to be relocated
And exclude nms from minimize
and how can I relocate all of those without declaring it twice?
latter does not exist
if you are handling anywhere it would be needed it would
However https://hub.spigotmc.org/javadocs/spigot/org/bukkit/profile/PlayerProfile.html#setTextures(org.bukkit.profile.PlayerTextures) does, but I have never done it myself
I mean obviously I wanted to relocate the whole lib, not just part of it lol
Yeah, I don't know if it is possible or not, but it might be
plugins {
id("com.github.johnrengelman.shadow") version "7.1.2"
java
}
repositories {
maven("https://hub.jeff-media.com/nexus/repository/jeff-media-public/")
}
dependencies {
implementation("com.jeff_media:JeffLib:12.0.0")
}
tasks.shadowJar {
relocate("com.jeff_media.jefflib", "me.username.jefflib")
minimize {
exclude("com/jeff_media/jefflib/internal/nms/**")
}
}
``|
setTextures does look nice though
The question is whether the update will be sent to other players
i do fine the use of kotlin in this very pointless
Didn't we have that exact issue a few months ago?
thx! only took 2 weeks until someone knew the solution lmao
No problem
you can probably do that without the kotlin part
but do you have any idea what I can do to prevent this?
Yeah groovy will work too
if gradle would just use xml, I might switch. I hate the idea of writing scripts to simply declare stuff
i think the main point of gradle is to not use xml
yeah maybe that's why so many people dislike it
Yeah exactly
i like not having to type 300 different tags to add one plugin
don't you have an idea that auto-completes it?
most of the time it didnt
alex you should get wakatime
thats a thing?
No. How should Iร
because that doesnt follow any formatting stuff
What do you think
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
is for?
i would have expected the plugin to appear if you type the group or artifact id
not just typing the plugin name
That provides the format of the XML in an standarised format so ANY IDE can auto-complete it
you can just put it inside <plugin> and IJ knows whats up
M2eclipse also does that for dependencies you have in your mavenLocal. Super easy to implement since it is basically just scanning mavenLocal for plugins and other dependencies
damn
somehow it's a bit different for dependencies
that one makes sense
discord doesnt like .mkv
Looking for developer java bukkkit with experience in prision plugins
msg-me
๐
?services
If you wish to request or offer development/art/building/administration services, please do so at https://www.spigotmc.org/forums/services-recruitment-v2.54/
Here, mp4
No, DM first and give me a 3 figure hourly wage
Industry standard, y'know
And considering the state of prison plugins I'd expect a very high 3 figure wage. Perhaps even 4 figure
Morally incorrect jobs pay very large sums of money
do you ever just get bored so want to code things you will most likely never use
like now i want to code a prison server that im never gonna use
That pretty much sums up everything I do
Okay, well - perhaps half of the Starloader suite is used by me. But the rest of all things I've written is pretty much never used by myself
ive wrote in total like 10 plugins that have been on servers that were used
The only plugin of mine that is used in a production-scale setting is EnchantmentsPlus - and even that is debatable considering that it is a fork
ive got 1 plugin on spigot that doesnt work
i was updating it earlier but stopped
because idk
im working on another plugin that would go on spigot
it might actually get used
There's also EasyConomyAdvanced that is on spigot - but that is also a fork.
Then there is Presence but that one is defo not used due to it only being present on the paper forums and github
I've got three or four plugins depending on how you count, though only one is used by more that one server which also happens to be a fork
is there any proper thread explaining on how to make custom "images" on maps using urls?
i tried searching but couldn't find any thread talking about it properly on how it works
Just render the URL on the map?
The client won't download any URLs by itself - so the server would need to do it
The plugin would have to get the image, resize the image to a proper size, translate the image to blocks(is there a way for this effectively?) and then put those blocks on a map
but how to create this custom "map" tho? ๐ค never touched maps thats why im asking for some thread explaining it
This might be helpful (basically what you want https://github.com/zDevelopers/ImageOnMap)
Found this too: https://www.spigotmc.org/threads/tutorial-maps.136533/
Without using OpenGL I'd not touch image drawing even with a giant pole.
And since I have no idea about how to use OpenGL I'd not touch it at all. But for pre-rendered images OpenGL is not needed I guess
thank you a lot, i'm looking into it
can you execute code when a plugin is loaded before its onEnable method is called?
Myea
oh i haven't specified, i can't modify the class
i'm tryna patch a plugin that doesn't work in modern versions
and I need to write a field before it's loaded
sadly the plugin is not open source
aight thanks
as you can see, i saved 2 players, both having 2 points. however, when i open up the .db file (or just.. rejoin the server), it shows the points as "1".
here's the autosaver. https://bin.birdflop.com/laqibomopa.java
i am losing my sanity ๐
Recaf :)
ugh how do I add a repository to a groovy build.gradle? somehow the docs don't meantion this at all in their "Learning the basics"
oh wrong reply
one moment
I hate it that it's not possible to remove the "replied to"
lol i was like what
is that a bytecode editor?
can I just modify a loaded class with it?
at runtime
maven {
name 'name'
url 'url'
}
Bytecode editor, yeah
or just
maven { url = 'url' }
But it does not work at runtime - you can't modify a class at runtime without javaagents (which we have no access to)
if you need to specify java version use something like sourceCompatibility = targetCompatibility = JavaVersion.VERSION_16
no clue
i like it more tbh
also i thought there dep stuff was maven{ uri = "url"}
ah so i can basically manipulate the jar
also why do we not have access to javaagents
There is also the UnsafeValues#processTask hack which you could use to modify classes at runtime, but that does not work in your space
what does maven/gradle even have names for repos for
(btw i have no idea what those are)
They need to be defined through jvm arguments
oh yeah, if you need maven local or central add mavenLocal() or mavenCentral() to the repo section
bomp
ah i see
anyways pretty interesting, thanks
yep I already figured that
I'm just trying to convert some projects to gradle for fun and it's a pain lol
i also never understand why some things are
this = "sth"
}
while others are simply likethis("sth")
yeah
EpicEbic
yo
It's fixed now
nice
I saw auto kick player in config files so i set it to false
normally the better thing to do for anticheats
It's very good, my friend and i tested it
ok last bump. im still not sure why this wont work and its driving me insane now. same implem works fine in another plugin.
print points and see if its 1 before being set in the db
EpicEbic
yo
the value b4 the uuid shows the points that said uuid has.
custom emotes are booster perk lol
lame.
yeah
Is there any plugin that help us to connect minecraft server to discord (except DiscordSrv, EssentialsDiscord)
Like for bot
!stats %player%
Execute in discord:
IGN: %player%
Rank: %uperms_prefix%
Kills: %kills%
Deaths: %deaths%
i dont know of any that might do that
i can probably write something that could do that
i need discord Placeholders for it
do you use essentials discord or discordsrv?
in mc it's %player% and idk tbh discord
or want it on a separate discord bot
ok it has to be because a row is already set, right?
so.. update is required instead of insert???
A thats a closure
A special type of function argument
Sort of
or maybe UPDATE OR INSERT instead of INSERT OR IGNORE
alr, if you want me to hook into discordsrv when you use it to use that discord bot instead i can. Ill send you a dm when i should have a working plugin that can do that for you
or maybe.. all 3 at once ๐ time to tryitandsee
k. Ima go now it's 12am+ rn
okay so is there any difference between groovy and kotlin besides the syntax? Is one better than the other? Because I really wanna try switching to maven but now I don't even know which lang to choose lol
The best thing about kotlinscript is the additional ide support
And since yk
Kotlin is statically and strongly typed
when I googled "kotlin vs groovy" then only things that come up are guides on how to switch from groovy to kotlin lol
so seems like it indeed is better
yeah ik that
Kotlin is better
well I don't like kotlin but groovy seems even worse
It is
Well
If you hate weakly, dynamically typed languages
Then yes
And the second hand ide support
yeah Ill go for kotlin, thx
Its far from perfect
Lol what the
it worked!
this
use what?
the features that might come
fair
I mean in maven I ofc can always use new features when they come
does 1.12 support java 11
so I guess I wana choose yes
private Block breakInfinite(Block initialBlock, Material type) {
for (final BlockFace loopFace : BlockFace.values()) {
Block loopBlock = initialBlock.getRelative(loopFace);
if (loopBlock.getType() == type) {
loopBlock.breakNaturally();
return loopBlock;
}
}
return initialBlock;
}
int f = 0;
while (f < 20) {
testBlock = breakInfinite(testBlock, Material.COAL_ORE);
f++;
}
Can someone spot why my loop breaks when looping south
idk what happened to the formatting on discord but yeah
it works correctly except when going south
what is it supposed to do?
oh wow, making maps with custom images is so easy, thought i would need to send packets to players or so ๐
break connected blocks until theres no more of that type thats connected
looks like it checks every block around an origin for a coal and breaks it
20 times
^^
if you run out of coal it will hang in your while loop
you'd have to change the loopBlock if you want it to look further than the blocks around that initial block
isnt there also a BlockFace.SELF?
it works correctly just only breaks when it goes in the direction BlockFace.SOUTH
im not sure why
what is the server ip
am I stupid or does the "new ui" use more space instead of less? I mean all it does is remove a bunch of buttons and make the text larger, like wtf
Are you guys familiar with world creation with spigot?
the new ui is horrible
?ask
If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply. Make sure you use the right channel regarding the topic of your question. Create a thread in case the channel is already in use!
The first gif is breaking blocks going north
the 2nd gif is breaking blocks going south
idk why it stops when going south
clearly more
Alex the new ui in your video is different from what I see
So, I need to load a world from memory every 24 hours. Doing this takes quite a bit of time. This blocks the main thread for a long time which is annoying. I was wondering if there is anything I can do to speed this up, or stop it blocking the main thread entirely
my os doesnt want to me to code
yeah ofc it's different. it has a different color and larger text
Is it like a survival world or minigames?
anyone got a clue on my issue
so basically it's the opposite of what they promised
oh mine actually looks different today than yesterday. Today it looks like your video; yesterday it was like all icons and no text for the sidebars and stuff
i think it looks better than the old one
if i could only open ij ๐
have to open it from the app store cuz my pc crashed and stuff is behaving weird
discord blocking my screen ๐
does anyone know why gradle complains about the "api" dependencies?
ok looks fresh doesnt it?
You need to add the java or java-library plugin I believe
I got the java plugin
thx. weird, gradle init auto created the file
Okay, so changing region files while a world is loaded always ends badly correct?
I'm not an idiot. Well actually I am and I've seen what happens if I do that
but that was a few days ago
I was wondering if there would still be issues if I ensured no chunks in the world were loaded when changing the region files
Why do you need to modify the region file
Basically, I have a world (world a) people are building in. Like 3k by 3k map right?
and for 1 hour I want them to go over to map B, which is identical to A
and I want them to be able to grief B as much as they want
and then go back to A, which does not have any of those changes
To ensure the world is in a safe state I would unload both of them and move all players to a 3rd world
then copy the world and load it
and move players there
can someone explain to me the difference between "implementation" and "api" in gradle? I don't really get it. I just wanna shade JDA, SnakeYAML and similar stuff. Should I use api for that, or implementation?
impl for jda is pretty much all i know
no idea what the difference is
because you also have compileOnly
"gradle init" converted all my maven "compile" dependencies into "api"
in maven I simply think "do I have to shade it?" and when yes, I choose compile, otherwise provided. So what's the equivalents for that in gradle?
Use implementation
I just realized something. I have been trying to do all this world switching stuff, when in reality the solution is much easier
fml
from what I know
maven compile = gradle implementation
maven provided = gradle compileOnly
BUt what does api then mean?
Dependencies appearing in the api configurations will be transitively exposed to consumers of the library, and as such will appear on the compile classpath of consumers. Dependencies found in the implementation configuration will, on the other hand, not be exposed to consumers, and therefore not leak into the consumers' compile classpath.
yeah I don't get hat
maven provided = gradle compileOnlyApi
maven compile = gradle api
i found
implementation and compileOnly do not exist in maven
thx so I'mma use that?
The api part means that the dependency will be looked up too as a transitive dependency
another question: why are backticks in plugin names only sometimes required?
like why does java not require them, but java-library does?
likely due to dashes
ah ok
Syntax bullshit I'd say
ughm what
I simply want to shade snakeyaml and use lombok
in maven I used provided for lombok and compile for snakeyaml
huh why that
on their website they claim to do it like this:
Assume mylib has mydep as a dependency and myplugin has mylib as a dependency. If you use api or compileOnlyApi to declare mydep then mydep will be visible on the classpath of myplugin - however that is not the case for compileOnly or implementation
lol
can we please use the actual names, otherwise I won't get it
I have a standalone app and I want to shade snakeyaml
what scope should snakeyaml have?
api or implementation
which one
It depends on whether you want it to be a transitive dependency or not
Then either will do the job
yeah but I wanna know what the "proper" way would be
I recommend api if you have no clue
okay but why? ๐
Because that is the compile scope of maven
implementation simply excludes the dep from the generated pom
oooh I see now
(but it is still present on the build and runtime classpath - thus it is shaded)
so let's imagine spigot shades apache commons
OfflinePlayer player = Bukkit.getOfflinePlayer(Bukkit.getPlayer(args[1]).getUniqueId()); am i correct in saying this would be never be null
and they it to set compileApi, then I could use apache commons in my plugins
Yep
erm wait
I meant implementationApi
if it would just use implementation, then plugins could not use it
alrighty thx
now I get it
Uh, simply api
erm yeah
is api kotlin or something
implementationApi is a paradox
weird why is gradle's naming scheme so fucked up
implementation = implementation-specific
api = exposed as part of the project's api
Standard gradle
if i attempt to get an offline player from name, if they have never played would it be null?
ah
No, a lookup to mojangs servers should occur
ah
mojank
?jd-s
thanks
am I stupid?
Nah, that is bukkit jank
compileOnly
compile was removed ages ago
They want api or implementation
compileOnly is not it
And @NotNull
gradle got more complicated
i always just use compileOnly or implementation
i use which is on the docs or does what i need
To be fair that difference makes incredibly huge amounts of sense
but I wana do it properly from the beginning instead of just using "something" ๐
lol fiar
I am kindof shocked that maven does not have something like that
well I mean stuff like "use compile" in the jetbrains docs, while that was removed "ages ago" is just weird
With ages ago I mean like 2 years ago - more or less
Or perhaps it was only removed with gradle 7? Idk
okay but actually I don't want to shade the annotations
am i correct in saying to get a Player instance they would have to be online? or can i get player instance if they are online or offline
so shouldn't I use compileOnly ?
Yeah - removed with gradle 7 and deprecated in gradle 6
I mean who shades jetbrains anotations?
then compileOnly
that's only useful for an api
oki
I do it for safety reasons
my brain just refuses to get how Player and OfflinePlayer works lol
Don't want ABI diffs to suddenly break my plugins for no reason at all.
But then for other plugins I just don't care
Player = Player entity
OfflinePlayer = Player object, of sorts
ah thanks
OfflinePlayer is an interface with stuff that makes sense for all players. getName(), getUUID(), etc.
Player is an interface that extends OfflinePlayer and adds methods that only make sense for online players, e.g. sendMessage()
tbh I would have rather named it Player and OnlinePlayer
I mean players who are offline are still players, right?
yeah
just like people who aren't in the same room are still people
There's probably an even better naming convention.
Player vs PlayerEntity
What m'I doing wrong, why both ChunkLoadEvent or ChunkPopulateEvent are not triggered?
Did you register that class?
yes, the server load event message appears in conosle
Ah yes right. Was expecting it somewhere else ๐คฆ
and the pianoDataRepository.findAll() return 2 objects so its not empty
did you fly about at all
Other alternatives I could find is that the chunks are not reloaded
i dont think the chunk load event gets called on startup, only for when a player may join or walk about
The reload command likely only reloads plugins, but not chunks or player joins and stuff
I think sponge and some other apis already do this
am I correrct that, in order to declare a main class in MANIFEST.MF, I gotta add the "application" plugin additionally to the java-library plugin, then just set the "mainClassName" attribute and then after runing "gradle shadowJar", it should work?
Sadly bukkit is a big legacy meds
ok I run server again instead of reloading but still nether 'Chunk load' message not appears
Are you sure that sponge even has an OfflinePlayer-equivalent?
Yeah, sponge does not have an OfflinePlayer
Or if it does Player is the OfflinePlayer
Where as the online player either is LocalPlayer, RemotePlayer, ServerPlayer or ClientPlayer
And here my people, I'd prefer bukkit's terminology
wow JDA has such a weird idea about "apis"
between 5.0.0-alpha12 and 5.0.0-beta2 they renamed every package containing "Channel" classes
I could understand renaming packages between 4.X.X and 5.X.X
but not between 5.0.0-alpha and 5.0.0-beta
a lot of changes happened in 5.0.0-alpha
well its a alpha... make sence make breaking things (?
I only just switched to beta.2 to get rid of the vuln warnings lol
no I don't think so
the API should not change between 5.0.0-a and 5.0.0-b
beta is the actual release
I would expect bug fixes, but not breaking API changes
alpha was out when 4.0.0 was still the recommended version to use
the breaking api changes should have happened between 4 and 5, not between 5a and 5b
still are the Lib with the most of things.. the other is D4J but its a little outdated in recent features
Uh no? Neither alpha nor beta should be set in stone (especially the case for alpha)
Only for stables release (especially -final) or release candidates it should have stable api
uuughm am I stupid? where can I get the bot token? isn't that the "client secret" in discord's OAuth2 -> General tab?
bot tab
you know need "reset token" for the
but where is it
uugh that makes no sense
I have to "Reset" the token in order to get one in the first place?
yeah
I always hated the discord developer portal
Yeah the token is display once, and then if you didnt save it, you will have to reset it to get another
thanks, got it already
it doesnt actually show the token once anymore
worst thing is, where even is a link to the portal on the official website?
I always have to use google to find the actual link to the dev portal
?
internet was slow and didnt send those before i said yeah lol
when you create a new bot it never shows the token
you have to reset it to get it the first time
?
yep
it was so annoying when they changed that
What?
on the discord dev portal
What are you talking about?
here, you said it shows it once
it no longer shows it once
in the past first token are visible.. now not.
oh they changed it again
yeah
and now add snow
bro just scroll up a bit lol
Integrate your service with Discord โ whether it's a bot or a game or whatever your wildest imagination can come up with.
Because when i use to code with discord.js v12, you were able to get the token directly, then they changed to see the token 1 time only, if you lost it you have to reset it, and now they came back as it was on the past so?
oh its our discord snowflake
snowflake what a pathetic name tho, its really descriptive ๐คก
yeah, it was like 6 months ago or maybe more that they changed it to that they dont show the token at all, you have to reset it
it was so annoying
yeah i remember that
thanks to twitter xd
Why twitter im lost, rom what i know twitter is owned by Elon Musk and discord by another guy
The docs about the ID show this.
https://github.com/twitter-archive/snowflake/tree/snowflake-2010
discord is owned by google?
no no, my bad
ah
Google offered to buy discord, but they didnt never accept it
So changing topic, is there any documentation for spigot scoreboard api? Where it fully details what object are for that and what exactly does the Objective, Criteria, etc?
Wasn't it MS that wanted to buy discord?
they did at somepoint i think
yeah Microsoft was tho
no, discord didnt allow it, they just allow them to put actions on it if im not wrong
yeah
Scoreabord api on 1.19 its really weird, there is no official tutorials for that version
The docs, dont explain much, for example does Criteria neither Objectives etc
lmao copilot again wrote the whole class for me
Probably would want the no perms before invalid args
What command framework are you using? the default from Spigot api?
i once let it do sql and everything was cursed
What have that to do? Not wondering to be rude i dont understand tho
none, it's my standalone discord bot
it's not a spigot plugin
ohh its a bot
and it uses gradle lol
oh also alex if you want to use gradlew build instead of gradlew shadowJar add
build {
dependsOn shadowJar
}
somewhere in the build file
Oh thanks bro i didnt know you can do that with gradle
slash commands?
np
ive also got the stuff to auto set version in plugin.yml
I hate how you have to use "echo" to return stuff in bash functions
Hi, i have this task that spawns boss every Tot time, i want to create a placeholder that tells you how much time is left to spawn another boss, but i don't know how to check how much time does it take for the runTaskTimer to be executed again
can someone help?
slash commands are the worst thing ever added to discord. Example this: If you just type without confirming that you meant this command, discord simply does not detect them, like wtf
slash commands are a fucking pain
oh... this... im moving to slash for reduce the read messages things and limit better client-side the arguments
my bot just has a configurable prefix
not sure if you can check this... maybe replace this with a repeat task for count seconds and use this for know how time left.
yeah for that it's useful, but since every command almost always sends a reply, I guess the "read messages thing" is kinda not important
if only slash commands would work without having to "confirm" them, I'd 100% love them
i still wanna not depend of this.. in large servers cause a few issues this or my code is so bad optimized xd
maybe you gave me an idea, i'll try
thanks
I've tried to search about the "players list" on the server list ping that some plugins allow to edit.
Does anyone know exactly how's that called or a thread explaining/talking about it?
I only find plugins, no threads
pretty sure that needs packets to modify it
Yeah but I don't know what name it's called
lmao the title of the window always switches between grep and sleep
and sometimes awk
is there a way to make the runbuildtools.sh run all buildtools
despite if they have already been built
why tho
so i can run all buildtools
that's what my script does
i thought it only runs what hasnt already been ran
oh you wanna rebuilt even existing versions?
yeah
then just change the one function to always return 1
thanks
oh wait
I meant
function isInRepo {
make it always return false?
ah
yes
do i need to change the if [ "$remapped" == $TRUE ]; then?
function isInRepo() { return $FALSE; }
even better
alternatively, just delete ~/.m2/org/spigotmc/spigot directory
I mean if you wanna rebuild every version anyway, just remove the existing ones beforehand
but why would you do that?
1.19.3 is the only version that might change
the older ones will stay the same
does anyone know how I can rename a TextChannel name in JDA 5 beta2?
oh ok thx
ughm how again can I add a bot to a discord server
I always forget this
I have a server, I got a discord bot application - but how do I make it join that server?
I have looked for 5 minutes and cannot find it
get the application id and https://scarsz.me/authorize
i find that the easiest way
but what's the official way? ๐
on the oauth2
set scopes and perms on general
then use url generateor
most of the time you can use bot, then you can set perms again
why is this fucking developer portal so extremely shitty
thx that worked
its the discordsrv setup thing
why isn't there just a button in the dev portal "Add to server: <server name>"
its easier than making the url myself
because thats too easy
I have a question involving editing a plugin. Is this where I would go for that?
I mean you could ask here, would probably need more context if you wanted a 100% direction where to go.
?ask
If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply. Make sure you use the right channel regarding the topic of your question. Create a thread in case the channel is already in use!
Is it open-source? (or generally do you have access to the source or are you editing a plugin which does not have a known source)
thereis a plugin on Spigot (IDK if i can add links on here) and I want to know if someone can change a couple lines of code. As it is set up, it will randomly spawn mobs between level 0 and 10. (levels added by the plugin) I wan to know if someone can make it so that evey 20ish mc days it'll got from say 0-10 to 1-11 and so on
If you wish to request or offer development/art/building/administration services, please do so at https://www.spigotmc.org/forums/services-recruitment-v2.54/
If the source is public that may be the right place, otherwise I doubt so - the amount of people that know java bytecode is minimal
no need to - just decompile it, change the code, and compile it again ๐
Depends on the size of the plugin
true
I've done it once for a plugin - it is a tedious affair to fix all compile errors
just send the link to the plugin @dense geyser
the problem with modifying decompiled code is getting all of the dependencies used to be available when compiled
because a lot of things in spigot are available at runtime so they arenโt shaded or anything, so if they donโt compile with dependency info youโre kinda left on a wild goose chase
Is this bash correct? Im on windows trying to start a sever with Java 17 but the process start and then instantly get killed
looks good
okay, so something else must be wrong
well it will print sth to console when you run it
just enter that command and you'll see what's wrong?
?
Does not compute.
The sever is not started tho
i dont get what the problem is
What is the console output?
run your script and show what the output is in your terminal
the terminal doesnt open
I mean just open for seconds and then get closed
Then run it through the terminal
okay, weird
Hmnn
That the script is not starting the server
yeah start is the name of the script? Isnt
then do ./start
itโs ./start.sh
If uppercase ./Strart.sh
whatโs this file called xd
Eh, just give us what ls -l prints
Wait i the server dosnt even start running the script content manually
-.-
yeah that why i asked if the script was correct
๐คก
That why the sever wasnt started
I love spigot tho
I love how you don't give the full stacktrace but only one line
its only give that line
an error, because default java is 8
That why im using the asb path
can replace Java with the path to 17
yeah but its a mess them because i always use 8
with โjavaโ replaced with the path
"C:\Program Files\Eclipse Adoptium\jdk-17.0.3.7-hotspot\bin\java.exe" -Xmx3G -Xms3G -jar Spigot.jar
LIke that so?
without the jvm args
okk
Also what exactly is this "Spigot" jar?
downloaded from the black market
The spigot getted from Build Tools
๐ค
That is the wrong spigot I'd guess
I don't see any "Spigot.jar" in that folder
You need to use the bundler spigot (or the shaded one - idk)
how do you manage to write plugins but fail to start a server lol
But likely not from that folder
You can't really fuck it up in paper world
Never need to start none java 8 servers
it works the same though?
only difference is that you specify the java17 exec instead of the java 8 one
Isnt what im doing? ๐
but you can start the 1.19 .jar the same way as you can do the other ones
But bundler.......
I bet against that
So what i can do?
Not if you use the non-shaded non-bundler jar lmao
it's literally just... copy spigot.jar somewhere, then do /path/to/java17 -jar spigot-1.19.3.jar
that's why one is supposed to use the proper .jar
not the one from the Spigot/ dir
IS what i did tho, but its not running the sever
the shaded jar!
bruh
Not the ordinary jar!
if you run buildtools in C:\Buildtools
then use the .jar from C:\Buildtools\spigot-1.19.3.jar
that is the only proper server .jar
Yeah, that works
I just copy pasted the jar and put it in another dir, is not so diff
WHICH jar
I think we'll sit until tomorrow.
Just use paper
Paper ๐๐คข
paper is not bad
The noob-proof solution
yall just tripping on rocks
okay thanks for saying it
Because you all where shitting me and one of us told what one to use
because you literally ignore everything we say
literally the first message after
After running Buildtools, you have a file that is EXACTLY called "spigot-1.19.3.jar"
is telling you itโs the wrong one
oh never seen that
I wrote this 4 times already now
That why i dont get spigot jars, from build tools its a fkg mess
And don't fetch it from the "targets" folder
Someone wrote one actually
really? ๐ค
it is literally extremely easy
you run buildtools and then you use the file called "spigot-1.19.3.jar"
how is that a fucking mess?
You simply do not read the instructions
BuildTools even tells you what the file is called and where it is, after it completed
that is not what I was expecting
It still not starting just created folders and nothing else
I meant the jar that you can download from paper and thatโll compile paper on first load
as if you downloaded paper from the paper site instead
because you hae not accepted the eula
if you would simply read the console output, you would have noticed that you are supposed to accept the eula now
but idk you never read anything
bro is stuck in 1.8
Paper is actually pre-compiled
wait
yeah!
isnโt EULA also in 1.8
It's just a differential that is applied, which is what paperclip does
the need to accept
I never have to started a server since 2018
?whereami
Fuck you
a differential? Wdym
Server is still not starting fucking 1.19
(not you in particular though, I'm replying it each time I get this answer)
ike gay? since when
they donโt distribute compiled mojang code
It's a joke among me and my friends
whenever one says "fuck you" we just reply "sure when"
hm on grindr it actually works like that
oh
rofl
;-;
o ya wat r u working on that u wanted maxplayers and motd method eyes @remote swallow
ur own pr?
I did a thing
Kinda like patches (such as https://github.com/MilkBowl/Vault/commit/460cb21c6215433da526192720de40b6662f5f99.patch) but in binary
well I know that binary patches are applied to update
but at first time it downloads sources and compiles
Okay definitly not understanding how works the 1.19 bundler shit
gimme a sec
Sever is not starting too
Compiling paper with janino or eclipse would be stupid
?whereami
Fuck you
Sure when
When?
lol
my bad ur right geol
Although spigot is compiled with eclipse. So probably might also work for forks
๐คก
But uh, I'd not be the one to test that
the server did not start up yet
What shity modifications they have done from 1.8 to 1.19!!! LMAO
can someone help me make a quick change to a plugin? I'm trying to just edit it to add a version dependency for 1.15.2, but the computer I'm currently on isn't even powerful enough to finish the build on IntelliJ
Well spigot is close to vanilla - tooo close to vanilla for my liking
Takes like 10 minutes to shut down
verano, you're always so close to getting the correct sentence, it pains me
close to vanilla is good, close to vanilla performance is bad
Some forks on the other hand - like 3 seconds
use vscode 
Its my bad english bro
Yeah, but you get it so close so many times
Atleast you didnt told him to use shity Eclipse ๐
fr verano, starting a spigot .jar that buildtools made is not very hard lol
i can paypal 5 bucks to whoever can do this for me, I need this asap
And I took it personally
if works was at the end then it would be a correct sentence
why is buildtools in a tmp directory ๐ค
you dont have to. you just have to java -jar spigot.jar
oh hi alex
check #general, I did a thing
I mean I'd be down to it, but standalone maven surely doesn't take that much power
just realized he was here?
my script always downloads the latest buildtools and deletes it after completion
speaking of BuildTools, i never bothered to see how to test a fork
i want to say itd be BuildTools.jar --dev --dont-update but i only did mvn install on Spigot project
interesting
can someone help me make a quick change to a plugin? I'm trying to just edit it to add a version dependency for 1.15.2, but the computer I'm currently on isn't even powerful enough to finish the build on IntelliJ. I
this video literally ends exactly before the part where eclipse indeed does an obvious mistake
?services
If you wish to request or offer development/art/building/administration services, please do so at https://www.spigotmc.org/forums/services-recruitment-v2.54/
song name now
also who the fuck still uses 1.15.2
Mfalex did the video
I need the song name too
I really like the song
No need to ask twice
Please song name fromthe video
way to your heart from soulsister I guess
LETS GO
if youโre able to run Discord, as an electron app, you can run maven build
check #general
The first 10 seconds are skill issue.
The slow typing speeds even more so.
And the cast thing is a user error
I just prefer ij completions
White background is user brain damage
otherwise eclipse all the way
I don't really see how completions can be improved but whatever
ij just has them better
Not very convincing
Does anyone know the difference between BlockFace.NORTH_EAST, and BlockFace.NORTH_NORTH_EAST and etc for west
go two north
one east
the other is one north
one east
why is that a thing in minecraft lol
that is not it.
no clue
at least IJ has built in Maven support
what is that used for
then what is it
Why when i start the server it open a shity white interface from Minecraft Server?
M2Eclipse anyone?
add nogui at the end of the command
Have you see a compass yet?
that exists but not by default, at least not always
but no Iโm not going to crusade anyone for using eclipse
I personally have used all 3 ides
As you see Northeast is between north and east
and prefer IJ ๐คทโโ๏ธ
Me too
This is useful for signs
what is double north
(being netbeans, eclipse and IJ)
k
You shouldn't use Eclipse for Java EE anyways
actually used vscode as an ide earlier bc i was too lazy to open Spigot in intellij
At least not in Spigot world
that I will crusade for
Command line โฅ๏ธ
I use codewars.com code writing place for training to code
mate cli and ide support are 2 vastly different levels
then I paste it into my console making java compile the string of the code
and fleet /scnr
and then run the .class
yeah
manually loading it in spigot
./gradlew build and ./mvnw package are the top ones
well I havenโt touched fleet yet xd
i just didnt want to open intellij
it's shit
i tried to do my coding on linux and then my os decided to throw ij away
btw why does everyone use gradlew instead of gradle?
Yeah
tbh fuck gradle
maven
was simpler to just right click -> open with vscode
I also don't like it but I'm giving it a try anyway
bc gradle can just fuckin break configs between versions
so its safer to use the provided wrapper
whut
Artifact transformation mostly
o0 why
And not having a shit plugin API
Someday will be the day I make my lang with my own build system
Or rather said an API that you cannot understand
like gradle projects using deprecated gradle features i think
personally im still waiting for @lavish hemlock s minimal buildsystem
Maven is like butter: Soft, tasty, nice looking.
Gradle is like cement: Rough, not tasty, dull looking, likely to give you a headache upon consumption.
is Meow Maow?
The artifact transformation thing is mostly only needed because I mod galimulator though
it is indeed
ye
ah oki
have you seen shade plug-in config
XML is okay
Have you seen it in gradle?
shadowJar isnโt even made by gradle
Absolutely incomprehensible
gradle cannot even shade without third party plugins lol
kekw
XML is only disgusting if you don't get to know it, but if you give it time, love, attention, and get to know it for what it really is, you'll see that it is actually very nice.
it can but you don't want to try it
how can it do that?
I donโt want to give it love and attention
Due to natives or what?
although I use maven most of the time anyways xd
13 lines
but gradle much less lines
I said configuration, did I not
@quiet ice how dows your buildtool look like
Alex I meant the literal <configuration> tags
which additional configuration would you need?
I'm trying to figure out how to add another plugin as a dependency to my plugin, in order to use stuff from it; Specifically WorldGuard and WorldGuard Events. I've figured out that there's a "depend" I needed to add; Done. Now how do I add the plugin to the "buildpath"?
you need configuration, then artifactSet, then excludes, then exclude tag
you usually dont need that at all
you need it as a compile only lib
for what would you need that?
if you want to exclude certain packages
Slbrachyura does look like https://github.com/Starloader-project/Starloader-API
ah the good old
configurations {
shade
implementation.extendsFrom shade
}
dependencies {
shade "someshit.idk:yeah"
}
jar {
from configurations.shade.collect { it.isDirectory() ? it : zipTree(it) }
}```
what the heck is that
basic gradle shading without shade plugin
Shades dependencies
Yeah but, pardon my ignorance, i've only ever done that using maven dependency addition lines that I found in the docs, and WorldGuard doesn't seem to have that
??
no relocations, just fatjar essentially
whoa that's nasty
just add a maven dependency
for the record: I really don't hate gradle, but it obviously has some serious issues and it's way more complicated than maven
brachyura-bootstrap-0.jar - the wrapper
And the buildscript folder contains all the buildscript data
so um
so where is the build thing
I've found it hard to understand Gradle and Maven
doesnt gradle too? lol
java -Dde.geolykt.starplane.nocache=true -jar brachyura-bootstrap-0.jar build
They both have less-than-decent documentation
i mean SSL certs are free, LetsEncrypt ๐ช
This reminds me of HBML
https://github.com/heyitsdoodler/hbml
HTML but with brackets.
You can remove that though
ok honestly i saw this on reddit and it seems actually good
...kind of looks like CSS tbh