#help-development
1 messages · Page 1824 of 1
use the graph or whatever above to figure it out
Hey guys, I am already searching so long for this.. Now I got a new api built with BuildTools.jar and Git (the latest one, so 1.18.1..) but I figured out I can't import anything of it (JavaPlugin/etc...) Do you know how to fix my problem? As IDE i am using Eclipse (dunno if that's important)
Whats the correct way to create a Dyed Item like a Glasspane in 1.8, the Constructor with the byte for the color is deprecated
couple things
if you look at your server jar
Change the metadata using setMetaData @young shell
is the code somewhere else and its a isolated library loader?
Have you tried running remapped option for buildtools?
Each color is a different material
and also how are you importing it
I got it in a seperated workspace folder.
@young knoll Yeah but besides that you can just use setMetaData as well and dye it like that i think.
Only in later Versions, sadly not in 1.8
@paper viper I use the import function of eclipse
Oh you want it for 1.8
smh
Yeah
The proper way was with MaterialData, but using the byte is fine
@young shell Now I'm pretty sure I've done it for 1.8 using the metaData (method: setMetaData)
Ah MaterialData yeah
MetaData 🤣 Im sry
Not like the byte is going anywhere
Yeah, don't like using deprecated stuff tho
You say this using 1.8
There's no other known way you gotta use setMaterialData..
I used to do it that way with eclipse
You really should use a build system
It saves you so much time and effort
What do you exactly mean with that?
How should I start to setup such stuff
Back then it was so easy why did they changed it xD
anyone know the protection multipliers for 1.8?
Pretty sure the wiki only shows post-combat update
Believe me, I hate working with 1.8 as much as you do
anyoen know the answer to this or a way to get around it?
yeah setData seems to be the way. is there an Implementation of MaterialData that I can use with Stained Clay or one for Glass?
@young shell
ItemStack i = new ItemStack(Material.STAINED_GLASS_PANE, 1, DyeColor.LIGHT_BLUE.getData());
This is one way you can potentially use it.
Is there a method instead of getData() thats not deprecated
Is there an easy way to add a map to a list in the configuration?
why am i getting this error https://pastebin.com/WbyYjS4c from
Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/jdbc-video", "<user name>", "<password>");
Statement statement = connection.createStatement();
ResultSet resultSet = statement.executeQuery("select * from people");
while (resultSet.next()) {
Bukkit.getLogger().info(resultSet.getString("firstname"));
}
} catch (Exception e) {
e.printStackTrace();
}``` yes the sections exist and i tried this on a normal java project and it worked fine but when making it a spigot project it isnt working
and my maven is
``` <dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.27</version>
</dependency>```
Well you could use instead of the method just a regular integer, which you just cast to a short and use instead of that method. That's another way, but both ways end up being deprecated I think
@young shell Why aren't you fine with deprecated stuff? Just add SupressWarnings lol
Because usually it's not good style to do it. So if there is a non-deprecated way to do something, I prefer that
I already did that but didn't found anything helpful
But I'll just use that deprecated Method
Of course it's a better style, but if there's only a deprecated method which can be found, I recommend you to prefer using that rather than keep searching half an hour for it, which you could invest into your further plugin development 😄
However, everyone got to decide that for himself.
If this was a normal scenario I would keep looking
But in this case you have 0 risk of the deprecated method being removed
True
Thanks man
use this to deprecate stuff KEKW
Set that up earlier today, but didn't actually think anyone would do that
I'll use the deprecated stuff
😄
Yeah, but I don't expect people to pay money to someone they don't know
I often donate little amounts to ppl if I got the money left lol
Level 20
Thanks man. I'll pay it forward if I can
xD yeah that's how I deal with randoms lol
I like that way to depict age
😄
Still didn't figure out how to deal with this silly apis
Gosh it's so freaking frustrating they should have just kept it the way it was
It was so easy and uncomplicated importing stuff to your Java project
And now they made an entire university topic out of that.
For the love of god change it. It's crap
Whats the issue
Did you read https://www.spigotmc.org/threads/534760/
Thank you @sullen marlin
anyone know why this is happening?
w...w8 do I understand this right? You got to download Java 17 so it works?
Or do you have to pay attention to anything else?
You know I don't want to read the entire article including the xml script ._.
Your MySQL server doesn't appear to be up..
Does the server have mysql installed and running
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 use a dependency manager such as Maven or Gradle to handle this automatically.
That MySQL Driver Version bump was definitely needed
Why
a mysql database?
lol
@sullen marlin Can you also gain such a bootstrap using the same BuildTools.jar you are using to download the actual api itself? Also, is it possible to get a bootstrap file for PaperSpigot as well? 😮
Not on localhost?
Why is there no tutorial to do this... Like things have changed a lot and still there's no random guy on YouTube showing how the new stuff works
Use the correct IP and database name in your code
my database is on the mysql workshop though
so why would i use that if i cant modify the data in it
Still don't get why the dev team of Spigot didn't just kept the libraries in one jar, that's much more uncomplicated! That way you don't need an external manager such as Maven or Gradle or however they're called....
Because Mojang didn’t keep the libraries in one jar?
And I still dunno how to setup such stuff cuz there's no one showing how to do that. Back then when I started coding with Bukkit, people explained things, now you gotta go to school to get used to it or what..
Because then people would be complaining that we did keep them in one jar
@young knoll Yeah but Spigot did that previously all the time
@sullen marlin Why would they? xD
fat jar
There are hundreds of people who will show you how to set up maven/gradle
🤢
spigot being outdated and not following mojang!!!!!!!!!
whatever we do is always the wrong move
Is there an easy way to add a map to a list in the configuration?
yeah and maven/gradle are generally just superior whenever you start to actually code software
Hell, you can probably find a full build.gradle or Pom with a bit of searching
is someone complaining about spigot using maven :kek:
Find an open source 1.18 plugin and look at its build file
If not I can do that
channels:
- name: global # The name of the channel. This will be what the player sees.
sameworld: false # If players should be in the same world in order to see messages in this channel.
distance: -1 # How far players must be from each other to hear them.
# A value less than or equal to 0 means infinite.
# If sameworld is false, distance will scale 1:8 for the Nether, and not at all for the end.```
My config.yml looks like this, whats the best way to add a map to the list?
okay im using real spigot now, and this is the error that i ran into the first time i tried this, hence the reason i switched to spigotclip.
when i enter the "1.17" version in the .bat for buildtools, i always run into this error
*** Please note that this is a beta feature, so if it does not work please also try a manual install of git from https://git-for-windows.github.io/ ***
Could not successfully run git. Please ensure it is installed and functioning. Error running command, return status !=0: [C:\WINDOWS\system32\cmd.exe, /D, /C, git, --version]
Press any key to continue . . .```
the list being channels
The entire spigot webpage's design is outdated and it seems like it also got no updates for ages.
cope?
Also a tutorial related to the spigot api? -.-
what about it is outdated?
It’s not really any different than any other project
Like I said, you can find tons of examples from open source plugins
@sullen marlin The content is alright, but the design is just oldschool, now take a look at lots of webpages which had a huge gap in between some years related to it's design!
seems perfectly fine to me
It needs more auto play videos and ads over the content
@young knoll Gosh no I got my adblocker for a reason XD
i agree the design is old school, but tbh u cant expect something like spigot to focus on webdesign 💀
Okay let's say I got Maven setup for Eclipse. What then? I still need a bootstrap library which I kinda attach to Maven, don't I? Where do I get that from?!
well did you try following what the message said
hello, how i can verify if player has item in hand in PlayerInteractionEvent in Material?
u said u couldnt help me
Check both hands for null or air?
Could not pass event PlayerInteractEvent to KMaquinas v1.0-SNAPSHOT
org.bukkit.event.EventException // if i try without item in hand
Check event.getItem != null?
@quaint mantle Yeah that's what I'm thinking of but less people will use Spigot if it's divided into several parts you gotta watch more tutorials for. Like some years ago, you created a Java Project, and imported ONE API and you were good to go and could start to code fun projects. Now you gotta go through brainfuck and download multiple files, and some addons like Maven or whatever that is
no you dont
Lol it’s still one dependency
thats kinda what im going through rn tbh
Spigot/Spigot-API/target/spigot-api-1.18-R0.1-SNAPSHOT-shaded.jar
My Code
@EventHandler
public void onBlockInteract(PlayerInteractEvent e) {
Player p = e.getPlayer();
Block bloco = p.getTargetBlock((Set<Material>)null, 5);
if(p.getItemInHand().equals(Material.AIR)) {
Inventory i = (Inventory) Bukkit.createInventory(null, 9, "§b§lMenu da Maquina");
p.openInventory(i);
} else {
ItemStack hand = p.getItemInHand();
if(bloco.hasMetadata("Maquina")) {
List<String> loresList = new ArrayList<String>();
loresList.add("§f");
loresList.add("§fCombustivel de Maquinas!");
loresList.add("§fTempo: 1 Minuto");
loresList.add("§f");
if(hand.getItemMeta().getDisplayName().equalsIgnoreCase("§eCombustivel 1MIN") && hand.getItemMeta().hasLore() && hand.getItemMeta().getLore().equals(loresList)) {
startMachine(bloco.getLocation().add(0, 0, +1), p, bloco);
}
}
}
}
private void startMachine(Location l, Player p, Block b) {
ArmorStand as = (ArmorStand) l.getWorld().spawnEntity(l, EntityType.ARMOR_STAND);
as.setGravity(false);
as.setCanPickupItems(false);
as.setCustomNameVisible(true);
as.setVisible(false);
Bukkit.getScheduler().scheduleSyncRepeatingTask(plugin, new Runnable() {
int Seconds = 20;
@Override
public void run() {
if(Seconds >=0) {
Seconds--;
as.setCustomName("§eRestam §f" + Seconds + " §esegundos.");
b.getLocation().getWorld().dropItem(b.getLocation(), new ItemStack(Material.SPONGE));
}
if(Seconds == 0) {
p.sendMessage("§cAVISO → §fO combustivel acabou!");
as.remove();
}
}
}, 0, 20);
}```
if you were depending on the server jar not the API you were doing it wrong to begin with
@sullen marlinwhat do i do, you didnt tell me anything
I already told you what to do
please also try a manual install of git from https://git-for-windows.github.io/ ***
We bring the awesome Git VCS to Windows
@quaint mantle Same here and I'm tired of setting up something for spigot plugins for like 2 hours XD
Where do I get Maven from? can i just rely to the eclipse marketplace?
If you don’t want to use a build tool just depend on the right jar
spigot-api.jar
Spigot/Spigot-API/target/spigot-api-1.18-R0.1-SNAPSHOT-shaded.jar
repeated several times
plenty of jars available there too
Yo relax, I got to follow 2 ppl besides spam in the chat, you and Coll.
It's not that easy when 5 ppl write in the same time and sometimes write multiple times in seconds.
However, thanks for your effort..
Guess I will make a bookmark on my browser for such a link so I won't miss it for future things. Thanks.
How i can verify if is RIGHT click?
Use PlayerInteractEvent and ask for the Action of the event.
how
Using an if case? 😄
"PlayerInteractEvent"
e.getAction()?
Yes
ok
Use == to compare it with Action
this return "RIGHT" and "LEFT" ?
I didn't do that for a while think it was smth like that. Action.RIGHT_CLICK
Should be an enum you compare to the Action of the event which you get returned using your previously mentioned method (e.getAction())
Watch a few tutorials, they cover most important events such as the PlayerInteractEvent as well.
At least you made it to setup your Spigot Workspace, not like me, a member for years being fked up atm.
Yeah RIGHT_CLICK_BLOCK is the correct value for the Action you're looking for.
Trying, wait
Like adding the spigot libraries
Entire desired example:
public class Events implement Listener {
@EventHandler
public void onClick(PlayerInteractEvent e) {
if (e.getAction() == Action.RIGHT_CLICK_BLOCK) {
//Do your other stuff here.
}
}
}
Think I don't need to mention that the imports at the class head are important as well, you should know that already ^^
Don't forget to use the PascalCase to name your classes!
THX U VERY MUTCH
No problem.
<3
@sullen marlin Sorry that I ask, but can I actually download the lib using your pasted website? Like all I can find is an xml script for Maven but not a download btn for the lib itself.
you can find it in buildtools Spigot/Spigot-API/target/spigot-api-1.18-R0.1-SNAPSHOT-shaded.jar
otherwise there is the jar and shaded jar links in the side of that website
Aight I just found a different link on a small lable lol
Clicked that tiny label
Think that will do it as well, right?
or the download button in the bottom right
Oh wow.
Haha that's so tiny I gotta zoom in xD
Yeah the shaded didn't work for me, but the normal one did I just mentioned on the screenshot.
Thanks man 🤗
@sullen marlin in gitbash it says "Error: Unable to access jarfile buildTools.jar"
😐
Correct Java Version?
yes its 16
Okay
actually its 17
Uh system path correct?
whatever still works
uh
the command is just
java -jar BuildTools.jar --rev 1.17
Yeah but is your system path correct xD
isnt that where like you have to set your java path in your system or something??
nvm i see it
Yup
AHA
Lmao
same error ive gotten for like 10000 years
Also why are external server emotes forbidden on spigot discord? LOl
Yeah I had change my path in the environment variables not long ago
isnt this just so fun
Ɛ>
Please try comment your error messages out like that
ik i forgot
Just much more readable 😄
"error: could not write config file C:/Users/james/.gitconfig: Permission denied" run as administrator?
Java Version: Java 17
Current Path: C:\Users\user\Downloads\BuildTools\.
git version 2.34.1.windows.1
Git name not set, setting it to default value.
error: could not write config file C:/Users/james/.gitconfig: Permission denied
Exception in thread "main" java.lang.RuntimeException: Error running command, return status !=0: [git, config, --global, user.name, BuildTools]
at org.spigotmc.builder.Builder.runProcess0(Builder.java:964)
at org.spigotmc.builder.Builder.runProcess(Builder.java:895)
at org.spigotmc.builder.Builder.main(Builder.java:249)
at org.spigotmc.builder.Bootstrap.main(Bootstrap.java:27)
Wait so you gotta boost so you gain access to all server emotes? Bruh..
should i disable antivirus
lmao thats not good if the creator doesnt even know whats going on ha
Run as admin or grant access by changing the properties of the file!
@quaint mantle No that's not necessary. As long as there's no Java Virus detection you won't need to do that.
spigot is one of the most infuriating things ive ever dealt with
tf u mean file owner
@quaint mantle Nah old spigot is fine
how do i do that
KEKW
I had a question... Im trying to track the movement of a fireball. I really just don't want to use a scheduler because of keeping track of the tasks and such... I was wondering if any event was triggered when a fireball moves. I know EntityMoveEvent only tracks LivingEntities... so thats not helpfull. I really just dont wanna use repeating task... I willl if I have to but i jsut wanted to see if you guys have any ideas
EntityMoveEvent isn’t even spigot
Right click on the permission denied file > Properties > Security Tab > Extended > Change label (little blue label next to the Owner of the file)
No, there is no event for that because it would be incredibly heavy on the server
Should look kinda like that @quaint mantle
oops you're right thats paper thats awkward
LUL
um so I will be leaving now
gn8 😄
lawl
Can you actually just code your spigot plugins and import them into your paperspigot server without any doubts or are there a few things to consider
okay
Spigot plugins work on paper
For now
how i get a ArmorStand by location in world?
ok so this is what i have right
now what
@thick gust
then
Try to watch out if you have multiple users, if so, use the admin one.
World.getNearbyEntities and check for instanceof armorstand
If you only got one user, then you are good to go!
Uh
Class not found
Try type in "Admin" into the textbox
I using spigot 1.8
Does it give you an error?
What class
getNearByEntities not found
Click ok, then if the windows closes, click apply, and then keep click okay.
Also make sure your directory your file is located in, is not read-only!
okay i claimed it
Good.
Ah world probably didn’t have a get nearby entities in 1.8
You can only use it on an entity
You can get Entities by World
how
Spawn a dummy entity or loop over all entities in the chunk and check the distance
getWorld().getEntities() i think? 😄
Don’t brother with the entire world
KEKW
i hate this software so fucking much
I told you make sure you applied your changes AND your directory your file is located in is read-only
We just told you
It's not a software, it's a library you can develop cool plugins with once you set it up 😄
@quaint mantle Don't you know your OS ? XD
bro im not a developer
i dont know this shit
im trying to host a server for my friends
i just realized im in the wrong channel
well shit
? '-'
What do i use to change a players skin server side only ofc
That's how you remove the attribute read-only for your file.
thank you
Spawn a dummy entity or loop over all entities in the chunk and check the distance
Make sure you did that for your file itself AND the directory, the file is located at.
its already turned off tho
For directories, it's the same step you just repeat.
Try to do it then for the directory of the file
ok
If that's turned off already as well I don't know any other fix but running your git as admin...
ok i turned that off in the directory
I hope you know how to start things as admin xD
yes yes im not that entirely dumb lol
omg
XDDD
this shit is ass
Did you start your git as admin? This really seems like it's not run as admin
bloco.getLocation().getChunk().getEntities() ?
Mhm
I know that's a dumb question but it's an important question lol
Cuz if it's not admin it won't work
but how do you run it as admin in the directory tho
thats what i dont know hwo to do
YOU SAID YOU KNOW IT XD
Isn’t it in the right click menu
LISTEN
what?
Yes
RIGHT CLICK MENU SECOND ENTRY XD
WHAT
You could run it as admin and then cd to that folder
what
omg
You won't have success without being calm
i am going to git bash my head in
Clam
.
Just use my command.
ok
Already told him twice now @drowsy helm
r u kidding me
I am not.
Okay last try
you did cd twice
did oyu just wake up or something lmao
i did
oyu
oyu
Did you just wake up?
thats it
okay if cd c/users/James/Downloads/BuildTools does not work just try it in several steps:
cd c
cd users
cd James
cd Downloads
cd BuildTools
It sucks but that's another way.
capital U
Think about if ur user is starting with big letter or small letter
isnt it C: ?
what
is my pc cursed
Maybe
For the love of god stop cry
works fine?
I haven’t really seen anyone else have issues with the portable git version
Yeah that could be it
a
Press Windows Key + E and please tell me if your main drive is called C @quaint mantle
Could not pass event BlockBreakEvent to KMaquinas v1.0-SNAPSHOT
org.bukkit.event.EventException
Caused by: java.lang.ClassCastException: java.util.stream.ReferencePipeline$2 cannot be cast to org.bukkit.entity.ArmorStand
at me.koddydev.kmaquinas.events.BreakBlockListener.onPlayerBreakedBlock(BreakBlockListener.java:22) ~[?:?]
it is C
@quaint mantle Please give us THE ENTIRE ERROR, and not just the description..
What on earth are you trying to cast
Refer to what buoobuoo wrote. @quaint mantle
anyways you're casting a stream to armorstand
how would I check if the fireball is destroyed is Fireball.isDead() valid?
cd /c/james/Downloads/BuildTools
sounds like it
Either isDead or !isValid
Yes it is.
cool thanks
FINALLY
You could also check if the Fireball is null
Not actually sure what isValid does
XD
isValid should be checking if its null @young knoll
wut
the entity wont turn null just like that
i did that before
cmd in admin
like the instance itself will always be the instance
cmd wasnt working
ah
I suspect they have some security settings
at me.koddydev.kmaquinas.events.BreakBlockListener.onPlayerBreakedBlock(BreakBlockListener.java:22)
@quaint mantle
Also if it was null isValid would throw an NPE
ArmorStand as = (ArmorStand) Arrays.stream(bloco.getLocation().getChunk().getEntities()).filter(entity -> entity.getLocation().equals(bloco.getLocation().add(0, 0, +1)));
ill try cmd again
yuh
since i changed security of the directory
Yeah you can't cast the return type of the stream method to an ArmorStand 😄
@quaint mantle
no worries
@quaint mantle Bro it's completly wayne if u try cmd or Git XD
That means it works
you can send a code example ?
@quaint mantle Do you want to spawn an ArmorStand at a specific location in a world, or what?
They want to get the one at that location
i need to REMOVE
can someone just send me a server file thats complete and ill just fix it myself
because this is actually pissing me off
No that’s illegal
bro what
we legally cannot
im done
Arrays.stream(bloco.getLocation().getChunk().getEntities())
.filter(entity -> entity.getLocation().equals(bloco.getLocation().add(0, 0, 1)))
.findFirst()
.ifPresent(Entity::remove);
@quaint mantle then maybe?
Trying
May want to use distanceSquared over equals
time after time and time and time its literally the same error what the fuck is happening
yeah coll probably good idea
i love streams
yuh they're lit
if i want to make a plugin where it (oversimplification) adds 1 to a number every second, should i make it save the last time a command was run by a player (every number would be different for every player) and then calculate how much to add by the difference in time?
fr just boutta host vanilla and say fuck this
unless someone or something can help
but rn nobodys got anywhere
yeah that would be most efficient
aight bet
nobody is there
yeah your predicate is a bit too pedantic
then dont move channels lol
other alternative is a scheduler every second but eh
Crawled the forums and couldn't find a definitive answer: is there a way to SET permissions? not just get them
Did I tell you?
dumbass 🤦♂️
Not with the API
Use vault
just realized i can use my db
i didnt, i accidenally was already here lmfao dont act like u been here the whole time
ArmorStand as = (ArmorStand) bloco.getLocation().getWorld().getEntities().filter(entity -> entity.getLocation().equals(bloco.getLocation().add(0, 0, +1)));
@quaint mantle
ignore the "not removed"
that'd still yield ClassCastException
And also you are adding on the Z not y
Did I tell you?
about?
Argue
Sus
oh pog
😠 who deleted argue lol
Conclure found love!
@quaint mantle Still don't get why you used Arrays.stream method lol
thx
so i guess nobody knows whats wrong
InteliJ :v
@quaint mantle Np but you told that Conclure lol
STOP ASKING HERE
@quaint mantle xD
@somber hull Pls fix ur icon, it looks damn ugly
i know lol, my friend made it and i told him to fix it and he hasnt responded
#help-server it is
i was already here on accident and i was already gettinghelp here so i was just like ok then
@somber hull So just fix it urself in 30 sec? LOL
im lazy
yeah understandable
@quaint mantle That's okay just ignore him lol xD
Does anyone know if it's possible to have intellij display chat colours? I'm running a spigot server inside of it
it is
well that makes more sense lol
tho Idr exactly how
@wide solstice Just use §2
okay, do you know of anything that else that could fix this issue? i actually subrouted it before, i was using 1.16.5 and i just used spigotclip and it worked but now im using 1.17 and not even spigotclip is working so
@wide solstice Use regular chatcolors but replace & with §. There's a method to use alternating chatcolors. ChatColor.translateAlternateColorCodes('&', "&2Test");
pretty sure you can find a plugin for that
@quaint mantle Wait you got it fixed didn't you? XD
no i got the same error again
yuh
@quaint mantle You can stop a runnable by it's task id.
dont use the build script provided by spigot, its very broken
what should i use?
first, download the buildtools jar, or use curl to download it
wait let me open a thread
ik i already have it
@crisp arch It's totally fine xD Nothing's broken on that. Otherwise they would update it immediately!
so for anyone who’s used protocol lib as a dependency, do i just use the regular protocol lib plug-in or is there an api somewhere cause i can’t find much info on it for some reason (might be how i’m searching it)
Just the plugin
okay thx
the plugin is the api itself
i wanted to make sure before i did it in case it wasn’t lol
That wouldn't work, they get compiled down to the same thing
Any ideas where to look? I couldn't find any
No they don’t get compiled down to the same thing
However yes the string will be the same "§"
@wide solstice Why is that not working for you? You simply try displaying a chatmessage using chatcolors right?
Does some1 know how to get the title of an inventory? previously you could get it with getTitle() (method of the Inventory class)
It's cause it's in the IntelliJ run window
@wide solstice Oh uh in cmd u display colors with "color COLORCODE" Example: color 02 would be green. it got the same chatcolors like in minecraft i think. so also 0b etc..
InventoryView
Event.getView.getTitle
Please don’t use title to identify inventories
@young knoll ? What should be another easy way lol
@young knoll Colored inventory titles are impossible for normal users u know that dont u? XD
InventoryHolder 
- Another plugin may use the same name
- Some plugins allow users to add colors to item names, which are retained when a chest is placed
MD will find you :p
@quaint mantle
Example:
BukkitTask repeatingTask = new BukkitRunnable() {
@Override
public void run() {
//Your stuff
}
}.runTaskTimer(**instance of your plugin**, 0, 5L);
int repeatingTaskId = repeatingTask.getTaskId();
Bukkit.getScheduler().cancelTask(repeatingTaskId);
That should be it.
Let’s have a party then
repeatingTask.cancel();

