#dev-general
1 messages · Page 625 of 1
Objects
Game -> [Gamestate, Arena, Players]
? i don't understand
Create your own object
public class GameOBJ {
private GameState state;
private String arena;
private List<UUID> players;
}
``` etc....
Object oriented programming moment
and I oop
object oriented poo
What could be the best way to count items that player added to a chest?
ItemStack#getAmount 😬
Inventory#getContent and then sum the amount of all items?
Arrays.stream(inventory.getContent()).filter(Objects::isNotNull).map(ItemStack::getAmount).sum() this should do it I guess
Gotta cache from another event to check what items were added.
Example cache contents on inventory open and on inventory close check for the new items.
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
Where can i find spigot 1.7 jar?
doesn't exist
hmm
not legally at least
So in theory, let's say I want to make an app, which displays program shortcuts entered into it, and it always being displayed on the desktop. How doable would that be
Very much doable
You just reinvented the start menu
Well yesn't
lol
If its windows u can't. You'd need widgets for that and in windows you can only place them in the start menu
I don't even know if you can make your own for Windows
Can you actually customize the start menu to your liking?
I'm leaning towards no, but not sure
oh you can customize it to some degree, that's nice
put r6 on my ssd, and this fcker opens instantly now lmao
nice
I do not
you want to ask questions like this in#general-plugins. But DiscordSRV I guess. Tho it can do much more than that.
Java:
You could use one of my projects, however I don't guarantee 100% workage, https://github.com/Frcsty/Discord-MinecraftHook
You will however have to compile it yourself
i love how you have a bot token just in the config
Invalid token, just an fyi, so you don't waste time
lol
mhm
Somewhere in the world survival there are too many mobs in one place
i suggest adding some mob stacking plugin
No
or wildstacker
OutbackStackhouse
Yo guys
Any idea on how to disable creation of nether and end portal in a certain world?^
Those specifically, or all multi-worlds?
just one of them all
Is it possible^
Are there portal events or something
wym?
Oh rip you then
Its pretty cool
try Scala ;)
Where do you get your profile banner things?
Seriously? Dang, looks awesome
Getting this fuckery with IJ, cause something crashed when uploading, however I can't for the life of me find the git lock file
just cd into .git and rm -r *.lock
Yea that actually worked, why doesn't it list the file at all smh
did u ls -a?
things that start with . are hidden unless you do -a
It shows all the other hidden folders, just not this one
lol
weird lol
Hence my confusion
but you can be sure any git repo has a .git folder anyway
afaik hidden folders don't depend on the name on windows
it's just an extra attribute
ohh Windows
how can I deal with the lack of datatypes SQLite has?
I wanted to use the exact same statements for both MySQL and SQLite although unsure if that's possible at all
stick to the minimal one, i.e. SQLite
Makes sense, but like, I got told SQLite and MySQL have some differences in the query, is that true? Cause if so I couldnt use the same query for both?
Only when you get to more complex queries
Could you provide an example of a "complex" query?
upserts are also slightly different
if you're using something where you don't need to write raw sql like ebean or exposed, it'll translate it into whatever sql dialect for you
a lot of math functions dont exist in sqlite (at least not by default)
including sqrt
anyone know a way to speed up cobblestone generation?
Hello I have a small problem with deluxemenus The head does not want to appear While I did exactly the same thing as in the doc
material: head (head-%player_name%)
color: 255, 135, 0 #rgb
slot: 4
display_name: ' &8&l>>&a&l%player_name%&8&l<<'
lore:
- '&8Grades: %luckperms_prefix%'
- '&8Money: &e%vault_eco_balance%$'
- '&8Credits: &e%guiredeemmcmmo_credits% &6Gcoins'
priority: 1```
okay sorry
im trying to start my own server but dont know how o use plugins like world edit, if you can help please dm me. Thank you!
does anyone know any discord server that actively helps with minecraft fabric modding
yeah uh the fabric discord?
are there public libraries for inventory menus, scoreboard and tablist apis, for 1.18? im most used to developing for 1.8.8 so my libraries arent updated to 1.18
if so where can i find them, or a list containing similar
non vanilla nbt data is wiped from everything but itemstacks on restart right?
no
metadata is basically just a Map in the server that is not saved
an item is essentially just NBT, and all of it is saved
so custom nbt data for entities and tile entities is saved?
yes
was this always the case?
items i know is yes
Entities themselves don't really "have" NBT, that's only the serialized form of an entity and every relevant field is saved "manually", after all that's what the persistent data API in bukkit solves for custom tags
it's funny because the /data modify command serializes the entity, removes it and respawns it with the modified data
yeah just discovered it lmao
I wanted to know if there is a deluxechat alternative for 1.18.2
Carbon Chat
wtf you have a link ?
@here
@everyone
hellow guys have good time
i have a question , i have a minecraft server with a bungeecord server with 5 spigot servers.
that now i want set network-compression-thereload=
for my bungeecord and spigot servers
i have 50mbps dl/up speed network
What number do you think I should choose?
just so your aware you should probably have posted this in either #minecraft or maybe #general-plugins cus this channel is relating to coding stuff.
@here
@everyone
hellow guys have good time
i have a question , i have a minecraft server with a bungeecord server with 5 spigot servers.
that now i want set network-compression-thereload=
for my bungeecord and spigot servers
i have 50mbps dl/up speed network
What number do you think I should choose?
@here
@everyone
hellow guys have good time
i have a question , i have a minecraft server with a bungeecord server with 5 spigot servers.
that now i want set network-compression-thereload=
for my bungeecord and spigot servers
i have 50mbps dl/up speed network
What number do you think I should choose?
but yeah wrong channel mate
Thx for suggest but I am looking for a plugin for hover player in chat
it can definitely do that
@here
@everyone
hellow guys have good time
i have a question , i have a minecraft server with a bungeecord server with 5 spigot servers.
that now i want set network-compression-thereload=
for my bungeecord and spigot servers
i have 50mbps dl/up speed network
What number do you think I should choose?
man tries to ping here and everyone as if it does anything 💀
💀 yeah
So is the idea about a vps is that you actually use it as a minigame server or do you split it into smaller separate servers
Because the cheapest ones I can find are like 32gb of ram and that makes no sense IMO to host something like a bedwars match
wtf lol
what VPSs are you looking at
sounds like a dedicated server to me
but yeah the best is getting powerful dedicated servers then running multiple servers on them
Yeah it can do exactly that and a lot more
Not exactly, but sure
This gut :)))
Good morning, I am new to this help services
I want to talk with someone from support etc regarding some concerns in one of my servers can someone point me directions? Ty
y?
@tough steppe If it's regarding system administration for your server, feel free to ask in #off-topic, plugin help, #general-plugins or #general-plugins-2, or server development (programming) #development
I believe you need to be tier 1 to post in showcase, being active in the server will cause you to level up
ok
Somebody knows a plugin that gives extra loot in structures?
ive requested developer role 3 months ago and i still got no reply
im not asking to check but did something go wrong
No we're just lazy
oh..
Mostly lack of time to review tbh
RoseLoot probably
does it exist?
Ok.... How do i submit a freaking bug report do minecraft, I dont have a Jira account, and all the sites that the OFFICIAL MINECRAFT BUG REPORT DOC links to create an account just bring me to the log in page... I cant join their discord for whatever reason and this is really starting to annoy me
uh no idea honestly, I don't even remember how I got my account tbh, so long ago
?not-discord
Looking for discord support?
HelpChat is a Minecraft plugin and development support server and is not affiliated with discord in any way.
If you require support from discord, we recommend you to visit their official support website at https://support.discord.com
On this website, you can read their FAQs, or open a support ticket if necessary.
anyone here tried aegis (bungee fork) before?
not worth it imo. Use velocity instead. its great
would if it had a larger library of plugins
pretty sure you can install one plugin and all bungeecord plugins will just work
the Snap! plugin or whatever its called
im strictly against these compatibility layer plugins. i dont wanna touch them :(((
ill stick to waterfall for now.
last time i tried aegis, it broke everything. infinite stack traces. however, i thought it might be worth a shot now.
velocity soon™️ (when plugin devs start switching)
many have, what plugins do you even need on the proxy?
Use anything else, just not aegis, it's trash af
so I wanna use a command in a NPC (citizens), but wanna disable it as a usable command - is this possible?
invert a binary tree and use a cyclic parabolic array symbiotic list
while developing plugins how do i stop loosing motivation?
actually, while coding how do i stay motivated
Getting paid is usually a good motivation
sus
Take a deposit and take rest of payment after work is done
I hate that bs. And there is no configurable option. If I want messages blocked I'll block them.
that's not a message from a blocked person tho
Yes but discord hides it like a blocked message
You have to click on it to read it.
btw Yugi
what happened to SlimJar?
💀
Can't
the maven repo is down 💀
💀
although maven local would prob work but for Github Actions/CI...
and maven local = less reproducible builds
That guy is weird af.
Wants a custom /shop plugin for no valid reason.
What's new
Same shit, different end user

velocity api is bad imo and docs arent that good as bungeecord
how is the api bad? I Think its pretty great. And what about the docs sucks more than bungeecord? They have the javadocs + some written documentation.
they gave java docs
hmm?
huh
they have*
is that a question? then yes
what kind of plugins do people run on proxies?
ah right banning isn't a thing by default in proxies
Can anyone help with my issue? My server seems to just crash randomly. https://pastebin.com/WSUbuqpK
Why would you use 1.16.4
Also, it mentions a plugin in all the stacktraces, looks like it’s loading a lot of chunks synchronously
looking at it movecraft doesnt support anything above 1.13 but even then its github says 1.12.2, so you cannot use it on 1.16
oh, theres a 8.0.0
still, if its lagging your server then just remove it
also this is more a #general-plugins thing
or atleast i assume it is cus this is the developement general, which isnt about minecraft server developement, more the plugin developement part or really coding in general
Anyone know how can I create a custom kick messages?
Like
MY NETWORK <<
You're banned - #ID
Appeal here [mylink]
I know (I think) with a "|-" I can create a message down and down, like this:
authentication-servers-down: |-
Testing this, hello!
Custom Message
connection-throttle: Connection throttled! Please wait before reconnecting.
flying-player: Flying is not enabled on this server
flying-vehicle: Flying is not enabled on this server```
Or something like, but I can't remember
Find the right syntax for your YAML multiline strings.
Thx!
Anyone know a decent course on Android app development that includes use of API stuff?
Try SkillShare.
The android development website has a pretty good crash course
Not a bad idea. Will check it out, thanks!
Hey any, Minecraft Developers want to help out with my Minecraft Server, It has over 9000 Members and I need developers to work on my new Update.
If you are interested please contact me by dm me.
No pay, only free
9000 members and you won't even pay your developers? hahah omg have fun finding some ☠️
Wait you're a different person
How do you know
Hey any, Minecraft Developers want to help out with my Minecraft Server, It has over 9000 Members and I need developers to work on my new Update.
If you are interested please contact me by dm me.
Budget : 5 - 10$ US
1 week
1 week
dude what
lets say the devs work 2 hours (thats not much) 5 days a week, which is 10 hours per week, may pay, 10 dollars, 1 dollar per hour
🥴
definitely too much
Too low of a pay per hour for that amount of hours
As unless you are getting kids who are beginners I don’t think you’ll find devs at all at that low of a per hour rate.
Yeah, that's basically free lol
Oh, thank you, I just don't really know English from Russia
damn ,i know russian too
)
i know russian too)
i think you are forgetting the fact his server has 9000 members and he can only afford 5-10$
thats what i was saying
What's the best language to use for a discord bot, not talking performance, or simplicity, but overall just what you deem the best language for it to be
I think discord.js is the best library
Which I guess answers the question
But typescript of course
JVM is also fine I guess
Discord4J > JDA
Jda is my go-to, I now also use the beta triumph command framework with it
Which makes it super nice to work with
jda ass
explain
wdym
ListenerAdapter is cringe
true
everything in this world is cringe tho
I like WinFrom's version better 
WinFrom's?
Windows Forms
boring != ass
there's jda-reactor
and discord.js is splendid
sorry dkim but I do not care
discord js is nice enough yea
It's fucking ass
how much ass is it fucking tho?
Yours clearly
I did not ask who's ...
Does anyone know how to get rid of this itemlore? I'm quite sure it's somewhere in my mc settings https://prnt.sc/e8b0xpnDu4TY
turn off advanced tooltips
. F3+H.
Is there a way that my program can log whenever a class is used? Im trying to find a problem in like 100 files.
Just add logging inside that class
I assume he means initialized? In which case you should be able to add a log in the constructor of said class.
Heya, do you all know if a GitHub app's "App ID" should be a secret, or if it can be publicly exposed?
Pretty sure it's fine
Just look up on youtube minecraft custom gui
Should show up
Kody Simpson does a ok job at explaining it
Is that it?
@unborn tree Turn on dms (#981453556647358485 message)
ayo @ocean quartz your repos down https://repo.mattstudios.me/artifactory/public

https://repo.triumphteam.dev/snapshots/ for snapshots
Releases should all be in central
Which lib you using?
Ayy got it, with mvn central, and the gui one
had to change the me.mattstudios too
you're using the old docs. https://triumphteam.dev/. new ones. but not completed at all yet.
ohhh I see
public static String getItemName(ItemStack item) {
if (item.getItemMeta() != null && item.getItemMeta().hasDisplayName()) {
return item.getItemMeta().getDisplayName();
}
net.minecraft.server.v1_8_R3.ItemStack nmsStack = CraftItemStack.asNMSCopy(item);
return LOCALE.a(nmsStack.getName()); //NullPointerException here
}
I get the NullPointerException on the second example below here, any idea why?
//This does work
ItemStack item1 = e.getCurrentItem();
Util.getItemName(item1);
//This doesn't work
ItemStack item = new ItemStack(Material.BLAZE_POWDER);
Util.getItemName(item);
I got an image and used the unicode replacement system to change the look of this ui, but I am not sure how I can slide the image a few pixels to the right
It appears that minecraft has some padding there that I need removed
You can use https://github.com/AmberWat/NegativeSpaceFont if you’re below 1.19
1.19 added a native system for space glyphs
Why did spigot api just disappear from my project? https://img.geode.network/w3jfzio2.png
how am I supposed to know
the day spigot just disappears is what I'm dreaming of
not a fan?
hell no
why's that
it's a mess and md_5 doesn't care much about it
Paper > all
Certainly not a lot of innovation happening from them
are we talking about their website or their server jar?
yes
I don't use it, so I can't really say anything about it
MC Market as a marketplace is a lot better than spigotmc
Glad to hear it! What makes it better in your eyes?
Depends on your needs, if your objective is to sell products, it’s def. Better in terms of limitations, freedom, support, safety, etc.
Not too often, mostly Christmas, where they do a giveaway every day until Christmas
Oh cool. Might get in touch and see if I can contribute some stuff when that happens
Feel free to do so
Regarding this, only down side is that you need to pay to upload anything, even if it’s a free product. (If I am not mistaken, might be mistaken) and well, the fact spigotmc is quite bigger than mcmarket in terms of monthly users. People most of the time go to spigot to get plugins.
Only gotta be Premium to upload paid products, all users can upload free products
But that'll likely be changing some time this year
Oh okay, my mistake then.
To be honest, I am not totally informed, only did some research, but I plan on going into MCMarket once I start selling some plugins.
Spigot's certainly bigger though, no denying that. We're working on some SEO stuff and have been growing quickly, but it's an ongoing and long-term process to be sure
Super glad to hear it, what's your MCM username?
Only noticed you were the owner of it now, lol. Uh, it’s MrAfonso, has nothing posted in it.
oh, sorry, yeah, that's me!
Ye, it’s fine, I mean, wouldn’t change my opinion either way
Very good 
Hi gamer!
Howdy
How's it going mr cube
I've never used MCM but always the "bad things" I've heard about "it" are actually about the reputation of some bad sellers lol
Gee, I had to pay for my own upgrade and didn't even upload anything haha
@pallid gale I'll give you 25 Premium upgrades to give away here to make up for it :^)
I was gonna release something, just never got around to it
Remind me in November when I open it up
Yeah that's fair. Our reputation has certainly been pretty fricked in the past, we've come along way since a few years ago now
Wait wut 👀
Not keen to do a giveaway before the December one?
I'm definitely keen to work out a way for us to partner up/collaborate on something
My dms are open to slide into whenever
Yep, Premium!

Oh, thanks! Really appreciate it man!
Will give it good use.
🙂
👀
Thank you!
A little late to the game, but you mentioned about the possibility of free users being able to post paid resources.
Does this mean the Seller API will still remain on the Supreme plan? (ie. for fetching things like buyer lists, etc)
you ever just add a fake player to the minecraft player list and then it tried to send packets to said fake player and then your server crashes?
it's annoying
no
i wanna try to make minecraft try to send packets to a cow
i feel like that would be funny
😵💫
Just don't and say you did
Packet Cow
pryvet
is that supposed to be like a test to see if i'm russian or not
Yes and you failed
well you're wrong because i am, in fact, russian
So we'll be structuring the payment system a little different and be bringing a first-party official Discord bot for resource authors out on our platform for people without the Ultimate API, but we won't be bringing the entire API functionality down to free users, no
it was a test to see if you thought it was a test or not
damn
Hey guys @rotund egret @oblique heath @glad linden @brazen ether can you help me out
Probably not
lol for real haha
Yeah for real haha
so I gifted my friend nitro classic but it did not have boosting
so I gifted him nitro and he accepted
but I think the classic one is still applied
so if he cancels that, will the discord nitro come into play ?
@rotund egret u there
?
?not-discord
Looking for discord support?
HelpChat is a Minecraft plugin and development support server and is not affiliated with discord in any way.
If you require support from discord, we recommend you to visit their official support website at https://support.discord.com
On this website, you can read their FAQs, or open a support ticket if necessary.
There you go 😌
That sucks brother, good luck
lmfao
no
why would you ping me
just why
because i saw that red notification thingy, and i was like "wow! finally someone might be able to help me with my pathfinding issue!" and then i'm here and i realize that i got pinged for no reason for something that shouldn't be in this discord anyway.
lmao
lol
void ToString(Character... Characters)
{
for (Integer CurrentIndex = new Integer(0); CurrentIndex < Characters.length; CurrentIndex += new Integer(1)) {
System
.out
.println(Arrays.asList(Characters).get(CurrentIndex));
}
}
Rate the java 🥵
go directly to hell and don't come back
😦
false=False + 1
def _(
_
,
) ->false :
if true:
print (
false == 0,
);
elif 1 :
print (
true == 0
);
class _(
):
0
uhhh does anyone know how to enable warn command in a server
scripts make making deluxe menu's so much easierr
i just did 1000 lines of code with an 70 line script
Litebans plugin
Anyone know what version minecraft(client) is gonna be on? Looks like its sticking on 17 for now but i cant find much online saying if thats gonna be the case till the next LTS or not
they'll most likely stay on 17 but there are no official information about that
Do you guys know a service similar to a paste service that allows to structure a paste/report with custom fields?
For example:
Config
config:
here: ""
Settings
settings:
here: ""
Uhhhh wdym custom fields?
simply just use notepad and replace all? config: -> settings:.
Let me explain better. I have this debug command that create a paste with various data, and currently everything is separated with just text https://paste.developerden.net/yvedanucub.log, I would like something where Versions, Plugins, Vouchers would be section headers and underneath it will be a text area with my data.
I think pastes.dev (sorta) has that with json/yaml/etc but I'm not 100% sure
I doubt any has the custom fields built in tho
Yeah but, Versions and Plugins are just plain text (although I wouldnt mind some highlight for Plugins with diff to make text red and green) while Vouchers is basically json
It may be easier to just run your own spinoff version, dedicated to those specific headers.
yeah
As I remember Piggy mentioning that the HC's one doesn't use a lot of memory/space, and if it's API only from your plugins then it should fine tbh.
Space is not a problem since I don't need them to persist over time
Seems like a cool project idea tbh
yeah I will play with it when I get some free time
Also really nice debug log, that’s nicely laid out. Might have a dig myself with log stuff, lots of possibilities you can do with it like markdown support etc
exactly xD it will be fun
Anyone know any good logo makers for my Server?
is there something in the spigot api to figure out how much time is left in a certain tick
a method which returns the miliseconds left before the tick exceeds the limit, or something similar
I know paper has ServerTickStart/End events you could use
Spigot.. well, spigot doesn't 
hi does anyone know of a good recommended way to start learning how to code plugins? i've had people just say "just start" but i dont find that very useful given i don't know how to haha.
There's a faq, but I forgot what it's called
Online Courses:
Online courses are also great for learning java. Some websites that offer them are:
- Coursera - Free unless you want a certificate
- PluralSight - Great courses from what I've seen. Mostly Paid
- Udemy - Never used them myself but they seem to all or at least most be paid.
My first ever course was one from Coursera. - I can say it was pretty good at introducing me to the programming world as a whole not just java.
Oracle Docs:
Oracle docs can help a lot at learning and understanding java:
- Start with this,
- Breeze through this (skipping stuff that doesn't seem relevant like bitwise operators),
- Hit this.
They're the first three from this larger thing which you should definitely go through overall. But those three should be enough for slightly better understanding of what is happening here without feeling like a huge time sink.
That one is a small part of this larger site wherein "Essential Java Classes" and "Collections" also have good useful stuff
Other services:
Some other cool services that will help you learn java are:
As you can see there are plenty of good ways to learn as long as you're willing to invest the time. Have fun learning!
probably this
ooh i'll look into that 😌
I was trying to build an old plugin of mine, when I realized Matt's repo is down for some reason, does anyone know what happened?
which repo?
you might be using the old repo
yeah for sure I was using the old repo, thank you so much Blitz
👍
Does anyone know the name of that thing that shows how your project changed over time on like a file tree graph? I can't remember if it was an IJ plugin or not
like this @errant geyser ?
No, it made a shape like this that updated every commit to show how the project grew over time
Gource?
Looks similar, I'll have a look at it
@errant geyser
Gaby sent this awhile back
Yeah it's not them
Ah alright, thought I would send it just in case.
It's pretty much exactly what I wanted yeah, thanks guys
Hello there
Advise plugins/configuration for optimization for rpg survival. 1.18.2 Purpur. Plugins from Mythic Craft are used
Can u create a nether generation with Iris plugin?
I dont know
better to ask them
why does it have a guitar
Because it rocks
question about gradle
if I have paperweight setup in the main project and I want to get it in a module
in the same project
can it be done without actually setting up pw in the module?
like I can just depend on the main project and just voila
It only needs to be applied to the module that will use it
Help how I use the tiles-entities
Quick question, so not sure what's going on, but IJ just sometimes doesn't recognize when I'm typing, like half the keyboard controls don't even work, not sure why that's happening so anyone got any ideas?

Jesus you got it fucking late
Im surprised I even got it lol
we bout to be in hacktober fest of 22 
Does anyone know how to fix my mobile data on discord? It works perfectly fine on other apps but it will not let me join any calls on discord (no route error)
shit mobile data, also this ain't a discord support server
well it sent me here lmao
What sent you here
Looking for discord support?
HelpChat is a Minecraft plugin and development support server and is not affiliated with discord in any way.
If you require support from discord, we recommend you to visit their official support website at https://support.discord.com
On this website, you can read their FAQs, or open a support ticket if necessary.
By any chance any of you encoutered this error before
Access to fetch at 'XXX' from origin 'XXX' has been blocked by CORS policy: Request header field key is not allowed by Access-Control-Allow-Headers in preflight response. when trying to make a request to API.
google CORS policy
Hell om trying to obfuscate a plugin of mine with proguard and maven but cant get it too work would someone be able to help
And why do you want to obfuscate it
as its for a custom server and i have a license inside so i dont get scammed
otherwise they can just rip the license out and use it without paying me
Payment first ;)
Never give out the jar if you haven't received payment
Provide proof of functionality though like a video or a test server.
Can't help with your obfuscator though. Never used it.
okay thank you for the advice 🙂
sheesh giga chad
Haha ly bud
Am I just stupid, or the fucks going on with velocity?
[22:54:39] [Netty epoll Worker #3/ERROR]: [connected player] WerradithIsGae (/*): unable to connect to server dev-0
io.netty.channel.AbstractChannel$AnnotatedConnectException: finishConnect(..) failed: Connection refused: /127.0.0.1:32001
Caused by: java.net.ConnectException: finishConnect(..) failed: Connection refused
at io.netty.channel.unix.Errors.newConnectException0(Errors.java:155) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
at io.netty.channel.unix.Errors.handleConnectErrno(Errors.java:128) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
at io.netty.channel.unix.Socket.finishConnect(Socket.java:321) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
at io.netty.channel.epoll.AbstractEpollChannel$AbstractEpollUnsafe.doFinishConnect(AbstractEpollChannel.java:710) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
at io.netty.channel.epoll.AbstractEpollChannel$AbstractEpollUnsafe.finishConnect(AbstractEpollChannel.java:687) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
at io.netty.channel.epoll.AbstractEpollChannel$AbstractEpollUnsafe.epollOutReady(AbstractEpollChannel.java:567) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:477) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:385) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:995) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
at java.lang.Thread.run(Thread.java:833) [?:?]
Looking for discord support?
HelpChat is a Minecraft plugin and development support server and is not affiliated with discord in any way.
If you require support from discord, we recommend you to visit their official support website at https://support.discord.com
On this website, you can read their FAQs, or open a support ticket if necessary.
I know it may not be related to minecraft but I'm doing some experiments with sockets in java, How can I access a socket object from another class?
I tried this (pass the socket object to a method with args before starting the thread):
but it doesn't seem to work
in what way does it not work
the socket is still equals to null
where are you calling pass
in the main class in a method named server
https://paste.helpch.at/bicalosele.cs
Exception in thread "Thread-1" java.lang.NullPointerException: Cannot invoke "java.net.Socket.getInputStream()" because "this.socket" is null
at me.fozystyle.lightchat.threads.server.run(server.java:25)
ok for some reason now it's working
idk what is wrong with it
now the messages aren't appearing
lol
the code looks fine, maybe something is wrong with the bf.readline?
@Override
public void run(){
try {
InputStreamReader in = new InputStreamReader(s.getInputStream());
BufferedReader bf = new BufferedReader(in);
String line;
while ((line = bf.readLine()) != null) {
System.out.println(line);
}
} catch (IOException e) {
System.out.println("An error occurred");
}
}
it looks good to me
maybe the pr.println?
public void server() {
try {
Console console = System.console();
ss = new ServerSocket(4999);
System.out.println("Waiting for the client...");
socket = ss.accept();
System.out.println("Connection established");
server.pass(socket);
server.start();
PrintWriter pr = new PrintWriter(socket.getOutputStream());
String chat = "";
while (!Objects.equals(chat, "/close")) {
chat = console.readLine();
if (chat != null) {
pr.println(finalName + ": " + chat);
}
}
Do you have any idea what is wrong?
I mean does ss.accept() actually return the proper value?
It should
Any lovely- Java / General Minecraft developers out there who’s looking for a server to help configure?
Thanks 😉
Connection refused: /127.0.0.1:32001
firewall issue most likely
or the wrong ip/port
It worked in the past like this, gotta check everything again I guess
you doing anything Docker? that tends to complicate networks a lot
Nope
huh, weird then
maybe a little ss -plunt could help in seeing what ports are binded, and if you're using ufw, liberal use of the ufw status command helps me
If you're using iptables and a default DROP policy, you should make sure you got the loopback interface on the accept list too
velocity sometimes is weird
So I am currently trying to add minimessages support for my GUI's only minin messages replies with an Component.
But how would I set that component to my GUI name and button names & lore?
You'd use Paper API
alternatively you can just serialize to the legacy character and it should work
not gonna be clicking much in a gui title are you
True, so I would need to serialize the output of the minimessages thru the legacy one and it will work?
Or you can go into reflection rabbithole https://github.com/TriumphTeam/triumph-gui/blob/master/core/src/main/java/dev/triumphteam/gui/builder/item/BaseItemBuilder.java#L118
evil
It's literally what the adventure patch does on paper
yeah but thats implementation
Still, same result, works better than using the dumb spigot legacy shit
Another question I have.
So I currently have this hologram setup;
How can I make that hologram giving out a wave effect?
ArmorStand hologram = (ArmorStand) player.getWorld().spawnEntity(player.getLocation(), EntityType.ARMOR_STAND);
hologram.setVisible(false);
hologram.setGravity(false);
hologram.setCustomNameVisible(true);
hologram.setCustomName(GSON.serialize(Common.colorize(Lang.HOLOGRAM_TEST)));```
by constantly updating the name and changing the pattern
oke thank you
I used that but than i get the json object as my text.
I want to edit the title and item names with the minimessage api but I have no idea how to go from the component to a colored string for minecraft
Well that isn't what I sent you, what I sent is using reflection the one you have is what you should do for Brister's suggestion
Instead of gson there you use legacy serializer
Oke thank you
Hello
Anyone help
why
My discord is disabled
this is not discord support
this is a minecraft help discord server
contact discord support at discord support
Oof
?not-discord
Looking for discord support?
HelpChat is a Minecraft plugin and development support server and is not affiliated with discord in any way.
If you require support from discord, we recommend you to visit their official support website at https://support.discord.com
On this website, you can read their FAQs, or open a support ticket if necessary.
read that
I just googled discord support on google
yes, did you read the description of the search result?
no
Ur names Emily stfu
🥴
now go ahead and reach out to the right people because there's literally nothing any of us here can do anything about your discord account
POV: Emily puts trans flag in her bio. Global warming is solved
ok
and?
who even claimed that lmao
Emily was a nice name 5 years ago now it’s weird idk why 💀
Ur eye looks pretty tho
thanks

when your first small command api works on the first try:
it feels weird
nothing is supposed to work in the first try
alright now the tabcompleter doesnt work
good
I have cleaned it up a bit, but that arrow code bit i think you need glasses (or you not like "else" at all in a code).
Ether way is still work in progress. But should work with no issue (most of it). So this is like deluxe menu but as a api you can build own menu plugin on (and with less work (you can use 1 file for all menus or several menu files inside 1 folder)).
You can also add own custom buttons (some you can filter out and run own code instead of commands)). and yeah you also need sort out what menu have x item/custom button (something this api can´t do because only continue half of the logic for working menu).
This could be cleaned so much https://github.com/broken1arrow/MenuSettingsApi/blob/main/src/main/java/org/brokenarrow/library/menusettings/GetMenuButtonsData.java
So that are your complain 🙂 Yeah I can do some clean up, but need ho ever check shift click before check rest of clicks (because right and left click get first in the order before shift get checked). I think on use for loop, but that could add little more delay on clicks an take it directly from a field.
I don´t clean that class yet I prioritize make it work and all functions get added and tested.
hm, have I miss something here?
isLeft/RightClick also checks for shift
yeah, but here I also need to make sure you also hold shift at same time you clicking. I mean only right or left click will also return true.
It already does that by default
Yes but need to know if you shift right/left or only right/left click. Ether way I think I find away to clean up the code ether way.
Alright
Done some cleanup on the class you complain on 🙂 will look on it more if I can improve it more (the compiled version is even a bigger mess an I have here (use else almost on every empty line 🙂 )). https://github.com/broken1arrow/MenuSettingsApi/blob/main/src/main/java/org/brokenarrow/library/menusettings/GetMenuButtonsData.java
Small extra things:
A couple naming stuff - words should be capitalized such as getClickrequirement -> getClickRequirement, menucache -> menuCache, and getMenucache -> getMenuCache
In line 52, you can just do return new HashSet<>(menuCache.getItemSettings().keySet()) and set the return type to Set<Integer>
In line 93, I think you can remove that else statement since above, you return so the else statement will always run if the click handler is null
¯_(ツ)_/¯
thanks some real complains (at least point out the errors/mistakes). yes I agree I have miss that (will fix so they will be capitalized).
That is a option, the problem (or they way I have to design it). it use list as map key, so need collect all keys from the list and after google to find the most clean way to do it (but could use set list so any duplicated slots get merged).
or will your option do that automatic?
Set doesn't have any duplicates, yes
And actually, turns out my solution won't work, but changing to Collectors.toSet will also work
Behind the scenes, HashSet uses a HashMap, and the Set is just the keys
and maps don't have duplicate keys, so that's how it avoids having duplicates (and as a result, it's also unordered, and these slots don't have to be ordered)
No they don't
source?
so a Set is just a Map ??
that is false
see?
"Trees" have nothing to do with computers
All I see is you being wrong
my glasses are coloured normally
Mans wearing them contacts
@prisma wave I'm reading your messages in the tf2 voice and it's only making it funnier.
🪞
no, actually I don't
pretty sure you do
I know my responsibilities
your responsibilities include solving global warming
No, they don't
No, I won't
I've got more important things to be doing
Now you do
You're both stupid
Frosty no one cares
yeah, I know how set is behind the scene´s (I made my own set implementation for test it out (and also added get method (some normal set do not have))).
I will test out if I can get your option work also (will not be big different more an guarantee no duplicates).
I think you have LinkedHashSet() as option if you want to keep the order
reverse engine the map 😉 yeah iterator, you don´t have index as array have so you can get right object directly. Don´t know if is other methods other an convert the key to some type of list (I try that also, but think only wast of memory also have list some get updated beside the map) 🙂
although HashSet is the most used one (in plugins at least)
edited to say HashSet though
also this reminds me
why does mapOf in kotlin use LinkedHashMap instead of HashMap
true
and it saves having a bunch of other functions
removes the need to have linkedMapOf
exactly
still exists iirc tho 🥴 ig for people that don't know that mapOf is a linkedhashmap
🙊
Can will be a bit slower with LHM an HM because the order in HM is random so if you are lucky do you hit right on the first try. But in LHM you need to go thru in order.
about HM , i made confusing mistake. In this case it needed be in order when put it inside a map, but approximately middle of the map it cut of the order (I not remember way it needed be in order). But when I finally find the error was it really confusing when I print the key´s from the map (and after like 10 minutes I understand why it did not work as it should).
the access time of both LHM and HM is O(1) due to the hashing nature, LHM just has a consistent iteration order whereas HM is not defined
the only downside is slight memory usage due to the references being held
i mean
2 algorithms can both be O(1) and perform differently
but yeah the overhead for LHM is pretty minor
Did you say that LHM is the reason why my server is lagging???
yep
Are you open for commissions?
maybe
I mean yes, but the entire point of Big Oh notation is to talk about general runtimes of algorithms
and O(1) is pretty fucking amazing generally
eventually it wouldn't be lol
asymptotically yeah
but practically no
Big O only matters when you have substantially large inputs
still, the difference between a hashmap and searching through a list for a key can add up
and besides that, I'm quite sure that LHM and HM are indexed nearly identically
cause like, that's the whole point
BM, all the women I've been with would disagree.
then you need to date smarter women
Damn, that's deep
Does jetbrains exposed have something like foreign keys?
yes
can't find in docs smth related with this
Many-to-many reference covers it I think
ah, tysm
Does exposed have smth like cache syncing? (Via messaging, or underling api which helps with pre/post-loading data)
when using runTaskTimer how do i insert the parameter Plugin plugin, it works in the main class, but not other classes, for instance in main I can just use "this"
Create an instance of the main class
that did the trick thanks
I'd react too if I could
Is it bad to create an instance of your main within another class to use the runTaskTimer
i mean i could find a different way if thats the reaction lol
Pretty sure it would explode
There should be only 1 instance of your main class, and you should pass around that instance as needed.
Thats what I wound up doing
hey guys, does anyone know if i can use this website to create my menus https://placeholderapi.github.io/DeluxeMenuMaker/
They explained in #off-topic
When making a gui, I have players unable to take items or modify the gui, but that extends over to their own inventory, is there a way to differentiate between the two?
So that I could allow them to alter their own inv but not the gui
in the event where you handle that check if the item that is being interacted with is in the inventory that matches the inventory it should be in
that should be enough
you de man
for some reason blanket setting the top inventory to event.setCancelled being true extend over
that fixed it right up
alright?
should have worded better, your fix worked, what i did messed it up with what i said above
i have always hated nulled jars so im looking to create something similar like this https://www.spigotmc.org/threads/pronerium-plugin-anti-piracy.285564/
but much less invasive and in a whole different way
idk why this whole idea receives so much hate when its entirely possible that this can become a new spigot standard
and the resource staff member just denied my proposasl about my new project similar to this
what do yall think
why not?
even if it doesnt take a bootstrap and runtime environment and stuffs but just a simple hooker to the spigot jar which deals the obfuscated plugin jar directly to the memory and using cryptographic approaches?
I'm a supporter of OS projects no matter what kind, if someone cares enough they can figure out a way to bypass it
I dont think so
If the code is obfuscated to the point where only primitive types and bit instructions are present with no boolean logic or any logic at all, something like pseudorandom code
then will people bypass it if they care about it enough?
Also if people care that much, then no premium resources in spigot should exist
because if the situation is really as in bold claims like this, then no premium resources should exist because when such a sophisticated approach can exist, then nulled jar will be everywhere for every premium resource ever
Its more like the spigot staff members and the community members are not receptive to out of the world proposals
You do realize 90% of people who would purchase your let's say premium plugin, would do so gladly as it's a way for them to support the developer, the very few who were realistically never your potential customers, are going to go through the hustle of either finding a cracked jar, or cracking it themselves in a way
What I'm saying is a lot of work/spent time for something that impacts let's say 5% of your overall purchases
hmm
if a plugin is as popular as that (the purchase in the form of support takes 95% of the total purchase), then its natural to assume that even more people use the plugin right?
because if the supporter base is this large, then its natural to assume that the actual users are much more right?
then the theoretical purchases should be much more than the purchases for now, if everyone who uses it has to buy the plugin instead of getting a nulled jar
"has to" if the person was not intending to spend money on a plugin in the first place, not being able to download a cracked jar, won't make them change the fact, they will mostlikely just find another plugin which does the same/something similar, or just scrap their idea and not use that
Also, having a obfuscated jar severely impacts the issue fixing if/when one is presented, so it just hurts the plugin overall
Which leads me to another point, instead of having a paywall for a plugin, how about we try moving in a "freemium" direction, which 90% of people will still be fine with
this is why theres a free version and premium version for plugins like mythicmob
the free version is for experience
well losing those pirated users wont do actual damage to the authors tho
like they are of no value to the author because they never paid a cent to use the premium resources
this can, alternatively, motivate rich users to buy it instead of finding nulled jars, while keeping the current purchasers and get rid of those pirated users
The only reason I see why this not implemented is because this is too much work and too much changes for all users and spigot staff members
this can, alternatively, motivate rich users to buy it instead of finding nulled jars
Not really, it's normally the "skids" that will download cracked jars, most servers/users will purchase the plugin as it allows them to get support, which is the only thing that should be charged with a plugin. So getting rid of those few pirated users doesn't help you all that much in the general sense
Hmm.. dont think this is 100% true for all plugins tho
maybe it is true with super big and old plugins which has a lot of player base and community members
but just take a look of this plugin https://www.spigotmc.org/resources/conxeptworks-model-engine—ultimate-custom-entity-model-manager-1-14-1-19.79477/
the nulled jars have almost the same downloads as the legitimate purchases
or even more actually
and for smaller premium plugins pretty sure everyone will go for nulled jars
Again, just because it has that many downloads, doesn't mean most of those people would actually purchase the premium plugin, so it doesn't benefit all the work you'd put into this for such a minimal return, while making things harder for the developer
well but cant ignore the possibility that they are very desperate for premium functions
premium resources are with better quality and functionalities
and this is what separates free and premium resources
if they are not downloading for the "premium resource" title which makes the plugin more glaring but for the actual functions, then im pretty some of them will,at least, feel compelled to pay for it
You'd be surprised
what
so you are saying they are downloading just because they are labelled premium resource?
Just make your plugin open source that requires your paid web api to work, piracy solved
What's the dogs name Charlie
considering that most of the function implementations are in-game, there are a very few things you can do with web api
unless if the implementation is so difficult that you need assist from web api for generating templates of implementations
Chico, my mums got the brother - Teddy
nice dog, but i hope the nulled jars crackers cannot null your dog and release one on blackdogs.com
Of course, I was slightly meming, but I moved away from traditional paid plug-ins to just web api focused stuff. Not had to deal with leaks now.
I built a project for example that you had to interact with on the dashboard, but required the plugin to work. It meant leakers couldn’t do anything to get round it
And hahahah
Smexy
Uhhh
That yes
Imagine not having gif embeds, noob
Nah you don't have perms cause you too low of a level
What’s dropping in 29 days Nova
Server revamp.
Oh hype :o
If I get to finish it xD
No clue what that is
We all relate 😂
Basically about a month ago my network went 💀 so then I decided to remake it- and I mean remake literally everything.
You should get FrozenJoin
What's that
An amazing plugin you absolutely need on your server
Send link
google it
Cannot be bothered
That's the shit
Good reminder need to add this to my server
How dare you not have it
I’ve got a little survival SMP 😂
@hot hull thing is right, although it's not bad, we more or less only use custom built plugins
Nah you're wrong, it's absolute dogshit lol
Open the jar with zip, open plugin.yml, change “FrozenJoin” to “NovaJoin”
Bam
Bam it’s now custom
Literally 90% of custom plugins on random servers
LOL yes
Boutta fucking shoot someone in the kneecaps
Ay finally
dude still using snapchat
Ew
I stay off the grid, I hate social media with a passion
Did you just revive a thread from 2017? lol
Yes, yes he did.
yes and no
while this does not have the actual bumping effect since this is way back in time, technically i did
just feel like responding to those inflexible claims
They seem pretty reasonable to me
those are pretty rough claims and predictions
also if they are being this strict, then 99% of enterprise licensed software would not have existed
while they could go full on critical, they could have just said that this is too much effort for minimal return or sth instead of pulling off excuses
Shouldn't really compare other software to mc plugins imo
yeah that just made no sense
they clearly just wanted to stop it at all cost like its the end of the world
could have been such a wonderful project
No, they pointed out clear reasons why it's a bad idea and would never be used on places like spigot
with hollow claims like comparing softwares and hackers from all over the world to mc plugins
"Staff can't verify if the plugins are malicious or not" sounds like a pretty good claim to me
And that's only one of them
But anyways you can't talk about their comparisons when you just did the same right above by comparing spigot with an enterprise level software
All and every spigot plugin should be OS.
nah its not enterprise level software
its enterprise level approach to obfuscate the jar code
what do you mean by os?
open source
bruh
well i guess i will have to just host a whole different site to carry out similar projects lol
screw spigot
quite fun as a sideproject regardless
And after you're done with that, you'll realize it was all for nothing
Let's say they go crazy and allow said custom JVM to be in the website
Would the dev keep it up to date? Would they provide support for things that will inevitably break?
Will they re-write the system when it inevitably gets cracked?
Do you see how this would quickly fail?
We need a malware hosting website
well at least its a milestone of my creation kinda
and no men live for anything ever :)
this is similar to bukkit, another crazy idea to inject into minecraft server jar
only thing this project is different is that the author in the post and me are all lone coder and also nobodys gonna give start-ups a try when they are alone
the essence is all the same to me
😐
I had a plugin that injected, issue is the jar always exists somewhere
They are not similar at all, you're talking about a whole different level of complexity
depends on how you view the issue
the implementation can be a lot less complex with existing cryptographic obfuscation approaches
and it can be super complex if you aim to build it from scratch
After all, its just about software design and a bit of software security if it is to reach enterprise standard
can relate, jar or even malware injection is super annoying
It has nothing to do with cryptography, I'm talking about the custom compiler and interpreter
cryptography obfuscation
in the compiler and interpreter
like transforming the original source code into another source code full of pseudo random functions
its not in the original post but i intend to try implementing it for my project
and yes, the compiler and interpreter thing is unnecessarily complex
After all, you still have to inject bytecode into jvm
And I wish you good luck
Yeah you are right, i forget both use HM (I look on the source on both methods, i think both LHM and HM was pretty similar) but LHM have as you say little extra logic to keep track of the order (if I remember it right).
Creating an instance of your main class is very much not what you should do
...
Instance, object, variable... it's exactly what he needed to do lol
no it is not
What you were describing was new MainClass() which will very much not work
"Pass an instance" and "create an instance" are very different
indeed
He got what he needed so 🤷
Also...```java
// Spigot plugin
private static <Main> instance;
public void onEnable() { instance = this; }
public static <Main> get() { return instance; }
// Normal jar
private static <Main> instance;
public void main(String args[]) { instance = new <Main>(); }
public static <Main> get() { return instance; }
It doesn't create an instance
You're simply assigning the existing instance to the field
It's not creating
shouldn't ever do that in a normal jar
I saw the unedited message 😉
yes because my original statement could've been interpreted as a personal choice, when it's an objective design choice
I can even see in some of your repos where you do that xD
where I do your "normal jar" method?
no need to do that if all code is inside the main method
I was more referring to the singleton
That i still not the same as what you sent lol
He just doesn't "variablize" it
But its cached.
???
Yes cached by his framework code
The instance is "saved"/"cached"
Do you understand the concept of static?
Yeap
Then you should know that those are not the same thing at all
Do you understand creating a new instance is still.... Wait for it... Creating a new instance 😮
Runtime -> Class created -> Main method -> new instance of main created
Yapper, new Blah() is creating an instance instance = this isn't
It's not that hard concept
it's about statically exposing a reference that shouldn't be exposed to everything
Matt... I feel like you aren't reading my messages LMFAO
Yapperyapps actually trolling
You aren't reading your own messages lol
Only difference is I initialized a variable.... piggy still creates a new instance of the main class lol Thats what I am getting at
yapps my point was that you shouldn't need an instance of your main class anywhere else
there's no reason to access the main instance anywhere apart from the main class
Thats preference. I use methods in my main class. in spigot plugins I use my main class instance in the bukkit api for runTasks and more
oh shet mate you are admin now piggy
It is not preference
It is
i remember back when you had a green name like me
no you don't
I was an admin when the level system was made
pretty sure you werent
at least not the cooler bot
from the primitive level bot or sth
we've always used barry for levels
back when barry bots werent made
gary didn't have levels
Problem is that this isn’t particularly unit testable, of course if you use weird shit like powermocks you might still be able to, but like meh
in spigot it's acceptable, because of the way spigot is designed
in a standalone program you do not have to code to spigot's flaws, it is not acceptable


