#help-development
1 messages · Page 709 of 1
Hi Mr Chocolate, basically, I'm intercepting the BlockDig packet to handle it all myself, this is for a farming system. And I didn't realise that in newer versions you had to send a "Acknowledge Packet" to the client to set the block to a different material. That's what was bugging me for quite some time.
Pretty sure a BlockDamageEvent is called for each damage stage of a block as well
So unless there's some explicit reason to be using packets here, this should be entirely doable with API
Well, since I intercept the packet, and cancel the server from receiving it, no ClientboundBlockChangedAckPacket gets sent to the client, so it kind of fucks with me :D
Quick and stupid question: Is
val java9 by sourceSets.creating
val java9Implementation by configurations.existing {
extendsFrom(configurations.implementation.get())
}
tasks.jar {
manifest {
attributes("Multi-Release" to true)
}
from(java9.output) {
into("META-INF/versions/9/")
}
}
More likely to be kotlin or groovy gradle? Empirical testing seems to result that this is kotlin gradle but I just want to be sure before I seem like an utter moron
Specifically the val, by and to keywords are very sus to me
Is there a verified website for spigot api
kotlin
Gotta love how gradle support gives you kotlin gradle code in the buildship portion of the gradle forums even though buildship doesn't support kotlin gradle
What I'm saying is that I have never seen them in a groovy gradle buildscript
Given that groovy gradle instead uses funny ext bullshit
usually, if you see method("parameters with brackets and double quotes") it's kotlin lol
if you see sometimes ', sometimes ", sometimes with (brackets) and sometimes without, it must be groovy lol
and yeah "val" is kotlin only, in groovy there's def
Also I really gotta ask: How in the world is that anywhere close to kotlin. Do they seriously support by or to as actual keywords and what the hell are they even supposed to do in the first place
hey guys, maybe a really weird question, but is there a way to have a bell giving redstone output when its rung? I tried Calibrated Sculk Sensors but apparantly they dont work.
by is property delegation
to creates a pair
or isnt this the channel to ask? haha
I have no idea what that is supposed to mean
it runs a getter every time you access that property (variable) essentially
So uh, basically it is a neat inline function?
val myPair: Pair<String,Int> = "mfnalex" to 28
println(myPair.first) // mfnalex
println(myPair.second) // 28
Well I guess to makes sense to me now.
it can return different stuff based on the property that's being delegated (knows the context), so not really: https://kotlinlang.org/docs/delegated-properties.html
WAIT WHAT??? These are actual language features
The end is nigh
I mean that probably also explains why I was utterly confused by Rust. These modern languages are just so unverbose
kotlin looks so weird
yeah it also is weird
first, second
just decompile it and look at what it produces
i assume those are methods?
I'd say those are fields
but java was all about don't expose the internals
But uh, at this point I'd not be suprised if they redirect to a getter method instead
oh you never know if something is a field or method in kotlin
Meh, the internals of a Pair aren't that prone to breakages
sure, but what if you have some other objects where they're best not to be exposed?
yes they are "val" / final fields
wtf is inflix
i see
what in the kotlin am i looking at
receiver <infix operator name> argument - special syntax, used for to for example
extends
infix function means fun Int.add(another: Int) could be written as "1 add 2" if the Int.add extension function would be infix
infix inline extension functions :DDDD
Its easier than what it looks like I promise :)
yeah, even the delegation which seems confusing is quite useful once you get the hang of it
nope, i rather take assembly
can kotlin compile to bytecode or would i be foreced to shade or libraries kotlin
the jvm target does compile to bytecode, but you'll need the stdlib for the fancy functions, obviously
it's useful for things like lazy init (that's in the stdlib) or doing ThreadLocal stuff
I couldn't do this, how to track adding, and removing items of barrel???
Hello?
so noone can help me? 😦
store the block amd add a pdc key to all items
if you just need to know its urs add a byte, if you need specific data keep a string or whatever
Well you could manually set the redstone's energy value but that is not very efficent so shrug
Do you know about observer?
I only use kotlin to write gradle plugins
Observers dont work either on ringing bells. tried that
I don't really like it at all
Oh you are talking about redstone "dev".
Well I guess it isn't as bad as the yaml engineer
How..?
my fix-javadoc-plugin made it into the gradle plugin portal btw https://plugins.gradle.org/plugin/com.jeff-media.fix-javadoc-plugin
amd...
how what
Does it suprise me? Not really.
what is amd?
Groovy is pretty close to Java
and not amd
What is amd?
Is there an official website for spigot api
Applied Mediocre Devices
a cpu brand, but i meant and not amd
?jd-s You mean?
then what should i save??/
Ty
Well I mean I cannot use Java 1.5+ features, that is clear.
Wait I mean the api jar file to use to make a spigot plugin in IntelliJ
So you want me to play the maven resolver?
that's available in the maven repo
Why don't you use a build tool and add it as a remote dependency? You really shouldn't add the jar manually
The Maven what?
https://www.spigotmc.org/wiki/spigot-maven/
https://hub.spigotmc.org/nexus/content/repositories/snapshots/
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
Thanks
are you not using maven or gradle?
I have no idea what that is tbh though
Maven
if you're not using maven (or gradle), I highly suggest you to try it. I'd start with maven as it's much easier to understand https://blog.jeff-media.com/how-to-create-your-first-minecraft-plugin-using-the-spigot-api-and-maven/
Is that all 1 link
Yep.
you don't need that link at all
you just add the spigot repo and dependency to your pom
and maven will find the link by itself
However yeah I suggest using maven because when it comes updating that link I will again be the only person to know where to find it
How to make common variable for several classes?
you don't
Ima use this then
ok i'll use config
options.compilerArgumentProviders.add(new org.gradle.process.CommandLineArgumentProvider() {
public Iterable<String> asArguments() {
def args = new java.util.ArrayList()
return args;
}
})
Look - looks pretty java to you, no?
variables / fields are bound to either exactly one class, or one instance of that class
oh ok
you can ofc pass around data objects, or (usually bad idea) make them static
Well there are so fundamental differences I would disagree but myeah in some context maybe
if you make something static just so you can access it from somewhere else, then that's usually a situation where you should NOT have made it static
So do some of the evens only work with spigot api coz the on join and leave works without
Meh, generally if you are the only person to maintain something static is absolutely an option
And since you will be the only maintainer even if you open-source stuff I wouldn't care about others' design philosphies that much
what
what spigot api and events are you referencing?
The jar I linked to you IS the spigot api in case that confuses you
you ideally should follow the link alex sent
I want to be called "grenade" from today on
Meh, the link to alex's blog isn't outdated enough; Here is a better one: https://bukkit.fandom.com/wiki/Plugin_Tutorial_(Eclipse)
thx
yes, that one has a screenshot using bukkit 1.6.4-R2.0
Don't make me update it
that reminds me i need to write so more wikis
Although I ideally need to figure out the password and email to that Voidtype account of mine...
I tied but I find reading very hard so I watched a YouTube tut but he used an api and linked it but it was outdated
So I just asked for the updated 1
if you struggle with reading development wont do very well to you
development is a hell of a lot of reading
I’m trying my best and I found out there’s a speak function just now
I’ll try using that
how create dependency end directory for my plugin api for connect - https://github.com/JavaDeveloper222/CustomRanks
you can either just upload your whole project into a maven repository, or you create an additional dependency that just has a bunch of interfaces (that your plugin implements) and upload that to a repository
i try do this with maven
but dont know how create this "code" for connect
how another plugins (WG,WE etc)
other plugins can get your plugin through the pluginmanager
either use jitpack, repsy, other free repos or self host
i mean this <dependency>
<groupId></groupId>
<artifactId></artifactId>
<version>version</version>
<scope> </scope>
</dependency>
how i shold create this
this ^^
i have github
github cant host it for you
wdym?
bruh i was think this repository
it is
are you not already using maven?
not a maven repository, its version control
if so you already defined a groupId, artifactId and version for your project
i use maven i mean i dont know how connect my plugin with my api
i don't even know what you mean with "connect"
Add it as a dependency
they want to host it on a maven repo
You don't even need that tbh you can post on github and make people mvn install the jar >:)
why
lol
i can press my thumb into my stomach and here liquid sloshing about
wait, if I put this api into the plugin itself, will it work?
try mvn cleaning your stomach
cuz its a jvm language
on the toilet
still in a run cycle atm
no clue what you mean with "Putting the api into the plugin itself"
can i load the api jar into the plugin itself and use it anywhere?
you don't need to have any separate api jar
do you have a link to your plugin's github? if so, which methods of that do you want to make available to other plugins?
all metods exists in rankManager
well I see you already have CustomRanksAPI
I'm trying to shortcut this a bit. I'm trying to check if item has item name but there's many items names it's a custom item that's named a mob name + string. And every mob has this item named itself.
?pdc
you could make your main class implement CustomRanksAPI and then just publish the CustomRanksAPI class as maven artifact and then other people can do it like this
CustomRanksAPI ranksApi = (CustomRanksAPI) Bukkit.getPluginManager().getPlugin("yourplugin")
or: Why you should NEVER use NBT tags again! Spigot 1.14.1 added the biggest improvement that (in my opinion) ever made it into the Bukkit API: The Persistent Data Container (PDC). It can be used to store custom data on Entities, TileEntities, and ItemStacks. Using a bit of math, it can also be used to...
i need load this in my maven but what i shold to write
Please, I can't figure out how to make it so that if an item is placed in a barrel with a certain name, then its description would change to "1" and if it is later taken from the barrel, it will change to "2"
add it to a repo first, something like repsy
change the first name on inventory click event, and use pdc to track it
it exists in your local maven repository if you ran mvn install on your CustomRanks plugin
if you want other people be able to use it, they either also have to get your CustomRanks from github and mvn install it, or you mvn deploy it to some public repository
ok this exists too ?
or i shold
to load
oh
unless you have published it somewhere, like repsy you will only have it on maven local after running mvn install
github is version control, not a maven repository
I didn't quite understand what you meant, I want if the item is placed in a barrel with the name let's say "magic barrel" then the lore of the item changes to "1" and if then it is taken out of the barrel then to "2"
ok
you can use jitpack if your code is on github and doesn't require NMS
Me and warrior are working on the same type of information storing and gathering. I think I understand I just use the variable + the pdc I stored and then return true (probably butchered the wording on this)
add pdc to it as it goes in the barrel, with inv click event, then on the inv click event check if it has the pdc key update the name and remove pdc key if it needs to stack
thenks
and if the player will place item using drag?
listen to both events then
same thing would happen on both except drag has a loop
in InventoryDragEvent there is no event.getInventory to get the inventory to what the item was placed in
:/
I just had this same issue on mob death and getting player variable. I ended up using on entity damaged by entity and storing it to a map
why bukkit not can found version
com.github.JavaDeveloper222:CustomRanks🫙Tag was not found in https://hub.spigotmc.org/nexus/content/repositories/snapshots/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of spigotmc-repo has elapsed or updates are forced
because it doesnt publish as versions unless you tell it to , use 2df8c22cca as the version
wdym "bukkit cannot find it"?
i mean intelji
more like maven
did you mvn install your 1.0.0 version?
thats a jitpack package
do you want to use your locally installed version or the one from jitpack?
use 2df8c22cca as your version
if it's on github you have to do a release for it to pick up the version
ok
Excellent answer to an either or question
prob wrong reply
local
Or not. I guess that explains the lack of changes to that page.
finaly i did it
I just had to create a release
isn't it necessary to add the API to github so that it can be used only by those people to whom I threw off the API in the jar file?
stupid translate
Yeah it has getInventory but it doesn't have getClickedInventory
So i can't find out if player by drag added item to barrel or added item to inventory
:/ the barrel has slots 1 2 3 4 and players inventory has slots 1 2 3 4
you need to check the raw slots
ok i did it, but i need to get item that were added, but I can't :/
(in inventory click event)
becauuuse the event is running before adding item
Hello im a little stuck on why the default minecraft help doesnt seem to be picking up my commands, is there something im missing? or is it something with the default minecraft help
yep
no errors in console?
on startup is there any errors
does /broadcast work
yeah all the commands work
just doesnt list in the help thing i just kinda thought to check it out as i was thinking of adding a help section but its built in now
huh
okay its showing now
no idea what i did or what fixed it
but ty for the good luck
Heya! Trying to make a custom fishing system. Is there a way to make the hook "sink in" like it does in vanilla Minecraft? Would I have to use packets?
Hi, which is the best way for pasing formmated dates? So far i ghave the next code:
SimpleDateFormatter formatter = new SimpleDateFormatter("HH:mm:ss");
formatter.setTimezone(TimeZone.getTimeZone("EST"));
Date duration = new Date(System.currentTimeMillis() + (formatter.parse("10:02:00").getTime() - System.currentTimeMilis()));
Fishing hooks are entities
So you can probably apply a velocity
Packets aren't needed in this case, it's nothing special
Right didn't think about the simple approach ty
figured it out i was just manually unload and loading the plugin instead of doing a server reload, when doing that it stops it from showing in that help menu
Hold up, fishing hooks are entities!!
I’ve missed out on so much
what version of guava does mc use
one of them
nvm found it
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>31.1-jre</version>
<scope>compile</scope>
</dependency>```
well done
it was in the bukkit repo not the craftbukkit repo
any idea why snakeyaml takes Collections.emptylist like that?
i guess i just gotta use a new arraylist
good evening, where can I download spigot 1.20.1.jar? because the get bukkit site does not work, so I tested with BuildTools.jar which created a spigote 1.20.1.jar, but on my java project, it does not know the JavaPlugin extension in the library
Bootstrap Jar
The main spigot-1.18.jar is now a bootstrap jar which contains all libraries. You cannot directly depend on this jar. You should depend on Spigot/Spigot-API/target/spigot-api-1.18-R0.1-SNAPSHOT-shaded.jar, or the entire contents of the bundler directory from your server, or use a dependency manager such as Maven or Gradle to handle this automatically.
Please read the release notes for further information: https://www.spigotmc.org/threads/9-years-of-spigotmc-spigot-bungeecord-1-18-1-18-1-release.534760/#post-4305163
thanks
yo
idk if its just me
but I hate working with caches like usernames and uuids bruh
think about the critical performance saving
?
why using spigot is complex to setup smh
its not
Probably stupid queiston... Can I add more shapes to recipe? I just need recipe where is 1 item above another one.
thats just a separate recipe
You cannot do something like is default torch recipe? faaak
pretty sure thats two recipes
Oh, I get that.. thats lot of recipes for one item probably
but idk look at how torch is implemented
torch also isnt comparable to what you said
its 1 shape with 2 items
which is what RecipeChoice.MaterialChoice supports
Thats what I need
" I just need recipe where is 1 item above another one."
yes? thats sound same to me
torch just supports coal/charcoal ?
it doesn't have two different shapes?
with an item above another?
md
I mean the shape is just coal/charcoal and then stick under it
yeah as long as you use external shit
torch is CraftShapedRecipe witch is not part of spigot API. So its only one recipe.
WTF
thats just impl, its actually a shaped recipe
probably has nothing to do with the issue but, consider naming your packages correctly
correctly
So I would need to create shaped recipe for every shape? Like this:
" Y ",
" X ",
" ")
and then:
" ",
" Y ",
" X ")
I have created shaped recipe and works only in specific shape. I mean is not big problem just players will need follow that shape xD
most likely
using Player#performCommand doesnt show up in console neither does it call PlayerCommandSendEvent or PlayerCommandPreProccessEvent, is there a way to fix that?
oke, thanks a lot. I tough there is esier way like some type of recipe.
you either have to make 1 reciper per or you have to use shapeless
shapeless shoudl be solution to, but they will be allowed to place item anywhere so.. looks agly xD
generally speaking, API methods do not trigger events, there are some cases where they do but they are among the minority
why do you need those to be called exactly?
(also the PlayerCommandSendEvent does not do what you're thinking it does, it's when the server sends the command tree to the client)
Sorry if this doesn’t make much sense but
using java and spigot is it possible to make a develope a script where in bungee cord if you leave it sends a bye message but if you leave 1 server and join another commected with the bungee cord instead of saying you joined and left the servers it said you transferd to the server. is this posible?
Yes, make a bungee plugin to do that and a Spigot plugin to disable the default messages
So this is possible
Coz I’m thinking if it would be possible to let a plug-in know when someone leaves vs if they just joined another server in the bungee cord
with a bungee plugin its easy
Oh there is special type plug-in for bungee aahhhhhh
Alt thank you
I hope you have a great day😃
no
its one recipe in vanilla
just set the shape to be the smallest square possible
is that just not exposed to api
it is
just use the ShapedRecipe correctly
so for torch, it would be X = coal, Y = stick and the shape is {"X","Y"}
look at the vanilla definition for the torch recipe
is there a website for a spigot doc for the events ect.?
?jd-s
https://ci.md-5.net/job/BungeeCord/ws/api/target/apidocs/net/md_5/bungee/api/connection/ProxiedPlayer.html#connect(net.md_5.bungee.api.config.ServerInfo)
How can I check if server admin is running an implementation that returns before the user has been connected?
declaration: package: net.md_5.bungee.api.connection, interface: ProxiedPlayer
Thanks
?jd
if you need the others
when did this get changed
Wdym
do you not like it?
Oh well bungee always returns before
no im just wondering when it was updated
And I don't think anything other than bungee uses the bungee api
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
Yes
No
spigot would have paid staff over than volunteers if spigot was a full time job
But don’t 100s of thousands of ppp use spigot
You must make a lot of it I would have thought
they use it, dont pay for it though
Maybe not
spigot takes nothing off paid plugins and entirely relies on donations
Did you pay for Spigot
spigot strictly runs off donations 🙂
Oh that’s good
No
Case in point
and you will get to join some of the many that have done so 😄
True
if every current user of spigot, including people that use forks, eg paper, purpur etc all paid a 5$ donation, md would be rich
not necessarily
non-profits are ran differently in what you are allowed to do with them and not allowed
well, spigot would be rich
that would be true lol
I regret buying that much robux back in the day
could have just given it to spigot
peak of 175k servers at once, spigot would have about 875 thousand dollars
I would've diamond medal
I think what would be impressive is if mojang just donated money
yeah
just because they can and would be on the top XD
wont happen though, would be cool
Minecraft has potential to compete with Roblox
It even has a single player gamemode
you think if mojang asked to join spigot and have spigot as the offical api, along with client side stuff added, md would let them join and have a vast control of spigot
Even if you don’t earn money spigot must be a full time job coz it’s quite big isn’t it
this would be weird considering there is Bukkit lmao
i mean, actual bukkit isnt maintained and would take forever to update i recon
If they would've spent in development tools for content creators, still allowing us using Java, would be dope
that isn't what I meant, just the fact Mojang owns it, and does nothing with it and hasn't let others do anything with it. And then to step to a fork and have that fork that relies on that thing you ignore to be the official api?
it would just be this weird elephant in the room that everyone pretends doesn't exist
They should improve client side stuff like display entities while also making it easier to make an API for the server
Are not they already providing mappings?
they do but its not full mappings
its only partial mappings of what is deemed necessary to do modding or whatever
so there is plenty of code that doesn't have mappings at all
hello frosty gamer
@sullen marlin ungrateful ass
can't even give 5$ for shits n giggles
lmao
They could make a platform enveloped around the minecraft launcher similar to roblox. Content creators could pay to promote their "experiences" and such. Mojang could even force us to use their hosting for our experiences, I still would prefer it than Roblox taking 70% of the cut
ironically to get cake you have to donate $5
I want cake >:/
Mojang wouldn't be able to force us to use their hosting at this point
So what makes minecraft unique?
old EULA's don't magically not apply just because you decided to update it
This is why companies don't keep previous EULA versions around for you to look at because old EULA's apply to the software versions it covered and the new one is not necessarily retroactive
What if as long to be able to allow our experiences in their platform (lets say it would be the official/most known way), they could provide as rule to use their hosting
They could profit
The EULA is boring
thats dumb as hell
Like no buying straight ranks
I am not sure what you mean by experiences, but we already have servers that are nothing but for experiences already
not a single person would want that
its because hes a robloxer
roblox is basically micro transaction hell
roblox games are called "experiences" now
you login, play a stupid tycoon written in lua and pay 100 "robux" to unlock some small boost
Mobs get shipped with builtin pathfinding. In Roblox as far as I am aware, their pathfinding API is just trash...
It initializes fast, it joins server fast
And that's like 1$
Out of that, roblox takes like 70%
So the dev keeps 30 "robux"
And they can exchange it back for real money at terrible rates
I thought they take 30%
it depends
There are entire companies that make a ton of cash money by having special deals with roblox
different items are taxed differently
Charging 3$ to unlock their game
Making a solid 50 cents out of those 3$
And roblox does all the infrastructure
that is a really terrible conversion ratio to take the imaginary money away as if the company profits from the imaginary money they just took XD
It's really bad
point is nobody who plays minecraft wants to let microsoft control and host all of the mc servers
Not to mention that at this point you may use any available library (they are a LOT)...
In Roblox I attempted using a Github repo as a library and there was like no way of doing it...
Well, they have Realms
so they do hosting already
all
I said optional
Yeah apparently roblox takes 80%
after all the fees
If you spend 1$ in the game, the dev makes 20 cents of real money
Like, "the official platform" would force you to use mojang's hosting.
ok but still why would they do that
They can only cash out after like 300$
well no, the reason no one wants Mojang or MS to host all the servers is because of the restrictions that they could impose without impunity or regard to anyone etc
yes exactly
thats literally exactly what im saying
Good luck convincing all server owners to switch over
ppl will just use old versions of the game
They could also ensure to add tags such as cross platform if not that they provide themselves a way to do crossplatform (like Bedrock & Java)
Remember, Minecraft is most sold game...
also Hypixel wouldn't be able to afford to exist if it had to use MS hosting
they arent gonna do cross platform
and MS hosting doesn't mean MS will use decent hardware for it either
anytime soon
where's playblockaction in 1.20.1
community already made this possible
let's see
bedrock edition is literally for all of the toddlers that keep saying "java is such a bad language to write a game c++ is much faster"
I just provided ideas of how they wasting chances
Reminds me of that rant
probably not, it was planned but turned out to be too difficult to do and maintain for them
Is not Bedrock C# written?
exactly
Microsoft already owns a bunch of game studios and most use c++
It'd make sense to bring over a couple members from their studios to work on minecraft
Also C# is just a bit too close to java
If I'm not wrong, C# is just Java but Microsoft branded and allows ahead of time
Java is JIT
C# also has aJIT
Mojang made a comment about this when Bedrock was first in its infancy of being released and such and they were exploring it and it was just simply too time consuming to maintaing because of all the updates from the platform providers, to the game, to other stuff that at the time their time would have been consumed with doing this and not being able to focus on the game. Not sure if they would ever revist the idea but I doubt it since the community has done it for them which is good enough I suppose lmao
C# was supposed to be Microsofts Java JDK but native to windows, sun microsystems at the time rejected approving the JDK preventing microsoft from calling it MS Java JDK. So, instead of wasting all that effort they decided to just create C# instead. Hence all the similarities between C# and java
but at this point in time to say C# is java would be incorrect though
due to the divergence at this point
I mean... its kinda still very java-esque
it's icky java
well because of its roots
because it doesn't have one it wasn't suppose to XD
Namespace and String primitive
Y'know how java is intentionally designed to be boilerplate forcing you to write a lot
And how python is just extremely beginner-friendly
C# falls in a weird middle
Where List is a class and not an interface
strings are primitive
enums are too basic
lol, yeah C# is a bit weird
average microsoft product
but as long as you just compare it to some other MS code stuff you should be fine and a bit happier you are not using those things
😉
I get microsoft is one of those faang-like dream jobs but shit I wouldn't want to work there
They have a very weird coding culture
idk I'd pick google over microsoft
because sure they may have a weird coding culture but you work for someone like MS you are basically set
they have fantastic benefits
apple is icky because they don't pay as much and are very picky with their hires
Microsoft has better benefits then google does
and microsoft doesn't really force you to use their stuff either
unlike Apple and Google
what about amazon
benefits. lol.
I've seen a few hypixel devs transition to aws
Amazon is the worst
yeah imagine having benefits
lmfao those plugin developer idiots and their nonexistent benefits
That doesnt exist here. What kind of benefits would you want?
Aws? That the one where amazon took one of their own services off of aws in favour of a conventional server and saved like 60 mil?
You get things like medical and dental coverage for cheap from the company. Better time off options that is paid, holiday pay(where they pay you for not coming in for the holiday and pretend you worked that day), 401k's with Employer matching, education opportunities that the employer either fully covers or partially covers in either case helps you
there is many other benefits. Like this year some 3-4 months ago my Company paid for both me and my GF to go to a theme park all day 🙂
was nice
you have a gf?
of course lmao
lmao
Ah i see. Well here in germany healthcare is free and everyone gets 30 days of payed vacation + national holidays.
And you can always request payment for further education. Thats all covered by our social system.
Here healthcare is somewhat free
okay figured you just dont need it, just call the correct methods in the correct block class
playblockaction 1.20
Europe bros be vibing
But like shit who's covering for my lunch
I pay £20, good times
yeah, there is other things too, mainly in the retirement plans area, as well as better promotion system where you don't need to work to death to have
Wtf do you mean how much do you pay u muppet
like I work for JBhunt and I got 3 raises automatically within my first year XD
Who's nickle and diming you
what did you have done to only get a 20 quid bill
A checkup?
and in a couple of months they will probably promote me to a Tech 2 Tire Technician
ah
which comes with a raise
that makes sense
I should prob ask for a raise ngl
Yeah we get those free
but I'm happy with what I earn at the moment
did you get it done at a dental hospital
If its a needed procedure (anything that isn't cosmetic) you can get it free via the NHS..m
like I already make $24/hr for being a Tire Tech right now
if they promote me, I will probably make $27/hr
and I roll tires around and sit on fork lifts
the last 2 weeks I installed 2 tires lmao
got too many projects atm but I want to focus a bit more on my driving school
have to do this course
frost is forklift certified?
yes
dayum
they gave me access like last week and I've done maybe 20 minutes of reading
no wonder you have a gf
do you also have 10 dollars for tomorrow bc i loose nitro
Ngl we'd make more money on our plugins but our in house library is based in Paper 😭
Been tempted to rewrite it to work with both
You must be a magenet then
Gn everyone or gm
why?
Hello Tomr, how is your programming comming along?
as in why didn't I do it myself
nice
or why do I need a website in the first place
yes
fuck off
I don't know how to write poetry
Nope.
I can tell u rn get rid of that paragraph.
Work 3h for 60$ or fiddle 4h with a random website until you get it right
I edited a bootstrap template and that took me like 12 hours
You gotta remember your target audience are likely , let's be honest lads, neurodivergent hyper server owners.
just get something like Joomla or something lmao
While this one has a fancy contact form that webhooks into my discord server
I can't bother
its already built
I seriously can't bother
just have to modify to your liking XD
bet you set the budget as 0
i did

Can't put my finger on it , but I just don't subconsciously like it 😅
either that or you got some autofill BS and it's triggering a honeypot
it works with -1
I dont like the contrast and overly round edges
Unit 🙏 testing 🙏
Aye that's it. It doesn't feel like a form. There is 0 contrast and it makes it almost hard to look at
I should prob tell the guy to validate his inputs
love the fact it doesnt accept 0, but accepts negatiev
Tbh i wanna learn java script so i can make some Web app linked plugins
Appreciate the feedback
It'll be fixed soon
never knew you were a builder
a couple nights ago
I hate how github is now forcing me this "for you" feed
I don't want this shit
I want to know who follows and stars my stuff
wtf is this
I hate feeds that I didn't setup
I regret this
de? 👀
Its a german mail provider
its homepage is msn like
msn with a paywall
so glad I got tampermonkey scripts to bypass it
can't wait to wake up tomorrow with 913 pings because some idiot setup an autohotkey script to spam me
do you not want me to do it
Armorstands dont exist in 1.7
throwable potions dont exist in 1.7
actionbar doesnt exist in 1.7
Very interesting request
yeah it's just trolls
what do you expect though
if you didnt want it dont tell me you have a new website
already knew the website domain
splash potions are a thing since like 1.0
fym
bc i stole the backend for it, and i knew ur email was pay@illusionthe.dev
you sent it here
i dont have the effort to dox
it wasn't even accurate data
Really. Didnt know that.
actionbar is weird
ppl would make invis items with resource packs and set your cursor for those 2ms
How many plugin requests did you get in total via your website?
none because I never properly release it
Once the website is properly finalized and actually has something other than lorem ipsum I'll actually start broadcasting it out
bro who the fuck posted an amogus
gotta censor it out
my nanoleaf lights have become sentient
istg this website was a mistake
y'all are wicked
that gives me alex vibes
gives me chloe vibes
XD what?
Btw, someone explain what no cap and fr means? Im old.
cap is false
yeah
oh kay
p sure it has to do with "being bald"
md is spigot owner no cap
i feel the opposite
its nice to see random new projects
Yeah but shit it was good before
let me choose what I want instead of nuking half of the magic of opening github
i just directly go to my repo page
yeah but I have like 3 repos I care about
my school might give me a rasberry pi to do my cs gcse on
an entire rasberry pi for pretty much just python
mine can't afford any
I installed intelj last year on it
we had arduino kits
kek
when I was an intern at school some dickhead put cs:go on a hidden systems folder
and we used it for imaging all the other pcs
that was a fun discovery
every pc just had csgo
Had to clone a solid 500 pcs in like a week
cleanin it
We had 4 cloning pcs and each clonage took about 30 minutes
were u working as an intern at the school uwas attending
yes
unpaid intern?
yep
part of my course
we had to do mandatory internship hours
this year I just convinced bossman to sign the papers and I went home 2 months early
every single teacher was on it
but no one gave 3 shits
Hi, I don't understand why the Material goes from this
[01:19] Block: spawnMaterial=STONE, aboveSpawnMaterial=AIR, belowSpawnMaterial=AIR
to this
[02:17] Block: spawnMaterial=LEGACY_STONE, aboveSpawnMaterial=LEGACY_AIR, belowSpawnMaterial=LEGACY_AIR
LEGACY ?
moreover now it tells me that it no longer supports Material.MAGMA_BLOCK
I specify that between the 2 times I am not touching the function of the code but just the distance calculation method
You forgot to add an api version in your plugin.yml
How can i fix this error when download NMS 1.19.4 using spigot build tools?
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Thanks
do bungeecord plugins interact with my servers plugins? like if i have placeholderapi in server and something that uses placeholderapi in bungee can they talk to eachother?
bungeecord is just a packet proxy.
It has no knowledge about the servers its connecting the players to unless you tell it something.
Its an completely independent application
You can make them talk to each other using plugin messages
Plugin messaging or own socket with unique port
Or a messagequeue
I see you are finally getting orders you programming style can handle
I am now convinced that basically no one who has ever talked about wave function collapse has ever used it to really any kind of extent beyond getting it to a basic showcase level
how do I create a reload command? ik how to create config, but the reloading doesn't work probably bcs it reloads only the config and not the entire plugin
well
is there a way to make it so when you reload config you also reload the plugin?
one good way is to start by avoiding caching config values in classes that are gonna support the reload
I mean
thing is
reloading the plugin is very subjective
in terms of what it actually means
lol
yeah
lmao, even
I'll explain
I have a config and there are ONLY booleans on what to allow and what not. the thing is that in my onEnable() I have like if config.getsomething == true{ enable something}
but that should work only if the plugin is enabled right?
it works btw, I just don't know how to actually reload it
you'll have to disable everything on disable, then reinitialize the values on enable and makes sure you clear any cached values you might have
ik that you can't really reload Java code but some plugins have it
so it's just like disabling and enabling plugin?
it doesn't have to be but it's what I do
okay ty
easy enough and I design my plugins around it anyhow
so in onDisable() I have to turn everything off?
yep
to clear cache
umm... how do I do that?
never done this before
and I'm not on pc so I can't test it
depends on what you have to turn off in the first place
well probably the classes in config
nope
so just onenable
you don't turn off classes in java (or really on any programming language as far as I am aware)
okay so what do I turn off
like I said it depends on what you have in the first place
if you have a listener that is only enabled based on a config setting then you have to make sure that you unregister the listeners on disable
I don't have listener in config
if you are running repeating tasks then make sure you shut those down
so on and so forth
like this
but it doesn't seem to work
so I have to reload onEnable to actually work
bcs the ifs are in it
declaration: package: org.bukkit.event.entity, class: PlayerDeathEvent
Can I set a WorldCreator object's generator to a json string like the ones you could use in before 1.19.4 with the "Import World Settings" button?
eh cant send images
?img
Can't send images? That's because you're not verified! Use !verify to complete verification.
Alternatively, you can upload screenshots to any image hosting site and share the link.
Here's some screenshot utilities that can use to upload images.
Lightshot: https://prnt.sc
Imgur: https://imgur.com/upload
Flameshot: https://flameshot.org
yes sure
#generatorSettings(String)
?help
selfrole Add or remove a selfrole from yourself.
cleanup Base command for deleting messages.
embedset Commands for toggling embeds on or off.
info Shows info about CafeBabe.
licenseinfo Get info about Red's licenses.
mydata Commands which interact with the data CafeBabe has about...
set Commands for changing CafeBabe's settings.
uptime Shows CafeBabe's uptime.
findcog Find which cog a command comes from.
names Show previous usernames, global display names, and server...
userinfo Show information about a member.
listcases List cases for the specified member.
reason Specify a reason for a modlog case.
permissions Command permission management tools.
Why does module Core is not loading?
Did you forget to reload maven
nope, It was reload both for module and whole project
Any errors?
I see this bechaviour for the first time in intelji, why does pom.xml is stricked-throught?
give advice on how to optimize block regeneration
That project pom doesn't look quite right
You should move a lot of it's content somewhere else
Also set the packaging to pom
what do you mean by content? depedencies?
wtf I've changed name from Core to CoreXXXX and it start works
Core is a very generic name it’s probably conflicting namespaces
net.minecraft.server.Core;
yes I've change name to diffrent one and it works
This searches for an existing chunk generator by name. It doesn't take in a json generator
the javadocs say otherwise
declaration: package: org.bukkit, class: WorldCreator
Hi, i have problem with this code : https://paste.md-5.net/buhiteloca.java
I'm trying to create a fake player in the TabList. The problem is that I get this error when the method is initialized (in my main class by a joining player).
?paste
This is the error i receive : https://paste.md-5.net/irodizobog.md
I'm using Spigot 1.20.1 and ProtocolLib 5.1.0
Possible to have your help please ?
That's for flat worlds. I am trying to use this
Basically trying to make a caves only Deep Dark world
Is there Any good online stress testing tool for minecraft out there?
Why none respond to me, hello ?
theproblem is that neither do peope read pinned messages they cant even read
experience from playersr tho
the bossbar literally said the specifif information they were lookin for
Is OnPluginMessageReceived ran synchronously or async?
why i cant dowload te 1.20.1 spigot from the site ?
Use buildtools
Bad sites are no no
but i dont use that before haha
i have bukkit now but i want spigot
or if you want a gui #1117702470139904020
what ive never understood is that spigot isnt able to directly distribute the jar. but paper is
why is that
paper distribute a paperclip jar which downloads the mojang jar and binary patches it
lets say i have a pannel and i rent them so i need a jat file
thats a legal gray zone spigot doesnt want to enter
yea fair enough
run buildtools every 3 days and use that
I'll summarize the past 9 years. Mojang bought bukkit, a bukkit dev did dmca requests and we cannot host bukkit source code
That's why you need build tools
but where i can find the build tools files ?
?bt
No
you have to run buildtools to get the server version
You run build tools in your own computer
Build tools will build your spigot.jar
That spigot.jar is what you will upload to your rent server panel
and place hime where ?
if i run hum i get a log file
do you need a step by step guide
it says it needs java 17 but i have 8 it says
You know this is development channel right
8 is higher priority than 17
guess what
you need java 17 !
change PATH or specify direct path to java.exe
okey thx 😉
blud is so concerned about unexpected factorial
how to get cold biomes?
do we really have to run outdated java too now?
what
as a response to this
is 17 that outdated for you?
Whats the best way to save data in a database?
If you are pretty much saving objects, just save an org.bson.Document
You may serialize it as a byte array. You can store this byte array in SQL. In Mongo you store it as a Binary
The advantage of storing a Document regarding the SQL side is that you don't need to worry if you ever need to update the object's attributes (like adding new attributes).
The issue with this as far I understood is that you are no longer following relational paradigm
i have no idea what that is
ofc
It's just like a HashMap with builtin methods to retrieve stuff
If you are familiar with ConfigurationSection, you would be aware that it provides builtin methods to provide basic stuff (such as primitives, lists, etc)
yup
How to get cold biomes? Or how to check is biome cold?
org.bson.Document is a Serializable Map with similar builtin methods for data retrieval
It even allows you to store byte[] (byte arrays)
Are you using a custom world generator or vanilla?
and how about using a hashmap combined with gson ?
vanilla
I think that's Document. It's even bundled in the builtin Spigot API libraries
declaration: package: org.bukkit.block, interface: Block
yeah but i want to check if biome in what block located is cold
?
I have a block and I need to know if it is in a cold biome
for this I need to check if the biome is cold
Man
Biome#name#contains("COLD")
Stuff like that
You may do multiple checks
"FROZEN"
"ICE"
TAIGA is cold biome but hasn't in the name frozen or cold
"SNOWY"
There is a temperature now
Yeah
Yeah but how to get biome's temperature
temperature depends on height and the biomes max/min values
declaration: package: org.bukkit.block, interface: Block
You would need to get the threshold for snow biomes
any suggestions on my project layout? https://github.com/mfnalex/cesspool
I'm still trying to be able to remove all the redundancy from each NMS version's build.gradle.kts, currently each of them requires to have this:
plugins {
id("cesspool-nms-module")
id("io.github.patrick.remapper") // TODO: Move this to the cesspool-nms-module plugin
}
dependencies {
compileOnly("org.spigotmc:spigot:1.20.1-R0.1-SNAPSHOT:remapped-mojang")
}
tasks {
remap {
version.set("1.20.1")
}
jar {
finalizedBy("remap")
}
}
I'm looking for a way to somehow make this work using a function, e.g. useMojangMaps("1.20.1") but no clue how - plugins declared in buildSrc cannot take any "parameters" and functions declared in the root build.gradle.kts are not callable from subprojects. And using subprojects { ... } in the main file would be "reversed logic"
I also hate that I have to add jar.finalizedBy(remap)
If i use BlockPlaceEvent and trying to change event.getPlacedBlock() the block isn't changing
@EventHandler
public void onPlaceBarrel(BlockPlaceEvent event){
if(event.getBlockPlaced().getState() instanceof Barrel){
Barrel barrel = (Barrel) event.getBlockPlaced().getState();
barrel.setCustomName("AAAA");
}
}
call barrel#update

