#help-archived
1 messages Ā· Page 112 of 1
double-check that nothing else is running on 25565 and if there's still problems, try restarting the computer
i'll restart it, because i removed the files from my laptop. thanks!
restarting it didn't work
try running it as admin
it says "error: unable to access jarfile spigot.jar"
hmm. you're sure you shut down and powered back on your laptop?
yea, i can try again?
go for it but idk what else to try
okay, thank you
am i doing something wrong again
jesus the server comes back with that my plugin.yml isnt found but is right there
what does your build process look like?
@trim gull if that still doesn't work, try pressing the windows key and "r" at the same time, entering "resmon.exe" into the box, and pressing enter
then go to the network tab, and look for 25565 under the "listening ports" section
and it still says "failed to bind to port"?
not likely if you don't see it running
you can use any port you want, 25565 is just the default
how are you port forwarding?
can you send a paste of your server.properties?
sure
#Minecraft server properties
#Tue Jun 02 22:19:38 EDT 2020
spawn-protection=16
max-tick-time=60000
query.port=25565
generator-settings=
force-gamemode=false
allow-nether=true
enforce-whitelist=false
gamemode=survival
broadcast-console-to-ops=true
enable-query=false
player-idle-timeout=0
difficulty=normal
spawn-monsters=true
broadcast-rcon-to-ops=true
op-permission-level=4
pvp=true
snooper-enabled=true
level-type=default
hardcore=false
enable-command-block=false
max-players=20
network-compression-threshold=256
resource-pack-sha1=
max-world-size=29999984
function-permission-level=2
rcon.port=25575
server-port=25565
debug=false
server-ip=
spawn-npcs=true
allow-flight=false
level-name=world
view-distance=10
resource-pack=
spawn-animals=true
white-list=false
rcon.password=
generate-structures=true
online-mode=true
max-build-height=256
level-seed=
prevent-proxy-connections=false
use-native-transport=true
motd=Kat's Minecraft Server
enable-rcon=false
i took my ip out but i did bind it
make sure server-ip= is empty in the file too
ah okay
that's almost certainly the problem
thank you
its working, how will people join without it being bound to an ip?
sorry for being an idiot btw
nah, you're not an idiot, just new. the server-ip setting is for binding to a particular ip when the machine the server is running on has multiple ips
ah okay
so how would someone join? on the vanilla server i just gave them my ip and used direct connect
that should still work
okay
thank you
I tried to connect to it myself, it failed
it says "connection timed out, no further information"
try using https://canyouseeme.org/
Error: I could not see your service on [my ip] on port (25565)
Reason: No route to host
make sure the server is running and that the port forwarding is set up correctly
the start.bat / cmd.exe says it is running
I don't have any experience with port forwarding so I don't know how to debug that side of things, sorry
all good]
when i had problems with the vanilla server it turned out to be an issue with my firewall
thanks for all the help!
hey guys, is there a packet to make the player see this screen?
ok thanks I'll check it out
@proper cairn you didn't answer my question - what does your build process look like?
Oh sorry
What do you mean by build process like how i have the artifacts setup in my project structure
@opal marsh
i realized that i made a mistake very early on
Hello good, how can I make PlaceholdersAPI register my variables? I have an extended class to PlaceholderExpansion
the spigot.jar and the craftbukkit were in the same folder as build tools
which files should be in the buildtools folder and which should be in the server folder?
https://www.spigotmc.org/threads/how-can-i-check-the-weapon-cooldown.349859/
Does anyone know what the dG method was renamed to in 1.15?
pretty sure theres an api method for that
getAttackCooldown?
oh nice
sweet ty
it was renamed to getCooldownPeriod for anyone that still needs it for some reason
but the API is much easier
after installing buildtools and running it through git bash, i downloaded spigot. is is just the spigot.jar file that needs to be under a different directory, or are there others? I accidentally installed them all into one folder. (rephrasing question from earlier in case it was confusing)
actually, nevermind. ill just reinstall both and figure it out
@proper cairn I mean what the ide does to build the plugin (since it looks like you're not using maven)
I would recommend using maven btw: https://www.spigotmc.org/wiki/creating-a-plugin-with-maven-using-intellij-idea/
@trim gull what do you mean when you say you downloaded spigot? running buildtools should generate the spigot jar and you can then use that jar with the patch file to run the server
after you're done running buildtools to get the spigot jar file, the buildtools folder isn't important anymore and running the server doesn't depend on it
personally, I would recommend using paper because there is no manual buildtools step: https://papermc.io/downloads
So this is a bit weird for me atleast.
I am wanting to spawn in a custom model to my server...
I can do the / give player minecraft:diamond_sword{CustomModelId:123456} IN SINGLE PLAYER
In single player and get the model, but it doesnāt work on my server even though the resource pack is loaded in it says āCanāt find itemā can anybody help with this please?
@opal marsh that's what i meant, yea. do i just move the spigot.jar into it's own folder? that's what's listed in the pre reqs
if paper would be easier, i'm willing to try that. I've just worked a lot today to work out the issues i've had with spigot
@thick summit try preceding the "/give" command with the minecraft namespace so it's "/minecraft:give ..."
Hold on Iāll test right now
@trim gull yep, just move the spigot jar to its own folder and set up the batch file and you should be good to go
thank you
do you have any plugins that might mess with nbt?
Itās worked, kind of. If I load the resource pack on my client I can see it, do the server must not see the resource pack files?
Not sure on how to change that but Iāll have to look into it
Ty for ur help
yeah, the server has to send the resource pack to the client for other players to see it
so you're sending the resource pack from the server and it's not working?
Yes, I am downloading the resource pack when I join, but canāt see the things
try logging out, removing all the files in ".minecraft/server-resource-packs", logging back in (to download the resource pack again), and then there should be one file in the server-resource-packs folder
rename it to a zip file and double-check that it's the same one you're using in singleplayer
is there anything in the server.properties, bukkit.yml, spigot.yml, that i need to change in order for my server to run?
no, not for it to just run
You need to agree to the eula
yes. make sure the jar is named the same way it is in the batch file
Yeah that should work
okay
it says that it's done loading up the server
ill see if i can direct connect again
in the server properties folder make sure you are using the correct port as the one you are connecting too in case you changed this value
Ok the issue is I have an emoji chat plugin which over rides the resource pack when I login
Is there anyway I can merge the 2?
Emojichat is just a JAR file and a config folder
@thick summit if the config allows for disabling the automated sending, yes
i'm still getting an error message. "connection timed out. no further information
Is it a local server or are you connecting through an external ip?
Can I not like, drop this config file into my resource pack folder?
can you connect on your computer if you use "localhost" as the ip?
in that case, it will very likely be a portforwarding issue
@thick summit it looks like automated downloading can be disabled: https://github.com/RadBuilder/EmojiChat/blob/master/plugin/src/main/resources/config.yml#L35
It can be disabled, but then they wouldnāt see the emojis?
they will if you merge the two resource packs manually and make them download the merged pack
at this point should i just try using paper instead? or hope that someone here might know about port forwarding?
paper will almost certainly not fix this issue but it's simple to try
Thanks for your help @opal marsh Iām going to drop the emoji config file into the server resource pack
that won't do anything I think
Anyone know how to get the maximum coordinates & minimum coordinates from a BlockVector3?
@trim gull yep, that's probably your best bet
Config is my only file linked to emoji chat tho I think
So resource pack must be coming from there?
@frigid ember BlockVector3 should just be a single x,y,z
oh, I see
@thick summit I'm saying to modify the config file in the "plugins/EmojiChat" folder
The vector is just encompassing an area
And disable auto download?
yes
Ok doing that now
Well, no, I'm sstill confused by that
While I understand the BlockVector3 has an x, y, & z, it encompasses an area
@frigid ember there isn't enough information in a BlockVector3 to encompass an area
So there will be a maximum and minimum y coordinate
Then I guess I do not fully understand a BlockVector3 object
you can think of it as a bukkit Location without a world attached to it
I see
I disabled that, and although now it doesnāt auto download, they can no longer see the emojis
@thick summit after you disable the automatic downloading of the emoji pack, you'll have to merge the two resource packs manually and set up the merged pack to download
But when I do a clipboard.getDimensions(), it returns at least a 1,1,1 area
BlockVector3 com.sk89q.worldedit.extent.clipboard.Clipboard.getDimensions()
Get the dimensions of the copy, which is at minimum (1, 1, 1).
Returns:the dimensions
I'm assuming that's using 0, 0, 0 as a basis
Iām not sure where the emoji resource pack is tho ...
The only file I have are the plugin, and config
it should be in the server-resource-packs folder in .minecraft
Can I just drag both those files into a folder
And setup that folder as my server resource pack?
@opal marsh I think this makes more sense
BlockVector3 minimumVector3 = clipboard.getMinimumPoint();```
Then I can get all blocks between these two locations
Correct?
should single port forwarding be fine?
I believe that should work but I'm not very familiar with the worldedit api
@trim gull yes, it should be running on just 25565
coolio
@thick summit that could work, you can give it a shot
can you elaborate? what specifically did you try?
I went into my server resource packs, dragged the emojis file and my resource pack file into a folder on drop box, the. Gave my severe the new drop box link to use as the resource pack with both files inside
you have to unzip the emojis file (it's a zip file without an extension), unzip your resource pack file, merge the two, rezip it, and use that
the server resource pack
Is it possible to load a mod like Worley's Caves within Spigot (linux CLI-only host)?
How do I delete my resource fro spigot?
oh my gosh it worked!! thank you so much @opal marsh ! you are really out here saving everyone's lives
@lusty basin as far as I'm aware, there's no stable solution to use mods and plugins at the same time in modern minecraft versions
@trim gull yay, I'm glad it worked!
yes
@thick summit rename it to a zip file
@trim gull if you're using the console, commands don't start with a slash by the way
ah thank you
Uploading to Dropbox now, this looks about right so far
does anyone know how to make a multiverse portal go to a specific location?
@frigid ember yes, check https://github.com/Multiverse/Multiverse-Core/wiki/Destinations
How do I delete my resource fro spigot?
@true patio Report your resource and resource staff will tend to it when available
oh dang, I was not aware you couldn't instantly delete your own resource
is there a reason for that or is it just a xenforo thing?
I'm sure there's a reason because 99.9% of the time, we comply and delete it
Only time we really don't is if it's a premium resource
ah, makes sense
ty
is there an event that triggers when the held item has changed, and is there a similar one for your off hand?
PlayerItemHeldEvent
Thank you š
@opal marsh dragged them both into a drop box folder and it still doesnāt work when I join the server :/
But it says ādownloading resource packā when I join
But doesnāt even show in my resource packs in esc
You need to merge the two unzipped folders into one folder on your computer then zip just that one folder and upload just that zip file to dropbox
Right ok
If you want, you can dm me and I'll see if I can do it for you
When merging the two folders, it should prompt you to overwrite or skip the pack.mcmeta file
If we want to adjust horse health, jump, etc, do we have to use nms?
Does anyone know of an easier way to interact with nms than reflecting into each class & just guessing what a minecraftserver_1.15.2.a() method does?
I mean I have no idea how to interact with these methods as they are completely non-descript
Doesn't look like you need to use nms: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/AbstractHorse.html
how do i allowcate more ram to the server
you jokin rite
Trying to stop myself from saying a download ram joke
i hope hes joking
@old carbon local server or hosted
nvm
hes joking
so there is nothing for downloading ram shit
but i heard that default servers only have 1 gbs of ram
LOL
i always lauch my servers with command prompt i dont use the fancy ui
When you start a server you use a start script containing the param "-Xmx2G"(2 is how much ram)
change the numbers
it'll start working eventually
also gl running a server if you dont know how to change ram yet xD
ok
so only changing the xmx?\
my .bat file is not booting
it cannot open with more than 1G
Then most likely java is set to a max limit,look on google to remove that limit
so, i just got bedwars-rel into my bedwars server. never worked with it before, and i donāt know why one of the islands donāt work. (you canāt build or break on the island) i feel like itās because the island was copy pasted but i donāt really know.
does anyone know how i could fix this?
you need 64 bit java to use more than like 1.3G of ram on the heap, oracle for some reason offers the 32 bit version by default
I mistakenly installed a 32 bit os on my 64 bit system, and didnāt realize until I bought more ram and java didnāt let me make a 6 GB heap.
what license are the spigot modifications of craftbukkit under
gpl3 i think
Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap
i got this error when i start my server
Generally you can check out the licence on git
Now read the second line of my message
hi everyone I would have a problem with placeholderapi as addiction the various placeholders don't work
Now read the second line of my message
@undone narwhal and what makes you say that?
why would a patch repo just inherit a license š¤
Modifications to a project follow the projects licence
Unless otherwise stated
Patches are modifications
For example: The patches of the fork that shall not be named are (l)gpl by default, cause that's the licence the project inherits, but many regular contributors decided to licence their patches as MIT so other projects (and mojang!) can use them more easily
@floral isle Can you show us your code?
@undone narwhal yes but not all the code because as I said it is a private plugin
We don't care about your code, we could way easier write it ourself than steal yours
But if you want help, you gotta show us your code
@floral isle As MiniDigger we don't care about that, and if you really want you can delete it after, we just need the part where you use PlaceHoldersAPI + errors
```java
<Code here>
```
?paste
un sec
I-S are you here?
I need to ask you a question
don't feel like pinging you -.- so I hope you're reading
and?
You can't parse the placeholders right?
no for example in the hologram because is a papi support for an hologram plugin i put the placeholder like %player_name% and dont work
are the placeholders static or dynamic
PlaceholderAPI#setPlaceholders(Player, Message)
And in your server you have to enable the correct papi package
For example %player_name% and players related are in the Player module
yeah I don't remember the entire process, but didn't it require the eCloud expansion download?
Yep sorry just saw it
Where you send the parsed text try to add something like parsed = parsed + "Debug" to see if the hologram is well updated
ok but is stange because in the hologram plugin code there a automatic sistem to update holograms
Tell me if the text is well updated (if you use the parsed = parsed + "Debug" test)
don't block the thread to stop packets i guess
you might want to check if that kind of packet can be sent concurrently, but usually they can and don't cause any issue
yes
do you make the packets with ProtocolLibs' factory
ok thx for the help
Am I the only person to prefer basic Reflection than using ProtocolLib?
Should i make downloads from URLs concurrent in my plugin?
Protocollib is really easy
You just tell it which data type to write
Rather than accessing fields by name
It's way safer
Yes right, but if you just want to make basic things (like spawning and updating an hologram) NMS is great
But I'll take the time to learn PLib soon
What do you mean Fendi?
Well
i followed this tutorial to download a resource from an external server
and I was wondering if i should do it on another thread instead of the main one
the method came out like this
Obviously, it is even strongly recommended. Downloading on the spigot thread will literally kill your server.
oh, it didn't happen so far. I guess i'll update this ASAP
When it's not big files it's okay, but it will still freeze the thread while downloading
it is big files I guess
Bible yes ^^
Make english sentences
skript has a documentation
i still haven't wasted my time reading it , so I can't help
Is anyone familiar with the TerrainControl plugin and is willing to help me?
_Rolyn do you think i should make JSON Deserialization concurrent as well?
or GSON is fast enough
Nop zfx Sorry, you can still tell us what you want to do to see if we can help you
GSON is fast enough I love it
oof
lmao
lmfao
Ahahahh
writing what
The Bible lol
so anyone know the use of skuniverse?
I use Python to parse the bibles that I can't find online as JSON
i have them as PDF \ txt
You should publish these parsed files on GitHub this is useful!
"The Bible Repository"
yeah some of them that I use are from another user that did this on GitHUB
however latin, italian, and other languages will require manual parsing by me
Of course.. Do not forget French š
Yeahh ā¤ļø
Bruh
i am italian
u are bullies
"pizza corona"
and what if i say bAgUeTtE nOtRe DaMe?!!??!
@fickle surge you are italian?
yeah
salve collega
Not that cool @fickle surge š¢
ciao fratm
yeah don't discriminate french
ok maybe i have found the problem with placeholders
yeah don't discriminate italy
Is anyone familiar with the TerrainControl plugin and is willing to help me?
my problem is that I want to generate I world with a specific config for a uhc gamemode but the map has to reset everytime the server restarts. But when I delete the world and generate it again the world config doesnt get taken over so I would have to put it in the file manually every time
Terrain Control has a documentation
What version are you trying it with
zfx
I don't remember if this works, but you should look for the bukkit.yml terrain generation
Many terrain generators allow to hook in bukkit yml to directly specify the generator of each world
I think its the newest version
worlds:Ā
[world]:
Ā Ā generator: The_Generator_Name
You should look if this is supported
@floral isle What was it?
@sturdy oar should that be in bukkit.yml?
did not update the lines with the placeholders due to a small code error of mine
Okay ^^
worlds:Ā [world]: Ā Ā generator: The_Generator_Name
@sturdy oar I dont have that in the bukkit.yml
You can add it
I'll try it
But how exactly is that gonna help me with my problem because the config still resets everytime I delete the world and create a new one
Oh wait
The config resets?
like it erases the values?
Whenever you remove the world
Wait I'll try to explain it again
I think I expressed it wrongly
So I have a world with a Worldconfig.ini which I want to use for all other worlds to generate. In the gamemode I want to make the world has to reset everytime the server restarts. I tried doing it by deleting the world and letting a new one generate but then the worldconfig.ini is a new one because I generated a new world. Is there any other way to do it or can I make a global config that is applied to every generated world?
?jd
why tf are the nullable annotations duplicated and why am I just noticing this now
i thought you wanted to make it clear
"Not null mens Not null š” "
considering is just in java docs it's not that important
it's annoying though :/
I actually even found
4 not null once
like @NotNull @NotNull @NotNull @NotNull CommandSender sender
that was real fun
looks like NotNull annotation is doing mitosis
The most NotNull you put the most you're sure it won't be null š
So I have a world with a Worldconfig.ini which I want to use for all other worlds to generate. In the gamemode I want to make the world has to reset everytime the server restarts. I tried doing it by deleting the world and letting a new one generate but then the worldconfig.ini is a new one because I generated a new world. Is there any other way to do it or can I make a global config that is applied to every generated world?
anyone got a clue how to fix?
Let's say I save a sign Block and update the sign text after the chunk unloads- would this work?
I think itāll reload the chunk and do it
Not 100% sure off he top of my head
Like many things, tryit.mov
Hello, how can I store a worldborder in the config then change the sizes when needed?
Sure?
?
Find a worldborder plugin?
I'm creating a custom cells plugin but I need to get the worldborder of that region and set a new size when upgraded
Do you want a cool premium on, or you prefer a free plugin?
fairly certain using this would achieve what you want https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/Player.html#hidePlayer-org.bukkit.plugin.Plugin-org.bukkit.entity.Player-
LMBishop
that method is not true vanish tho
there are some specific things that have to be done through packets
@smoky tundra Actually it's more complicated than that, I have to go through this packet because I have to delete it, to display his nickname in the tab in a different way. I shouldn't have used the term vanish I guess
you're using ProtocolLib?
No
I don't have a problem with relfection
Can you change a size of a region using worldguard api?
It's simple maybe add more features
@lament wolf theres literally .setTabListName or whatever
anyone know how to convert a short player uuid to a long one with hyphens
substring + throw in hypens as required
Can anyone spot anything obvious and/or outdated with this? It worked before, and stopped working around... 1.9 iirc?
Is there a reason why mojang api uses non hyphenated but spigot uses hyphens?
ah right
nvm, I noticed the problem; wow, I really need to go to bed
Hello there can some one tell me is my plugin responseble for this error or something is wrong with mysql
BeastTokens
is my plugin
and then other plugins as you see have same error
it is error from one of my
customers
no one yet report it
He talked dev of lucky permiss which told him problem is my plugin
because I use deprecated method
But nothing is marked as deprecated in my source
So I am really confused
If some one could help it will be really nice thanks š
my mysql class
Guys i Want to make a bungeecord server. Should i do upload bungeecord plugins to bungeecord/plugins ?
Make sure you're using an up to date version of LuckPerms as a dependency.
@cerulean musk you upload them to the plugins folder on the bungeecord server, yes. Once you start the bungee for the first time, it will generate.
@odd knoll no need Other server folders ?
Huh?
For example i Want download the advancedban
İ just upload it on the bungeecord folder?
No, as I said, you upload them to the plugins folder on the bungeecord server.
The plugins folder inside of the bungeecord server.
upload to the /bungeecord/plugins folder and restart
Oh i understand thanks
Helloo, how can I block the ping of the cmd towards my server?
please explain
How to sort the tab list ?
plugins such as bungeetablist
is it possible to give access to a spigot user access to one of my premium resources without him having to buy it?
I think you can add people to the buyer list
great! He did buy it as a prerelease with a private transaction, so I hope i can do that
Note that you can't remove people from the buyer list so be careful with who you add there
ahah don't worry, he's my friend
Would there be any reason as to why I cannot purchase a resource? The purchase button to take me to PayPal is not show. It's shown for every premium resource other than this author's resources.
https://gyazo.com/3103e95d279c21b11fd855094a634ad1.png
how do you sort a yml file from highest integer, to the lowest?
like a highscore?
cause i've tried, but it won't return the arraylist
Sort in memory or physically save sorted?
it just says something like "OutOfIndex"
Level:
player:
Amqlie: 21
Fikodino: 5
Mattheboss: 43
DogOnFire: 23```
sorted so when u type a command, it shows the highest level is at the top of the list, and the lowest at the buttom with the name of the player where the level is
I dont think you should expect yaml to be in a sorted fashion, you should sort this in code
You could create a TreeSet of a custom object with name and score value
Then make the treeset use a custom comparator which sorts based on the score value
And whenever u want your scoreboard just iterator over the set (with your upperbound, like max 10 iterations) to show your top list
so should i use your solution instead?
well i didn't totally understand what he wants to do anyway
she*
and i want to make like a command were you type /top, and get the integers in order from highest to lowest
so only get?
they will stay unordered in the config, but will output sorted from in game right
exactly
are those players name dynamic or static
i'm not sure...
don't judge, but i have only worked/played with java plugins for a couple months
I think you should make a player object so the config would look like this
Level:
Players:
- name: "Amelie"
level: 21
- name: "FikoDino"
level: 5
this would allow you much better options
So then you would have a List<YourPlayerObject>
and you could easily keep it sorted
and as @bronze marten said, you could even use TreeSet
so java for (String p : Level.get().getKeys(false)) { map.put(p, Level.get().getInt("Level.player." + p)); } won't work?
Storing stats by players or playernames seems kinda wack
It is very wack
Names have not been a supported means of storing persistent data since 1.7.6
from a scale from -10 to 1 how bad would this be? https://pastebin.com/a3TNkbiy
Well at that point you're just senselessly wrapping a Map
i know
You'd be able to do the exact same thing by just replacing wherever you define a Settings instance with just a Map ;P
i would have to do casting there
Sure. Though generally you want to avoid an Object value anyways
Ideally your settings are fixed. There shouldn't be any reason to have an arbitrary amount of settings
Settings#getDouble(String) perhaps add an instanceof Number check and return 0 otherwise idk if it might throw an exception otherwise
So assign an instance of settings per-game
wait
Java is an OO language lol
i think that might work
but then i would have to make objects
for every type
š¤
I'm having trouble copying a world to recreate a new arena, can anyone help?
I took a property approach for my arrows
?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.
When I try copying it I get an error saying that java.NoFileFoundException /level.dat
And No permission ^
Though there is a level.dat in the folder
could you provide us some code?
Sure happy to
To copy the world:
File toCopyTo = new File("STArena/Flat1_8_8GDSkytouchArena");
File toPasteTo = new File("");
try {
fileManager.copyFolders(toCopyTo, toPasteTo);
} catch (IOException e) {
e.printStackTrace();
sender.sendMessage(ChatColor.RED + "Something went wrong with copying the world!");
return false;
}
Copy Folders Fucntion:
public void copyFolders(File sourceFolder, File destinationFolder) throws IOException {
if(sourceFolder.isDirectory()) {
if(!destinationFolder.exists()) {
destinationFolder.mkdir();
}
for(String files : Objects.requireNonNull(sourceFolder.list())) {
File srcFile = new File(sourceFolder, files);
File destFile = new File(destinationFolder, files);
copyFolders(srcFile, destFile);
}
} else {
Files.copy(sourceFolder, destinationFolder);
}
}
The Files.copy is com.google.common.io.Files
DataWatcher?
yeah the internal entity value tracker
LorKeeper I'd highly advice you to take a look at implicit else. Also are you just trying to copy-paste a world with a new name?
I took inspiration from the data watchers, yes. Their data watchers are static constants as well but each entity has their own instance of a way to assign those constants (which are basically unique keys) to values
Well
I have a game
I want the arena to reset each time it ends
So I delete the previous world
wth
And recopy that one that was unchanged
Though you can accomplish the same thing by just having a bunch of fields for each of your settings
So long as you create new instances of those settings per game
Hey, looking for some help. I believe my spigot account has been compromised and it's password and email has been changed.
What do you mean Choco?
Uhm LorKepper I'd certainly just try to rollback the world
Why create a new world each time?
Doesn't look essential to me
Oh, how would I rollback it?
You could go about schematics or something
Having a "fixed structure" which you then paste in
I think worldedits api would be great for that
That's still a little confusing, do you mean rollback the world or arena structure?
Oh ok I'll look into it, thanks!
The arena?
sure
Do you know where I can find the Worldedit API and do I need to grab it as a plougin and put it into the server?
Just add the jar to your build path
My answers are towards Fr33styler, Lor. You can ignore me ;P
Wait
?
Are you using gradle or maven?
Ok nice
Okay so just go to the world edit repo and it should be some instructions how to add the dependency into your project
Probably start by browsing to the plugin page
Thanks
i need a plugin that gives the player an effect when the player is wearing full armor set
like hypixel skyblock
please
Ummm soo I was hoping that someone tell me how I can exclude jackson-lib from spigot using maven
It doesn't come with Bukkit nor CraftBukkit
I tried bukkit 1.15.2 it had it
Well I'm looking at the pom.xml right now and it's not defined by either project
So if it's included, it's done by one of its dependencies. Could be vanilla that includes it for all we know
Why do you want to exclude it?
I am using jda so it interferes with the custom Version inside it so I want to exlisde it from spigot
@subtle blade
Well, for any given dependency, you can exclude transitive dependencies
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.15.2-R0.1-SNAPSHOT</version>
<exclusions>
<exclusion>
<groupId>whatever.jacksons.groupid.is</groupId>
<artifactId>jackson</artifactId>
</exclusion>
</exclusions>
</dependency>```
Would anyone mind helping me proofread/review this? https://github.com/Pante/Chimera/wiki/creating-commands-using-annotations
Any feedback is greatly appreciated š
ew jackson
@gusty swallow isn't that like Aikar's ACF
where you can do commands with annotations
Sort of but itās compiled ahead of time and doesnāt rely on reflection
Also itās built on-top of brigadier
maybe i have one thing
it's probably minor but
you should write a little notice on the last section of code that 'var' is available from java 11 onwards
which many still don't use
Yeahhh lol
I honestly use java 8 as well
mainly because it's not worth dropping support to a lot of people
since i would not gain a huge benefit from J11
Yup itās a pity though, Java 11 really has a lot of nice stuff compared to Java 8
Wish more people adopted it
yeah i know, there's a lot of cool methods like Files.writeString
that we don't have in j8
can sb help me with voxilsniper
The collection factory methods and var makes writing code so much more pleasant
im not aware of the collection factory
Basically you can do āSet.of(...)ā to create sets and other collections
Cool stuff
Hello yesterday I post this topic but noboby anwer to this.
How I can get the sound about blocks this the Block.
I am using this code on 1.13.2 but it's not working in 1.15.2.
public Sound getSound(Block block) {
try {
WorldServer nmsWorld = ((CraftWorld) block.getWorld()).getHandle();
net.minecraft.server.v1_13_R2.Block nmsBlock = nmsWorld.getType(new BlockPosition(block.getX(), block.getY(), block.getZ())).getBlock();
SoundEffectType soundEffectType = nmsBlock.getStepSound();
Field breakSound = SoundEffectType.class.getDeclaredField("q");
breakSound.setAccessible(true);
SoundEffect nmsSound = (SoundEffect) breakSound.get(soundEffectType);
Field keyField = SoundEffect.class.getDeclaredField("a");
keyField.setAccessible(true);
MinecraftKey nmsString = (MinecraftKey) keyField.get(nmsSound);
return Sound.valueOf(nmsString.getKey().replace(".", "_").toUpperCase());
} catch (IllegalAccessException | NoSuchFieldException ex) {
ex.printStackTrace();
}
return null;
}```
Oh yeah I think so too
@white kite you know that NMS have a 99% chance of breaking from version to version right
you should just go check the decompiled jar and see if the values are still named like that
Right. Obfuscation changes, ESPECIALLY in the SoundEffectType class because sounds are added every version
Curious but isnāt that supported in the API already?
afaik, no
Would be strange to implement. Most people would want it on a Material but that enum is Bukkit exclusive
Awkward to have it on a Block
True that
Could pass Sound constants to the Material enum but that's a tad gross as well
Choco when will chunks implement PersistentDataHolder
Chunks don't have NBT so it's a bit cumbersome to implement as well
Was suggested in the past. In fact, I want to say there's a PR for it
@subtle blade How I can do this.
I don't understand NSM very well.
then don't use it
Why are you trying to use reflection if you don't know how it works
Choco
I use the nms to redefine method but for the Field i'm don't unterstand for the moment
nvm was about to ask you a question about IntelliJ but i remembered you don't use it
š¤£

was just wondering if someone here has a way to make IntelliJ generate singleton classes
Wym?
you know intelliJ generate right
Getter Setters Constructors etc
I'm probably sure you can create your own template, going to check that
It's interesting
yeah i know IntelliJ has templates
but they're kinda hard to learn and create
i'll go search for a plugin maybe
omg
Tell me how it does the job
Blasphemy we all know NetBeans is the one true IDE
I found a small tuto to use template
Seems cool:
private static $CLASS_NAME$ instance;
public static $CLASS_NAME$ getInstance() {
return instance == null ? instance = new $CLASS_NAME$() : instance;
}
Yep exactly
But the Live Template works well too
I just have to type single then push TAB key and boom
You can also put javadocs š
is getting currentMillis at start and ending of operation the best way to measure how long it took?
Think so, that's the only method that comes in my mind
Let's create an idea plugin for spigot dev ^^
Really?
MinecraftDevelopment by DemonWav
is player#sendblockchange good for showing blocks only to certain players?
i guess so
hey, so if any of you know skeppy, I kind of want to get a queue/players remaining plugin
queue plugin: kinda self explanatory
players remaining: plugin that counts how many players havent died, and you can revive them(adding them back to the counter and the game) by executing /revive
anyone know these plugins? prob self coded but anyone know anything similar?
ye
no idea where you could find one of that kind
oh
and in my opinion they're definetively custom made
oh
hey! I want to cancel the blockplace event, and send a blockupdate, like if the blockplace only happened on client side, but it doesn't work. any idea?
@EventHandler
public void onBlockPlace(BlockPlaceEvent e) {
if (e.getBlock().getType() == Material.WOOL) {
e.setCancelled(true);
plugin.getServer().getScheduler().runTask(plugin, () -> {
//deprecated I know, it's for 1.8
e.getPlayer().sendBlockChange(e.getBlock().getLocation(), Material.WOOL, (byte) 0);
});
}
}
me: * asks a question *
entire spigot community: * hides *
is player#sendblockchange good for showing blocks only to certain players?
Considering that's literally its purpose, yeah
You have to send that change 1 tick later
isn't runtask runs on the next tick?
iirc it runs on the current tick
. . .
runTaskLater() with a 1 tick delay
thanks a lot
The way Bukkit handles block break event is that it will tell the client that it was broken before it actually was, process logic it needs to, then re-send the client another packet after the event has completed
If it's cancelled, it sends another packet
Red being the packet sending, blue being the event processing (where your listener is going to be called)
In your case, you're sending a change packet right between where the server sends its packets so it's effectively snuffed out by the server's packet which tells it the result of the event
oh I see
where config @tawdry venture ?
What other plugins you using?
i use bungeecord server btw
i use arch btw
That shouldn't matter, what other plugins do you have @cerulean musk ?
Most likely that chat.
sunstorm dude i said i didnt use multiverse
i tought you mean 'I didn't use mv before, therefore I don't know where to do'
oh k ty again
luckpermschat or DeluxeHub
would probably handle why the [world] is before your name.
thanks š and tab does not show commands
why ?
for example /tp mus(tab) tab was filling automatically
Ensure that your spigot.yml's commands.tab-complete value is not set to -1
It should be set to 0
In that case, it may be the fault of a plugin you have installed
Perhaps they force a permission for tab completion.
Depends on what you've installed
plugin could have implemented tab not correctly ĀÆ_(ć)_/ĀÆ
Well considering /tp is vanilla
thats fine
its bungeecord problem ?
bcs i use 2 day ago multiverse server
tab succesfull working
it may be the fault of a plugin you have installed
i have a multiverse server too and i use same plugins
This is assuming you have permission for these commands as well, correct? If not, tab completion won't work
i have op
hey guys. was looking for some help. my dynmap is sending me to this: https://i.imgur.com/rofj3ca.png it worked fine before. Idk what changed
I have Dynmap-3.0-beta-10-spigot
looks like theres a newer version. going to try that
instantly fixed
That's also from 2013 lol
lol
rip 1.8.8 users ?
That was even pre 1.8
That's like, 1.6
Yea, it was 1.6
That was a good guess, damn. lol
Rather, https://github.com/lucko/LuckPerms/wiki/Command-Usage is probably more informative
Yeah, I'm not going to run your server for you
If you can't be bothered to read documentation on the plugins you install, you shouldn't be running a server
warps:
a:
b:
c:
Is there a way to check the length of the subsections in warps? In this example the length would be three, as there are three sub sections. (I'm checking this in my config.yml)
getConfigurationSection("warps").getKeys(false).size() unless its .length
Thank you!!!
It's a Set<String>. size() is correct
Another quite possibly dumb question, how would I get the integer of each ConfigurationSection? In the example above, a = 1, b = 2, c = 3?
Well if you have all the keys...
Iterate the keys, "warps." + currentKey
Unless you mean the order, in which case order is not maintained for config files
keys donāt have integers
alright, thank you!
š
š„ŗ
Choco, do you know a method to listen and block packets on BungeeCoord?
Sorry I've just gotten a tad confused, what does .getKeys return? Were those the sub-categories of the category specified?
I'm trying to basically do a .getChildren() sort of thing though that doesn't exist. Then I want to turn that into an array
Will there be any chance on making a 1.8.8 version of spigot LTS? Having to use forks from random sources is... well... not good
And it just needs some little stuff patched, it would be nice to have a good source with a polished version of it
@tiny pebble Are u talking about ConfigurationSection?
Yeah
True goes deeper
no
true would result in getting keys from any child sections iirc
true:
test:
test:
test2:
false:
test:
test:
test2:
Marked what it will return
Hey, please can someone help me with nametags?
It's not working.
What isnāt working
Oh thanks Linsa that's what I was trying to type out.
So if I do something like config.getConfigurationSection("warps").getKeys(false) it would return only the children of warps, not the children of the children, correct?
It would only return keys of that section?
It wouldnāt return keys of a key that holds a section
Alright yeah that's what I meant sorry haha
Cause I'm trying to get those keys and then turn it into an array so I can use keys[i], it's getting a bit wonky
true is very rarely used
I figured
š
Object[] keys = config.getConfigurationSection("warps").getKeys(false).toArray();
Seemed to have returned NullPointerException. Is there something I missed?
invoking methods on null will throw npe
?support
I'm new to Java so bare with me a stupid question...
How would I make it not invoke on null then? My IDE suggested the wrapping in Objects.requireNonNull(), which I have done yet still results in NPE.
Send more code
either config is null or there's not a section called warps so getConfigurationSection is returning null
There is a section called warps though there are no keys currently, which I didn't realize. Could that have been the problem?
hello, I'm playing on a minecraft server that works with spigot. i like making farms and playing with some minecreft behaviors. But I am a little lost here, and I think you can help me, I am looking for some page, documentation, that says what behaviors the spigot does that is different from the vanilla. do you have something similar to that? I look for this because it will be very frustrating to make a farm and, for a very small detail, it does not work as it should.
Maybe? But I think it just returns an empty Set if there's no keys
But I would definitely put keys there š¤
That's what I figured...
public static Inventory warps = Bukkit.createInventory(null, 54, "Warp List");
static {
Object[] keys = config.getConfigurationSection("warps").getKeys(false).toArray();
for (int i = 0; i < keys.length; i++) {
Object currentKey = keys[i];
String a = Objects.requireNonNull(config.get("warp." + currentKey + ".display")).toString();
ItemStack warp = new ItemStack(Material.valueOf(a));
ItemMeta warpMeta = warp.getItemMeta();
String color = Objects.requireNonNull(config.get("warp." + currentKey + ".color")).toString();
String name = currentKey.toString();
assert warpMeta != null;
warpMeta.setDisplayName("§" + color + name);
warp.setItemMeta(warpMeta);
warps.setItem(i, warp);
}
}
@naive goblet Here's the mass of my warps inventory.
@upper hearth The keys get made when a player creates a warp, so I'd assume I'd have to find a way around keys not being there
I'll try shoving a key under warps to see what happens
at least it gave a different error haha
mood
could probably use that as a work around and just make it so it doesn't display the placeholder ^^
Location start1 = (Location) config.get("launchpads." + s + ".start");
launchpads.put(start1.getChunk(), ...);
I'm doing this when my plugin enables but it appears the chunk is null, any way to fix this?
is the location not null?
hello spigot discord, i was wondering how people went around filling unused space in an inventory with the glass panes
I'll answer that with two questions
How would you access every item in an inventory?
How can you check if a slot is empty in an inventory?
Guys
Could not load 'plugins\ProEvent.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: java.lang.IllegalStateException: Cannot get plugin for class me.itzdoctormine.events.Main from a static initializer
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:133) ~[spigot.jar:git-Spigot-dcd1643-e60fc34]
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:327) ~[spigot.jar:git-Spigot-dcd1643-e60fc34]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:248) [spigot.jar:git-Spigot-dcd1643-e60fc34]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.loadPlugins(CraftServer.java:305) [spigot.jar:git-Spigot-dcd1643-e60fc34]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.reload(CraftServer.java:750) [spigot.jar:git-Spigot-dcd1643-e60fc34]
at org.bukkit.Bukkit.reload(Bukkit.java:525) [spigot.jar:git-Spigot-dcd1643-e60fc34]
at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:27) [spigot.jar:git-Spigot-dcd1643-e60fc34]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [spigot.jar:git-Spigot-dcd1643-e60fc34]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:648) [spigot.jar:git-Spigot-dcd1643-e60fc34]
at net.minecraft.server.v1_12_R1.PlayerConnection.handleCommand(PlayerConnection.java:1399) [spigot.jar:git-Spigot-dcd1643-e60fc34]
at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1234) [spigot.jar:git-Spigot-dcd1643-e60fc34]
at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot.jar:git-Spigot-dcd1643-e60fc34]
what is this error
code block?
My main problem has been fixed, though when in a custom inventory, I have event.setCancelled(true) on all items yet I can still double-click them and they still all stack up. How can I make that not happen lmao
like this
tanku u need a listener class that holds the public void onMenuClick(InventoryClickEvent) { Player player = (player) event.getWhoClicked;
I do have one
I have it so when you click it just returns the item to the inventory, hence the event.setCancelled(true). That works, but if I double-click and I can stack all of the items still.
ik lol it doesnt make sense
how do i fix this its my server
doest the NBTTagCompound#get*** returns null if the specified key doesn't exists?
huh
try and see
trying would take less time imo
It really wouldn't
who areyou talkin to
sunstorm
ok
btw why does this command not work
/mv import MiniGame Lobby NORMAL
minigame lobby is the world name
Hello, how can I make static voids inside of a interface thanks
nizzy its the space in the name
do i put underscore
yee
aight
i done that but when i send it it says thats not the name
but when i dont put space it says invalid argument
I'm gonna go with assuming it does return null
lol not there sun
it still does not work
I can
test it for me
don't work
or this ip
okay i looked for you @tawdry venture and it seems it uses a map
that won't work dm il help you
ok
@lilac cradle that is private lmao
Hi, how can i display a custom map on BungeeCord?
@tiny dagger maps return null, right?
Heya guys, how do i spawn a wither skull, that does not move but does look in a certain direction?
oh that would be fun
but you can't
the client is gonna go crazy about it
you'll see it flicker in the direction each second
i guess you can setnoai to it then
Then slows down in it's momentum
Do you have to refresh an armor stand to make changes to it's direction or something @tiny dagger ?
well yeah it's his tick
but not yourself
it just have to be registered into the world
Probably setheadpose
guys i have bungeecord server "/hub" not working /server hub working
how can i fix it
because /hub is not a bungeecord command
how can i do this ?
I think simplest way is to use command aliases
How I can disable player collisions?
scoreboard teams
disabling collisions is a big Åf because it's not officially supported
uh does anyone know a tablist and scoreboard plugin that actually works for paper? i installed CTSNC but all it did is give me 100 error messages per second regarding some issue with luckperms api
yeah i've had a tablist plugin that was doing fine before but as far as i got into my server i realized i really needed a scoreboard too lol
guys i try to upload luckperms on bungeecord/plugins
but luckperms not create folders why
are you using LuckPerms bungee version
^
is there a way to change the belowName display slot view distance?
https://i.imgur.com/JMIY2k6.png how can I rotate this and put it on the slab next to it in 1.8?
welcome to outdated versions where the only way was to set a modified raw byte to modify it š
rip