#help-development
1 messages Β· Page 2076 of 1
we are lizards
whats the vector to yeet a projectile at a location
take your time, I have weekend now anyway lol
destinationLocation.substract(startingLocation).normalize()
thx
yeah wouldnt be added until GC is off vacation anyways :((
should be here in the next 1-3 days hopefully
i wish i understood vector programming π¦
same
i dont even want to
it's extremely easy, I'll try to explain
throw a ball
sure
I'll draw something quickly
well
there is one.
it's more abut vectors in math
haahaa
yes finaly
throw a ball, the ball travels in a vector when there is no gravity
my drawing skills are extremely bad
cant be worse than mine
so imagine this
yeah
a vector is the movement from X1 to X2
idk whats happening but its just yeeting them at the speed of light and they explode somewhere random in the air
and u can invert it by multiplying to -1
... 4 dimensional movement with a 2 dimensional graphchart?
iirc
speeds past 40 get glitchy
basically calculating with a 2D vector is the same as adding numbers, but... you have two numbers
lol
just put it in your language
i didnt multiply
that makes no sense to me
(A,B) -> (X,Y) = (X-A, B-Y)
ye so u subtract
yeah, let's imagine you wanna go from "1" to "5". the difference is "5-1"
it makes sense to me
yh
its simple
and that's everything you need
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
alright i guess. i will need to do some investigating on it when im home
(1,1) -> (5,7) means "x distance is 5-1" and "y distance is 7-1" so the result is (4,6)
to see if i get it
even if i get it
but why is it yeeting at the speed of light i didnt change the speed
wait wait wait
unless ig it gets faster with more distance?
i still annoy ppl asking them for a solution to any vector programming problem i get
you have to NORMALIZE the vector
oh
i thought it did that on its own with subract
asking me?
no, you see, a vector always has a length
yes, aΒ²+bΒ²=cΒ² (kinda)
no I'm talking to Hyper
ok
yeah that greek bitch
annoyed the heck out of me
same
the yellow thing is the vector from X1 to X2
it has a length of... idk, just guessing, let's say 2
slope cough cough
the vector gets longer / larger, the more distant x1 and x2 are apart
ye ik longer = more sped
you however only want the DIRECTION, not the full length of the vector
yep
so, you normalize it. normalize means "turn the vector to a length of one"
so no matter how far apart stuff is, you have the same length vector
why is that the emoji in the corner
so yeah just call .normalize() on your vector, and that's it
(call it on the FINAL vector, not on x1 or x2)
now i need to figure out how to get the head location
give hypercodec dragonhead
i wish I could explain the vector stuff better
it'd be easy with a blackboard lol
us too
math function
discord isn't really the best place to explain geometry
that vegan teacher discord server: exists
idk about that, I mainly reside in coding and lgbt discords lol
lol
i'll write a tiny blog post about BASIC vector and direction stuff tomorrow
then dot and cross products!
also why the fuck are they curving
is that ever needed in spigot plugins though?
good question
most questions people ask here about vectors is just "how to get direction from A to B"
lol
i always just forget which way is which
like destination and starting position
lol
not offten the need to multiply and divide multiple vectors
maybe if you wer rocket boosting an arrow? - or creating a crosswind effect
a vector is the same as "going from 1 to 5"
you wanna go from 1 to 5, you add 4
and you get 4 by doing 5 - 1
so anyways how do i get the location of the dragon's head?
isn't there getEyeLocation() ?
thats what i did
its just like above them
hm I don't think you can get the exact location
I'd just substract something from the location if it's always off by the same amount
head has its own hitbox no?
yep
yeah it has getParts()
so you can get the parts, then get the head, then get the location from that
and also the fireballs explode when they spawn, how do i make it so they ignore the dragon hitbox
EntityDamageByEntityEvent or smth?
nice image
the vector starts "inside" their head
I put all my effort into it, thank you :3
so get the head location, get the normalized vector, and add it to the head location. if that's not enough, multiply the vector. idk how much is needed
so how do u get a position along the vector?
I offer $400,000 for this
oh
normalized vector of direction i suppose?
vector only has a single direction
for example:
Location dragonHead; // get it
Vector vector = something.normalize(); // Get the vector from dragon to player, and normalize it, so it has a length of one
Location startingPoint = dragonHead.add(vector); // If this is not enough, multiply the vector, e.g. vector.mulitply(2);
startingPoint is where you spawn the fireball then
oke
#help-development is more active and has more content than #general prove me the fuck wrong
depends on whether optic talks about his anti malware plugin
doesn't optic always talk about that
but yeah help-development is the reason why 90% of people join here in the first place, so it makes sense lol
anti malware plugin ...
yeah but only when he's online π
EDIT: and not afk
yes
ike have you seen my awesome images?
help development is a different community lmao
can we pin this
are we raising funds for better crayons?
just curious, what would happen if u created a sin vector and used it on smth
for the marines?
to be honest I need paper, and no crayons
for mfnalex
I have like 50 pens but I don't have a piece of paper
i think i have one pen, pretty sure the cats stole the rest
ok so that thing worked, just now for whatever reason the fireball only shoots in a specific direction
well, that's the idea of a projectile π
the vector
do you want the fireball to "follow" the player, or what?
use different vectors for different directions
to actually shoot towards it
not just randomly in positive z
show your code
follow the player and reset the start location
@tender shard
closest is the player
you set yeetvec to a vector between the dragon head and the dragon
oh
wow what the heck is this lmao
make it circular
make it more circular
so delay it? lol
poltergeist head
why not
that should work fine
that definitely makes a head move in a circle
100% can confirm
Why can't i get an entity from its UUID when it's not loaded?
i dont see how its going between the dragon and dragon head, closest is the player, and its being subtracted by the head's location vector
because it's not loaded
so whatdoido
oh okay
one second @arctic moth
lol
my guess is that the closest is another dragon part
how do u accidentally copy the wrong method
can i load it manually?
its not tho
again, ignore the paste indenting
less than 7 distance to teh dagon?
greater than
cant have it spam fireballs when its close
cuz that would be annoying as hell
oh yeah sign is the other way!
i rly wanna play chess but i suck
Vector yeetvec = dragonHead.getLocation().subtract(closest.getLocation().toVector());
ok
so why don't you just replace "1" with "10" or "5" to make it slower?
that way you can tell kids to get fucked slower
How do you get entities in unloaded chunks?
you don't
well
ACHUALLY
then they are not entities in unloaded chunks anymore
how do i load it?
TL;DR:
- You don't get entities from unloaded chunks
- If you want to, parse the world files yourself
now it shoots into the head
loadChunk() or getBlock() on a location in an unloaded chunk
alright
ooooh yeah my bad
sorry
switch closest and dragonHead
so
closest.getLocation().substract(dragonHead...
if that still doesn't work, please do this:
- Reformat your code (if any line uses more than two variables, it's too long - refactor it so that no line uses more than 2 variables)
- Send it again here
- Send a video of what currently happens
Then we'll get it fixed within 2 minutes
you may only break rule 1 to assign new stuff, e.g. the following stuff is okay:
Location loc3 = loc2.add(loc1);
if there'd also be a "loc4" there, better split it up, otherwise noone can read your code
wtf is VexedMC
prison?
actually i just realized this method i'm doing now does not need to load the entity
I only know prison from counter strike
but when the entity is unloaded it doesn't work
what do you wanna do in the first place?
hm we called it "prison"
you were either CT (prison worker) or T (prisoner) and then had to kill all CTs
and CTs may only kill you if you behaved bad
that was such a weird gamemode lmao
shit I gotta join that server IG
aight
(NestUUID):
name:
level:
locked:
members:
(MemberUUID):
role:
lastrewake:
respawn:
X:
Y:
Z:```
https://paste.md-5.net/bipayofoni.js
https://paste.md-5.net/opepavuwuz.cs
the following code produces an error when /rewake is called on a non loaded entity
but, the code that accesses the entity is commented out
or so i think
do you ever update the vector in your runnable?
seems like it always uses the initial vector
wdym? i thought it updated with the getSomething() methods
I don't know - I can't see your code π
think i found it think i found it
bro
"produces an error"
send the error, then
error messages don't have like 20 lines just for fun
they are there because they actually tell you exactly where the problem is
if you don't send them, noone can help you
oh rlly?
thought not lul
yes it did take me that entire time just to fix indents
and the if(closest != null) i screwed up the indents again
https://paste.md-5.net/atapezulow.java better indent fixing
lol
pls print out what exactly "closest" is
ok yeah i was being pepega, found the part where i accessed the entity unnecessarily
from what I see, it should correctly shoot the fireball at "closest" everytime
add sth like this in your run() method:
System.out.println(closest + " -> " + closest.getLocation));"
it seems like "closest" isn't you
with "you" I mean your player lol
player.setBedSpawnLocation(spawn);
player.setHealth(0);
this doesnt do what i intended it to do, which is make sure the user respawns in a location
declaration: package: org.bukkit.event.player, class: PlayerRespawnEvent
set the respawn location in this event
run faster
you might want to slow down your fireballs throws then
timing is fine
I'l copy paste your whole code and try for myself now
that is the only thing between you and your position diferences
you are throwing two fireballs per second based on the timestamps
yeah
me or hyper?
can't say I specifically seen this however anytime the problem occurs in native code you get something similar
saw it with the stupid fabric server i admin
lol
looks like a heap crash
@arctic moth I tried to debug your issue but it seems like my ender dragon is distracted by fucking the dirt
it seems like spawnEntity(.., EnderDragon) doesn't do anything
well ti does but the dragon is broken
missing ai or you were in creative?
broken, just like @tawdry scroll's leg
bruh I've sent a video, obviously I am not in creative π
EnderDragon dragon = (EnderDragon) event.getPlayer().getWorld().spawnEntity(event.getPlayer().getLocation(), EntityType.ENDER_DRAGON);
no I wasnt in creative when it spawned
should probably not spawn it in the overworld without the ender crystal towers
otherwise it wants to do crazy things and then eventually fly off
believe it or not, but the following stuff is valid java:
package de.jeff_media.test;
import org.bukkit.event.Listener;
import org.bukkit.plugin.java.JavaPlugin;
public class Test extends JavaPlugin implements Listener {
private static Test instance;
static {
{
{
{
{
{
{
{
{
Test.instance = new Test();
}
}
}
}
}
}
}
}
}
{
https://jeff-media.com
sayHi();
}
public void sayHi(Test this) {
System.out.println("hi");
}
}
<string>: is very weird
its basically like batch's goto lmfao
its stupid as fuck
oh you mean the label
perfect for #961533327435788348
WHUT?!
useful in loops sometimes
java would be fucked without labels
yeah itβs native from c iirc
oh no, my labels, theyre gone
ive never rly used them
how would you do this without labels?
only just seen them in a recent project i had
if im being deadass honest
couldnt you just do it without them
sure
by adding a weird boolean
like "isLoopDone"
boolean stop1, boolean stop2, boolean stop3, boolean stop4β¦
exactly
that's not really very nice, is it?
and that's the reason labels exist
you also have to take into account the compiler for some of these things
if you were to rely on the booleans that would prevent the compiler from optimizing booleans everywhere else
so people saying "labels are useless" are either a bit slow or weird or haven't really understood yet what labels are for π
so the use of the labels makes it easier to identify where those specific types of loops are at for the compiler and do their magic π
exactly
not everything is for the ease of the programmer
i remember actually using the entire boolean thing in my first java calculator project
I agree with frostalf and his weird calf
calf?
yes
inside joke >>
not moo cow, okay
mainly they are useful to break out of "larger scoped" loops
lol enderdragon doesnt work outside of the end
oh
ender dragons naturally go 0,0 in overworld
you need to override theyre AI somehow
thats bedrock edition
that is because 0,0 is where it spawns in the end world
thats java too
no whenever i spawn them the just sit there
if you spawn one far away, it will B line to 0,0ish
also the exit portal for the end is at 0,0 too
what's java too?
this alex
aaah
Maybe a recent update changed that
or a plugin stopping it
but they do kind of glitch when spawned in the overworld regardless
because it isn't really suppose to be there π
its been there since ive played java
and that was 1.13
that was the other dragon that MS scrapped
i havent spawned a ender dragon in overworld since about 1.12 or earlier
so it could be possible 1.13 or similar changed it
lemme try
the end dragon is technically 6-7 entities put together
mines doing the spinnies
yeah mine just sits still on my dev test server 1.18.2
try shooting it
you can override its ai if you rly want to
might make it do something π
maybe they axed the overworld AI for how to train your dragons
and engender
I have had an end dragon destroy towns before which is hilarious
but at the same time not so much
and how this happened is we spawned it in the over world
and it ran away
and we couldn't find it again, this was before you had a command to kill entities
but some people did find it again though
see @arctic moth he will B-line to 0 0and then do the spinny thing like yours is currently doing
so your prolly at 0 0in your world rn
mine was spinning at 500xz
maybe 2hex will write an overworld AI for teh dragon
it spins because it can't find them end crystals
interesting
the end crystal towers is how it heals
no shit sherlock
yep thats exactly what hes doing
no reason to be rude, just pointing out why it does what it does
hes trying to roost at 0.0 at the bedrock to portal
after thathe flies around normally
if I ever feel like messing with End Dragon stuff
I should make a plugin for those that want medieval fantasy stuff
where a dragon comes in to destroy their town
and their town savior needs to fend it off
or die trying
lol
despised by players everwhere
anyways can u test it in the end?
@tender shard
btw u have to be in survival
Large anger
Yes
oh god
i also made creepers strafe and instaexplode
people are gonna hate me so much when i release this
its not just nether
that adds blue flames and when you run into them or mobs do they go crazy like that
lol
did I miss sth? lmao
this video
the thread has all u need to know
that is true, but
if I'd read every message I had missed on every discord, I'd probably be dead already
the most annoying thing imho are baby zombies
π
How come when i paste code into a spoiler code block i get this shit (forums)
its so annoying
@EventHandler
public void onHopperSteal(BlockPlaceEvent event) {
Player player = event.getPlayer();
if (event.getBlock().getType() != Material.HOPPER) return;
System.out.println("foreign hopper placed");
UUID AOE = inAOE(player);
if (AOE == null) return;
if (containsMember(AOE,player.getUniqueId())) return;
Location location = event.getBlock().getLocation();
if (player.getWorld().getBlockAt(location.getBlockX(), location.getBlockY()+1, location.getBlockZ()) instanceof InventoryHolder) {
event.setCancelled(true);
System.out.println("cancelled, nice try");
}
System.out.println("did that work?");
}```
The "cancelled, nice try" if statement doesn't do what it's intended to do, it does not detect if the block above the event block is a container
thank you
block.getRelative(BlockFace.UP) btw
if (event.getBlock().getRelative(BlockFace.UP).getBlockState() instanceof InventoryHolder)
what's the difference?
More convenient than creating a Location, adding to it manually, etc.
ok cool
Arguably more readable and you're skipping the unnecessary creation of a Location
yeah
also i've had an issue where i'm trying to make a custom item spawn a custom entity, but it spawns inside the block
this looks like it could pertain to that
is there a way to make it place the entity normally?
Yeah you would just have to spawn it one block above
what about for placing it on the ceiling though
Could do block.getRelative(event.getClickedFace())
Or whatever the method is to get the face on which the block was clicked
sweet
Assuming you're using a PlayerInteractEvent, it's getBlockFace()
ye
How do i use nms in 1.18.2
Need some suggestions in #961763801869451335
Im surprised mentioning a thread actually worked
DM me if anyone can help me use NMS lol
who tag me?
They lied to me
did you install the mappings
What would happen if u make a sine wave vector and set velocity
what
what is a sine wave vector
a vector doesn't represent any path it can only represent a direction and magnitude
you can't represent a sine wave with a vector
Awww
But math functions
Btw #961763801869451335 I need more suggestions to help make my plugin more unfair and annoying
but you can represent it with multiple vectors
y(x,t)=Asin(kxβΟt+Ο) is the formula for a sine wave
hi, anyone able to help?
my issue is that when I try to create a namespacedKey to do Persistent data storage, I keep getting erros, where on the plugin I used it in before works
I get the error on this line:
public Glow(String namespace) {super(new NamespacedKey(ImbuementsMain.getPlugin(), namespace)); }
package me.nrgking.imbuements.Imbuements;
import me.nrgking.imbuements.ImbuementsMain;
import org.bukkit.NamespacedKey;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import org.bukkit.inventory.ItemStack;
import org.bukkit.persistence.PersistentDataContainer;
import org.bukkit.persistence.PersistentDataType;
these are my imports
package me.nrgking.imbuements.Imbuements;
import me.nrgking.imbuements.ImbuementsMain;
import org.bukkit.NamespacedKey;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import org.bukkit.inventory.ItemStack;
import org.bukkit.persistence.PersistentDataContainer;
import org.bukkit.persistence.PersistentDataType;
how about showing the error
No
it won't let me upload files
it isn't a buld error, its a red line in my editor
what happens if you attempt to build then?
its Object in java.lang.object can't be applied to org.bukkit.namespacedkey
java: constructor Object in class java.lang.Object cannot be applied to given types;
required: no arguments
found: org.bukkit.NamespacedKey
reason: actual and formal argument lists differ in length
well might be because you are using super
is the method Glow being overriden from somewhere else?
if not, then when you do super, you are going to end up calling methods for Object
I think its working ty
Blocking player EntityPlayer['ElonzoNachoFTW'/8, uuid='cf30783b-00c8-48c7-9c79-2270a7c7f019', l='ServerLevel[game-1]', x=-666.64, y=71.00, z=161.60, cpos=[-42, 10], tl=1319, v=true, rR=null](ElonzoNachoFTW at -666.6396443842459,71.0,161.59849194128873) from spectating invalid entity EntityArmorStand['Armor Stand'/9, uuid='ec79de42-6f35-421c-81d9-993761e951ec', l='ServerLevel[game-1]', x=-666.25, y=70.00, z=161.75, cpos=[-42, 10], tl=361, v=false, rR=UNLOADED_TO_CHUNK] getting this error when I go out of a chunk and then make a player spectate the entity after going back into the chunk
I've tried using ChunkUnloadEvent and event.setSaveChunk(true) and it didn't work]
you need to first put the player in spectator mode
That's not the error, I already did that
well, did you make sure the entity was there then
after the chunk loaded
not sure how you are doing the code or whatever it is
Yeah I see the entity, I'm in the chunk, and I can see the entity launched in the air, but that comes in the console when I tried to make the player spectate it
Using Player#setSpectatorTarget
until we can see code in how you are attempting it, we can't really provide help except just guess possible things
player.setGameMode(GameMode.SPECTATOR);
player.setSpectatorTarget(balls.get(turn).getEntity());``` Is how I'm attempting it, and it works if I don't leave the chunk and come back
the reason it makes it easier to see the code
instead of just these pieces you keep giving
is because odds are it is because you are losing the entity instance
entities technically die when a chunk unloads
so the instance you had before for the entity will not be the same when that chunk loads again
True, my bad
Ahhh that makes sense
Thank you
Or the block?
how would i go about moving any block of items to the top left corner and eliminating any space around it
like this
its a 1 dimensional array
put them in the proper slot
For a custom recipe?
yeah im making a system
to match recipes
would like to have shaped recipes work everywhere on the grid
im planning to add support for things like 5x5 grids too
so yeah
im kinda confused
do u want the recipe to only work when the diamonds are in slot 0 and 1 or anywhere
like anywhere where there is a diamond on top of another?
like if i put a diamond in 2 and in 5 do u want it to still output the item?
@glossy venture
anywhere
well if you have a shaped recipe, it should automatically detect it regardless where in the matrix
but i want them to be reduced to the smallest size with base index 0
im making my own system
its not minecraft shaped recipes
when u make ur shape do <recipe>.shape("D", "D")
shall i commit my code?
I dont think you can make a 5x5 crafting table
with a 3 dimensional you only need to look at the corresponding spots in each dimension
so if the recipe must be vertical, and it can only take up 2 slots, you know that at minimum the middle array will be used, leaving either the top or bottom array having to have something in the same spot as the middle
I probably wouldn't try using a 1 dimensional array for this lol
it should also work for structures like
D .
. D
``` though
D being a diamond
or somethign
so you just want there to be diamonds anywhere in the matrix then?
shapeless as it is called
two iron anywhere but they have to be diagonal
yeah
and horizontal
just any block that has items in it
i should probably convert it to 2d for that
well what I said applies, but only just increases the search from just top and bottom to also 1 over on the top and bottom
not sure why you would go with 2d array on this
3d array is the best for this since there is typically 3 rows in the crafting
exception to this is the player crafting slots
in which case you can easily use a 2d array for it
why would i have a dimension for every row
what
because the math is easier
its not hard to check in a 3d array for 2 things being in their corresponding spots in the array
im not trying to immediately match the recipe tho, im just trying to free empty space around the square of items
0, 1 , 2
0, 1 , 2
0, 1 , 2
if we put an item in the top array, we know for a fact there must be one in the second one, but if we detect there is no item in the top array, we know that it must exist in the second two.
so with the example above
you don't even need to iterate all 3 arrays
you could just detect its at index 0, and know for fact it has to be in index 0 or 1 for the second
thats a 2d array tho
3x3
i thought you meant like 3 nested arrays
thats a 3d array
String[][][] this is a 3d array
yeah
it is what I am talking about
you display an int[][] there right
I just used numbers to make it easier to visualize
the numbers correspond to the index in the arrays
you could do 2d array
well I need help with probably the most basic thing, but I can't figure it out in any way, so I would be very grateful if someone could give me a code example. my question is that I have a json that is on the site, the so-called hypixel api and I get player statistics from it, and I needed to do so that I have, for example, a gameTimePlayedOld variable, which should update its value, which will receive from api, for example, every 2 minutes and save them to the same variable (I already know how to get the values) and also the second variable, for example gameTimePlayed, which should be updated every 5 seconds, I understand that this is easy to do, but I have something doesn't work, can anyone help?
y
e
and array of 3 arrays
what i did to understand dimensional arrays is
String[][]
the bold text is the array type
so its just an array of the type string array
Multidimensional arrays aren't that complicated
Well, as a concept
In usage they're fucking terrible when you get past 2 dimensions
In short, I need to figure out how to make the variable update its value to the one that I set every certain amount of time
im trying to get NMS into my plugin - and i changed "Spigot-api" into "spigot" in my pom.xml, but intelliJ tells me that it
in spigotmc-repo (https://hub.spigotmc.org/nexus/content/repositories/snapshots/)
Did you run buildtools for that version?
?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
the only spigot jars that are hosted on spigots repo is the api, all others need to be obtained via buildtools, and since you are needing to do stuff with NMS, recommend visiting that link above which helps you obtain the appropriate jar as well as setting up your pom properly
Is there any inbuilt way to get how long a bukkit runnable has been executing for? For like how many ticks it's ran
when you schedule the runnable you can get the task id and then you can keep track if its still running or not
kk, not exactly what I need but it shouldn't be an issue anyway
declaration: package: org.bukkit.scheduler, class: BukkitRunnable
:p
how do i save my config file if iβm not in the main class?
get an instance of your plugin
use either dependency injection or a static instance of your plugin
okay thank you
class MyPlugin {
static JavaPlugin plugin;
onEnable() {
plugin = this;
}
}```
for example ^
then to access call MyPlugin.plugin.saveConfig()
ah okay thank you. iβll try it later. currently at school.
@EventHandler
public void blockBreak(BlockPlaceEvent event) {
Player player = event.getPlayer();
if (player.isOp()) {
event.setCancelled(false);
} else {
if (event.getPlayer().getLocation().getWorld().getName().equals("world")) {
event.setCancelled(true);
}
}
}
}```
help
please
?paste
or use code formatting with 3 "`"
Try adding debug logs though
i cant use it
probably should fix your imports
declaration: package: org.bukkit.event.block, class: BlockPlaceEvent
ah your right
your probably importing your own class
because you named it BlockPlaceEvent
probably still need to add them imports at the top
also, might want to add the spigot api dependency too
in intellij imports are automatic
did you just rename it by changing the line of code
or right click -> refactor
in intellij its better to use the refactor feature
why would they need to use refactor o.O
show the imports you use
i think i got it haha wait
intellij handles the files weirdly when you only change the class name in the file
ill show you
oh
they fixed it
nice
guess I will never know π
before it would make your class file really weird as it thought it was a seperate class inside the file
now it dynamically changes it
really nice glad they fixed that
they probably didn't like the fact that netbeans was beating them on convenience and logical features
Yeah
Probably embarrassed
i embarrass myself on a daily basis in here
like forgetting --remapped argument in buildtools
and shit talking it thinking it was mavens fault lmao
I mean that is the service provided here in a nutshell
imagine someone creates a help post on spigot
and then they delete the post after getting an answer
9*6 iirc
54 slots
yee
or is it 9 rows and 6 columns o.o
o.O
no no
i love enums
i bet no one hates them
have you tried storing a value in an enum yet zacken
there is times where enums suck
hashmap<enum, ?>
??
well storing a value in an enum is pretty much the point of the enum
indeed sometimes they do suck
especially if theyre overused
i have 600 enums in a lucky block plugin
Yea one for every outcome
bruh
i was making a vid on how to make the worst plugin
but then stopped it
i also used 2 arrays with matching index, instead of hashmap everywhere
it was a pain, mroe of a torture
did you know that enums count against the stack size limit π

use too many of them and you can crash the JVM because the stack size of the JVM is too small π
woah
I must say he learnt it from my code
adds one more point why it was the worst xD
the one method-do multiple thing its godlike
java heap: pls help me
the heap did not deserve that :((
I tried that and sent it to my friend on his bday
this is actually something were actively maintaining too
ah so we are going to kill the survivor space
guess it ain't much surviving after that
da foq
how
did u use a formatter and then deformat it?
for my commits i wrote it all on one line
π₯²
who needs an IDE when we can just commit directly
public static void t() {
Bukkit.getScheduler().runTaskTimer(JavaPlugin.getPlugin(Main.class), () -> {
throw new NullPointerException("get fucked kid");
}, 0, 0);
}
grr
who needs an computer when you can switch electrons on and off in the ssd directly
thats how technology on the first space shuttle worked
ill find a video or picture
basically why it had all them fancy switches
well, there needs to be a fancy hash in there of the class
less than 1mb of ram
who the fuck needs to write in bytecode when you can make your own program which writes itself
nvm half way this msg i forgot eevrything
ducking legends
who the fuck needs a computer when you can play a 4k video in your head
its called going outside
no, whotf needs a 4k vido in your head when you can roll the film so fast it becomes a vid
π₯²
includes touching grass
cant do
love the fact that you say colorized
implying that they were living in black and white times
haha i bet its vfx
dark mode IDE's
i used to think the world was black and white until the colour tv came in to save our eyes
I doubt you are that old
nah i m 22 not dat old
im 67
so you born when broadband internet hit the shelves
Please take care of yourself for just 2 years the highest
didn't even get to hear them awesome dial up tones
Kind of, didnt have a phone till 2012
my first coding lang was QBasic, thats how old i am
@knotty shell
md_5?
nah
is currently the oldest that I know of
hes like 24ish i think
how old is he?
It surprised me how many people don't know how old MD is
if i may know
did md make the md5 hash π
md5 hash is old as balls
if I remember he is like 54. But he is in his fifties.
what a chad
you mean Giga Chad?
da foq
frost is 30 confirmed
31
??
SO CLOSE
no
yes
yo idk why i respect older peeps ( no offence ) online who still code, like i found a 70 year old grand pa yesterday and damnthat dude was contributing to linux
its not like we magically forget
XD
its like saying you respect people who still drive cars
xD
i would prefer advice from older people tbh
which one is MD in his twitter header?
more likely to be good advice
YES
da foq
twitter images dont work the way they are supposed to
by the time im 40 ill be able to resite every line of code from spigot by memory
haha, yea. whats ur problem. ohhhh yea thats EntityCow line 298
exactly
xD
Man will have the Bukkit Scheduler wiki learnt by heart,
Yea so to make it run once you can do this and then that and then that
probably not, but you will know it very well regardless that you will be certain from memory what api methods exist or don't exist π
Now just need to wait for a new person to blow their minds in that you don't have to do everything in Java and still use it in Java π
think I need to wait like another 5 years for a new breed of developers
mmm breeding developers
just right click a developer with coffee
and wait 15 mins
okay mr record class
well might as well just pause the program if you want that
make a mod that makes this possible
π
would be so cool
Idk how to really work with RealWorldAPI
i should check the docs
everything should be string, and then the value is binary
store boolean values as strings
String isValid = "true";
if (isValid.equalsIgnoreCase("true")) // doStuff
ye no idea
why are my databases deleted and pwned
prepared statements are reallll ficking good
ooo guys
better plan
everything should be hand written
then scanned
and then printed, and then scanned,. and then run
actual menace
no its called being recursive without need
how to get tab completions working for notepad IRL version
xD IRL Version
sorry we dont support that, its outdated
we use notepad++ irl version
damn
ayo wtf
the spigot banner finally loaded for me
after like a year
oh i just print my data out in my printer
and load it with my scanner
until hp dislikes said data and refuses
my hp printer is dogshit
I have a laser printer o.o
my dad has a old AF canon lbp 2900
im basically an expert after today on my printer
I have one of them big ones, think its a Brother or Canon
so I never have issues really unless it decides to eat a piece of paper or two
does it have connectivity issues
nope
mine just doesnt wanna print shit in the queue
like ittl queue
but
doesnt print
xDDDD
hmm wonder if HP ever fixed that exploit π€
hi jet and koto
How i can launch the firework? Smth like crossbow function.
you can set the arrow projectile to a firework
is there anyone here who uses twitter
fun fact, fax machines and refrigerators can ddos people
#.launchProjectile(Firework.class)?
yeah i opened my fridge and when i closed it was slowed down a lot
ffs this is the timeline in tech twitter
- Web 3 Promoter
- Programming Meme
- Web Developer showing how hard JS and CSS are
- Web 3 Promoter
- Programming Meme
- Web Developer showing how hard JS and CSS are
- Web 3 Promoter
- Programming Meme
- Web Developer showing how hard JS and CSS are
yessir make sure to remove the arrow projectile launched from the corssbow though
seems we are due for a Web 3 promoter π

