#help-development
1 messages · Page 692 of 1
It wouldn’t be very nice if Java lua-fied some of their stuff
I would love to have 32 gigs of ram
I bought it when ram was pricy
each stick was like 80 bucks
now they're half the price

i got 32 for like 100 bucks
I wonder if I can get more ram in my laptop
and i got the fast shit too
Mine are 3200mhz mismatched sticks overclocked to 3600mhz
jank
different brands
different controllers
Sometimes I'm thinking if I should get 128gb ram if I get a pc
mine run at 6200 mhz
it's surprisingly big
throwback to when I used a laptop with 4gb of ram to make plugins
we all started small
damn wtf java can stack allocate objects?
Yes
I know its possible, just that we don’t have any control over it, (i mean the new java api shit thats in preview may offer explicit control)
valhalla wen
would be sick
does stack allocated objects mean iterating over linked list be faster?
or am i getting it wrong?
oh stack local objects
anything wrong with it?
oh
why dont you just put everytyhing on live usbs
you tell me
you run discord off a live usb
if you can manage tor un discord off a live usb
you can probably run intellij and maven off one
get a usb hub
but you can up load photos just fine
when discord would only get the pfp once
@echo basalt watch out buddy

one eye open when I'm sleepin'
🎶 one eeeeeeeeeeye 🎶

In theory mye
shitty remix
wait no stickers will blow up your router
bros got that boonies internet
jokes on you I rizzed this chick and her mom

have a 22mb image
internet only has 2 petabytes of possible data (real)
super spy drive
Who uses webcams these days? I use my personal robot-spy-bird instead
sure they spy on you but only the chinese have access to that info
they won't share it with the US
your inet exploded
All because of your 13KB waste
lmfao
me, with the 30gb intellij folder
half of it loaded in ram
ehh you're not the only one
mines only 2gb
I've rocked a 4gb 2666 + 16gb 3200 for years
in dual channel 
the opps
they're coming
Your cabled wifi?
styll
satanism
satanism
try ping 8.8.8.8
and speedtest
see if you're dropping packets
tho you seem to be connected to discord so it can't be an issue
char[] is an object too
string isnt primitive
you don't
String is and will never be a primitive mostly due to convenience since those instance methods are nice, but its heavily and I mean heavily optimized by the jvm, and jit, also redirects to native calls I think for certain methods
Just in time
LikeThis for classes
likeThis for variables and methods
LIKE_THIS for constants
public final static transient strictfp volatile void
Java is both compiled and interpreted
:)
if you do we'll send the huskies after you
definitely no
this ain't python
script kiddie alert
oh wow you are so cool
can I have your number
not this fake doxxing again
didnt you do that like a week ago
sure sure sure
let's pretend like you aren't coming here with ambiguous threats
pretending my name is kai
pinging me at 3am telling me to watch out
I want to make a plugin that given 2 positions the blocks that are there can't be destroyed but you can destroy the buildings you've placed. at the end all the blocks you have placed are removed. Do you know how to do it? I would need it for my bedwars plugin.
Yeah
You need to track the blocks that you want to be indestructible
or well the other way around
Destructible
Except you have non reifiability with type erasure
generics?
Yes
generics are fun
except when they're not
so is regex
tanks
throwback to when I did this
💀
thats why the website is coded in jphp
md and optic
imagine paying for a 10 year old version of xenforo
Skill issue
world record time
what is "GamePhase"
figure it out, you asked for directions not for me to hold your hand
this you
how come you're working on this fancy ass project and don't know if a string is an object or not
this mf AI generated
nah AI can compile code
learn to code before claiming you're the bomb
bro didnt commit to github 🤓
hes ur 2000's ai
mans got banned
too much bandwith?
after telnet'ing into their servers
how tf do you even get banned on GH
but how
sounds like script kiddie to me
Github desktop and containers?
github actions most likely
their jenkins counterpart
crypto mining on actions be like

