#help-archived
1 messages · Page 152 of 1
Chat chat = chatProvider != null ? chatProvider.getProvider() : null;
Just put it in a ternary
That works too
You haven't lived until you've delved into the 12x nested ternary statement to avoid making a lot if if thens
and no I did that in like 2011 so I don't remember why it didn't just use a switch()
Don’t make your code look like decompiled C#
if((x = 4>5?7:8)=7){}
like weeds
@fallow beacon .____.
XD
What would be the best way
Assignment in if statements is also beautiful
To mimic bonemeal
Ternary assignment in if statements is even more beautiful
So uh is there a reason why there's no 1.16 snapshot jar of bukkit in the spigot repo yet
I'm trying to make like a bonemeal type function but allow it to be more widespread
Since when does the spigot repo have jars
idk I mean the build tools are all fetching something from there
spigot nexus is full of jars mate
like jars gone wild
Considering making some automated replies for “Learn java before the spigot api”
bruh
I learned Java by mindlessly blundering through basic tutorials for Forge development combined with lots and lots and lots and lots of compile errors and Eclipse autocomplete suggestions
I mean like the people who’re clueless about coding
People who skip Hello World and go straight to trying to make custom NMS stuff
Lol
That gets some of the fundamentals of programming though
I think I tried to learn Spigot, then Java, then Spigot again, then properly tried to learn Java and then Spigot again
A lot, not all, of newer developers, imo, don’t understand that programming can be a lot of trial and error
i learned initially through bukkit
and then got hired and worked with people who actually knew what they were doing
and got exponentially better
im trying to get the item clicked but idk how
@EventHandler
public void onPlayerInteractWithGUI(InventoryClickEvent event) {
Player player = (Player) event.getWhoClicked();
ItemStack item = event.getCursor();
if (item==null)return;
for(String key : main.getConfig().getConfigurationSection("CustomGui").getKeys(false)) {
for(String key2 : main.getConfig().getStringList("CustomGui." + key + ".items")) {
String id = main.getConfig().getString("CustomGui." + key + ".items." + key2 + ".id");
String name = main.getConfig().getString("CustomGui." + key + ".items." + key2 + ".name");
List<String> list = main.getConfig().getStringList("CustomGui." + key + ".items." + key2 + ".commands");
if (item.getItemMeta().getDisplayName() == name && item.getType() == Material.valueOf(id)) {
if (event.isLeftClick()) {
for (String commands : main.getConfig().getStringList("CustomGui." + key + ".items." + key2 + ".commands")) {
player.performCommand(commands);
}
}
}
}
}
}
Event.getCurrentItem?
also do i need this part?
if (event.isLeftClick()) {
depends
Event.getCurrentItem?
then yes, check left click
k
if you want to get more specific you can check the ClickType enum against event.getClickType() @sage summit
ok
was that in the 1.8 api do you thinkk @lone fog
Its 100% in 1.8
Ok
“Rank: &cOwner”
Lol
It's none of those right?
Omf calc camera
I feel like i use a old Nokia phone lmao
Why are you translating null
The string is the suffix you want to translate
Yee but i can't do chat or chat. Or even Rank
Or anything
:/
@lone fog u have any idea?
.___.
We’ve already told you
What
Call translateAltColorCodes on the suffix string
There is no string
Chat.getPlayerSuffix returns a string
I appreciate the use of a camera instead of the snip tool lol
At least they didn’t print it out and scan it
I appreciate the use of a camera instead of the snip tool lol
@subtle blade i dont have internet so i use phone data
:(
oic
Oof
Is there an event for when a person is powering up a bow
Interact event when they first start charging
oh ok
Sadly I think the rest is client side until the release it
oh ok :( wanted to do something when they fully charge it
how can I restart the server in my plugin?
It doesn't restart the server but you can do Bukkit.shutdown(); all servers don't restart themselves so you would have to set it up outside of that unless you have a provider than it might be harder to do
Yeah you would need the user to have a start script
Kind of hard to start something when the plugin is already shut down
Hiya, I'm wondering how I could go about getting iron golem farms to work on spigot 1.16? I'm running version 1.16.1-R0.1 and iron golem farms just don't work, I have no plugins installed, the farm worked perfectly fine before switching to spigot. I searched the forums for the answer but couldn't find any up-to-date reliable answer
Hm it's working now actually, but seems to be very on and off, which is odd
Awww man https://hastebin.com/cuzajisibi.cs
Now papi doesn't work
please help, i have been stuff for ages https://www.spigotmc.org/threads/get-clicked-item-from-inventory.448488/
Well I may or may not of made machine gun arrows xD
I did that once
I made machine gun laser beam arrows
They had 0 dropoff, fast as hell, and just kept going as you looked around
xD
Is that a problem
we kinda crashed our Hub lol
Someone is a true friend
This is beautiful
nice
Okay I'm trying to update my spigot server to the new update so I downloaded buildtools and did java -jar Buildtools jar lastest. As the website says but it keeps giving me the 1.15.2 build. How do I get the new 1.16.1 build? (I already have 1.16.1-R0.1) any help would be awesome. Thanks
please can someone help me? https://www.spigotmc.org/threads/switch-case-look-for-config-item.448506/
@rose rock java -jar BuildTools.jar --rev 1.16.1
I did that and I got the same version name. 1.16.1-R0-1-SNAPSHOT
or is it the same name but different
how can i get the image of a graph from bstats?
when i run that command i get spigot-1.16.1
Files named 1.16.1 are 1.16.1
thanks ❤️
@peak meadow how would I get build # 488 on Jenkins
Dont think you can get specific builds
oh okay
https://bstats.org/signatures/bukkit/ItemMods.svg bad gateway....
Hello
I am trying to install spigot 1.16.1 repo using gradle but it is not working
it gives this error ^
If I've done player.setglowing(true), is there a way to undo that without a plugin? What file would the setglowing part of it be stored in?
hey
probably nbt
which java edition and version do u recommend for server hosting? which is faste and efficient?
i mean the java version, like openjdk, or oracle java, and which java version 11, 12 , 13 etc xd
Java 8
Is there any event or packet to check when a player hovers over a JSON text component?
I'm assuming its clientsided
I think it’s only triggered on click
damn that sucks
Idk though
I mean it would fire a lot if it wasn’t
Doesn’t sound like a good thing to do
@stoic mist I use java 11 and it works perfectly
Yeah thats fair, just wanted to have some cool reactive text
what are some good 1.8 menu/gui plugins?
Hello
I am trying to install spigot 1.16.1 repo using gradle but it is not working
Oh cool 🙂
Is there a placeholder for how long a player has lived since death?
shid
i really need to add reflection to my project for nms
keep having to manually change it lol
is there anyway to override the auth process and pretend to be an online server?
i saw things like floodgate from geysermc that can auth bedrock players
what are some good 1.8 menu/gui plugins?
Make your server offline then control the auth process
@fervent ridge that does it automatically
Floodgate
umm
You can keep your server in online mode
yes
i mean
so with floodgate players with bedrock accounts can connect to an online java server without passing the mojang auth process
k
is there no net.md_5.bungee.api.chat.TextComponent.Packet anymore? i can't see it in the deprecated list
Or am i importing this wrong
And i cant get any nms or craftbukkit importrs
hmm im definitely doign something wrong
I need the moderators, stop harassing me and do not delete the comments that I am leaving in a plugin that you buy please
Is your "comment" breaking the rules?
No, they only delete it because they say that I am harassing the created, when it is not true, I buy a premium plugin, I am reviewing all the rules and I am not disrespecting or anything
I think that the creator is a friend of the moderators and is asking them for a favor
I have 83 premium plugins, supporting the creators, I am in their discord commenting on their plugins, in some I have left good and bad comments, I do not understand why they delete the comments of a plugin that did not work for me and that only leave a comment of support and I hope that the creator updates its plugins to improve
Does anyone know how to change a players tablist name so its different for each player? I know I need packets and I've been looking at PacketPlayOutPlayerInfo but there is no sign of its existence for some reason
use protocollib
how
🙁 For no reason without any more info:
https://pastebin.com/ad8FedA6
ProtocolLib ?
hey can anyone help with this i have no clue what im doing lol ```java
@EventHandler
public void onPrepareItemCraft(PrepareItemCraftEvent event) {
CraftingInventory ci = event.getInventory();
if (event.getRecipe().getResult().equals(Material.NETHERRACK)) {
if (!event.getRecipe().getResult().hasItemMeta() && (ChatColor.WHITE + "Block of Rotten Flesh").equals(event.getRecipe().getResult().getItemMeta().getDisplayName())) {
ci.setResult(null);
}
}
}```
hey can anyone help with this i have no clue what im doing lol ```java
@EventHandler
public void onPrepareItemCraft(PrepareItemCraftEvent event) {
CraftingInventory ci = event.getInventory();
if (event.getRecipe().getResult().equals(Material.NETHERRACK)) {
if (!event.getRecipe().getResult().hasItemMeta() && (ChatColor.WHITE + "Block of Rotten Flesh").equals(event.getRecipe().getResult().getItemMeta().getDisplayName())) {
ci.setResult(null);
}
}}```
@frosty cave what are u trying to do?
you are working only with the result
only allow the item to be crafted if it has the name "block of rotten flesh"
the input is the block of rotten flesh
the result is 9 rotten flesh
i just dont want people to be able to craft just netherrack into rotten flesh
Create a recipe
i did
And remove the one you don't want to
thats what im trying to do
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
i have both of the recipes i just need to figure out how to only craft it if it has the display name
i already looked at that
I don't understand sorry ^^
so i have the two recipes right
the 1st one turns 9 rotten flesh into a netherrack block with the custom name "Block of Rotten Flesh"
okay
the second one is supposed to turn the block back into 9 rotten flesh
but i dont know how to only craft it when it has the name block of rotten flesh
because right now i can just turn netherrack into rotten flesh regardless of the name
ohhhh okay
ye
Then you should get the recipe inputs (ci.getMatrix() which return an array of ItemStack), and for each ItemStack, check:
-> if it's netherrack -> if !has itemmeta || itemmeta.getDisplayName() not equals to your name -> set cancelled true
But first check if the current recipe is the correct one
event.getRecipe().equals(YourCreatedRecipe)
okay
I have a server through Pebblehost, I updated when 1.16 was released to the vanilla 1.16 jar and deleted my nether folder to force a new nether for 1.16 to be generated, when spigot became available for 1.16.1 I switched over to that and my 1.15.2 nether came back... anyone know why?
I have a server through Pebblehost, I updated when 1.16 was released to the vanilla 1.16 jar and deleted my nether folder to force a new nether for 1.16 to be generated, when spigot became available for 1.16.1 I switched over to that and my 1.15.2 nether came back... anyone know why?
@shut crow dimension seed dont changed
you must delete overworld
or rename it
generate new
stop server
rename again
and start again
@EventHandler
public void onPrepareItemCraft(PrepareItemCraftEvent event) {
CraftingInventory ci = event.getInventory();
Recipe recipe = event.getRecipe();
if (recipe.equals(PluginUtil.fleshBlockRecipe())) {
for (ItemStack item: ci.getMatrix()) {
if (!(ChatColor.WHITE + "Block of Rotten Flesh").equals(item.getItemMeta().getDisplayName())) {
ci.setResult(null);
}
}
}
}``` @undone narwhal hows this look
sexy, does it work?
is there like a right click event btw
lol
i know theres playerinteractevent
but does that only work when like certian blocks are interacted with?
@EventHandler
public void onPrepareItemCraft(PrepareItemCraftEvent event) {
CraftingInventory ci = event.getInventory();
Recipe recipe = event.getRecipe();
if (recipe.equals(PluginUtil.fleshBlockRecipe())) {
for (ItemStack item: ci.getMatrix()) {
if (item != null && item.getType() == Material.NETHERRACK) {
if (!item.hasItemMeta() || !item.getItemMeta().getDisplayName().equals(ChatColor.WHITE + "Block of Rotten Flesh")) {
ci.setResult(null);
break;
}
}
}
}
}
ah
PlayerInteractEvent is: Right click, left click, pressure plate
so even right click in the air
Yes
sick
event.getAction() -> RIGHT_CLICK_AIR, RIGHT_CLICK_BLOCK, LEFT_CLICK_AIR, LEFT_CLICK_BLOCK, PHYSICAL
Can someone help me? I am new to hosting a server on my PC, I port forwarded it in my router. Everything works, but when I launch it it comes with this message. *** Error, this build is outdated ***
*** Please download a new build as per instructions from https://www.spigotmc.org/go/outdated-spigot ***
*** Server will start in 20 seconds *** and I dont understand what to do, something with Git people say but I still dont understand
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
The message comes in the command place
You have to update the server jar
The message explains itself...
How to 'build' something
download a newer build tools
with git or something
?bt
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
Download the latest BuildTool, and run "java -jar BuildTools.jar"
in git
You can eventually use 1.16.1 by adding --rev 1.16.1
I downloaded Git
No in a command shell
what is a command shell
or in the cmd of windows
I am new
Windows user ?
is there a non deprecated alternative to player.getItemInHand()
yes
Player#getInventory#getItemInMainHand
Where did you get the jar then?
download
?bt Download buildtools.jar, put it in a folder, in that folder make a right click -> Open command here, type "java -jar BuildTools.jar --rev 1.16.1", wait
from the video
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
There is no download for a spigot jar. It's illegal to distribute it since it includes Mojang code.
No.
There is no Spigot jar download available on the Spigot site.
I will delete it now
Download buildtools.jar, put it in a folder, in that folder make a right click -> Open command here, type "java -jar BuildTools.jar --rev 1.16.1", wait
with git
or no git
I downloaded it
and then I opened git
and put that command in
but It couldnt find it
or something
Just do what I said, and it will be fine
there is no open command here
Top left corner: File > Open cmd or smth like this
PowerShell
cd "your buildtools directory"
what do you mean
you have to go into the directory containing buildtools in order to access the JAR file
what do you mean with directory
And replace "<your directory goes here>" by the directory path
yes
you can SHIFT + right-click on BuildTools jar file to copy directory
C:\Users\DUO\Desktop\tesst like this
i guess
Hello
I am trying to install spigot 1.16.1 repo using gradle but it is not working
yeah that will automatically CD into directory
Powershell-venster hier openen
do the powershell one
i don't know dutch so... eh
java -jar BuildTools.jar --rev 1.16.1
java -jar BuildTools.jar --rev 1.16.1
do you have java installed xd
I want 1.15.2
Yes I have Java
java -jar BuildTools.jar --rev 1.15.2
I did it
Although it'll probably default to 1.15.2 anyway if you don't do rev
There is no option to open in shell for me
in that
@cold wharf With maven it works perfectly. Did you add the repository?
I don't lol
i use mac
I use Ubuntu
@undone narwhal What I have rn works perfectly fine on my friend's IDE but it doesn't work for me
mac is expensive
i use PopOS (ubuntu distro)
Had to fire up a VM to grab a picture
then you definetively don't want to use Windows
i just cant handle using a window
if you're planning to host servers
I will use linux on that one
CallMeMe build a powerfull PC then
s computer
Also use Linux
yes I will build one with 16gb
No windows
windows computers are too slow
^
Host a server at home?
🤷♂️ ok
And Linux is the best for coding
i cant even use a windows computer for normal use lmao
Lol windows works fine
Why?
it takes 10 minutes to load chrome
It's really not "the best" out of the box.
¯_(ツ)_/¯
_Rolyn yes
Actually macos is the best cause you can coompile ios app lmao
True
Can anyonr can help me?
with what
?ask
If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply.
Hello
I am trying to install spigot 1.16.1 repo using gradle but it is not working
@cold wharf
Did you add the repository?
show gradle build file i guess
Spigot api or just spigot?
It is doing a lotta stuff rn
great
20k messages per second
it's building the jar
in the thing
plugins {
id 'java'
}
version '1.0'
sourceCompatibility = 1.8
repositories {
mavenCentral()
maven {
url "https://hub.spigotmc.org/nexus/content/repositories/snapshots"
}
}
dependencies {
compileOnly 'org.spigotmc:spigot-api:1.16.1-R0.1-SNAPSHOT'
}
does 1.16.1 API already exist?
yes it does
Fendi I think so
yes it exists
CallMeMe Application Programming Interface?
Do you want to be a programmer
Sometimes
@cold wharf Try adding maven { url = 'https://oss.sonatype.org/content/repositories/snapshots' }
Then try changind spigot-api to spigot
Then try changind spigot-api to spigot
@undone narwhal Nope didn't work
The version definitely exists on the repo: https://hub.spigotmc.org/nexus/content/repositories/snapshots/org/spigotmc/spigot-api/1.16.1-R0.1-SNAPSHOT/
You need spigot and sonatype repo
repositories {
maven { url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
maven { url = 'https://oss.sonatype.org/content/repositories/snapshots' }
}
Try it
maven {
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
name = 'spigot-repo'
}
compileOnly group: 'org.spigotmc', name: 'spigot-api', version: '1.16.1-R0.1-SNAPSHOT' //
this works for me 🤷♂️
Fendi why are you typing group name and version 
because... it's valid syntax with Groovy?
maven { url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' name = 'spigot-repo' } compileOnly group: 'org.spigotmc', name: 'spigot-api', version: '1.16.1-R0.1-SNAPSHOT' //this works for me 🤷♂️
@sturdy oar Not working for me 😦
Well just use : instead?
it's the same 🤷
i'd like to verify this account with the forum as my old discord was deleted, can i somehow unlink?
More effort 😠
@cold wharf do you have a KTS or Groovy build file?
Maven way more easier (lol)
no
Wth dude
Is gradles multimodule better?
That's okay for a basic plugin
oh Its already done
Now I replace this one with the Illegal one
Or the wrong one
how you would call it
I mean maven is ok but I like that I only have to type almost 2 lines for adding a dependency
Yes - and every time you see the "out of date" message - you run the build again to build a new version
Right Conclure
when that happens, do I need to replace the build jar too?
Or just use the that thing start up flag that removes the outdated message
Like download a new updated one of the build jar
buildtools sometimes yes you need to update
org.bukkit.event.EventException: null
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:319) ~[spigot-1.16.1.jar:git-Spigot-758abbe-3f0c333]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[spigot-1.16.1.jar:git-Spigot-758abbe-3f0c333]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:589) ~[spigot-1.16.1.jar:git-Spigot-758abbe-3f0c333]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:576) ~[spigot-1.16.1.jar:git-Spigot-758abbe-3f0c333]
at org.bukkit.craftbukkit.v1_16_R1.event.CraftEventFactory.callPreCraftEvent(CraftEventFactory.java:1131) ~[spigot-1.16.1.jar:git-Spigot-758abbe-3f0c333]
at net.minecraft.server.v1_16_R1.ContainerWorkbench.a(ContainerWorkbench.java:70) ~[spigot-1.16.1.jar:git-Spigot-758abbe-3f0c333]
at net.minecraft.server.v1_16_R1.ContainerWorkbench.lambda$0(ContainerWorkbench.java:80) ~[spigot-1.16.1.jar:git-Spigot-758abbe-3f0c333]
at net.minecraft.server.v1_16_R1.ContainerWorkbench$$Lambda$4509.000000002CD25EB0.accept(Unknown Source) ~[?:?]
at net.minecraft.server.v1_16_R1.ContainerAccess.lambda$0(ContainerAccess.java:59) ~[spigot-1.16.1.jar:git-Spigot-758abbe-3f0c333]
at net.minecraft.server.v1_16_R1.ContainerAccess$$Lambda$4510.000000002CD26350.apply(Unknown Source) ~[?:?]```
Bin pls?
uh oh
Like download a new updated one of the build jar
@spare wolf also if you're on windows you can use the batch script they give you that auto-updates buildtools if a new version is available https://www.spigotmc.org/wiki/buildtools/#windows
I need a new buildtools
Hi Guys! I hope you can help me
I am new to datapacks (and writing datapacks for spigot).
I am trying to make a basic datapack. Everything works fine if I only give it vanilla minecraft command to execute (so mc is executing and running the datapack).
Once i add this line to my datapack (and this is the only line in the datapack) then I get errors from spiggot:
import org.bukkit;
[10:41:11] [Server thread/ERROR]: Failed to load function tc:init
java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: Whilst parsing command on line 1: Unknown or incomplete command, see below for error at position 0: <--[HERE]
at java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source) ~[?:1.8.0_144]
at java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source) ~[?:1.8.0_144]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source) ~[?:1.8.0_144]
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(Unknown Source) ~[?:1.8.0_144]
at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) ~[?:1.8.0_144]
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source) ~[?:1.8.0_144]
at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) ~[?:1.8.0_144]
at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) ~[?:1.8.0_144]
Caused by: java.lang.IllegalArgumentException: Whilst parsing command on line 1: Unknown or incomplete command, see below for error at position 0: <--[HERE]
at net.minecraft.server.v1_16_R1.CustomFunction.a(SourceFile:62) ~[spigot-1.16.1.jar:git-Spigot-758abbe-2b00831]
at net.minecraft.server.v1_16_R1.CustomFunctionManager.a(SourceFile:84) ~[spigot-1.16.1.jar:git-Spigot-758abbe-2b00831]
... 6 more
If I only add (for example)
say This is a test
then I can see the test text in the console log. What am i doing wrong? I assume i need to import something else first?
CallMeMe you don’t need but it’s good to get the updated one
i mean the script updates buildtools, not spigot
@frosty cave Is it the full stacktrace ? Maybe you should check ci isn't null and Recipe isn't null too
you shouldn't auto-update spigot imo
just update manually
there may be builds that have bugs etc
the full what
@reef folio what line did you add?
But why is the jar not downloadable
@naive goblet just "import org.bukkit;". that is all that is in my init.mcfunction
and everyone has to build their own
import org.bukkit.*; then I guess
But why is the jar not downloadable
@spare wolf legal problems
there was a DMCA takedown
Not really
no xd
why does it matter then
Oh the poliece will come for Spigot
And they have to pay
Mojang
@naive goblet still gives me this error - after changing it import.org.bukkit.*;
Failed to load function tc:init
java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: Whilst parsing command on line 1: Unknown or incomplete command, see below for error at position 0: <--[HERE]
hey?
Can you show me the function?
i bet this channel is active following the update
@reef folio Check your file is saved in ANSI and not UTF-8
- The spigot jar contains code that is owned by Mojang and for anyone else to distribute it is illegal just like pirating a game.
- It's unlikely that someone will be prosecuted for such things, but Mojang is perfectly within their rights to do so
- The stance of SpigotMC (as I've read) is that any jar downloaded from some other site may very well include malware/viruses and is thus not supported
I paste the spigot-1.15.2 in the place of the old one in my server file
Yes
Just copy paste spigot
And don't remove the other files if you want to build faster
?
@undone narwhal ill try that quick @naive goblet let me just check if my file is saved with the right encoding brb - if it fails then ill send a screenshot of the function
👍
If I wanna build next time I replace the buildtools one and then do the same thing again
and it will not make more files then
t?
It uses the same
these
It'll remake whatever has changed. That's generally a small amount of all the files within those folders.
With that said, don't expect it to be instant. Hell, even if you rebuilt right now, you'd still likely wait a minute for it to be done.
Idc about a minute
It took 1minute 30 seconds it said in powershel
so it probbly wont matter I will just delete it
Oof its a lotta MB's
Just remember how you got there - the BuildTools.jar + Shift-RightClick + PowerShell + java -jar BuildTools.jar --rev 1.15.2
yeye
I will remember
Thank you all for help I just kept waiting 20seconds evrytime it was annoying
I'm not sure how often the "you're outdated" message pops up. But Spigot generally gets updated several times a day so you might see it again in a few days.
oh rip me then
my pc is getting outta storage
I have a 220gb ssd now only 20gb left
@undone narwhal yeah my files are saved in ansii (seems notpad++ does it by default but i just made sure)
@naive goblet i cant seem to upload a picture (discord isnt letting me) so i put the zip (datapack) on google drive, https://drive.google.com/file/d/1cnyWSBEwJmaijzafN2PNOFtqDfOoIhDg/view?usp=sharing I hope thats oky?
is PotionEffectType.CONFUSION nausea?
Ye
aight

I watched the The Breakdown youtuber one

I give him a dislike becouse he has Illegal ones
yes I dislike him
i cant do addPotionEffect(PotionEffectType.CONFUSION)
It takes a duration and amplifier
so like p.addPotionEffect(new PotionEffect(PotionEffectType.CONFUSION, ticks, strength))
ooh
0-255 (strength)
you guys are smart
there are booleans you can use too to change things such as particle visibility etc
fun fat
fun fact
I wanna learn Ardruino coding
if you give jump boost 137
it prevents jumping
also remember that like most things the amplifier starts at 0
Yeah
yep, there are 20 in 1 second
If tps never falls it should be 20
there is only 1 strength for nausea right
I think
Maybe it does cliensided but not what I’m aware of
yea
Nothing happened to them?
uhh, pretty sure blindness does increase
updating from 1.15.2 to 1.16.1 and this seems to be a rocky point
hmmmmmm probably just need to fix my imports
Not really
you will be more blind the higher it is
nope it's the same with every level
I will have to test this
Afaik it would make the screen more black the higher, unless they've changed that now
I think effects like blindness and nausea changes clientsided but only a small amount
ShapedRecipe diamondSword = new ShapedRecipe(new ItemStack(Material.DIAMOND_SWORD));
diamondSword.shape("*B*","*B*","*S*");
diamondSword.setIngredient('*', Material.AIR);
diamondSword.setIngredient('B', Material.DIAMOND_BLOCK);
diamondSword.setIngredient('S', Material.STICK);
Bukkit.getServer().addRecipe(diamondSword);
What am I doing wrong? https://gyazo.com/85e68e6767787815aac02a04f3f4bea8
@naive goblet i needed to verify my account before posting pictures. This is my init.mcfunction
@naive goblet load.json
but it still gives an error
@left plover don’t use the deprecated constructor, use the one with a namespacedkey
I'm using 1.8.8, are namespacedkeys on it? I thought it was a 1.12+ thing
No? You could use in 1-4-7 2-5-8 3-6-9 then I guess
Vale is that the way you should init stuff?
@naive goblet i am noob, so im actually not sure... eventually i will have an event listener in init.mcfunction (if that is the right way) right now i am not understanding what i am doing wrong
Anyone know a plugin like SkinsRestorer? Cant use that one since its breaking some stuff on the server, thank you
@hexed lodge i doubt we break stuff on your server, we have a discord server for support btw.
Well I mean why not try to code java and make a plugin instead?
@crimson raft the last plugin update fixed it, everything's working now
_b
@naive goblet so eventually i want this datapack to log when a player opens a chest - what he takes and puts in... as far as i am aware i cant do that with the vanilla MC? or am i mistaken?
Idk there is probably a way to do it but I mean doing that with a plugin would be much easier on my opinion and much better
And eventually most people who helps here knows java better than mcfunctions so you’d easier be able to sort out your issues
@naive goblet well let me see what i can do in terms of a plugin and ill come post more errors if i find any 🙂
First download Eclipse IDE or IntelliJ IDEA then there is a wiki tutorial on how to make a pure blank plugin
^ on spigot
found this video https://www.youtube.com/watch?v=v4zbqtpLaS4 which should lead me in the right direction, also busy downloading intelliJ
In this episode, I show you how to create your first plugin using the Spigot API and the Minecraft plugin for the IntelliJ IDEA.
Spigot: https://www.spigotmc.org
How to make a server: https://www.youtube.com/watch?v=TXy2vFDhPVg&t=1s
Like and subscribe!! 😍
Stay Connected and ...
Yeah you can follow tutorials as long as you understand what you’re doing and why
what happens if you have 2 servers running
then it doesnt k now wich one to acces
and you cant join 2 servers at the same time
bungee?
then you would need to create a server switch or something
i dont even know if that can be done
?
you can only connect to 1 dns
what is dns
you cant connect to 2 server ip's
If 2 servers have the same ip
i think thats why bungee came out
what will happen
it depends also if its on the same port 🤔
25565
if not on the same port, it will select the one on the port
But I can change that
did something about NMS change, like packet names/etc? i had a pretty neat strikeLightning method which is kinda busted atm :/
you cant bind 2 servers over the same port btw
I found some text document where you can change ports
wont work
?
@frigid ember I know that PacketPlayOutEntityEquipment Constructor changed
thins like per world scoreboard and per world plugins
in the 'server propperties' document there were something called:
PacketPlayOutEntityEquipment(entity id, List<Pair<EnumItemSlot, ItemStack>> equipment) <- really boring
hm, i think i need to fix my imports or build path
no it's better rolyn
nothing auto-completes when typing PacketPlayOut
😄
import spigot and not spigot-api
@tiny dagger Depends, I kinda like it but when you use NMS it's the 3rd changment this 1.8 lmao
why do you need an nms strike lightning method?
And then have 2 servers
OH my god thank you @undone narwhal i was gonna be So sad
^^
yes or no
You can change it yes
how do you know
wich ones are available
can I change it to 1 so its easyer to type for my friends
google "available ports to use"
well
25565 is the default
so you dont have to type it in
if that's your port
if its available, use that
I have 25565 now
no
yes
People said to do both
probably means open/available
your router does not check if a minecraft server is running on a specific port
it just routes incoming traffic to your computer
Try removing it
maybe it pings the device of the IP address you enter
Then you'll be sure
if you remove UDP it will still work
No
And the oter one data LEAVING my pc
Wrong
lmao
from youtube
TCP and UDP are protocols
and
what are protocols
sorry I am a noob
I am 13 years old I want to learn but ye
gotta start somewhere
ports are only needed for incoming traffic
imagine if every minecraft player had ot port forward 25565 to connect to a server
your router may block traffic to certian ports, but that would be in the firewall and not your port forward list
Yes
UDP and TCP are different protocols for transmitting data over the internet
TCP is used by websites and minecraft java edition
I wanted to open it and I opended it with notblock and now its a txt
UDP is sued by minecraft bedrock and many other games
so i remove udp
yes
In the youtube vid there was
and you need to make sure your properties file is called server.properties
protecol: UPT, TCP, Both, none
I made 2 different ones
bec there was no 'both' option
yes but that youtuber said that UDP/TCP is for outgoing traffic
so he has no idea what he's talking about
Usually, youtube vids are not that right
But I can understand a little bit bec it is a bit the same structure of words
as dutch
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
test it yourself
I think minecraft has UDP too
connect using your IP
does it matter that my server.propperties is a txt document
I opened it and now its a txt document
hwo to make .properties again
No it does not
Thats why if your network lags and then recovers in few seconds, you can keep playing like anything happened.
minecraft runs one TCP server socket on port 25565
TCP would directly close the connection
for handling all incoming and outgoing traffic
When a single packet fails to arrive
no
No?
can I make a ipv6 server aswell?
TCP does not instantly close connections
thats faster right
Oh lol
UDP is faster
I though TCP couldnt handle loss of some packet
TCP is a higher level protocol that does more things for you like guaranteeing packet order and data recovery
faster in the way you don't need to keep the connection but you can lose packets. That's the "big idea"
Thats why most of the online games, Call Of Duty, PUBG, etc... Uses UDP instead of TCP
https://sourceb.in/792ef95d7d no errors but when I click the book nothing happens
and you can connect to your own server using your public IP address
ok I will keep it deleted
if that works, your port is forwarded
@cobalt yoke Yes, that's true. but again that's because UDP is more low level. for video games where packet loss is acceptable it is often faster. but UDP is not inherently faster than TCP
Oh alright
I made them txt docs
its like saying that a car with fuel is faster than a car thats out of fuel
its not a valid comparison
Probably the speed difference
How do I make then back
It was .yml and .propperties
@spare wolf enabke file extensions
go to view, and check "show file extensions"
Its like when someone tells you that he can differentiate +120 FPS with his eyes 🤣
you can tell 240fps form 120fps
Yes I know the human eye can see up to 1000 fps
You cant see the difference if you play a game at 120 fps and rhen play it at 800 fps
For example xF
there is no fps limit in your eyes
Suee there is xD
your eyes actually dont process information that fast, if you move your head very fast you basically see nothing because your eyes cant keep up
but if less infomation changes, your eyes process it faster
and, with higher fps, your input will display on the screen faster, and your eyes will therefor also process the information earlier
You won't see the difference if you play a game at 120 FPS, and then you play it at 800 FPS, lol
If you see any difference
yes exactly
You are not even human
you can tell the difference
It does not refreshes
It updates
thats why if the screen sertantly becomes a whole different thing you have to procces it
You can't see the difference
if your monitor refreshes 800 times per second too, you will see a difference
sometimes
whether or not its noticeable is debatable, but it is possible
You will see the game playing ar 800 FPS, the same as it was at 120 FPS
there definately is not a hard fps limit in your eyes, thats just a stupid notion
BUt how do I get my docs back
Just try it lol xD
my monitor is 60Hz
so no it wont look much different if i set minecraft to 500fps
I got 2 monitors
but thats because the display doesnt update
you can test a 120Hz and a 240Hz VR headset and you will be able to tell the difference afaik
rename it to .properties
or does it repair itself
it does not
and the other ones were not .properties
you need to enable file extensions
I have
no
your run file is called "run"
now I do
ok
Its double
@naive goblet I know this is going to be a stupid question.... but since when isn't "string" included as a valid data type :/
hey
xD i just found it
spigot's complaining there's a new version but I only compiled it from buildtools yesterday
specifically 118
😂
1.15.2, compiled from the same file, isn't doing this
1.16.1 is tho
is this a bug?
No.
banna why are you compiling spigot and why dont you just download the compiled jar?
Spigot gets updated multiple times a day and this is to encourage you to stay up to date.
@reef folio You cannot download a compiled Spigot jar.
well how can i download the latest version if there already is the latest on the site?
BuildTools version != Spigot version
that's the latest version on jenkins i compiled from
You can use the same BuildTools to build a new version of Spigot
wait wut
@reef folio It's blocked because it's illegal.
lol i just realized
Distributing the spigot jar online is illegal.
saw a message from the bot
The only legal way to get a Spigot jar is to use BuildTools.
^
The stance of SpigotMC (as I've read) is that any jar downloaded from some other site (in addition to being illegally distributed) may very well include malware/viruses and is thus not supported (EDIT: This has happened before and probably will again)
Because the Spigot team don't want you to use CraftBukkit. There is literally no reason to do so.
Craftbukkit is an internal dependency
@frigid ember https://www.spigotmc.org/threads/bukkit-craftbukkit-spigot-bungeecord-1-14-4-development-builds.369724/
