#help-development
1 messages · Page 1978 of 1
lol
For example, Set#contains is either true or false
But you sure as fuck want it to work
Like what is that logic
yes it returns true or false or null if Set hasn't been instantiated
It's not going to return null
Boolean is a primitive value
It will throw an NPE if it's null
But that's not behavior of the function that's behavior of the jvm
Anyways not going to get in this argument in what you are saying. If you want to believe every method should have a test go for it
If the behavior of a function does not matter then what is it doing in your code
guarantee you even the largest companies do not test every method
That's untrue lol
My sibling works at google and they unit test quite literally everything
I also doubt everything gets or should be tested but
I'm not arguing that you should always test everything
I still dont understand this statement
I'm saying that there are cases where it makes sense for a company to do it
Even the most "obvious" code can sometimes not behave exactly as you expect
I think noone would deny that 🙂
And for a company that large they really really cannot afford to have the code misbehaving
So they unit test everything
Test-driven development (TDD) is a software development process relying on software requirements being converted to test cases before software is fully developed, and tracking all software development by repeatedly testing the software against all test cases. This is as opposed to software being developed first and test cases created later.
Sof...
It's worth it for them to pay people to write those tests to make sure everything works to prevent bugs and failures
a simple method that can never return anything null or never be null, and it returns a boolean. If you make a test for that method then all you are testing is whether or not a boolean returns true or false. If you wanted the method to only return true, then you probably should redesign it where it doesn't have the option to be false.
well but you want to test that it returns the correct value nonetheless
if "hi".contains("hi") returns false, that's bad
contains check can return null
whut
if the string is null contains is null
how could that ever return null
yes that is called returning null
you cannot return null from a boolean method
I am aware you can't return null on a boolean in normal conventions. When a function exits regardless of the result it has returned
the only difference is when it hits null it returned early
I thought I was in heaven
hence the NPE
point being a boolean only has two states, if you want your boolean to always return true, then you shouldn't be using something that has the option to be something else
unless you want to handle if its that something else
Frost you really could have just said "sorry I meant it can throw NPE" and we would have moved on
I really don't know why you are arguing something so blatantly wrong
true but we never talked about that
Nah they are not talking about specific wrappers ig
call it throws if you want, at the fundamental level when something exits a routine it has returned
your objectmapper tries to access a protected method from outside the scope
lol I love how the eye brows only raise when you already thought it's not a gif but just a picture
how do you code
Me like how do I code
gnoogle*
gnoogle?
it's called gnoogle on this discord
alr
Well all these people are using high level languages like java? is it possible to code in binary I prefer it
minecraft plugins
ye open notepad
write bytecode :))
start typing 1's and 0's
ok I don't like using other peoples stuff so I think I'ma just start by building my own operating system and go from there
ok
Good idea
Why not make your own pc while your at it? Transistor by transistor
yea too bad I'ma have to make my own social media platform because I cba to use discord someone else made it
gonna b very lonely
Generate your own electricity...
drink your own piss........
Just build a nuclear reactor in your backyard
thats probably the least effort of all of those
before that I have to grow my own food
expensive but still
build your own house, with your own trees that you grew...
solar panels 🤷♀️
Mine your own metals
expensive as fuck tho
Well someone else probably made the dirt so we gotta start by making my own universe
god would like to have a word
Wouldn't be surprised if he has one
How does BungeeCord determine which player to send the packet through when calling ServerInfo::sendData?
Please move your discussion to #general
wasn't there some mentally ill murican who did that
isn't that what we all do when creating a new SMP world
true
ye, there has to be someone who tried that
These people man
There was also this guy who stuck his head in a particle accelerator
yep, that's the dude I meant
And that guy was russian I believe
Well, he wanted to see what went wrong
Join [THE FACILITY] right now for members-only live streams, behind-the-scenes posts, and office hours with me: https://www.patreon.com/kylehill
Twitter: https://twitter.com/Sci_Phile
Instagram: https://www.instagram.com/sci_Phile/
Artist: Masood Safdarian
Editor: Lilit Aramyan
ARIA: @ClaireMax
Smart boi: Kyle
Music: bensound.com
Sound effe...
@waxen plinth are you super duper smart
I wouldn't really want to put my head in a particle accelerator with security measures in place
I think I'm pretty good at programming though
how do particle accelerators send a single particle so accurately
or is it a stream
I think they use really strong magnetic fields
And/or lasers
Not exactly sure though
In this case I believe it was a stream of electrons
But some also accelerate individual particles
I also think something to do with fields
how do they even seperate atoms into electrons
How long have you been coding?
strong electric fields will attract different particles with different electrical charges i guess @waxen plinth
Coding in what sense
I first messed around with scratch when I was 8
Started learning lua at like 12 or 13
20 currently
Ah ok
imagine not having VBS as your first language 💀
scratch 💯
Wearing glasses makes me feel like a real nerd
Kind of in a bad way
I just got them today and they make me able to see clearly which is cool though
glasses, tight black shirt, a watch that looks gold, black sweat pants, yellow or white high top shoes
you will look like the cockiest guy i nthe world
or just extremely handsome
I wear jeans and a t shirt every single day
same
if only the outfit i just named didnt cost 1000 dollars to look good
I want glasses too but I don't want to need them
everyone at my school deadass just pulls up in a hoodie, slides, crocs or airforces, and some random sweatpants
who summoned me
Alright: Is this possible??
I want to make it so that when a player joins, their username gets added to a hashmap with a value of zero. I want it to be automatic. Its like my code writing code.
Or should I use a database for this
I'm not sure if that's possible, you could try making a listener for when someone joins and try hashmapName.put(event.getPlayer().getName(), 0) though
hm
step 1 make hashmap
step 2 player join event
step 3 add player to hashmap on join
step 4 add player leave event
step 5 remove player from hashmap when they leave
strings 
I just learnt
hash is another word for minced meat
MincedMeatMap
way better
yes
I am not native english
in germany we rather call it HACKFLEISCH
never tried that
I wonder how english people pronounce it
shwine shacks-uh
same with spanish and chinese
i can speak better turkish than latin and I never learnt turkish
english is all abreviation and slang
yuh, ye, yeah, mhm, yer
nah, no, hell na, nope
i cant think of a word that doesnt have a synonym'
most annoying thing is people writing "should of" instead of "should've"
or confusing they're, their and there
should have
the dude is over there
their dude is over there
they're over there dude
car, where is my dude
wise, you are
are u making fun of me
yuh, ye, yeah, mhm, yer
I didnt say anything
any way of getting the coordinates of the corners of the chunk with only the chunk
isn't a chunk 16 blocks
but it wouldnt work
why not?
cuz one chunk starts at -2 -2 the other at 0 0 the other at 0 -2 and the other 2 0
something like that
what
.
WHY DOES IT KEEP DELETING MY MESSAGES
I swear
It needs to stop
Where is the Spigot 1.18.1 file so I can develop a plugin using the Spigot API?
chunk corners start at the bottom left
so the bottom left corner is 0
upper right corner is 15
you are confusing two different cordinate systems here
those are chunk coordinates in relation to the region
Does someone know?
?bt
STOP DELETING OMG
Stop trying to say what I think you’re trying to say
I've used get-bukkit
XD
Bootstrap Jar
The main spigot-1.18.jar is now a bootstrap jar which contains all libraries. You cannot directly depend on this jar. You should depend on Spigot/Spigot-API/target/spigot-api-1.18-R0.1-SNAPSHOT-shaded.jar, or the entire contents of the bundler directory from your server, or use a dependency manager such as Maven or Gradle to handle this automatically.
Please read the release notes for further information: https://www.spigotmc.org/threads/9-years-of-spigotmc-spigot-bungeecord-1-18-1-18-1-release.534760/#post-4305163
So use that?
yes
Mhm
buildtools is the official way of obtaining spigot jars server and api. So to say buildtools doesn't work is false as it absolutely does work, just probably either using a wrong version, using in a directory that isn't supported, java version being outdated or some other user error.
if all you need is the API then you don't really need buildtools
you just need the spigot maven repo
So I should be able to use BuildTools to retrieve the proper files for plugin API and server making right>
?*
yes
Interesting
Does this make sense to run every time a new player joins?
No
:(
Why would you make a new map for each player
How would I make it so that there is one map?
Im not sure where I would make this command go
Make the map an instance variable somewhere
Will the hashmap save even when a server restart occurs?
Worked! Tysm
I need to save it to a file?
Is there a way to make this less wack ?
Math.min and Math.max may be useful
more worried about the if else if else if else
Im trying to setup my scoreboard and im getting this console error please help org.bukkit.configuration.InvalidConfigurationException: while scanning an anchor
in 'reader', line 26, column 9:
9: '&7&dXP: &7%player_xplevel%'
^
unexpected character found &(38)
in 'reader', line 26, column 11:
9: '&7&dXP: &7%player_xplevel%'
^"
this is what the yaml parser said ERROR:
while parsing a block mapping
in "<unicode string>", line 4, column 5:
13:
^
expected <block end>, but found '<anchor>'
in "<unicode string>", line 10, column 9:
9: '&dXP: &7%player_xplevel%'
^
i might of fixed it
Might wanna ask in #help-server since this is for developers
Do it at startup
No
But you can load legacy materials then
No idea
I assume using Material.valueOf with a legacy name might work
You may also consider using XMaterial which I assume avoids initializing legacy materials
supporting anything that isn't 1.13+
with a dirty hack 
You can’t stop them
Anyone can give me all ore list?
The wiki can
List<Material> ores = Arrays.stream(Material.values()).filter(m -> m.toString().contains("_ORE")).toList();```
probably need to ::collect there but ye
Nope you can just do toList() now
Since java 10 I believe
I learned about it very recently and it's wonderful
Oh 16?
Damn much later than I thought then
Actually shouldn't there be a tag for ores?
I think so
Where can I find the CraftBukkit and NMS libraries for my plugin?
I'm following a tutorial for NPCs, but it is auto-imported for them but not for me.
Any help would be appreciated :)
I've been looking but can't find the event called for when a chest's loot is being created
so i can add stuff to dungeon's chests or mob spawner's chests or sum
How to convert Statistic.PLAY_ONE_MINUTE to a format?
Format?
You build it via build tools then in your pom remove the -api from the spigot-api dependency
?bootstrap
Bootstrap Jar
The main spigot-1.18.jar is now a bootstrap jar which contains all libraries. You cannot directly depend on this jar. You should depend on Spigot/Spigot-API/target/spigot-api-1.18-R0.1-SNAPSHOT-shaded.jar, or the entire contents of the bundler directory from your server, or use a dependency manager such as Maven or Gradle to handle this automatically.
Please read the release notes for further information: https://www.spigotmc.org/threads/9-years-of-spigotmc-spigot-bungeecord-1-18-1-18-1-release.534760/#post-4305163
what api version was pdc added?
1.14.4
What does the PLAY_ONE_MINUTE return?
?jd-spigot
Name is misleading, actually records ticks played.
So divide by 20 to obtain the amount of seconds played on the server
I need developers who are free and know to code
(1)
I need (1) developer who is free and can code
is PlayerDeathEvent.getEntity().getPlayer() & PlayerDeathEvent.getEntity() same?
what for?
practice server
I already have 1 developer
but I need 1 more
i highly doubt anyone would work for free
?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/
Then you might need to look at the forums
Ok I have a problem
My server don't restart after crash
But in the file "spigot.yml" the option "restart-on-crash" is set on "true"
So can you help me ?
I send it in the help server too
Don't send it on multiple channels, any server related is on #help-server
No worries mate 🙂
.
anyone?
PlayerDeathEvent.getEntity() returns the killed Player already.
Calling getPlayer() returns the same Object again. Its a method from OfflinePlayer which Player inherits from.
So you can call getPlayer().getPlayer().getPlayer().getPlayer() and still have the same Object.
I think ProGuard. Why?
is there any way for Bukkit.getServer().getOfflinePlayer() to not make a web request in online mode? I'm using it to update my scoreboard and it freezes the whole server every time it updates
it makes a web request only if the player hasn't played before on the server
^
however it shouldnt lag the server either
I mean a web request can easily take several 10 ms
you can get support here, just choose the appropriate channel and ask your question
Yeah but in the scoreboard im using spaces so even if there was a player with that name they wouldnt be able to join the server
it only does that in online mode
Brr
well that is for today, if you noticed the main page shows up to the 25th
and its taking a lot more than 10ms
tomorrow it should show what you are seeing on the top @trail pilot
so 27?
yep, as you noticed the one on top is showing today, main page shows day behind not current day. So wait one more day and the top should be the bottom 🙂
I don't know what time bstats runs on so I don't know when tomorrow for it is
alright i didnt know that thanks!
What do you need to offline player for anyways?
so that i can add them to a custom scoreboard
if you are wanting to show players regardless, instead check if they have played before, if they haven't then use this code here
Scoreboards should not be handled using OfflinePlayers. They can contain any entry.
that utility class just needs to be ran in an async task or in another thread
either should work fine
how am i supposed to show Enderpearl cooldown: 5s on the scoreboard then
why you want to show offline players that haven't played before is beyond me, but I can help you do so regardless lmao
But before he can check hasPlayedBefore() he would have to get an OfflinePlayer anyways...
I suppose I have no idea what it is they are trying to do
all I can do is just show them alternative methods
I have never had getOfflinePlayer() lag a server before
the player isnt a valid player and i only need the name to show up on the scoreboard
Dont tell me you do something like Bukkit.getOfflinePlayer("Enderpearl cooldown")
pls
is that the problem?
just put the name in there yourself
Yes that is a huge problem
man i just googled some things and it said to use offline players
The methods that use OfflinePlayers are deprecated for a reason
well good thing you came here
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/scoreboard/Scoreboard.html
You can set any String you want in a Scoreboard. Take a look here. All documented 😄
If you need to show a player name that isn't a valid player, you don't need a player object to put them in the scoreboard, you can just simply put a string in there instead lol
ah 7smile7 has got you covered there lol
hi i create an potion item with custom effect, but his have no color, and the .setColor don't exist on the PotionMeta :c
Version : 1.8.8
and i search on google and i don't find anything
1.8 support was dropped several years ago. If you have issues with that ancient version then you should go dig in old
forum posts from half a decade ago.
look around 2014 or something if you need help with a year 😛
:c
you are going to need to use damage values if I remember correctly
Other than that you can just call setColor() ^^
but many server are in 1.8
Not really. Almost no server runs 1.8 anymore
but this function don't exist
its like 7%
Hypixel ?
hypixel doesn't make up the majority
that is just one network
second they have their own fork
and are not coming here for help on it 😛
x)
damage values ??
So? Do you have a team of highly payed developers that write a complete custom server jar for you and
do you need to support thousands of concurrent users?
Hypixels jar has nothing to do with Spigot anymore. It is heavily modified and maintained.
Completely different software.
Thank you very much mane i have figured it out
sweet glad you figured it out I was about to respond to your question too lol
i know, but i say, this server are in 1.8 x)
just fyi @copper trail you can use buildtools to generate the javadocs for that version
Doesnt mean you need to be on 1.8
There are several huge servers that run on 1.16.5+ like Origin Realms or Wynncraft
i was very confused on why in the documentation was no getScore function but i got it to work
And if i wan't to come players on 1.8 ?
via backwards
yes i know but..
otherwise if you want to use outdated versions you are for the most part on your own as there is no support for outdated versions let alone some of us here have forgotten a lot of the outdated methods as well XD
x)
all I remember is that most things being customized especially color requires messing with damage values or byte values of the items
1.8 has a ton of bugs in it that will never be resolved. You have no excuse to use such an old piece of software unless
your concept depends hard on the combat system and/or you can patch the server jar yourself.
yeah there is a lot of bugs in that version
Minecraft is a lot of bugs 😂
well technically all the old versions have bugs of some sort that have been resolved in later versions lol
yes its for the combat system
but what you miss out on in newer versions is very useful API methods to do things like you are wanting easily
yes i know but me and my team work in 1.8.8 for a long time
anyways as I stated if you insist on using 1.8 you can generate the javadocs for that version to look at as well as now you know the appropriate terms to google for that I have given you 😉
why generate javadocs if i can see in the jar of spigot 😂
that is basically another way of saying, you don't want to update becaues it requires learning the new methods
yes
yet you don't even know how to set colors in an outdated version either
so maybe it seems it might be worth learning and using the new methods
since updated versions have setColor()
setColor(Color)
Is dont exist !
Then update
I know I said updated versions have it
ok thx for your help, bye
also if you didn't know better you could code the API yourself for your outdated server. Not like 1.8 is going to get any updates anytime soon
Anyways cya later o/
bye
i am trying to build a plugin with nms but when i try to build it it says org.spigotmc:minecraft-server:txt:maps-mojang:1.18-R0.1-SNAPSHOT was not found in https://hub.spigotmc.org/nexus/content/repositories/snapshots/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of spigotmc-repo has elapsed or updates are forcedit only happens when i add the special source maven plugin to it. here is my pom.xml https://pastebin.com/QRGtQ4d8. i have ran build tools and with the --remapped argument. if anyone knows how to fix it any help would be greatly appreciated thanks
i google and i find what i need but not for color of potion 😂
Did you run BuildTools?
but you say "damage" for color, thx
yes and with the remapped argument
[10:46:06] [Craft Scheduler Thread - 3056/WARN] Exception in thread "Craft Scheduler Thread - 3056"
[10:46:06] [Craft Scheduler Thread - 3056/WARN] org.apache.commons.lang.UnhandledException: Plugin PvPTimer v1.1 generated an exception while executing task 39
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextNode(Unknown Source)
at java.util.HashMap$KeyIterator.next(Unknown Source)
at me.drpiggy.pt.Main$1.run(Main.java:37)
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71)
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
... 3 more
Can someone help me why i get this error?
- Make sure the versions match 100%
- Look into your maven repo to validate that the spigot src is actually there
- Verify that your IDE uses this exact maven repo
k
- 1.8 support was dropped several years ago. If you have issues with that ancient version then you should go dig in old
forum posts from half a decade ago. - Main.java line 37 <- show the lines around this one
i assume youre looping over a hashmap's keys and adding or reming items to/from the map while youre doing it, which is a no-no in java. you can get around this by adding all "to be removed" items to a list and then using removeAll
nice it build now thanks but it only gave me three jars instead of four like i was expecting. i didnt get the -remapped.jar i only got the -remapped-obf.jar should i just use the obfuscated one or is there something else i should do
he's modifing a map while iterating over it. Quite obvious
Though, what exactly happens is up in the air
Yes but depending on what he does he can use a simple MapIterator. So i wanted to see the code first.
Yeah
its worth develop a ticket system?
if you do a good one, sure why not
That is not an answerable question without any context
just asking because my friend want to make one.
for discord or ingame?
look at that
ingame
so many unless statics
he dont know whats he do
lol so isnt worth make one
someone should do a proper ticket bot for discord
all existing ones suck in one way or another
I tried to create a xls file using plugin.getDataFolder().getAbsolutePath() + "/" + TableName + ".xls" but xls file is creating in plugin dir
you shouldn't hardcode /
better use System.fileSeparator or new File(folder, filename)
File.separator i use that
its more better trust me
alright
np
I tried with // but still smae ;-;
File.separator on top!
I prefer new File(parent, name)
me too
Just updated my timber plugin to support every block so people can also configure it as a vein miner 
Gonna compete with choco
thats waht I am using now
Alternatively you can use Path#resolve
Also that works file in windows
but now working in my vps
Same. Unless its for folders.
why? works fine for folders too
hm
You may need to do plugin.getDataFolder().mkdirs()
new File(desktop, "homework-folder").mkDir(); then stuff 80 TB of furry videos inside
Some time when i started i had an issue where files got created instead of directories. Kept it this way since.
using a blockbreakevent and cant set the block type, anyone know why?
if(e.getBlock().getType() == Material.JACK_O_LANTERN) {
Location l = e.getBlock().getLocation();
ItemStack i = new ItemStack(Material.TORCH);
//e.getBlock().setType(Material.CARVED_PUMPKIN);
e.setDropItems(false);
e.getBlock().getWorld().dropItemNaturally(l,i);
}
commented out because it doesnt work
you have to cancel the event
otherwise the block will get broken
so it'll only be set to pumpkin for 0.000001 seconds
damn thats specific, but ok
it makes total sense
server works like this:
- received block brneak packet from player
- call BlockBreakEvent
- if event is not cancelled, set block to AIR and do drops
since you didn't cancel it in step 2, it goes to step 3
yea i get it
looks sick
How can i download java jdk 1.15 without logging into oracle?
openjdk
jdk 15? thats a werird version to use
java 15 is end of life since one year
wdym
1.17 requires at least java 16
https://openjdk.java.net/projects/jdk/16/ sorry but how do i download this
build tools doesn't work
?notworking
"Does not working" is a useless statement. Please describe what exactly is not working, what you expect it to do, and what actually happens. If you get any console errors, also ?paste the entire stacktrace.
ty
but
java 16 is dead too and will no longer get ANY security updates
I wouldn't dare to run that on a server
but i'm forced to use that
well you could also update to a supported java and mc version 😛
yeah but also i'm forced to use 1.17 😪 mc version
Directory + File.separator + "table.xls" still same
how do i install this java jdk zip?
there is no executable inside
@tender shard
so like this?
File parentDir = plugin.getDataFolder();
parentDir.mkdirs();
File tableXLS = new File(parentDir, "table.xls");
tableXLS.createNewFile();
Does this not work?
Let me check
I recommend putting it in your Java folder in program files, so it becomes C:/Program Files/Java/jdk-.../*
yeah there should be a java.exe inside bin
And then adding jdk/bin it to your PATH environment variable
if you need more than one java version I'd just add them to .bash_aliases
Is giving my non-root user (which runs the minecraft server) sudo access fine?
Set a player's above their head.
no
your minecraft user should only run minecraft and doesn't have any access to anything else
Should my non-root user running docker have sudo access?
no, nothing that runs any services should have sudo, why should they have it?
everything should have as few privileges as possible
@tender shard I'm confused.
Which privilege do I give my non-root user to run docker, and only docker?
add them to the docker group
And docker is run in the /home/user directory, right?
sudo usermod -aG docker docker-user
not really. docker saves it's files in /usr/lib/overlay or sth like that
it says null pointer exception and it says that item0.getItemMeta.getLore.size() >= 3 may produce NullPointerException
if(item0.getItemMeta().hasLore() && item0.getItemMeta().getLore().size() >= 3) { player.sendMessage("no 3"); return; }```
@tender shard I installed docker whilst logged into root.
Do I have to reinstall it whilst logged into my non-root user?
How do I 'run' it on my non-root user?
what exactly is SYSTEM? i know chat and actionbar, but never heard system
i think console i have no clue
i mean, it says Represents the position on the Screen, so i don't think
will this set the entity e on fire for 3 seconds (60 ticks) or 60 ticks of fire damage?
using docker? 😄
The point of my non-root user is what exactly?
i think it's how long youre on fire without going into water or smt
that it doesn't have sudo permissions?
Am I supposed to use my non-root user as my normal work user?
of course
Why?
ugh
so time, thanks
would you give your cleaning lady your bank account? no, because she doesn't need it
@tender shard So if someone logs into that user they can't 'grief' my server?
even if you trust her, there's no need to give her your bank account card
they only have access to that user then
so uh
So I should switch up my VSCode remote development to log into my non-root user?
if it doesn't need root permission, yes
I'm making a plugin which lets you copy and paste entities, chests, and player
Yes
do you guys think i should make the entities part alone and call it Pokecraft
I am going to make a library btw
Probably yes, it will be cool
then ill make this
then make Pokecraft
Btw
is it actually easy (or possible at all) to make a bossbar invisible while it's title still shows?
It’s easy with a resource pack
so in my case it's apparently not. thanks
How does BungeeCord determine which player connection to send the packet through when calling ServerInfo::sendData?
Hi, how can i picture a number with particles in minecraft? Like i have the number 3 and i want it to be displayed with particles
Thank you, thats the answer i wanted
I know i need to use math, but the question is how
Hi. Can anybody help me about the PlotMe plugin? I tried a lot and many times but for some reason I never could make it work. I would be very happy and thankful for get some help to get it done. Thank you so much ☺️
What exactly is the problem?
chat, but not from a player iirc
Thank you for being very useful
I installed the plugin and everything I should have done but when I join my server I can’t use any command like /plotme claim or anything like that.
There is a valid command but doesn’t do anything.
what version are you on?
1.18
https://www.spigotmc.org/resources/plotme-official.2131/ is it this plugin?
I also tried this but for some reason I can’t get it work. 😦
could you send me the plugin page you are using please?
this one wouldn't work because it requires versions lower to 1.13
What do you mean?
where did you download the plugin?
plotme only works for lower version to 1.13 so you should get another plugin
I used V4 because the V6 is cost money.
You right its not supported anymore but I don’t wanna believe that only the PlotSquared V6 can work… There might be something can’t be?
Or Do I really need to buy it?? And what if its not work out?
You mean not sure I need to buy it or it will work? 😄
Or is there anyone who can create a plotme plugin? I mean scripting maybe?
Yes I know it I also saw it but what I’m saying is or actually asking that this is the only one way I can have a PlotMe Plugin for my server? That I buy the V6 ?
isn't plotsquared 4 dead since a few years?
also
why would anyone use PS4
plotsquared is free
even version 6
on github
Where??
well
gotta compile it yourself
basically just clone the repo into intellij, three clicks and you should have a .jar file
Okey its hard for me because as I said I’m new abput it but I will try 😄
well I won't give instructions on how to compile it, you should rather buy it 😛
Hahaha I thought you will help me out If I’m struggle 😁
What is the name of the jar file?
And what is intellij? 🤣
structure.getEntities()
um
what happens if the entity is removed after the structure was saved
will it return a new entity that can be spawned?
thats the exact same as the entity i captured within the structure? (which died after saving the structure)
try it and see 😛
is there a limit to the cooktime of FurnaceRecipe?
Once the structure is saved, that structure is saved
The entity that’s left behind won’t have any effect on the structure
will getEntities()r
return a list of the entities back then, and a clone of them?
or do i have to place the structure, then retrieve the entity
Just create a new recipe with a normal water bottle?
do you use intellij idea
yes
type /** and press enter
it will create a template for javadocs
Applied By
DevCyntrix:
Oct 22, 2019 at 6:24 PM
Using this guide
Does the user need to install the library on the server?
or only use it as a dependency in their plugin
I don’t think getEntities will work for you
Just place the structure where you want the entity
And if you set the integrity parameter to 0, it won’t attempt to place any blocks
Which may lighten a load by an inconsequential amount and prevent cases where blocks may have been saved into the structure by mistake
aw
but like
im making a library rn
actually
ig ill find a way
with my pathfinding i am currently doing this to order the nodes in the open set. (A* btw)
public double priorityKey() {
return this.target.distance(this.location) + this.start.distance(this.location);
}
@Override
public int compareTo(Node otherNode) {
return (int) Math.signum(this.priorityKey() - otherNode.priorityKey());
}
however even if it is travelling in a straight line it does evaluate some nodes that are not at the "head" of the route
anyone else got a better heuristic for this?
How can I check if a Player is holding left/or right click and how can I make it so that he needs to click again to trigger the same event/listener?
You can;t tell teh difference between holding a click or repeat clicking
?stash
how to get an entity by location
you cant
you can get the closest entity to a location
by getting the closest entities to a location and selecting the closest
Porey :)
rn im using
return location.getWorld().getEntities().stream()
.filter(entity -> isLocationSimilar(location, entity.getLocation()))
.collect(Collectors.toList()).get(0);
Helloo, seems like you are active on here xd
Yeah I'm here quite a bit
He 24/7
I always ask and he answer with other ones
world.getNearbyEntities(location, range1, range2, range3).stream().sorted( entity -> {
entity.getLocation().distanceSquared(location)
}).collect(Collectors.toList()).get(0);
Something like this might work, granted you might have to invert the sort
sorted is to get the first values right?
Well you might be able to help me with this. So I'm facing a bug with the AsyncPlayerChatEvent, basically I am changing the format using the setFormat method but when a player types something that includes % in the chat, it just uses the default format and throws this error:
?paste
Go ahead that its what you should used to send Long text
return Arrays.stream(location.getChunk().getEntities())
.filter(entity -> isLocationSimilar(location, entity.getLocation()))
.collect(Collectors.toList()).get(0);
my new one
Optional<Entity> closest = world.getNearbyEntities(location, rad, rad, rad)
.stream()
.min((e1, e2) -> Doubles.compare(e1.getLocation().distanceSquared(location), e2.getLocation().distanceSquared(location)));
well i can use the chunk entities
instead of the whole world
cuz im pretty sure its in that chunk

as im spawning a structure with the entity, but i wanna get it
@lost matrix since you are gonna critique my code lol
But what's wrong with sending them as I did?
What does structure getEntities return?
whats the rad, rad, rad
the radius of the bounding box
a list of entities of the structure
Gets a list of entities that have been included in the Structure. The entity positions are offsets relative to the structure's position that is provided once the structure is placed into the world
Really annoying for helping
Oh okay, sorry
No problem
Yoo join the link paste code, press Ctrl + s, copy url and send it here. When needing to send Long codes
I couldn’t get it work…
What issue?
Oh damn nevermind, I just fixed it xd
I downloaded this one I got from the other person but I don’t know how to get the .jar file
https://github.com/IntellectualSites/PlotSquared/releases/tag/6.5.1
Just need to compile the Project
Have you ever develop on Java?
Cuz If never do it prob I will use terms that are not understable
I never did that 😦
I did but still xd
Maybe you can make it for me? I would be very happy for it ☺️☺️
Hmn I have watch the video from intellij youtube channel and learned most of the thing
Patching BiomeTheEndDecorator.java
Patching Block.java
Exception in thread "main" java.lang.RuntimeException: Error patching Block.java
at org.spigotmc.builder.Builder.lambda$main$2(Builder.java:644)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source)
at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source)
at java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
at java.util.Iterator.forEachRemaining(Unknown Source)
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Unknown Source)
at java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(Unknown Source)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source)
at java.util.stream.AbstractPipeline.evaluate(Unknown Source)
at java.util.stream.ReferencePipeline.forEach(Unknown Source)
at org.spigotmc.builder.Builder.main(Builder.java:595)
at org.spigotmc.builder.Bootstrap.main(Bootstrap.java:27)
Caused by: difflib.PatchFailedException: Incorrect Chunk: the chunk content doesn't match the target
at difflib.Chunk.verify(Chunk.java:86)
at difflib.ChangeDelta.verify(ChangeDelta.java:78)
at difflib.ChangeDelta.applyTo(ChangeDelta.java:44)
at difflib.Patch.applyTo(Patch.java:43)
at difflib.DiffUtils.patch(DiffUtils.java:70)
at org.spigotmc.builder.Builder.lambda$main$2(Builder.java:632)
... 13 more```
Im not on pc but i can do it then
Why is it giving an error when I run BuildTools 1.8.8?
?paste
Paste the error there
When will you be around your computer?
Prob less than 2h
Send link vía dm
Alright I dm you then. 🙂
So when I go to pc just sent you the jar
Maybe because you are running BuildTools for 1.8 which is a version from half a decade ago.
Support was dropped years ago.
Anyways:
Clean folder then try again.
Dont fuck with that
I builded 1.8.8 jar without problems
And used remap and worked
Okey thank you so much for helping me out!! ☺️☺️☺️
Why when use old version everyone cry lamoa
People use versión they like
Its not a rule uskng the Last one
🤬
because a lot of the api stuff wasnt there at that moment
because it's simply stupid
Because the community suffers severely from legacy handicaps. Thats why.
are you also still using windows xp?
no vista
github docs down uwu
Dont expect help for horribly outdated software. You are free to use it but dont
expect any help in that case. The version is full of bugs that will never be resolved.
I use a remake of an old software that someone did for using it as Nas server software
Custom jars:
Thst I would going to say
Yes unless you have highly skilled devs that can write proper patches
Isnt one jar which all versiones?
I would use MVC for Project
Server owners are the main reason why anyone still uses 1.8.9
and you can't stop hypixel from making money so
What the hex with old versions
Hypixel wont remove 1.8.9 support
I use linux 16.04 and no problems
1.8x
since more players = more ranks and cosmetics bought = more money
Why eversyones that doesnt make money doesnt like it
Really nice society
wdym
Money is mostly everything IRL, Let's be real
That what I hate from society they want everyone using and following they rules or thoughts
There really successful servers that are running 1.16.5
Wynncraft and Origin Realms for example.
And you can feel that. They deliver a completely different experience.
They're for a whole different community
Hypixel has to milk those fortnite kiddies
and as they cannot fulfill the requirements of the privilege of supporting all versions, they will not rise to the real top
and end up making other servers income multiplied by a few hundred times
:Shrug:
and look at wynncraft
even though they have spent a lot of effort and time
in their server
a very new and simple server like Minemen club has beaten them
with much less effort and time put into the server
In minemen you have all the "vividos" called by Spanish people
What do you mean by "beaten them"
What is your quantification? Do you have even the slighest idea how the
business models of any of those servers work? Wynncraft has 100% a
hugely higher win margin per unique user than Minemen club.
So how do you quantify winning?
wyncraft was nice for a month for me
where is the error 💀
?npe
O quailify winmimg based opened time, amount of player its has each month and donatioms
Dont call the method with null objects
it does send a message
so the string in config isn't null
it sends the message then it sends the error
On create Message dont adding thst var its an extra load/memory use
Very funny
No its not
Let the compiler do the inlining. This is nothing you should worry about.
It has literally 0 impact on your codes performance or memory foodprint
Are you sure?? In one command i called many times method get Config and make tps down as doing diving
So think please
Because its a Performance problem how a command will down tps
Its really funny
you are calling translateAlternateColorCodes with a null value. Thats all the stack trace tells us.
If I have an UUID string without -, how to create an UUID instance from it?
Also I dont understand your thoughs
There is a neat regex i have somewhere in my lib. One moment
Ok
Yeah you clearly dont...
You didnt answer my question...
You are ignoring it because you know its the truth
Thst what make me think
UUID.fromString(strWithoutDashes.replaceFirst(
"(\\p{XDigit}{8})(\\p{XDigit}{4})(\\p{XDigit}{4})(\\p{XDigit}{4})(\\p{XDigit}+)", "$1-$2-$3-$4-$5"
)).toString()
Wow
How?
*But it works
omg
Cause where to split?
i found the thing...
No, you'd need to use Long.parseUnsignedLong
?
Actually, not split, substring
Here is the answer to your only question: Yes im sure
Code example?
String msb = string.substring(0, 16);
String lsb = string.substring(16, 32);
UUID id = new UUID(Long.parseUnsignedLong(msb, 16), Long.parseUnsignedLong(lsb, 16));
Something along these lines
Ok thanks
If I would use that shoot my eggs literally
Too much lines for me
eh. Always those trivial approaches. Doesnt even obfuscate your code XD
to be honest, I bet most people do not know that UUIDs are 16 bytes long
Dunning–Kruger effect
Read up on that and then come back.
I love that nice thing that java cannot Interpreta encrypted ClassNode
Its amazing
yeah literally just two longs. Thats why you can split it into msb and lsbs
ClassNode as in ow2 asm-util ClassNode?
Haha just 2 longs?
In the spec it is a bit more complicated, but java represents them as just two longs
Pretty much. Just 128 random bits.
Haha nice
0 file committed, 9 files failed to commit: beta version gpg: skipped "2Hex myemail@gmail.com>": No secret key gpg: signing failed: No secret key gpg failed to sign the data failed to write commit object
Im getting this when commiting
Looks like you dont have a valid gpg key in your credentials helper but the repository requires one...
I'd just setup the signing keys again
uh how to fix that
(or you accidentally used git commit -S)
i used git commit -m
and that error was in intellij actually
so no way i did it wrong
Then perhaps you accidentally set some setting to automatically sign commits
how to fix tho
Yes class node from asm
While this is not a fix, it actually having a key to sign your commits with resolves some issues
Why would you encrypt them though?
Hmn
Well, at this point you'd encrypt the class files, not the class nodes themselves
Ohh holy shit I thought I need to encrypt each class node and them write back each class to jar
bro the shit i have to do to get a gpg key
It's rather easy on linux
But if you are on windows it's basically gg get rekt
Also from my experience commiting via IDEs has been whack
Linux it just command:
shh generate -type gpg
And its generate
Or that on my linux os
For it to make sense you'd want to add it to github afterwards. But technically gpg keys are rather easy to setup
What are you even trying to do? It makes literally no sense to encrypt any of those.
Well, technically you don't encrypt but rather obfuscate
Im having a strong feeling that he is just throwing buzzwords around because i mentioned dunning kruger...
He just stated that repeated calls of a getter method "makes his tps go down"
And then tried to call me out
I mean depending on the nature of that method and the calls to the methods, it can be justified
JavaPlugin#getConfig()
Who uses thst?
?stash
I use my file handler that extends Yaml Config
And yes calling many times a getter object can cause memory leaks
Yeah, that method has almost no impact on performance and is likely going to get inlined
See? Thats what i mean.
Dunning-Kruger effect does not apply to me, I know everything about anything
Completely factual
You are not allowed to question me
Well I know everything I want
I dont. I wont ever.
I do, I have
then you want too much
The direction of pathfind is right-> left on my screen but you can see that it is checking blocks that are further and further out from the straight line each time
Bruh y’all tryna be deep
okay, and what is this getter object?
Chill
And what are you calling?
No, what I said was objectively true
same im a total idiot
what hell is this
hahah yeah i realised its hard to "imagine" what is going on
just note, alternatively UUID's can be represented with 3 integers as well
I can imagine it
nah its flying fishes
so im trying to make my path finder work over large distances but there seems to be some issue - lemme check something rq
quzack ur that guy who was a staff on SU right
Java happens to use 2 longs for UUID's which is probably the better choice lol
No
you are
I dont see how you would ever be able to represent 128 bits in 3 ints...
because you only need 8 octets
1 int for octets 0-3 2nd int for octets 4-5 and then 3rd int for octets 6-7
Yes, I understand this fully
You need 16 octets. I dont understand what you are saying. Even with 8 octets you would only need 2 ints.
I was lying, what smile said
7smile can u help
* The most significant long consists of the following unsigned fields:
* <pre>
* 0xFFFFFFFF00000000 time_low
* 0x00000000FFFF0000 time_mid
* 0x000000000000F000 version
* 0x0000000000000FFF time_hi
* </pre>
* The least significant long consists of the following unsigned fields:
* <pre>
* 0xC000000000000000 variant
* 0x3FFF000000000000 clock_seq
* 0x0000FFFFFFFFFFFF node
im struggling with git
Any version but version 1 doesn't make use of node
Isnt v2 standard now since forever?
technically yes, but at minimum you only need 8 becaues the other 8 can just be random or not random.
minimum required:
time-low = 4hexOctet
time-mid = 2hexOctet
time-high-and-version = 2hexOctet
clock-seq-and-reserved = hexOctet
clock-seq-low = hexOctet
node = 6hexOctet
I did a mistake