you can do all that but cant do anything to get better internet? or more storage?
You should monetize your massive knowledge
exactly, you did it for free, pretty sure with half the stuff youve "done" you could get paid for it
get paid to do 1 massive thing then buy better internet
I'm sure you can figure it out with your knowledge
whats goin on
troll trollin
get a job
buy a new one
alr 1 day and you can offer an hdd
That is bad even for balkans wtf 💀
hack my paypal account and steal all my money
you pay rent per day and buy food each day?
most people buy food in bulk once a week
and bruh is wasting time here on spigotmc
That way you don't have to save
just go hack a server and live in that
k cool but what is wrong right now
literally me
what is your dev question
sheesh
i bing chilling
That's a lot of ram for your cpu
currently i could go get paid 5.28 an hour
so you're that one kid that stole a bunch of ddr3 ram from my school 
what's your development-related question
my friend stole GTX 1060 3Gb
then get to work
Then why tf are you texting in help dev
not in general/verified
if you have no dev-related questions
and PR ofc
And ignoring it will cause some pretty bad issues
Instead of chasing a quick buck, just focus on being the best one available
Does it look nice?
Know your product and know your audience
Well
Why would a customer prefer yours over someone else's
So you're willing to nuke 90% of your audience because of a UI?
because you have
🔥🔥 ON SALE 🔥🔥 BEST OF ALL TIME
SPIGOT/PAPER/BUKKIT/BUNGEE/SPONGE ❤️❤️ PLUGIN FOR EvErY pOsSiBlE vErSiOn ‼️

who cares?
i would rather have my ui be smooth and have my app work
then fucking make your own linux distribution

and fuck off :)
talking about your problems
You're just here to talk about your 256kb packets and how slow your internet is
right so now you climbed into the closet
thanks imlusion
hippity hoppity get off my property -md_5
Well
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!
Ask elsewhere we only care about minecraft minigames and not being threatened with ambiguous messages at 3am
I woke up at like 3am, checked your message and went back to sleep
it'd be nice if I hadn't woken up but shit I live to see another day
my marbles have been lost
i would rather die in my sleep than die awake
statistically, the average human has less than 2 arms
I need encoders, I need to write a plugin
?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/
encoders to encode what

