#help-development
1 messages · Page 117 of 1
try 3.9.0
as java version?
oh
im dumb
one sec
same erropr
unsupported class file major
i remember having it too but i forgot how i fixed it
https://stackoverflow.com/questions/67079327/how-can-i-fix-unsupported-class-file-major-version-60-in-intellij-idea try these i guess
probably PEBKAC
@quaint mantle did you try actually editing the module sdk
public static boolean isLocationInArea(Location location, Location pos1, Location pos2) {
if(location == null || pos1 == null || pos2 == null) return false;
double locationX = location.getX();
double locationY = location.getY();
double locationZ = location.getZ();
double pos1X = pos1.getX();
double pos1Y = pos1.getY();
double pos1Z = pos1.getZ();
double pos2X = pos2.getX();
double pos2Y = pos2.getY();
double pos2Z = pos2.getZ();
return locationX >= pos1X && locationX <= pos2X && locationY >= pos1Y && locationY <= pos2Y && locationZ >= pos1Z && locationZ <= pos2Z;
}``` what am i doing wrong? im just trying to check if a player is inside of a area but it keeps returning false.
u need to get the min and max values for the 2 positions
e.g double pos1X = Math.min(pos1.getX(), pos2.getX());
double locationX = location.getX();
double locationY = location.getY();
double locationZ = location.getZ();
double pos1X = Math.min(pos1.getX(), pos2.getX());
double pos1Y = Math.min(pos1.getY(), pos2.getY());
double pos1Z = Math.min(pos1.getZ(), pos2.getZ());
double pos2X = Math.max(pos2.getX(), pos1.getX());
double pos2Y = Math.max(pos2.getY(),pos1.getY());
double pos2Z = Math.max(pos2.getZ(),pos1.getZ());```
like this?
What should I use instead of SetDurability?
i think its setdamage
Thoughts in my timer ( aka cooldown ) api. This is a simple command cooldown
@Override
public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, @NotNull String[] args) {
if (!(sender instanceof Player)) return true;
Player plr = (Player) sender;
Timer timer = TimeAPI.getTimer(plr.getUniqueId().toString());
if (timer != null) {
AutoTimer autoTimer = TimeAPI.getAutoTimer(timer);
Other.sendMiniMessage(plr, "<gray>Timer Testing: <color:#5de37a>" + autoTimer.getFormattedTimeLeft());
} else {
timer = new Timer(plr, plr.getUniqueId().toString());
timer.setTime(TimeAPI.addToTimespan(timer, 0L, Timer.Time.MINUTES, 1));
timer.create();
new AutoTimer()
.setTimer(timer)
.setUpdateTimer(20L)
.removeTimePerUpdate(Timer.Time.SECONDS, 1)
.createAutoTimer();
}
return true;
}
can setMetadata() be used to give an item tags?
how to use the PacketPlayOutMultiBlockChange? What are these values
check out https://wiki.vg/Main_Page
who knows ¯_(ツ)_/¯
uhh
should I use the PacketPlayOutMultiBlockChange?
if you're making fake blocks I already have code for most of that
How do you enable mmocore abilities/skills to damage players
including pasting schematics and having anti-disappear functionality
Lets say I want to fill that with stone
I mean
if they are meant to be real blocks, them maybe send the packet and update nms hella fast?
they will be fake blocks
cries on NMS 😭
@worldly ingot or other staff or peeps How do you enable mmocore abilities/skills to damage players
but basically
EditSession session = new EditSession(tracker, topLeft, bottomRight, player);
session.setType(Material.STONE)
session.apply();
would fill that area yeah
you can just port the protocollib -> nms packet stuff
cries on obfuscated
use a ShortSet instead of a short[]
use nms blockdata instead of protocollib's wrappedblockdata
ffs this is not hard at all
How would i make a thing like this in my api
testing.CodeToRun({
// Code here
})```
runnable
Huh?
just look into functional interfaces
I'm trying to use the method
sendMessage(@NotNull
ChatMessageType position,
@Nullable
UUID sender,
@NotNull
BaseComponent component)
in Player.Spigot, but it doesn't seem to exist on the 1.9.2-R0.1-SNAPSHOT version
Although the javadoc says it does
This method is part of Player.Spigot. Not Player.
Yeah, Player.Spigot
It most certainly exists ;p How are you calling it?
So if it's not there, you're likely depending on an earlier version of the API
Oh, 1.9.2, not 1.19.2
Yeah, no, that only existed recently. You don't need an associated sender
;p
Wait i thought 1.9.2 must be a typo. Nobody would use that version...
Ah it was
?scheduling
I was close
What is "custom" ender pearl
is there anyway to short this ?
like automatically get the number from perm?
getEffectivePermissions
You could just check the Item's material or make a new ItemStack from the base material and compare with #isSimilar()
can you please show a demo?
It will return a list set
So just filter it with your perm
And parse int after the.
If you want to put it into var
oh. got it i guess. Let me test
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/permissions/Permissible.html#getEffectivePermissions() Returns a Set of https://hub.spigotmc.org/javadocs/spigot/org/bukkit/permissions/PermissionAttachmentInfo.html.
call getPermission() on each and collect all those that match yoru prefix perm
Also, to add onto this, you should really use the PDC to check for custom items that you make. It's far more effective and helps prevent unintentional bugs with item names.
How can I convert from a legacy colored text to a BaseComponent?
i think there is a static method on TextComponent
Thanks
I'm trying to open eclipse, but I don't want to upgrade my java version... I am doing development for version 1.16.5
I just updated my eclipse, how do I revert?
Upgrade your java version to 17
(Latest)
And always keep your IDE up to date. Dont "revert" updates. That would be unwise.
if String != STring
Yes. Check if they are not equal... lol
if (!string.equals(otherString))
Right, but I need older version to do a 1.16.5 server
sorry yeah use equals
Pretty sure you can bypass it with a flag
Yeah, I think I'm going to just switch to intelliJ. I screwed up my eclipse IDE
Also: You can have as many java versions installed as you want and then use specific ones for each application
Reminds me now that my monitor doesn't have a shit aspect ratio I can try intellij again without the side bars taking 55% of the screen
You can adjust the sidebars tho

Even with them collapsed far it took and obscene amount of space especially with all the tool bars there
Removing all the tools bars is less than helpful though
You got a 4:3 monitor from 1998?
It was 1360x768 lol but it looked like shit
@EventHandler
public void inventoryReplace(InventoryEvent event) {
if (event.getInventory().contains(Material.RED_WOOL)) {
ItemStack[] inv = event.getInventory().getContents();
for (ItemStack i : inv) {
if (i.getType() == Material.RED_WOOL) {
}
}
}
}```
Anyone know why I cant use i.setlore() in the if statement?
Any alternatives to clearing the selected items lore?
Get the item meta
^
Note item meta is immutable
I really only needed to so I can export with supporting libraries with shading....
Maven moment
You can export from Eclipse. Why are you usign an old version? You can build for any java target
Use maven felloe developer
It works with eclipse intellij and even the Shit show that is vscode
I tried to use the M2E plugin, but It literally disappeared from my eclipse IDE... Something was messed up. I'm uninstalling and re-installing
maven is built in to Eclipse these days
Using vscode is like taking drugs you know you should stop but you can't no matter how hard you try
hi coll ❤️
Yo
For spigot development?
Should I move from IntelliJ to VSCode?
I remember moving from Eclipse to IntelliJ 😢
How do I do this? I downloaded the latest java, but my eclipse is still looking at my old version and won't open
the config.ini file?
see if it has a -vm ... line. If not add one pointing to your Java 11 bin folder -vm P:/eclipse-multimodule/JDK/jdk-16.0.2+7/bin
Which file?
yes
how can I find my java bin folder?
Intellij detects your jdks and also lets you download jdks just for programming usage
Honestly I just want to try and get my eclipse working....
I don't work in it enough to really care about Intellij being that much better. I just need to get it back working so I can finish this stupid plugin
This should be a really trivial problem.
Just install java 17 on your pc and run the server with an older java version
No no, I'm trying to get eclipse to work again after installing the new version
This
Get the installer from openjdk (Temurin). It sets the installed java version in all the important places for you.
Ok so
I'll just uninstall what I just installed so I can install it again
OR
I can just figure out where to redirect eclipse to point to the newer version of java
Still the same error message
then that path is not correct
Never mind, I fixed it. I found this same problem. It needs to be added above the -vmargs line
if (partyManager.findParty(e.getEntity().getUniqueId()) == partyManager.findParty(e.getDamager().getUniqueId())) {
e.setCancelled(true);
}
}``` this code doesn't work in an EntityDamageByEntity event. I want it to disable all damage if the player is in a party, but it doesn't work
??
Don't repeat yourself
okay
if (partyManager.findParty(entityUUID) == partyManager.findParty(damagerUUID)) {
e.setCancelled(true);
return;
}
}```
is this better
?
i could just use an && statement actually
You can still take it one step further
And then do the same process for the rest of the project
nahhh
sorry but i'm half asleep and do not have the energy to do that lmfao
anyways
e.setCancelled(true);
return;
}``` this isn't working
Yeh
the == works everywhere i use it
Are you sure that the code even gets to this stage tho
Did you register the listener
d e b u g
i could use this handy dandy thing called sout
Offline mode for testing is acceptable
no friends
i just made a plugin which simulates a player
can join, plugins can use that, etc
Where can I find your plugin? It sounds handy.
I cannot find any article/tutorial for adding the adventure mode "can break" flag to my itemMeta
How do I do this?
I have my item stack (which is a pickaxe), and item meta
whatd o u mean can break?
what are diffrence between adventure mode and survival mode
if u dont mind to give short explanation ;d
since maybe there alot easier soluation
then using an different game mode and changing events during player within in the game mode
please
do some research
i instatly found it
Yes exactly that, but how would I do it with plugins?
u just add nbt tag
to the pickaxe
😎
i would suggest not to stick to adventure game mode
instead make the plugin take care of everything
would make it way easier
as well you cloud set block AIR on breakevent if it contains an lore in the tool
there many ways
It would yea
❤️ . ❤️
u use bukkit colors
i dont think sticking to adventure game mode is really something u need
its really simple to remake the thing and break the limit the game mode adds
Also it makes the game feel much more polished
what do you mean?
i never used it in the past or even know about it existance before u asked
Not exactly. You can't easily replicate the no block break effect perfectly.
Like when you cancel the block break event it just comes back
But it still breaks for a split second
it doesnt break
And it would look much nicer if you just cant break it
Well yea thats what I mean sorry
Adventure mode prevents that by not sending the block break event.
For this, can you add NBT using the itemMeta thing?
yeah
like was said in that website i guess
its not docs so not sure if worthy but go for trial and error
and find out
I don't believe that you can add NBT data using ItemMeta directly. (Excluding PDC, but it's a different case to begin with) You'll have to use NMS for it, but it shouldn't be that bad. I might be able to dig up something in my old projects.
Can you send me the website link?
Oh ok thank you :)
google it
maybe you can do 3rd party effect
like but slow digging 255
on interact
But that effect affects all blocks.
Ok yea I see the website you are talking about, but that is for vanilla commands, I'm trying to set nbt using Spigot
why you got russian standart logo
vodka :O?
But yea that would work with the /give command
Yum
Do you think I could use some sort of NBT api?
That adds more itemMeta options
Probably, might be the smarter move, but I did find an older method that I made for 1.16.5.
ItemStack item = new ItemStack(Material.WOODEN_PICKAXE);
net.minecraft.server.v1_16_R3.ItemStack customPickaxe = CraftItemStack.asNMSCopy(item);
NBTTagCompound customPickaxeTag = customPickaxe.getOrCreateTag();
NBTTagList list = new NBTTagList();
list.add(NBTTagString.a("minecraft:stone"));
customPickaxeTag.set("CanDestroy", list);
customPickaxe.setTag(customPickaxeTag);
item = CraftItemStack.asBukkitCopy(customPickaxe);
Oh damn ok
So for the net.minecraft.server thing could I just use ItemStack?
Oh wait no I see now
No, as they are different ItemStack objects. (As denoted by the usage of the full path) This is the downside of NMS as it also restricts you to version specific code, but you could probably achieve the same result with some form of reflection.
Personally, I code version specific things, but that's just me.
block.getType() != Material.STAINED_GLASS && (block.getData() == (byte)5))
what i did wrong here
Ah ok
Alright I'll try it out thank you :D
what version
It's saying there is not such this as net
There is only one option for ItemStack
Are you using maven?
Yea
not part of the spigot-api dependency iirc
You need to depend on spigot instead of spigot-api in your pom in order to use NMS.
Oh ok
Also, what version are you developing for?
For the artifactId right? And I'm making it for 1.19.2
Yes, for the artifactId. Alright, then let me find the name conversions for 1.19.2
You'll also want to use the mojang mappings.
It's already set to spigot-api
?
spigot, not spigot-api
Ohh sorry read it wrong
Basically, the mojang mappings are the "sane" namings for the methods provided with NMS. Mojang obfuscates their code, so for the longest time, we would have to use methods like player.a.b.b.c to do things. The mappings deobfuscate those names into something much more readable.
The bottom of this post gives you the sections you would need to add to your pom.
https://www.spigotmc.org/threads/spigot-bungeecord-1-19.559742/#post-4422235
Alright, so it looks like these are the conversions when using the mappings.
NBTTagCompound ---> CompoundTag
NBTTagList ---> ListTag
I’m trying to make a plugin that gives certain items new functions and I’m wondering which option would be better, to put items and their functionality together if they have the same event listeners? Or separate them in their into their own individual classes
Personally, I think you should group the functionality together. That way if you want/need to disable a certain item, you can also remove the listeners that go along with it.
Hey guys, how to get nbt data on item?(already exist ) {version: 1.18}
So it kinda makes everything much easier to use?
Pretty much. It would be hard to justify not using it. (If it's available)
Alright
Also for changing the dependency to spigot instead of spigot-api everything just goes red
Reload your project.
Ah ok
or if that doesn't work, rescrape buildtools
Right, I would add <classifier>remapped-mojang</classifier> right?
Yep
Cool
CompoundTag#getAllKeys(); (This is NMS btw)
Is there a specific NBT tag you need?
or are you still working on saving the inventories?
Saving inventory 🥲 And I think ItemStack#getAsString is only return the string data from nbt
If you need any help with that just ask
Oh Ok I'll tryit
So I changed
<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot</artifactId>
<version>1.19.2-R0.1-SNAPSHOT</version>
<classifier>remapped-mojang</classifier>
<scope>provided</scope>
</dependency>
</dependencies>
And added the special source maven plugin and reloaded the project, but the dependency is still red
Then you probably need to run BuildTools again.
Oh, you do regardless.
You need to run it with the --remapped flag.
That way you have those mappings in your local maven repos.
Alright
I am working on a config system for a plugin I am making but I am coming across an issue.
How do I get it to not place the class location in the config for the object
Rewards: !!me.wtfblaze.mantlemc.battlepass.serializeobjects.RewardMain
items: []
Can you show your code
yeah one moment
It needs that so it knows what object the setting is
// Class Object
public class RewardItem
{
public String Item_Name;
public String[] Lore;
public boolean PremiumLevel = false;
public String[] Commands;
}
// Called from my Config Class
public static void Initialize()
{
configFile = new File(MantleMCBattlePass.Instance.getDataFolder(), "Rewards.yml");
boolean createdConfig = false;
if (!configFile.exists())
{
try
{
configFile.createNewFile();
createdConfig = true;
} catch (Exception ex) {
ex.printStackTrace();
}
}
config = YamlConfiguration.loadConfiguration(configFile);
if (createdConfig)
{
RewardItem example = new RewardItem();
example.Item_Name = "&a&lLevel: 1";
example.Lore = new String[] { "&7Reward: $500 & 1x Diamond", };
example.PremiumLevel = false;
example.Commands = new String[] { "eco give %player% 500" };
config.set("Rewards", new RewardItem[] { example });
try {
config.save(configFile);
}
catch (Exception ex){
ex.printStackTrace();
}
}
}
If you don't want that set each entry yourself instead of storing an object
Hmm.
alright I'll give it a shot
the goal I am trying to achieve with this config is to have a config similar to how ShopGUI+ does it where its a list of the items
example of shopgui+'s config: https://pastebin.com/5zXg71bi
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Well, their config is setup for manual entry. It looks like they would just loop through the sections and create everything with the provided data.
hmm alright I could try doing that
How can I update the config?
Can you be a little more specific?
as in update an existing one when you update your plugin to add more config items?
Just add more sections with #set() after you check to see if the section exists.
ok thanks
so how to get blockdata below 1.9?
is there a way
the docs told me to use getData
which seem to not work at all
getBlock().getData() == (byte)3)
so i try to get BlockData
not sure how to do it
Is there a way to create a wiki for my plugin in spigot?
you can make a github wiki
pretty sure spigto wiki is reserved for the api though i might be wrong
ok thanks
For anyone that has used adventure text, why is it so large, 2mb is very large
Is there any way to not have it so large?
(minimizing the jar isn't an option)
It's not provided in spigot.
I believe its provided in paper, I am probably wrong on that tho
regardless, I support 1.8-1.19 so I doubt adventure is in 1.8
adventure game mode?
adventure kyori https://docs.adventure.kyori.net/getting-started.html
its the size of it
that dogshit uses ton of libraries
i dont see a reason to use such a library in first place
i dont see a reason to use libraries at all... beside 3 rd plugins that require support..
from what i have seen the things this library do is nothing that is hard to achieve without a library
i would suggest re code without library if u dont like the size
u can either compromise the file using winrar
nothing else.
Or alternatively I could upload it to my website as an external source, since the problem I have is spigot won't accept large jars
no
spigot doesn't like me?
no
AFAIK, that's not true. The max upload size is 4MB, otherwise you have to use an external link.
his file is 2MB
its like the thing with obsf
no
only premium resources are allowed to do it
adventure is 2mb
dont use shit libraries have less things to deal with ;/
Tf? They have the same file size restrictions.
my friend has an anticheat within size of 6mb
i mean
wait actually
Well, there you go. 6 > 4
like luckperms?
it has a lib folder
and I can't use plugin.yml libraries because I, again, support 1.8
i use 1.8 as well
...
and what u have done
wait what are u actually trying to do
cloud u write quick concept?
I have lib called NeoUtils which has adventure embedded in it
this makes my NeoUtils 3mb
I have another plugin which uses neoutils
the size of this plugin stays around 3mb
This plugin is a config plugin which is also a lib
I use that plugin for my final plugin
so it goes above 4mb
If NeoUtils is a library that you depend on, why are you shading it into your plugin?
because I depend on it?
Instead of making it a standalone plugin library.
make it a requirement?
stop usling libs
nah
its fine
?
now deal with the size
are you trolling?
no im serious
i would understand if u use an library like HikariCP
but not what u do
💀
adventure is great is you disregard the size
my library is actually really useful
your library uses more 8 libraries
instead of worrying about size and possibly takes an hour to fix it, I would still be writing the same code
you probably abuse static as well
;/
then make it download the libarries
instead of compiling the
I don't actually, but thanks
yeah I was thinking about doing that
I mean it will take space anyway ¯_(ツ)_/¯
yeah but he will be able to upload it to spigot
lol
Goksi i was wrong about abusing libraries is not healthy
??
like this guy
got 9 libraries
to make a util plugin
Oh you can't upload large files to spigot?
you are limited yeah..
"large"
4MB or less
4mb is huge..
where tf are those libraries coming from?
adventure uses 6
lol
and u use adventure + 2
or 3
not sure i dont remember
around 7-9 100%
the only library I shade is adventure, nothing else
Bro, you gotta be trolling or smth. He only has adventure as a real dependency.
thank you
I think you have reached your limit on talking
Have a nice day 🙂
adventure minimessage is not that big
nah man he can do it only with library
let him use the library that uses 6 different libraries
just use minimessage through the library loader
then you dont need to shade it
and it automatically errors out for people on 1.16.4 or older, so you got another advantage
@EventHandler
public void playerKillEvent(PlayerDeathEvent event){
if(event.getEntity().getKiller() != null) {
event.setKeepInventory(true);
event.getEntity().dropItem(false);
}
}
This duplicates the players items when they die, it drops everything and they keep their inv how can I fix this?
do event.getDrops().clear();
ooo thanks :D

Hey Guys, can i ask 'bout how to use github?
sure
I changed the email(github) to mine and then can't commit anymore
the error message is here
0 file committed, 1 file failed to commit: Commit by SkyExcel gpg: skipped "BuildTools <inseo0121@gmail.com>": No secret key gpg: signing failed: No secret key gpg failed to sign the data failed to write commit object
how to compare bytes?
like ==?
now its stupid question
i googled
but i just cant compare block.getdata to number
sounds funny i ever printed the block to see if it actually works
cast the number to a byte?
and yes it does get the data number
block.getData() != ((byte) 5)
Chat.PlayerSendMessage(player,block.getType().toString() + block.getData());
i either sent a message to verify if im gorrectly
yes i was it does return a number
why i cannot compare it?
did you actually have any key configured and created? https://docs.github.com/en/authentication/managing-commit-signature-verification
or why the compremission dont work at all
the only soluation i get to my head is compare the output string
which is ew ;/
not yet I'll read it
like if "Stone2" == blockstring ...
which is not really what i want
yeah its hacky way to get around
you should almost never compare strings with ==
.equals
nah it was just for the example
i compare to bytes using ==
ill compare string for now
;-;
this doesnt work?
nah it doesnt
pretty sure ive also done it like this before
idk i tried everything
Should I get New SSH Key?
were going to need to see the whole error
k maing string and comparing it
worked fine
but for god sake isnt it a huge impact on performance comparing strings all time instead of comparing a byte?
tbh not sure why your byte comparing is not working
man i have no idea too its so bullshit
but i made a string out of it instead
and compared strings
and it worked
if you know its 5 and compare to 5, what does it do?
whats wrong with it then
i have no idea its why i asked how to compare bytes
because maybe there other way which is not ==
or < , >
...
comparing string eachtime is worse?
like it will be really heavy?
or not big deal sticking to what works?
i guess i was creative there lol
how often are you comparing
oh thats quite alot
300 checks a second?
or more yeah.
Is your pc from the 60s
no not really i have dedicated server with epyc 7502
It was a joke
but i move in few days to something cheap from ovh
in general 300 is not alot?
i wont feel it even?
thanks for the answer! i see no reason then to use the byte thing
ill just stick to the alternative i thinked off
of
sure but is that on top of all the other shit it has to do
other plugins, server itself
I thought we were purely talking about the comparison
pretty sure hes planning to use this in a plugin
its only 1 check will reach around 300+ per second
not talking about all the other things the plugin does
but the rest dont compare things like strings
so
😎
thanks guys
i just was thinking it will cause cpu go overheat
You know theres Byte.compare
it might work. but not rlly good practise
Yeah comparing strings is far more costyle
nah it worked with the string thing
the compare?
Byte.compare(byte1, byte2) == 0
so it will return 0,1,2
like when i compare timelapses probably
which says equals less or more
-1 0 1
Hi a question about how I can check if the user is putting in his second hand a specific item and cancel the event
@EventHandler
public void onSwapItemInHand(PlayerSwapHandItemsEvent e) {
if(e.getMainHandItem().getType() == Material.CARROT) {
e.setCancelled(true);
}
}
You are checking main hand
Not second
i need to check if the player is swapping from main to second
not from second to main
what?
from main to off hand not off hand to main
Yes thats what im saying
then its correct?
So use getOffhandItem
why if i need to get the item is being switched
is in main hand
lmao it just didnt work
"it doesnt work" isnt alot of information
wtf would one even get close to using Byte.compare for 🤔
Actionbar
Send it every tick
you have to repeatedly send it again ^
i'm having my own KingdomsPlayer class and when they quit i call KingdomPlayer::invalidate which resets their state and stops runnables etc
What error
You are starting a nrw timer for each player
Just use one timer
I could spam join and start 100 timers
Also why is your method static
it just didnt work like not sure
the compare
i guess the issue ere when i write down the byte
Byte.compare((byte) 5,blockdata) != 0
its what i tried
blockdata is basically the self block
Arent you checking if they are the same
Lol you’re not an idiot
Also snowballs and everything else that is considered a projectile
Both
alright ty
Enderpearls, eyes, tridents etc
beautiful ty
100% need to mess around with that lmao
Byte.compare((world.getBlockAt(x, y, z).getData()),blockdata) == 0 actually
no i did it correctly before
it was different check
if its not
it just doesnt work
byte data was dropped years ago. No support for this is present whatsoever.
Update your ancient spigot version.

bruh
because i actually found a way to go without it
im fine lynx
i have it working
but by comparing strings
which contain the output
which is really stupid
You literally asked for help. And im just stating that you should
not expect any help if you used outdated software from half a decade ago.
Mate you are checking byte equality with Byte.compare
i dont need your help
Idk how you are fine
I mean I asked what your end goal was
Smile is like the smartest person on this discord
Just never got a response
lol yes. Go after lynx too. He has 0 knowledge about java and wont be able to help you anyways.
What even is a byte? I only know int.
The JVM agrees with you
XD
Noice. Then use it.
i will
What is your goal then XD or are you fine with too many resources used
Oh yeah. Comparing bytes will probably lag out your server.
nah im just not sure
nah comparing strings
and around 1000 strings a second
is not really friendly
if i cloud compare 1000 bytes
it would be way less..
:/
wHat iS uR eNdGoal
i just need to compare block
within the block data
which only exists in the old versions
so the thing is
dude get the fuck out you are a fucking bastard
anyway
What ?
😎
You are mental wtf
Forgot EventHandler annotation? Is the event registered with the PluginManager?
It takes 2numbers
Ah i see. It takes 2 longs. One for the initial delay and then one for the repeated one.
Yeah we said that before
^ what smile said
I could crash your server if you gave me an hour with that code
Honestly thank god for blocking
First value is delay, second is time between
Just block them they are trolling for sure X's
You go compile your outdated docs and read them. lol.
Chill
Get a BuildTools and compile your 1.7 docs or whatever outdated garbage you are using.
so your java teacher will throw a shoe on you
im fine with outdated garbage
your code is entirly wrong
Give me a min, need to make popcorn
i dont code plugins only for old versions as well for new versions...
so please
Just a heads up:
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/scheduler/BukkitRunnable.html#runTaskTimer(org.bukkit.plugin.Plugin,long,long)
This is the method signature you need
declaration: package: org.bukkit.scheduler, class: BukkitRunnable
i have around 3 resources for the newest game versions
see you in 10 minutes again
☠️
Perfect. Then just update your current one and the solution will be simple. 😁 👍
7smile7 the resource should be in the old version... thats the old goal
you really think i prefer to use old outdated API
versus the new API?
no not really
you'd be surprised if you think that's something we can assume lol
then you have truly picked the perfect username
i think you just should go back to make roblox games using lua
or learn java
if you can understand a stacktrace
nah man for real
just at my case when i ask for help its because i got no stacktrace
Are you ysing intellij
roblox uses lua?
many games use lua
shocking that so many modding interfaces use lua
its a ugly script language like python
ctrl + click lol
nah man its lost case
Ah sent the wrong docs.
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/scheduler/BukkitScheduler.html#runTaskTimer(org.bukkit.plugin.Plugin,java.lang.Runnable,long,long)
Here it is for the BukkitScheduler. Thought you would use BukkitTask.
declaration: package: org.bukkit.scheduler, interface: BukkitScheduler
he doesnt even know to code
why you clount google it
then
for god sake
sorry for begin so rude
ctrl-p is way more convenient imo
goddamn gandalf
What does ctrl pndo
You can just ctrl and click it, no?
shows all constructors of that method
Oh cool
I use it all the time because reading documentation is for dorks and support people and I'm cool 😎
They did
Who needs docs when you have a monkey and typewriter
docs are for people who can't get intellij to tell them what's wrong
For both approaches even
thats only one parameter
You did the first one
Yes thats wrong. Look closer.
theres a comma in the screen
Not he second
oh lord he's modding skyblock
Writing a scalable skyblock plugin is a damn hard task. I actually had to fork in order to tackle the performance overhead that
comes with constantly loading/unloading worlds.
It does all the IO on a different thread now and returns a CompletableFuture<World>
yeah but writing a bad skyblock plugin is incredibly easy so who's looking dumb now?

bet you I could even make more money doing it
good luck man
with ur secret project
thats not roblox
maybe use existing plugins
they are made for people like u
is the project meant to be secret? lol
i got a good point no guys?
he deleted his code message 💀
No
ripperoni
He'll get there
i would tottaly help a person
who is really lost
and tried his best
but he doesnt try
I'm lost evan, will you hold my hand?
he think he can cook a cake with the ingredients without knowing to use the kitchen
so first learn how to use the kitchen
and later make a cake
.
and putting the ingredients together for him
not gonna help him
we are just his code slaves
at the moment
he's making the mother of all skyblock omelets here, he can't worry about every egg
I didnt see syntactically or logically faulty java. Just someone not knowing the method specifications.
Which is a bit surprising because he literally read them, but still.
no no
he doesnt know
he make a static runnable
he have no idea what he is doing
again
30 *
do 600L
good luck
with your skyblock plugin
2 digit
You mean listener. And they can be static 🤷
You shouldnt do it but you technically can.
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/
here u go
You are still using too few parameters. Slowly read what you need again and make a check after every parameter.
i dont think u made it
would I use setVelocity to change the projectile speed of a trident or is there a simpler way of doing it
I would love to see what you made so far
Yes. You can just multiply the velocity by a scalar.
why are you going into vc if you don't want to speak to anyone lol
yeah it's been like this since ages
and be ful muted
lmaoo
take a screenshot
this chat is mental
So u can't even hear shit
yall malding over a guy who messed up a method's parameters because of shitty documentation
stream on twitch
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
Bruh
facebook live
whats happening in general-1
also is there a way to alter the charge time of a trident?
I am in uranus
sure do that
sure
you'll have at least 5 viewers
ill invite my friends
u will have around 10
@quaint mantle @quaint mantle @quaint mantle
we are waiting
or bow?
yeah
how :)
what version r u on?
either you cloud make a custom item that will work simillary to trident
and make cooldown
for the spigotapi? 1.19-R0.1
i think you can change bow shot
the load up will be on client side the same
stream
stream
stream
don't think so
The charge time is client side. Hardcoded.
ah shit okay
make a 3rd party resource pack
yeah you can cheat around it using resource packs but probably not worth the hassle
probably not
you can make a different item
that will have loaded and not loaded bow
and just switch each time
and use own cooldown between shots
think of a gun for example
yeah i see the idea behind that
hey losers ping me when the stream starts, I'll be watching from mobile while having lunch
Or simply use predicates for a bow reskin. Not really viable to use multiple items.
@torn shuttle
I am
10/10 can't wait to see the next stream