Curious I'm not at PC and i won't be for a while but how it look to save an hashmap with element hashmap in yamlconfiguration
Element hashmap?
Earth, wind, fire, water, and hashmap
🌞
I’m a hashmap bender
- I won't ever add plugins I did not code myself xD
So you don’t have LuckPerms or anything like that?
Nope.
😔
I just test plugins on a localhost server and that's it.
PermissionsEx was my most favourite plugin for perms
🌝
Pex is great
What did worldguard do
You can claim your area @young knoll
Eh?
PEX bro
@young knoll People cant grief it
Yeah?
btw they may release 3.0
@young knoll Survival feature lol xD
I mean I would use pex if it wasn’t so bad in terms of performance and ux
I use worldguard for spawn and areas where I want fine control via flags
Pex 3.0 best
my mans #general smh
so idk if we can love it like old times lul
LuckyPerms is just shit
I were thinking hashmap<string, hashmap <String, object>>
True
yeah but not that complex
A plugin does not have to be complex.
LP has a nice web editor
Pex got groups. That's enough. 😄
How would this look then saving on yamlconfiguration
bold of you to assume its shit
You can just code your own better version of Pex / LuckyPerms. Both aren't the best perm plugins u can get
id like to see u code something better
No PC access rn
XD
@paper viper Trust me if I would put time into developing such shit i would make a better project
Mhm, thats what they all say
isnt hashmap saving in yaml mostly is just
String:
Object: idk```
@paper viper Mhm i just say stfu
do you know what storage format luckperms uses
🙂
Hey there, anyone know the armor defense levels for 1.8? I could only find the 1.9+ ones on the minecraft wiki
@paper viper Probably mysql / yaml like all plugins do.
The values for the armor bar?
:ancient:
🐵
@paper viper Wooow so special 🌟🌟
Wooowww
Thank you
🌞
Shoot, actually forgot to say in my message that I was talking about the protection enchant
@paper viper Seriously developing a custom file format is super easy I did that when I was 13.
Ah
LuckPerms is decently engineered however in contrast to pex it’s so much better in every possible aspect
that isnt look right
@paper viper That's not why LuckyPerms should be better than Pex KEKW
there is no absolute reason why you have to be this arrogant lmfao
@paper viper There is. You said i cant code it better but I can so fuck you ☺️
@paper viper Shaddup fking kat main go smd xD
Really?
Show me then
wait it is right lul i
Jump into 5 ppl penta kill Yees
LP supports, redis, rabbitmq, mysql, postgresql, mariadb, sqlite, h2, split flat file of yaml, json, hocon and toml.
nope
Whatever
Augh
string: object```
Its at the level of you ask yourself whether lucko is even a human
Can someone please tell me the 1.8 protection enchantment levels
Guys
i dont even play ahri anymore XD
Got it working : ), I just ended up changing the run config to use a bash script instead
Why are you two arguing over league champs in the spigot #help-development discord
Thb i can't confirm A t M on mobile
Fire Protection, Blast Protection, Protection @woeful crescent
Yup
Because we both think they are hot
Okay look
Mundo is the only hot one
league champs are hot
Now shut
cait is hot and pyke and i am hot
? I meant the defense percentages for the protection enchantment
Ur not hot, in germany we call it Schrott LULW
Nah Jayce is hot
Not sure anyone knows, maybe wayback machine the wiki
🚒
Look back at the edit history of the Minecraft wiki
Should tell you what you need
got it, that's a good idea
Ah yeah that works too
yeah i remember the serialization of location is a hashmap<string, int> with one of the string being x and int is some number, and then it store like that
I hate ppl saying go look it up on google. So fuck yu 🙂
I didn’t mention google?
@paper viper Where for the love of tyler fucking 1is jayce hot
I aint tyler1 fan bro u prolly watch him 25/7 XD
Guys
To have muscles you don' own
Continue this in #general
So stop talk
Lol
Okay
🍭
Thank you for reminding me to check docs and etc
And thank for your information
What are some good tips to avoid terrible developed projects
Get it to work, then CLEAN THE CODE
Don’t use static for everything
Getting it to work is just 50% of the work
It’s not done lol
What If the code is poorly made?
The intermediate working state code is poorly written
I consider fixing my mess
Because we developers can’t think in nice abstraction layers when we want to get stuff to work
We just fiddle with it until it works
But once it works
You have to refactor the code
And make it clean and decoupled and all that stuff
Is it safe to use spigot version <version>1.18-R0.1-SNAPSHOT</version> in a 1.16.5 plugin?
if not, how do i find previous version tags
Fr i get what you mean by abstraction and thinking
basically re-creating silkspawners
so not much
?
Yuh also, you might wanna look at layered code architecture
What's the dog doing 😁
Ah
But essentially we want to isolate different stuff like the storage etc because it gets easy to reason about
https://hub.spigotmc.org/nexus/#view-repositories;snapshots~browsestorage?
i have no idea how to navigate that if thats correct
Any guesses why the for loop isn't working?
found these
are all spigot api versions snapshots?
looks like it
x <= args.length should just be x < args.length
id also ensure that entity is not null
Should I use NullPointerExecption to prevent entity null?
Yes
thank you
How do i check if a block is a mob spawner?
Instanceof creature spawner?
Sure
How can I tell if a world is a nether world? I could check the suffix for _nether but that seems dodgy.
Environment
im not seeing a type for mob spawner
or spawner
or creature spawner
whats the type?
perfect!
Literally SPAWNER
wtf
its showing up now
was i spelling it wrong earlier lol
Ive been looking at the docs
i did ctrl+f to find spawner and nothing showed up lol
and intellij wasnt suggesting spawner either
idk
WTF IS WATER WORKER BRO
And no names in some cases
Material.SULPHUR anyone?
Emerald :>
wtf isnt aqua affinity new(ish) tho
like from 1.8 or something
what the fuk
ok question that is destroying my souuuullll
You are probably thinking of depth strider
Just so ik im using the correct terms
If i have a class thats sole purpose is to create a specific item tuned with some things, that would be a factory?
I guess?
maybe
Just labels maaan
Caused by: java.lang.NoSuchMethodError: 'net.minecraft.server.level.ServerPlayer org.bukkit.craftbukkit.v1_18_R1.entity.CraftPlayer.getHandle()'
am i missing something?
CraftPlayer craftPlayer = (CraftPlayer) p;
ServerPlayer sp = craftPlayer.getHandle();
ohhhhhhh
npcs
i want to learn nms
so im gonna make a simple NPC plugin so i can learn on the way
so how do i remap back to spigot?
I have exported something with mineways as obj/mtl, imported into 3ds Max and remodelled and have maintained the material/texture mappings. it also exports and re imports maintaining the block materials. But how the hell can I get it back into MC with the right blocks mapped.
See 1.17 or 1.18 release thread
ok
I had a friend making NPC bot for pvp
it was super OP and efficient for PVP practice with pots
or soups
I think I am going to laydown in a field and just wait until I starve to death, just thinking about the elusive castle import
pain
is it the specialsource-maven-plugin ?
Yes
ok, is there a way for it to build the remapped jar into a different path on my system? i like to build it straight into my plugins folder
How do I make an event async? I'm going to be firing it from a listener of an async event.
BukkitRunnables
That doesn't tell me how I make the event async in the first place
I think so, it was discussed at some point <outputDirectory> maybe? But really not recommended because then others can't build your plugin
Is there a marker I need to set?
Yes
Like is there a field that needs to be true?
Iirc you pass true to the super constructor?
^
Could you provide an example of that or link to the doc
Are there new classes for EntityPlayer & PacketPlayOutSpawnEntityLiving?
its only for debugging purposes, ill try that out
public MyEvent(args) {
super(true);
}
are you using mojang remaps?
@crisp arch Trynna use packets to crash a client
i-
Does the event still need to be fired sync?
you-
i was never part of this
No, you can fire it async
Coll
*must
I can fire it from the listener of another async event?
Colin
ok awesome
Colin my bro
Yo
you have to import the damn class
It's not there in the api dumbass @dusty sphinx
@dusty sphinx Tell me how XD
BuildTools
Calculating if a block is inside a certain region for every region created, I’d that thread safe? Should I run it Async? It’s just checking the comparing blocks x y and z then comparing for every block in the region
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