lmao
oh illusion while ur here, do you know if theres a thing in both sqlite and mysql for on conflict(id) update or whatever the proper format for thatis
AFAIK it's different syntax
if you ever use postgres y'know you'll have different queries
even different column types
So ideally your code is made to handle those changes
i really want to avoid different handlers for both sql types
oh no he found my spigot page
There's no common query for that, no
according to his spigot page, hes 29
fook
MySQL: https://github.com/2008Choco/VeinMiner/blob/master/veinminer-server/src/main/java/wtf/choco/veinminer/data/PersistentDataStorageMySQL.java#L29
SQLite: https://github.com/2008Choco/VeinMiner/blob/master/veinminer-server/src/main/java/wtf/choco/veinminer/data/PersistentDataStorageSQLite.java#L32
maybe you were in the capital
if you have nothing to add in #help-development , go to #general or something
I don't know why SQLite has to diverge from the MySQL standard but bleh
Gotta work with what you've got
why does it
choco can i steal ur stuff, the abstract sql class layout
wtf does redlined mean
something about being declined shit based purely on discrimination
now you cant sue me
ah right
I mean my stuff is open source
I couldn't sue you for taking inspiration from it anyways
Scalable Skyblock Core. Contribute to IllusionTheDev/SkyblockCore development by creating an account on GitHub.
java 8 
why
Brother if you're supporting 1.18+ exclusively, you should use Java 17
wat
The server doesn't run on anything lower
Sainte stop being weird
coll decided to be mega nerd and made https://paste.md-5.net/oyijakaxig.cs
There have been a handful of occasions I've seen you just be strange, troll, or randomly flex for no reason? So, y'know... knock it off? It's really cringey
?kick @quaint mantle literally not even listening to me
Done. That felt good.
he's already been kicked before
md5 kicked him for attempting to doxx me like last week
That's okay. He'll come back and know that next time it'll be a ban :D
why you though xD
no clue
I was walking home from the gym and he said I was bouncing around in exercise balls or some shit and started targetting me
he is probably like 14 yrs old or smth
While I like the generic approach, I would hate to use this anywhere outside of implementation
Yeah
For SQL structures I'd rather just have some proper concrete methods
props to him for finding actual info about me
It's not as easy as it seems but I have some better opsec to do
probably wouldnt be hard to find
(no clue if the info is accurate)
(I don't go to school anymore)
and he's tryna add me
lmao
wtf
tf?
string utils plug-in on ij has a bunch more of those
How is that any different from quotes or single quotes?
sure do love my dollar-slashy strings
kotlin gradle moment?
groovy
wtf
If I change the name of the chest with the anvil in Minecraf, for example, I made the name of the chest kraken chest, when I put it on the ground, I will change the model and texture with itermsadder, so can I change the gui screen that appears when I open it, can I make a gui connected to a separate name without eliminating the inventory and normal chest gui?
Yeah that isn't kotlin syntax lol
TIL it's a multi-line string
you want to open a gui when someone opens a specific chest?
Yes, so there will be 5 different chest names and special gui in those chests.
you want to determine chest guis by their item names..?
no you dont xD
Not through vanilla means. You'd have to probably listen for an interact event on that chest, get its name, open the appropriate inventory and handle the item changes
unless that’s intended why don’t you use pdc
You could re-use the same Inventory instance though so that at least inventory contents are synchronized between users
But yeah I don't think you'll be able to avoid opening your own inventory and synchronizing contents with the chest
Yes, let's say I made the name "kraken chest" with the normal chest name "chest" anvil, I just want its guisi to open when the "krakeb chest" opens.
then you can look at what choco said
Pdc?
?pdc
just listening to events and canceling, then opening your own gui
?paste
no @EventHandler

I have this code: https://paste.md-5.net/egudalixab.java
This should calculate the dot product between the player and the zombie and according to the maths, give me a number close to 1 if I'm looking at the zombie and a number closer to 0 or a negative value if I'm looking away from the zombie. For some reason the output sometimes makes sense and sometimes doesn't and I mostly get wrong values. This is my NuxVec class:
https://paste.md-5.net/fafaxutize.cpp
?ban @dapper dagger
Done. That felt good.
Fucking weirdo
ban the main too
Done. That felt good.
i tink im missing context
nah its fine
Can someone please help me
Im trying to make so i can use /balance add <name> <amount> but when i do it the money isnt being added
Error: https://paste.md-5.net/axekuyelat.bash
Code: https://paste.md-5.net/luketaqaye.java
this entire thing hurts
Can I ask one last question, can we change the position and size of those squares that we put 64 blocks in the inventory or chest in minecraf as a plugin without mods?
the error also doesnt match the code
You actually asked about it within a month
I didnt?
And even if i did, it should be that hard to guess why im asking again
you refuse to listen to us telling you to learn java so cant solve a simple npe?
We've been asking you to learn java and quit wasting our time for months
So yeah I'm not even gonna bother opening those links
error still doesnt match the code
I should, i just used the command and copyed the error
idk how return true throws an exception
repackage your code and try again
Forgot to send this..
if (args[0].equalsIgnoreCase("add")) {
if (player.hasPermission("balance.add")) {
if (args.length < 3) {
sender.sendMessage("Usage: /balance add <player> <amount>");
return true;
}
String playerName = args[1];
OfflinePlayer target = Bukkit.getOfflinePlayer(playerName);
if (target.hasPlayedBefore()) {
System.out.println(target.getName());
try {
double amount = Double.parseDouble(args[2]);
Balance.getInstance().addBalance(target, amount);
System.out.println(Balance.getInstance().getBalance(target));
System.out.println(target.getName());
player.sendMessage("You added " + amount + " to " + target.getName() + "'s balance");
System.out.println(Balance.getInstance().getBalance(target));
System.out.println(target.getName());
} catch (NumberFormatException e) {
player.sendMessage("Invalid amount. Please provide a number");
System.out.println(target.getName());
}
} else {
sender.sendMessage("Player not found or hasn't played before.");
System.out.println(target.getName());
}
}
}
It says that the error is at Balance.getInstance().addBalance(target, amount);
Nobody said you should?
thats the cause of the main error
Balance.getInstance().addBalance(target, amount); is causing the error at Balance line 41
which is return true
which shouldnt ever throw an npe
wot. It doesn't return true. It returns a double
choco read line numbers
It returns a field from the result of Vault's Economy#depositPlayer() which doesn't have any nullability contract, but given that you're writing an Economy plugin I presume you've implemented your own economy
The line numbers don't line up because there are no imports
My guess is that you wrote your own Economy implementation and registered and are using it, but your depositPlayer() implementation returns null instead of a proper EconomyResponse instance
Then your Balance class is trying to use the result of that method and access a field from a null value
do you have a class that implements or extends an Economy class
extends AbstractEconomy or implements Economy
No, but i got a class that is using the Balance.getInstance for a command
I got vault
vault is an api
vault is not an economy plugin
not an economy plugin
It means that it can read economy plugins
pretty sure you’re able to use it as is for balance and stuff right out of the gate
no
yes
No...
EssentialsX economy take that
When im doing that it says it must either be declared abstract or implment abstract method isEnable in Economy with both of them
No only this and vault
so you have no economy plugin
yeah that's a problem
damn vault's permissions api sucks so hard, it constantly relies on player names instead of UUIDs
I have vault on my server and i am making this plugin and this plugin is a economy plugin
you need to have a class that implements Economy or extends AbstractEconomy then
and create all the methods that it requires to function
When I do @a with console or some plugins it gets changed into literally every player on the server, does anyone know how I could stop that? Because I deleted essentialsx chat thinking its doing that but no ;D
What's brigadier?
Sorry i dont understand, so i need to create a class that extends AbstactEcon omy and set all the methods as getBalance, addBalance... in that class
Yes, except I don't need that
Because it messes up any plugins that have @a in their commands
Thanks
Bukkit.selectEntities(...)
What
you also have to store their balance as well
Wait where is that located
I need to remove that
Right, wrong channel..
Bukkit.selectEntities takes in an entity selector string and returns the list of selected entities
But as soon i create a class and extend AbstactEconomy it says Must either be declared abstact or implment abstact method isEnable in Economy <- (Main class)
Your main class obv is not the class that should implement the Economy clasd
pov: you don't understand inheritance
How to create custom enchantments?
?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
How to create ?
Yeah
Use a PDC tag to identify your custom enchantments
How can I create?
i'm confused about something, are you trying to make your own economy plugin or you're trying to hook into one?
What they were trying to say was that writing, for example, "Hello @a" in chat would replace it with "Hello Player1, Player2, Player3, Player4". Not a command, just a regular chat message. So a plugin was replacing instances of entity selectors
Which is, yes, a #help-server issue
How can I stop that?
He tried to create for a couple of days now
You have two options when dealing with Vault economy
- You install Vault and some economy plugin like Essentials, Gringots, etc.
- You install Vault and create the economy implementation
Is this a java question or not?
If you want to implement Vault's Economy API you need to have some class that implements Economy or extends AbstractEconomy, then register it to the services manager
If you have not done that, you should be doing that and let your IDE auto generate all the methods you need to implement
I already tried to eplain it to him days ago, he implemented all the Economy methods and then asked "yeah but what should they do" because from what I guess they don't have any economy plugin made yet and thought they just extend Economy and then it works
So you are one of either two things. An economy user, or an economy provider
I have installed vault and i want to create my own economy implementation
Then yeah, this ^
But you need to actually know what your economy does and implement every single method it wants you to implement
yeah well do you have ANY system that keeps tracks of player's balance? methods to send money, etc etc? if so, your Vault Economy implementation must simply call that
You need to write code to actually support a functioning economy
If you want an example you can use EssentialsX as it's open source, but you essentially need to do this
https://github.com/EssentialsX/Essentials/blob/2.x/Essentials/src/main/java/com/earth2me/essentials/economy/vault/VaultEconomyProvider.java
and then register it like this https://github.com/EssentialsX/Essentials/blob/ee1111f6aac7e48463a3deca2f73c4f4b04b834e/Essentials/src/main/java/com/earth2me/essentials/Essentials.java#L243
cant wait for "Cant find symbol NumberUtil.displayCurrency"
The only reason Vault exists is to provide a very simple, common interface to access your economy plugin's inner-workings without plugins having to explicitly depend on your plugin. They can depend on Vault and they'll know that something probably implemented Vault's Economy and they can just use it without knowing what exactly it's calling
hover over the red
and press implement methods
Yeah you're not understanding how Vault works at all
Thanks
public Balance() {
rsp = my.server.economy.Economy.getInstace().getServer().getServicesManager().getRegistration(Economy.class);
if (rsp != null)
economy = rsp.getProvider();
}
You cannot do this. You cannot get an Economy registration. You ARE the Economy registration
You cannot call any of Vault's methods because you ARE Vault's methods
Okay i have removed that now but all my own method, hasBalance, removeBalance... can i still use them=?
have you wrote the method impl for all of the methods ur economy class now has
You can use your own methods so long as they actually do something, yeah. Sure
Your Vault implementation should really be delegating to existing calls elsewhere in your plugin
I urge you to look at EssentialsX's Economy implementation that I linked above
So i need to do this in my onEnable?
getServer().getServicesManager().register(net.milkbowl.vault.economy.Economy.class, new VaultEconomyProvider(this), this, ServicePriority.Normal);
you need the class for your plugin
and the paramaters for your class
for the 900tht ime
?learnjava!
Here are some links to get you started on learning Java:
- https://www.codecademy.com/learn/learn-java
- https://www.sololearn.com/learning/1068
- https://www.learnjavaonline.org/
- https://programmingbydoing.com/
- https://docs.oracle.com/javase/tutorial/java/index.html
The last one is the only official one, however some of those concepts assume that you already know a bit about programming. https://media.discordapp.net/attachments/694661573125472256/998143126373941248/6n0v4g.gif
how are these custom models made?
Right, instead of new VaultEconomyProvider(this) it would be an instance of your Economy implementation
BlockBench and some CustomModelData NBT probably
It's not too fancy
They just have good modelers and texture artists :P
Well it's really beautiful
yes i know but is it a item on top of a armor stand then?
probably item display
nowdays you'd use item displays yeah
Could be, or could be a display entity
BlockBench + ModelEngine (or similar competitors)
using armorstands is a relict from ancient versions (pre 1.19.4)
Or if you're using a recent version, yeah just slap it on an item and scale it up to 100
ye in that way you can have infinite models without affecting the "real" item
right?
with custom model data
I have to implement bigdecimals but you can also take a look into mine https://github.com/Fr33styler/FrConomy/blob/master/src/main/java/ro/fr33styler/frconomy/hooks/VaultHook.java
Correct
this being midway down hurts
What for? (RE: BigDecimals)
So like this?
public class Economy extends JavaPlugin implements Balance {
@Override
public void onEnable() {
getServer().getServicesManager().register(my.server.economy.util.Balance, new Balance(Balance), this);
getLogger().info("Economy plugin enabeling");
getCommand("balance").setExecutor(new BalanceCommand());
getCommand("resetjoin").setExecutor(new ResetJoinCommand());
}
my.server.economy.util.Balance is the class where addBalance and my own methods are
mostly for the server balance
no
getServer().getServicesManager().register(net.milkbowl.vault.economy.Economy.class, new BalanceAbstract(), this, ServicePriority.Normal);
i could move it up, but it made more sense to keep it close to the methods at hand
same with the bank
Also I wouldnt call class with abstract suffix if its actually not abstract
But should i check if the player has a account?
In the BalanceAbstract where i implmented alle me vault methods, there is a method to check if the player has a bankaccount do i need to check that when i add money to a players account?
you should know that, you implement it
if you need a bank account to deposit in ur impl, yes you do
if not, no you dont
Why do i get a error at return economy.getBalance(p);?
public double getBalance(OfflinePlayer p) {
return economy.getBalance(p);
}
Yeah
your economy is null
Wait i got this in the top
private Economy economy = null;
that does make a lot of sense
and to make the hitbox just use barriers?
But what should i set economy to?
normally you will have a player class that has all the balance etc methods
look at essential's impl
Yeah just barriers
Or slabs/other blocks if you can hide them inside the model
Look at the vault tutorial on how to implement your own economy service.
is it good idea to save economy as nbt file or use scoreboard?
You mean scoreboard tags?
I would always prefer using files as they can be edited by admins.
Also nbt like pdcs or scoreboard tags can clogg up the data file.
i mean, when i was making minigame to do and count shit i wrote too much scoreboard lmao
i didnt know that dfu even exists
this phase thing seems quiet cool for a part of my plugin
I wish i can fix the weird issue that doesnt allow me to run my the child command frm the its parent, when using the child permission. But with its parent one i can run all the commands Im real struggling
this works btw
I will send code in some minutes when IJ opens if someone can give a hand i wuld be really thankfull
good job, tho i think some stuff could be simplified
Does your time parser allow parsing 10
yes
wait
I can say 10 ticks
my keyboard doesnt responds
also adding a new map is as easy as this or whatever
And as long as the map name matches this on the config it's whatever
that's really cool
No hard dependency on worldedit, can use the structure api
Or if we depend on worldedit, and fawe is present, all the pasting is done async
i mean if your time parser allow to parse <time><time unit (h | m | s)> expressions, even tho mixing many of thems?
Supports a single world grid or world pooling
uh yea
super cool 😄
Canm you something like: <time><time unit (h | m | s)>:<time><time unit (h | m | s)> ? Ending in this result for example: 10:5:10 where without giving the unit and telling the format you want, its parses that into hh:mm:ss for saying example
it's more like
😭
"19 minutes 10 seconds"
Can you give me a small hand with the permission issue i facing? I really cant find the solution just know what the issue but cant find the why
19 mins 10 secs
I really don't want to touch on commands and permissions rn
oh yes, pretty nice your parser
giving me ptsd
ptsd? English please sir haha
post traumatic stress disorder
oh ok
still working on this mf
skyvlock core ?
No its obviously lifesteal
my badddddd
i was more or less questioning your sanity rather than asking what it was for
oh, i did my minigame without knowning how to make it, the code is complete garbage lmao
i made it using only fabric and Minecraft, i think without fabric api
mixin nightmare
the code is not garbage as long as you can understand it in my opinion
to an extent, if it’s readable, mostly performant, and maintainable then yes
crazy? I was crazy once
i partialy understand it
(all this does is load islands from a database and paste them)
like no listeners at all
i like that you use vec3d to save a location
data science 🧬
doeds your skyblock core world more like hypixel or a typepical skyblock server (in 1 server)
no internal metrics either
i use bukkit's location but since the code is not public, i don't mind
hypixel style
full network compatibility
multi-machine, multi-proxy support
multi-proxy of different proxy types
Multiple server instances of different types
ok nerd
it just works
Well i have IJ open i send code and explain what happen again. The problem is that if i have a sub command with rguments or sub commands, it tells me that i dont have permission when running the command with the child permission. But if i run it with the sub command permission directly (the root one let call it) its allow me. Really weird and find the reason i will add code now:
This my parser, pretty simple but works great. Because it can be used for parsing SingleCommand (meaning they dont have any associated argument nor sub command it, just like vanilla commands) and ParentCommand which represent commands associations, meaning a Parent can have other parents or Single to it
I will send code under because of shity discord limitations
but i bet you could do much better now
that’s hell
also the code isnt really preforment as i used clock on tick instead of multi threaded clock, and also there is many garbage code
and weird code
it took me whole month to make it lol
took me like 15 minutes to write tnt tag
we're writing like 5 minigames at work today because boss wants to be happy
but tnt tag is easy
it is
my thing idk if easy
mfw work is spigot
but i did many cool features
fair
people here make like 4 bucks an hour
i literally wrote my own config library
inside it
but the minigame is very buggy tho
but i dont know where are the bugs tho
it was like, people got crashed randomly from server
For sure i can say that, 5 fkg hours with the permission issue and till noway to fix it haha
and i couldnt trace anything
worked for like 6 hours yesterday, finished 2 projects 
also this was one of my first modd
got another 7 to finish
like i was learning java making the minigame lol
how does it work? it looks like it's built as a mod
I have even asked GPT 4 and tell me that my code is perfect and must be working, without the permission issue i having
i'm not familiar with mods
when testing with multiple people, it didnt worked, it bugged out
Ai 🤡
however when i tested locally it should worked tho
or is it sponge?
it is fabric
i see
oh yeah, mixins is library in both forge and fabric
do you think my plugins work on the first go?
fabric has modified version of mixins
nah
I don't see the command code
command code?
commands are broken into multiple files
there is many commands in my minigame to configure everything
Not talking about your issue
easily configurable stuff is easy to write
standard practice
I dislike hardcoding numbers
And it's not even hard at all to write configs
my command system is basic
Making guis for config even better
guis are easy too
can be a bitch if you're dealing with multithreading
but
it work
Yeah no problem with them
but now i think i improved my code with making mods lol, this is my config library https://github.com/MosaicMC/MosaicCoder/tree/main/src%2Fmain%2Fkotlin%2Fio%2Fgithub%2Fmosaicmc%2Fmosaiccoder that uses my own "plugin loader"
My current gui system works with layers which allows me to update certain parts after a while
ew kotlin
not reading that
lol
I was crazy once
kotlin is great
you just need to learn it i guess
like with everything else
Not coding > Java > Kotlin
Skript > all
why coding is bad?
yall only have issues with writing code im out here living the live writing skripts
LOL
Nah dude, i had a friend who told me java is bad just do it in skript
SO TRUE
And all his server was made out of skript
only argument is null safety beside that kotlin is ass
no?
sometimes more verbose than java 💀
I remade his core in 30 nanoseconds
that’s diff
then the actual language coding experience
reified generics
different keywords too
also different syntax for some stuff
smart casting
many data types
kotlin code is less readable then java code and it’s whole point of java is to be verbose to have really high maintainability and kotlin just strips that away
pattern matching that still isnt in java
also makes it really easy for a new developer to develope bad habits and bad practices
java 22
java 22 and it is java 20 rn
experimentally out
i aint waiting years just to get feature that is already in different languages
i mean, i would give anything for method extensions in base java
virtual threads 😫
then use kotlin lol
have fun with your functions
get it fun? because you have to say ducking fun everywhere
in base java
fun fun fun fun fun
also kotlin has coroutines
completable future
also many stuff are way shorter than java
oh and we have properties in kotlin
java lacks properties
and we have actual constant
and actual functional programming
java isn’t a functional programming langauge?
and who uses kotlin for that? we have clojure for a reason
that’s why we use it lol
yes
clojure is very popular
even groovy is more used for actual code than clojure lol
just unsung because it’s used more enterprise
also kotlin has official compilation to native and js lol
Kotlin can be compiled in JS?
starting to sound like the eclipse of programming languages
None ever told me that
if you actually cared you would know
I tried coding in kotlin for a week but i didn’t like they style
eclipse? kotlin is made by jetbrains
java is eclipse
kotlin is like intellij
and scala is notepad

No
i mean, your choice
Coroutines are different to CompletableFuture future
there is whole blog post on how to write apps,libraries etc in kotlin
And runnable doesn't make any sense lol
also kotlin can compile to many versions of jvm lol
cant java do that too
different java version have different bytecode versions
you cant run java 20 on jre 8
one think I hate dev'ing with kotlin is shading
like u gotta shade kotlin
right
it makes the jar fairly larger
shading?
you can disable all of it
using compile args in gradle
lol
Huh Indy as invokedynamic is even used over at kotlin
yeah
hey there, im getting weird entity tracking issues, any help appreciated! (please don't judge me for using 1.8, this error keeps happening by updating my plugin after couple of months so, I mean a lot of things had changed in the server, like anticheat plugin got updated, protocollib update, and these stuff)
well without code how can we fix it
or help
the issue is with com.trexmine.bedwars.listeners.BlockBreakListener.onBlockBreak(BlockBreakListener.java:63)
and this com.trexmine.bedwars.utils.functional.WorldUtils.getBedParts(WorldUtils.java:62) ~[?:?]
just a moment please
do you have full crash log?
https://paste.md-5.net/aterelisav.cs getBedParts()
It's not a crash
no i don't think so
Thats what happens: player breaks the bed, and byBed throws exception, affecting team bed not actually broken, so by that mean, they can respawn infinitely
oh
maybe the world isn't loaded
nvm
something adds an entity
that is already tracked
public Chunk getChunkAt(int i, int j, Runnable runnable) {
unloadQueue.remove(i, j);
Chunk chunk = chunks.get(LongHash.toLong(i, j));
ChunkRegionLoader loader = null;
if (this.chunkLoader instanceof ChunkRegionLoader) {
loader = (ChunkRegionLoader) this.chunkLoader;
}
// We can only use the queue for already generated chunks
if (chunk == null && loader != null && loader.chunkExists(world, i, j)) {
if (runnable != null) {
ChunkIOExecutor.queueChunkLoad(world, loader, this, i, j, runnable);
return null;
} else {
chunk = ChunkIOExecutor.syncChunkLoad(world, loader, this, i, j);
}
} else if (chunk == null) {
chunk = originalGetChunkAt(i, j);
}
// If we didn't load the chunk async and have a callback run it now
if (runnable != null) {
runnable.run();
}
return chunk;
}
originalGetChunkAt does it, this is spigot code i think, no idea? or..
I think its trying to generate chunk or what?
remove certain parts of the code and see
like so? (It would be good if you can help making it better)
oh yeah gib sec im on phone
any1 could help why is there no spacing here?
in the scoreboard, using teams too
when using scores you can only have one exact line
what i would do is just move
teamResult.ifPresent(victimTeam -> {
if (victimTeam.isPlayer(player)) {
player.sendMessage(ChatColor.RED + "You can't destroy your own bed!");
} else {
TeamColor victimColor = victimTeam.getInfo().getColor();
arena.getTeamByPlayer(player).ifPresent(enemyTeam -> {
TeamColor enemyColor = enemyTeam.getInfo().getColor();
String message = " \n" + "§f§lBED DESTRUCTION > " +
victimColor.getChatColor() + victimColor.getName() + " Bed §7was destroyed by "
+ enemyColor.getChatColor() + player.getName() + "\n " +
(!victimTeam.getRejoin().isEmpty() ? "§b§lFINAL KILL!" : "");
PlayerBedBreakEvent event0 = new PlayerBedBreakEvent(arena, player, location, victimTeam, message);
BukkitUtils.callEvent(event0);
if (!event0.isCancelled()) {
victimTeam.breakBed(player, event0.getMessage(), true);
}
});
}
event.setCancelled(true);
});```
the lambda into different function
use chat colors to make different lines
wym
oh so like
obj.getScore(ChatColor.SUDIBIUSDBIUS + "").setScore(5);```
but nothing in the ""
yes
every line must have a different color
How to create a custom craft with ingredients with nbt?
otherwise they're the same and it will only take the last one into account
?paste
realised that I have to do something like
obj.getScore(ChatColor.GREEN + "").setScore(8);```
now
recipes didnt really changed between 1.13 and 1.20
except someee stuff
So i need to use ReadItemCraftEvent? There is no other solving? Like.. this thread was 3 years ago..
yeah, Minecraft doesn't really support nbt crafting
oh ok
just try and see
if it works
there is also https://www.spigotmc.org/resources/customcrafting-advanced-custom-recipe-plugin-1-16-1-19-free.55883/updates
oh yeah i know about this plugin
So another question. Could i register events in 2 different java classes?
oh ok
i will
noooo 
I find out how to use ingredients with NBT

without event
ItemStack diamond = new ItemStack(Material.DIAMOND);
ItemMeta diamondItemMeta = diamond.getItemMeta();
diamondItemMeta.setLore(Arrays.asList("A"));
diamond.setItemMeta(diamondItemMeta);
RecipeChoice = new RecipeChoice.ExactChoice(diamond);
congratulations
thx
hello guys i need help, how do i make it so different ranks can list multiple items on the ah, i want the vip rank to list 2 items on the ah and member 1
very compilcated task man i dont think anyone here can help
hmm ok
what is ah?
auction house
you could add some type of if statement or something
idk the implementation you did
doubt thats the case
hes probably just using a publicly available plugin
in which case this is the wrong place to ask
Can you force player to pull/reel in fishing rod?
try and see
yeah
I don't know the way?
im using the ah plugin
oh the ah plugin
the 1 used by every almost all sevrers
ohh the ah plugin
its not like there are like 10 different ones
so not the other one
nope
lmfao
the hardest part of ah i think is the gui but thats it lol
and i think it is easily exploitable
you have to be suprisingly carefull making an ah plugin
dupe wise
minecraft does weird stuff
so recode it
especially when they have clients that can close guis without sending packets
so how do i make it so different lp ranks get different amount of auction house listings
most servers that have ah are easily exploitable, and jt happens with most plugins
thta took me 5 seconds
nooooooooooooooooo
it is very hard to get ah working properly
auctionhouse.auctions.<number>
so youre saying coding a dupe-free public auction house plugin is a good idea
is it on the luckperms editor?
just type it in??
alr
How so?
yes
there is many many exploits regarding the gui
i really mean it
Oh you mean the plugin?
do you know The Horizon? most dupe glitches is around the ah
Cause its pretty simple to write an exploit exempt gui
The server has a bung of anti-exploit and antidupe plugins
and the playerbase is small
Can we change the position and size of those squares that we put 64 blocks in the inventory or chest in minecraf as a plugin without mods?
uhh
probably with core shaders
but you can't really change the inventory size itself
Hmm Is it impossible to do it as a plugin, that is, only for example, if I use the 1st space as a button to exit to the top left...
I mean you can use a resource pack and do some magic to make it seem like you have a single button across multiple slots
I know the gui work with itemsadder, but I asked before, they said that an extra button would not be added, I just wanted to decorate the 64 spaces I had by changing their position and size and adding gui (icon) on top of it with itemssadder.
also about the ah
Be sure to visit https://discord.gg/resourcepack today!
We destroyed a pay-to-win Minecraft server with 100 billion dollars worth of duped items.
🚀 Socials:
Twitter (FOLLOW ME) - https://twitter.com/CalebIsSalty
Discord Server: https://discord.gg/eJbwaCyApa
Spotify: https://sptfy.com/Oykr
In this video, fantasycloud,fantasy cloud,fantasy clou...
I have just learned that you can't add extra buttons with the plugin 😩
plugins are server side sadly
You probably could tbh, though you'd need to use an entity
I could see this being done with an entity, it'd look weird as fuck though
display entities OP for that reason though you can do lots of crazy stuff
What do you mean by wealth, I'm shocked.
you might beable to do this if you place a button and a display entity with your custom texture on it on the same exact position
I could see texture conflict on the client happening though
I'm trying to modify the AI of a spider's LeapAtTargetGoal. I want the spider to... actually leap and not just bounce around. I've got something that might be okay with the exception that the spider is incapable of looking at the player. Not really sure why. AI is my weakness, as is math. bleh.
those are Display Entities
Hmm, but wouldn't that just be as a mod? Or can I do it with a plugin...
you'd need to do a block place for the outline though so use an already existing plugin
you can do this all with plugins and texture packs
it'll be a ton more work if its not a mod with plugin development and adding custom blocks and stuff you need to know what you're gettin yourself into
you can do pretty much everything with a plugin and texture pack its just 20x harder than if you were to do it in a mod
Wow I hope I can find such a tutorial video or plugin do you have in mind plugin 🥹
doubt there are tutorial videos for this stuff
maybe forums posts if you're lucky
you can probably get away with finding tutorials using command blocks, but nothing around plugin development likely exists
Yes, I realized that we are doing it only with minecraft apis, it is really very difficult by using the existing one without adding anything new of
It is very difficult to make and develop add-ons, I hope I will learn, my only fear is to hide and store the data of the players, like how to store the data if I make a store or battlepass, thank you anyway.
I'd better look at the minecraft api, then I'll make simple plugins and I'll reach what I want at the end.
don't store any sensitive information ingame, there are services that handle store interactions for you
use them properly
Hmm sql like this for example?
not this asshole
