#help-archived
1 messages ยท Page 128 of 1
Hey, so, I made a new world using CleanRoomGenerator and Multiverse, so I pasted a schematic in that world
I renamed the world folder, let's say I renamed it to "pizza' right, then I zipped it up to PIZZA.zip, my plugin takes PIZZA.zip, unzips it, and renames the folder again to the player UUID
then it teleports the player to the spawn location of said world
But when I'm teleported, it's a completely new world. It's not an empty world with the schematic like how it was before I renamed it and zipped it
It's a new world with the default terrain, rather than being, well, empty
Anyone know why?
Heyo, I'm trying to send an error message to the logger.
Yet getLogger().log() says that the log method doesn't exist.
or log() takes a WarningLevel lol
ye, but it says that the log method doesn't exist for some reason
when u are connected to a vpn, can a ddose attack reach your router or no?
getLogger().severe()
or .warning()
or .info()
These fix it, thx.
when u are connected to a vpn, can a ddose attack reach your router or no?
They can't send packages to your IP as you're using a virtual one. Therefore most can't
But I mean, nothing is impossible.
If you're getting troubled by scripkiddo's then thats a fine solution
ok
getLogger().log(Level.LEVEL, Throwable, Supplier<String>)
If you're not running any servers locally a dynamix IP is also usefull.
getLogger().log(Level.LEVEL, Throwable, Supplier<String>)
@naive goblet Can you explain this a bit to me? ThelevelI understand, but the other 2 parts I don't.
If they have your original ip, pretty sure
Kylle, the things I said apply ofc if this isn't true
If an exception is thrown and then you want to log that with your plugin logger you pass second parameter the throwable and then the third param is just a supplier so you eventually pass a lambda expression there?
not really sure how to phrase that in short, so google isn't a big help. In GitHub is it possible to have one maven module public (the API) and all the other ones (the plugin itself) private?
(please ping me if you answer)
Do you mean push each module to a different repo? I thought of that too, but couldn't find a way to do it. Would you mind explaining how to do that please?
Well Iโd just push it into 2 then, one with the public stuff, one with the private stuff
Make 2 repos
That's the only way
It makes no technical sense to have part of a repo private
The whole tree history is stored, you can't just eliminate half of it
(without mutilating hashes)
have any of you guys tryed tcpshield?
Yes, TCPShield is good
Use it if you're worried about ddos or running a competitive server
If you're running on OVH you probably won't need it anyways imo
ok but will it work on an internal ip because im running a bungee and spigot with it, and the only difference is that the ports are different.
nvm ill try to figure it out
I need a bit of help, my server hides everyones ips and they all seem to start with 2 different ips:
Everyone in the servers ip starts with that
So we cant use a antivpn to stop the people with a vpn from joining or else it just kicks everyone for vpn
Are you using a proxy?
No one in the server is using a vpn or proxy
No
Is your server using a proxy
Are you using TCPShield or something to that effect?
Not sure, we use OVH though.
Not at all
And we cant even ipban someone as their ip changes the next time they log on with the same/different account
If you can show me the last octet I can look into what is causing it
octet?
an octet is the number in between the dots
It's called an octet because it has 8 bits
@paper compass How do you get ip of player ?
Hello.
I Dont know how to download and what to download its complicated
Can You Please Help me
Download what
https://hub.spigotmc.org/jenkins/job/BuildTools/ This is confuding
My Brain Hurts
well
sigh
Ok
is what you need to dl
ima analyze ur code first
ok ๐
no
of 1 G
1G?
gigabyte
how much should i give for a 8GB
you're just building the spigot jar
ok
then you take that spigot jar and do your thing
He is doing
C:\Users\Simi\Server\SimiLands Java>java -jar -Xmx1024M SimiLands.jar --rev 1.15.2 Loading BuildTools version: git-BuildTools-975b734-112 (#112) Java Version: Java 8 Current Path: C:\Users\Simi\Server\SimiLands Java\. *** Could not find PortableGit installation, downloading. *** Starting download of https://static.spigotmc.org/git/PortableGit-2.24.1.2-32-bit.7z.exe
Then A Menu Poped out with the %'s
i think its working well
it's building you the spigot jar

๐ฅค
it's made like this to have a peace of mind
Its Done @tiny dagger what i do now
I Pu the Spigot jar name in the run.bat?
What i do
actually
that should be enough
put nogui at the end
java -Xms1G -Xmx1G spigot.jar nogui
ยดjava -Xms1G -Xmx1G spigot.jar noguiยด
@tiny dagger
Why are my logs skipped? I have 200+ logs, but only 50 show up. I use Bukkit.getConsoleSender().sendMessage(...)
I need help, my server hides everyones ips and they all seem to start with 2 different ips:
https://cdn.discordapp.com/attachments/690470011382267904/721795498318495934/unknown.png
https://cdn.discordapp.com/attachments/690470011382267904/721795520393379923/unknown.png
your code just make cmd pop in and then pop out
What do you mean?
It Opens The CMD then cmd disappears
hi
Its always open
no it isnt
It is
Thats not the point anyways
Why are my logs skipped? I have 200+ logs, but only 50 show up. I use Bukkit.getConsoleSender().sendMessage(...)
@pause
Online Recorder Cuz Windows Xbox Game Bar didnt work (not a game) and too lazy to install one
what is @pause
Try it
C:\Users\Simi\Server\SimiLands Java>java -Xms1G -Xmx1G Spigot.jar nogui Error: Could not find or load main class Spigot.jar Press any key to continue . . .
you sure have the spigot.yml?
how
i dont have spigot.yml anywhere
Ima take a break my face is hot as heck. Im tired
add -jar before Spigot.jar
it should be java -Xms1G -Xmx1G -jar Spigot.jar nogui
@fleet owl
java -Xms1G -Xmx1G -jar Spigot.jar nogui
@pause```
Quick question, how can I stop players from directly connecting to my servers whilst they are all connected to bungeecord?
omg
firewalls
im back
or ipwhitelist
if you're coming from the same dedicated server you can use localhost as ip to connect them to the bungee
it will hide the ip from public
BungeeGuard best
it should not be used as excuse to not configure your bungeecord properly, and setup your dedicated server properly
I don't want to be rude or anything, but from my experience I've seen too many people just "throwing" in security plugins and expecting stuff to be "safe"
Could you please explain a little better what are you trying to achieve?
I have a bungeecord server and how can I stop players from directly connecting to the servers connected to bungeecord through their own ports?
so you're saying your players can connect to backends server ?
Well I'm scared that they might be able to
if you did a proper bungeecord and linux setup they should not
Well can I just install ipwhitelist onto the spigot servers and it will be fine?
what does IPwhitelist have to do with this
@opal bay
isn't it just a plugin to block\allow certain IPv4s from connecting to a server?
^ Don't use ipwhitelist lol
^
Or better yet if youโre self hosting change the backend server to a random port thatโs closed off to the internet and use the proxy to connect players so they legitimately have no possible way of getting into the backend.
Hey guys so quick question,
I am wondering how fast is the getNearbyEntities method is, like is it considered a slow method?
Do you think it would cause lag if I run it two times every time the player hits an entity and (with differrnt distances each time) in a server with a lot of fighting going on
Also how accurate is its distance calculation, if I say to get all entities in radius of 6.05 would it would not get from 6.06?
I canโt speak to performance but accuracy itself falls off as you get further from 0,0,0.
xd
Hehe heya there
Does it use a ray trace for the distance?
Or a normal distance formula
Iโm honestly not sure. All I know is the game itself loses accuracy in calculating distance. I donโt know the fall off rate or the like unfortunately.
Itโs accurate enough.
Depends on what you use it for though, anyways thanks for the help! From my experience it is pretty much accurate enough for my needs
Hey guys so quick question,
I am wondering how fast is the getNearbyEntities method is, like is it considered a slow method?
Do you think it would cause lag if I run it two times every time the player hits an entity and (with differrnt distances each time) in a server with a lot of fighting going on
Also how accurate is its distance calculation, if I say to get all entities in radius of 6.05 would it would not get from 6.06?
Would be good if someone can answer the performance question though
What am I doing wrong?
org.bukkit.plugin.InvalidDescriptionException: null is not properly structured.
at org.bukkit.plugin.PluginDescriptionFile.asMap(PluginDescriptionFile.java:1172) ~[patched_1.15.2.jar:git-Paper-350]
at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.java:246) ~[patched_1.15.2.jar:git-Paper-350]
at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:167) ~[patched_1.15.2.jar:git-Paper-350]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:148) ~[patched_1.15.2.jar:git-Paper-350]
at org.bukkit.craftbukkit.v1_15_R1.CraftServer.loadPlugins(CraftServer.java:360) ~[patched_1.15.2.jar:git-Paper-350]
at net.minecraft.server.v1_15_R1.DedicatedServer.init(DedicatedServer.java:234) ~[patched_1.15.2.jar:git-Paper-350]
at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:908) ~[patched_1.15.2.jar:git-Paper-350]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_252]
Here is my plugin.yml:
main: us.ajg0702.disableoffhand.Main
version: 1.0.0
author: ajgeiss0702
name: DisableOffhand
description: Disabled the offhand
please ping me if you respond
guys how can i fix it . nicks moves
Why tf would you need to raytrace to get a distance
@gleaming helm nort is a anticheat dev
Yes I know, so am I
raytracing to get distance, why :p
Yes that's exactly what I said
loc distancesquared all day
(RE: @heady geode)
How would that even like... work
Raytracing from what to what
The distance function it uses is just the distance from the feet of one to the feet of the other
(Or the equivalent entity origin point)
RayTracing to get distance is way more accurate then a normal distance calculation
Are you high?
vec substract other vector normalize then ray trace from loc a to b using the vector ๐ ๐
ez
Ray trace would always be 100% accurate if used right
^
Do you even know what raytracing is
All the big boy AntiCheats do that too, look at FireFlyX source code
Hec as the AGC developers
But
sqrt(a^2+b^2) can't get any more accurate
You need a RAY in order to RAY trace
It's in the fucking name
๐
How do you define your ray
They are not stupid they wont ray trace by themselfs if it was not better
No
Look at the context of those "raytraces"
FFX for example
Doesn't raytrace to get distance
Between two players
It only calculates raytracing
Using the LOOK DIRECTION
(that's the ray)
you probabily want to raytrace to check for other stuff but otherwise it's pointless
And the other hitbox and origin
getNearby just returns a list of entities where this.location.distance(otherLocation) is smaller than some number
Some checks uses the ray tracing to gey distance, some uses it to verify other stuff that is correct
no
I can't tell if you're meming, high, or dumb
like for other stuff only
and it happens to get you a distance number from it
otherwise always use the formula for distance
You raytrace, for example, if you know the direction of a FUCKING RAY and want to know some collision distance
That's what a raytrace is.
But Nort is Anticheat Dev
I'm shocked you don't know this.
Well I saw before a check that uses some ray tracing classes to get the distance and it detected reach hacks below 3.1 so idk man
I'll leave my 3.05 reach check to myself thank you very much, but I'll gladly explain the difference between raytracing and the pythagorean theorem to anybody who asks.
I dont use it currently the ray tracing in my check because its annoying to add and I managed to create some decent checks without it
But I just know its a method that people use so I asked
You might want to get out a piece of paper and draw what you're trying to do
No need to get toxic about it bud
Because you'll realize that a raytrace makes no sense
What the fuck is this Kindergarten School bro
Draw on paper
Damn
I draw on my arm that's ๐ช facts
Raytracing is pretty easy to visualize for most
dont worry soon people will be solving the world's problems with RAYTRACING
who needs ml when you can have RAYTRACING
Shut up fork
^
๐
Just cause you don't know what you're talking about don't mean you gotta deepthroat
huh?
ok i guess?
No you don't guess I just filled it out for you ๐ค๐ค
Here is an example of the concept, https://github.com/undersquire/Hades/blob/master/src/main/java/me/apex/hades/check/impl/combat/reach/ReachA.java
Im not saying that this reach check is good, its clearly not as it does not include a lot of other stuff, fix victims position... hitboxes and stuff but yeah that an example of using rays to get distance, he does not do it fully properly though
Notice how he's passing a look angle
Yeah sure but you can't just say "entity.getNearbyEntities(3.1)" and expect it to work lol
Even though I already saw that you guys are being pointlessly toxic so Im going to stop this talk now ๐ค
Oh I was just thinking of a new method to test
It suprisenly worked for like 3.2 minimum, but if its heavy to run or not accurate sometimes there is no point in using it
I just like trying stuff sometimes, you know trying to discover new stuff
haha what
i'm not an anticheat dev
and that's a weird method of handling reach checks
Haha Ik its very wired, a super wired idea, I was never thinking that something so simple would be able to detect a hack like reach which is pretty complicated to detect compared to other hacks, but it actually seems to maybe be something that is just decent to use
To be fair I was not the one to think about it though
Throw it on a server with laggy players and see what happens :v
Yup, will probably fail though in that case
Since the location is not being fixed, before the method calculates the distance
can someone still ping my domain and find out my ip
yes
not your ip tho
unless you are hosting the web server from your computer
yes :C
ok
i dont know what to do..
What am I doing wrong?
org.bukkit.plugin.InvalidDescriptionException: null is not properly structured.
at org.bukkit.plugin.PluginDescriptionFile.asMap(PluginDescriptionFile.java:1172) ~[patched_1.15.2.jar:git-Paper-350]
at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.java:246) ~[patched_1.15.2.jar:git-Paper-350]
at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:167) ~[patched_1.15.2.jar:git-Paper-350]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:148) ~[patched_1.15.2.jar:git-Paper-350]
at org.bukkit.craftbukkit.v1_15_R1.CraftServer.loadPlugins(CraftServer.java:360) ~[patched_1.15.2.jar:git-Paper-350]
at net.minecraft.server.v1_15_R1.DedicatedServer.init(DedicatedServer.java:234) ~[patched_1.15.2.jar:git-Paper-350]
at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:908) ~[patched_1.15.2.jar:git-Paper-350]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_252]
Here is my plugin.yml:
main: us.ajg0702.disableoffhand.Main
version: 1.0.0
author: ajgeiss0702
name: DisableOffhand
description: Disabled the offhand
please ping me if you respond
(1) Not using Spigot. Ask in the appropriate place next time
(2) Is your plugin.yml being exported properly? Open your compiled jar and locate the plugin.yml. It should be in the root
Yeah well the YAML is failing to load, so my only guess would be that the file is empty
or the good old tab
can i use microsoft azure to host a minecraft server instead of my computer...
Hi i need help bots are crashing my server (mcspam)
(online mode)
tried using abd and bs
they dont join the server
even when the server is whitelisted
the server will lag
(keep in mind i mistype)
the server does not crash but commands are laggy and ping is high
and in a few secs ex: 30s everyone will be kicked
you should stop your server and wait till a staff answers you...
online mode is false there
Use online mode
or somebody is bungee exploiting
lol
online mode is true
dats tuff ...
no
but those names
they use mcspam
I've seen this before
are not real names tho?
i tested it my self
are they??
nope
?
Ohhh
I missed that LOL
thought you meant they joined and started spamming
honestly idk if you can stop that
yeah ur fine
?
after? or before
The only explanation is a really bad plugin or a CPU weak enough to cause oversleep
because i tested it my self while trying to find a antibot
On something like that
30 secondes
1-2k bots / sec
says
Is it lag or TPS drops
no tps drop. only people will start to get high ping and after a few seconds they get kicked
Yeah that's normal
You don't have enough network throughput to handle the connections
There's really nothing you can do about that
alright so i just tested and like commands work perfectly fine when being botted
(console
Yeah that's caused by the very high connection volume
And your network card can't handle the volume
could it be ddose?
Nothing you can do except better throughput (or be hypixel and use multiple machines)
nvm
hm
how does one specify repository ID in gradle kts build?
basically trying to replicate this into gradle
You don't need to
Just specify the dependency
Or do you want to know how to declare a repository
well
compileOnly(group = "net.md5", name = "bungeecord-api", version = "1.15-SNAPSHOT")
``` doesn't seem to be importing so i though not having the ID is the issue
add a repositories {} block
You'll want to use:
repositories {
maven {
url "https://oss.sonatype.org/...."
}
maven {
...
}
...
}```
Imagine using double quotes
In which BungeeCord class are the plugin messaging channels handled?
lol
if (isHacker) {
banHacker();
}
^ private anticheat code
no
https://lmgtfy.com/
@gleaming helm ?
it means search on google
It means google it you lazy bum
Has anyone encountered a problem where mobs spawned from spawners have no AI?
No, but you can set the tags on a spawner to spawn mobs with no AI automatically though. Generally either spawners spawned in with a command or a plugin that does it.
That's not what he asked lol
Yeah, for some reason spawners on my server are automatically spawning with no AI
if a bungee server get ddose, does all the spigot server connected to it will also get ddose? and crash the network.
@acoustic temple look for nerf-spawner-mobs in spigot.yml
Ah, that was set to true for some reason. Thank you!
good afternoon, has anyone worked with the plugin "pro skywars"?
I have a question with some kits that I made because I do not know how to put potion effects unu
Does anyone know what the implementation class of Villager is? org.bukkit.entity.Villager
I want to extend this class, but its an interface. Obviously I don't want to implement its methods.
@frigid ember I'm going to assume that you only have a single machine/network connection for this explanation, if this is not the case, then this explanation is invalid.
When you get DDOS'd, what happens is your machine becomes unable to handle the traffic it is presented with. This overwhelms your entire machine and causes it to drop all outbound connections. Any internal connections may or may not work, depending on how your network stack is configured, but any connections to players will be disrupted by a DDOS. Adding a bungeecord proxy does not help this. Sure, the connections between bungeecord and your backend server(s) may still work, but it just shifts the problem up a layer. Players will be disconnected from bungeecord.
ok i get it now
hey, does anyone know how luckperms handles the * permission?
There isn't a permission check event in spigot, only bungee so I'm not sure how I should do it
alright @gleaming helm my problem with randomly crashing + low tps seems to be an issue of the past now
Awesome
the server just handled 156000 tnt exploding all at once
lol
admittedly not very well lmao
Well TNT isn't a great test of performance
It's actually quite a terrible test of performance. But yeah, paper makes some pretty cool optimizations to TNT
but tps has also been real high and stable
How has your mspt been?
with multiple ppl on
use /paper mspt if you don't know
Tick times are a better performance metric than raw TPS
Because they allow you to understand performance before the point of TPS drops
Any tick time under 50ms means your server is performing well
(My alerting system starts firing warnings at 40ms)
it's all around, but all green except for one number being 52 but i also havent restarted the server since I was using both flyspeed 10, and 156k tnt
Yeah that 52ms tick was probably 1 minute ago
i see alot of like 17, 10, and around there
the reason i wanted to see how tnt is tho is because our next build will require lots of tnt
my creeper farm can make around 12441 tnt blocks worth of gunpowder before i have to empty it lmao
it handled 16k like a champ tho lol
How can I make a message wait three seconds before getting sent to a player? I've been trying to use getServer().getScheduler().runTaskLater() but I'm having trouble because the method I'm using it in is static and located outside of the main class.
Pass in an instance of your JavaPlugin object to the static method
And I really don't want to question this, but you should be minimizing your use of the static keyword in an OOP paradigm
Properly use dependency injection and you won't end up with this issue
What is dependency injection?
Dependency injection is where
When you initialize some class or something
You pass in to the constructor all of the things it needs
So in your main plugin class, suppose you have a line that says
thingManager = new ThingManager();
Now your problem is
ThingManager has no way of accessing an instance of your main plugin class
So what you can instead do is
thingManager = new ThingManager(this);
And now, you pass in the instance that it requires in the constructor
You could also use a singleton for your main plugin class, but I don't know if I would recommend that at your skill level because you'll end up applying singleton everywhere, even places where it doesn't make sense.
What type would I put in the constructor of the ThingManager?
An instance of your main plugin class
ah
Or whatever ThingManager depends on
I'm just using that as an example because that's your actual problem
But you can pass in whatever you like
Woah
That is EXCELLENT
I have some serious refactoring to do in another one of my plugins.
LOL
Thank you very much Kevin
What is singleton?
Singleton is where you decide ahead of time that you will only ever have one instance of a class. For a minecraft plugin, what you'd do is create a private static field containing an instance of your plugin, at YourPlugin.instance. In a constructor or in an initialization routine of some kind, you set that instance variable to the instance of your plugin. Then you create a static getter, such that you can call YourPlugin.getInstance() from anywhere in your code, and get an instance
It looks like a great idea
But it can be bad practice and very easily overutilized, so I don't recommend beginners to try to do this kind of thing.
Yeah like I said before there's a very deep rabbit hole here
There are entire books written about this stuff
hey guys
i need some help
so is there a way to use commands to create a protection 5 enchantment book? I used ItemEdit
but it doesn't apply properly.
help me someone
my exdev made a staffchat plugin and once the text goes to the next line it turns white
like resets the color
its a bungee plugin
i have the jar and source
someone please help me
i dont know anything about coding so idk where and/or how to fix it
I gotcha man
hey guys
i need some help
so is there a way to use commands to create a protection 5 enchantment book? I used ItemEdit
but it doesn't apply properly.
' ' ' hey guys
i need some help
so is there a way to use commands to create a protection 5 enchantment book? I used ItemEdit
but it doesn't apply properly.' ' '
also
i use the give command
and it throws errors on my server
but not in singleplayer
is there some plugin conflicting?
(me wondering if its EssentialsX since that adds the /i command and changes the functionality of /give)
pretty sure with essentialsx it stops you from creating impossible enchantments like loyalty on hoes, and prot 5 etc. you can change it in the config tho
no yeah but it also does some other things
like i can;t give myself custom player heads with /give anymore for some reason
it doesnt think attaching nbt tags to items is a thing
if im in creative and i use a command block to give it doesnt work either so i have to use fill
but then if i use pick block it turns into a steve head so i cant get it in my inventory
help pls
what command are u trying to put in, compared to alot of ppl here im not the most knowledgeable but I might be able to help who knows lol
@dusky jolt dms
is there a pathfinder attack goal for creepers like, this.goalSelector.a(4, new PathfinderGoalMeleeAttack(this, 2.0D, true)); but for creepers?
my exdev made a staffchat plugin and once the text goes to the next line it turns white
@slate ocean BRUH ask you dev to fix plugin XD
@slate ocean String builder would probably fix the issue
I mean white is lit
@naive goblet Blaq lives matter
Iโd say everyone lives matter
partially agree, people like pedophiles or murderers dont matter
Depends how you see it. Well I think it was good what the intentions was behind blm but what it have become isnโt certainly good
Read what I wrote once more 
s0rry i cant understand ur sentence im too dumb
Makes sense
๐ฆ
Does anyone happen to know or have any topological java sorting algorithms for sorting Objects in a list?
I can make one myself, I'm just asking around to save me the hassle.
implement comparable
and use Arrays.sort
:d
it has the best algoritm i think as well
Well it depends, some sorting algorithms is faster when it comes to a large amount of objects and others are faster with small amount
Thing is I need topological one.
bogo sort ftw
Because I have a list of objects, each one has depends on other objects within the list
and I need to sort it to do that
n log n! ๐ or something like that
a topological sorting algorithm does that
Well essentially just google one up?
^
is there a pathfinder attack goal for creepers like, this.goalSelector.a(4, new PathfinderGoalMeleeAttack(this, 2.0D, true)); but for creepers? Anyone?
Why Is tcp shield plugin not loading
i got this message everytime
: Could not load 'plugins\TCPShield.jar' in folder 'plugins' org.bukkit.plugin.UnknownDependencyException: ProtocolLib at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:269) [Spigot.jar:git-Spigot-a99063f-c9d7c16] at org.bukkit.craftbukkit.v1_15_R1.CraftServer.loadPlugins(CraftServer.java:353) [Spigot.jar:git-Spigot-a99063f-c9d7c16] at net.minecraft.server.v1_15_R1.DedicatedServer.init(DedicatedServer.java:210) [Spigot.jar:git-Spigot-a99063f-c9d7c16] at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:784) [Spigot.jar:git-Spigot-a99063f-c9d7c16] at java.lang.Thread.run(Unknown Source) [?:1.8.0_251]
At The First Start of the server
md_5
how long do name requests take
sadly someone took my current name on discord
so i requested to be retrooperdev
guess im just unlucky
;c
probs some troll person ๐คท
lol
then dont specifically point it out on a public platform, you're asking for it to be taken
Oh I HOPE NO ONE TAKES THIS NAME, my name, please DONT take it
i thought they detect if you have 2 accounts
with cookies or something
or ip
anyone know how to cast a bukkit itemstack to a NMS item stack?
I'm trying to use reflection but it's saying the method doesn't exist
java.lang.NoSuchMethodException: org.bukkit.craftbukkit.v1_15_R1.inventory.CraftItemStack.asNMSCopy()
it's listed as a method though:
getMaxStackSize () asCraftMirror (net.minecraft.server.v1_15_R1.ItemStack) getEnchantmentLevel (org.bukkit.enchantments.Enchantment) addUnsafeEnchantment (org.bukkit.enchantments.Enchantmentint) containsEnchantment (org.bukkit.enchantments.Enchantment) asBukkitCopy (net.minecraft.server.v1_15_R1.ItemStack) asNMSCopy (org.bukkit.inventory.ItemStack) [...]```
Wrong args
you sure? I'm not even invoking it
it's erroring on the getMethod part
ItemStack sItem = player.getInventory().getItemInMainHand();
sendMethods(sItem.getClass());
>>> Method copyMethod = sItem.getClass().getMethod("asNMSCopy");
Object nmsItem = copyMethod.invoke(sItem, sItem);
you only invoke once
do i need to add ItemStack.class as an argument within the getMethod?
at least i do
final Object nmscopy = cfi.getClass().getMethod("asNMSCopy", Item.getClass()).invoke(Item);
its a static method so you want null for the first arg
i'll try that out fatal and yeah will change the first arg to null
huh yeah adding ItemStack.class wokred, you were right Mini and ty Fatal and md_5
Is there a way to get all the format of a message
I want to get all of this
I tried a getFormat it returns that
Isnโt there like a method #getMessage
Yes
but I want everything
<faction> <prefix> <pseudo> ยป <chat>
not only <chat>
yea as md_5 said, first arg is null telling it its static
is the spigotmc.org website broken?
yes
is it only for me ?
you're the same too ?
hey
how can i make it so that when a person comes to a cordinate
4 coords for a wall
-5 +6, -5 -6, +5 -6, +5 +6
so that the event gets canceled
just like worldguard passthrough flag
<faction> <prefix> <pseudo> ยป <chat>
@limber summit
this is what i use tbh
event.setFormat(rank + " ยง5| ยงc" + event.getPlayer().getName() + " ยง5ยงl> ยงc" + "%2$s");```
add this ontop if you want & color codes
event.setMessage(ChatColor.translateAlternateColorCodes('&', event.getMessage()));
tbh, idk why i used ยง
Hi ! I'm trying to use this to create a plugin where the end gateway doesn't spawn after the dragon's death, however it's deprecated, any idea what i could use instead ? tysm

not cool
How to use eyes diy
im very cool
no
how can i make it so that when a person comes to a cordinate
4 coords for a wall
-5 +6, -5 -6, +5 -6, +5 +6 (x,z no y axis)
@sturdy oar you know the passthrough flag?
WorldGuard?
I think so
Oh so you want to have a cuboid that will flag upon entering
like so that players cant escape from the map
well you just gotta apply some basic math
do you have the corners or the centre of the cuboid?
Ah, your a legend.
https://www.spigotmc.org/resources/lib-armorequipevent.5478/ guys how can i use this plugin on my shop
which shop?
/mv import name normal
i want to make it load a workd
where should i have the world folder?
and how do i put a resource pack and force others to use it?
you have multiverse or you just want 1 world ?
1 worlfd
okey
i dont have multiverse
now join your server files
Im on the server folder.
remove "world" file and upload new world file
and called it "world"
and restart your server
Theres a folder called worlds
and a folder called SimiLands (level name (configured in server.props)) outside the worlds folder
What is ss
screen shoot
but in the level name its written SimiLands
what ?
yes
Spigot splits out the nether and end
It will do this automatically if you just upload a vanilla world
md_5
can you help me ?
https://www.spigotmc.org/resources/lib-armorequipevent.5478/ how can i use this plugin on my eggwars villager shop
I Drop the SimiLands Folder with SimiLands Text on The server files?
md_5 canu check the usernamechange requests
@cerulean musk That lib allows you to trigger things when people equip armor. Since you're copying the cubecraft eggwars shop you have no use for it
oh
i want to autoequip shop like cubecraft :/
a guy write me code
but this code no have enchants
can someone who knows netty helpme
I am sending packets basically for my game
And i have a chat packet also
that works with my chatui system
I include a string in the chat packet
now i tried sending messages, and at 12 characters and above the packet isnt received
by the server
@cerulean musk That lib does not allow you to force equip armor. You don't need another lib at all use the Player#SetArmorContents method
Make sure you have the right world selected in the server.properties file
But where are the worlds stored
Does the level name select the folder name or the name of the world
It selects the folder name
md_5
can u accept my name change request
and update it here
hey, how can i get int untill for example 1 - 5.
without a loop
so like x = 1 and 2th x = 10
????
2nd lol not 2th
wdym
nvm
random
i think
without a for loop I don't think its possible
You can use any function, any api, but at the end, behind the scenes they all do for loops
iirc
Hey! Does anybody know how I can check through all the config files in a folder like this "plugins/Drugs/Data/" and check if any of the config files in it contain a broken block location?
If you use Kotlin ๐ you have access to Ranges without any library
What kind of loop would I be using?
Yes
there is a listFiles method
get to the Data directory, and use File#listFiles I think
Not sure if that's what you need
Can anyone help me I get this strange error
And Ive reached out to multiple devs
everyone either ignores me or cant help me
This is my config.yml
Ive tried ๐ฆ
and?
Well, doesnt work
I've tried to switch around ' and " everywhere
required_players: 1
countdown_seconds: 30
lobby_spawn:
world: "world"
x: 100
y: 80
z: 100
pitch: 60
yaw: 60
arenas:
'0':
world: "world"
x: 10
y: 10
z: 10
pitch: 60
yaw: 60
'1':
world: "world"
x: 200
y: 200
z: 200
pitch: 60
yaw: 60
try that
Same errors
It;s something with this
expected <block end>, but found BlockMappingStart
in 'string', line 5, column 7:
x: 100
^
...................
org.bukkit.configuration.InvalidConfigurationException: while parsing a block mapping
in 'string', line 4, column 5:
world: 'world'
^
expected <block end>, but found BlockMappingStart
in 'string', line 5, column 7:
x: 100
^
I'm getting an error from luckperms as soon as I changed the server to offlinemode for bungeecord
Are you using craftbukkit?
That's the only error I know in this context, if I'm being honest
In 1.15 whats the alternative to SkullMeta.setOwner("MHF_ArrowDown") since its deprecated.
SkullMeta#setOwningPlayer
Requires an offline player.
Can you make/get an offline player with MHF_ArrowDown?
Bukkit.getOfflinePlayer("fsfs");
Thought it returns null if the player never joined the server.
Bukkit.getOfflinePlayer("fsfs"); deprecated also xD
Yes, it is deprecated. That's because it is potentially blocking.
Trying not to have any deprecated methods
I.e if you search for a name that has not joined the server, a network call will be made which may freeze your server for a few seconds
But if you run the method once, then the info should be cached for the next time
Trying not to have any deprecated methods
Then why make the method deprecated?
So that you think twice before using it.
You should be able to create the UUID from 68f59b9b-5b0b-4b05-a9f2-e1d1405aa348 and look for that instead
Why is setOwner() deprecated... doesn't it already run the same check getOfflinePlayer does?
setOwningPlayer
The point is, player names can change. Setting a name as an owner of a skull does not make sense because there might not be a player that has that name. Or, after some time, there might be some other player that has that name (as opposed to when it was first created).
I get that. But still shouldn't be deprecated if it just has the same search methods.
What makes you think it has the same functionality? It doesn't.
SkullMeta.setOwner() searches for the player with that username the same way Bukkit.getOfflinePlayer() would
I figure it searches for the players skin texture meaning it would check mojangs api. Bukkit.getOfflinePlayer() more then likely checks the servers offline players and if not found checks the mojang api.
i'm pretty sure the mc client itself would look it up
that would make sense i might just be talking out my ass
Any good developers?
No. We're all horrible.
If you wish to request or offer development/art/building/administration services, please do so at https://www.spigotmc.org/forums/services-recruitment-v2.54/
Usually, one starts with sharing the error/stacktrace
Alright true I forgot
hello there!
There's an issue parsing a yaml file
Make sure you don't have any tabs in there
Perhaps you're simply operating on a different file than you think you are?
How would I know? Like Im sorry. but I really dont know at all
Like idk what the error is/means
ive tried 100 things
java.util.concurrent.ExecutionException: java.lang.NullPointerException
at java.util.concurrent.FutureTask.report(Unknown Source) ~[?:1.8.0_251]
at java.util.concurrent.FutureTask.get(Unknown Source) ~[?:1.8.0_251]
at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:47) [spigot.jar:git-Spigot-596221b-9a1fc1e]
at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:747) [spigot.jar:git-Spigot-596221b-9a1fc1e]
at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:405) [spigot.jar:git-Spigot-596221b-9a1fc1e]
at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:678) [spigot.jar:git-Spigot-596221b-9a1fc1e]
at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:576) [spigot.jar:git-Spigot-596221b-9a1fc1e]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_251]
Caused by: java.lang.NullPointerException
at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:446) ~[spigot.jar:git-Spigot-596221b-9a1fc1e]
at net.minecraft.server.v1_12_R1.PacketPlayInTeleportAccept.a(SourceFile:31) ~[spigot.jar:git-Spigot-596221b-9a1fc1e]
at net.minecraft.server.v1_12_R1.PacketPlayInTeleportAccept.a(SourceFile:8) ~[spigot.jar:git-Spigot-596221b-9a1fc1e]
at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13) ~[spigot.jar:git-Spigot-596221b-9a1fc1e]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[?:1.8.0_251]
at java.util.concurrent.FutureTask.run(Unknown Source) ~[?:1.8.0_251]
at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) ~[spigot.jar:git-Spigot-596221b-9a1fc1e]
... 5 more```
Once any player join in the server, it's write "Loading terrain" for 5 seconds and spawn with this error in console, why is it? (:
you have a nullpointer
you have a nullpointer
@mystic sparrow What is it means?
something returns null
Some plugin?
I guess sp
I'll try to run the server without plugins for asec
How can i know which plugin cause this error?
I didn't find in this error code any plugin associated
It'll be something that messes with teleportation
It'll be something that messes with teleportation
@wraith thicket yeah i notice but i tried to disable essentials or factions or any plugin which deal with teleportation and didn't find anything.
ok
there are several plugins for that (lazy answer)
How do you get the facing of a sign ?
I found several answers but they are deprecated
Hello, I have a question, is there a way to modify the PVP of 1.12.2 to be similar to 1.8? I think that a fork would be possible, but I don't really know.
It's possible and has been done before.
also to me
Hello, Intelji won't encode this symbol ยง any help thanks
save it in utf-8 format
ChatColor.translateAlternateColorCodes('&', "String");
perma?
- Properly set file encoding, or 2. Use \uXXXX instead
Okay thanks
btw is there a way to translate the chars into \uxxx? ๐
It's set to this
Just use the Unicode id for the character
There's around 300 of them and I don't have time
It's fixed I needed to rebuild it lol
https://youtu.be/DPfxjQ6sqrc i recommend this video to game devs, really helped and explained nicely
Is there a way to get all the format in an AsyncPlayerChatEvent
I want to get everything
not only "tes"
its back
Yes, you basically String.format the format and the stuff it needs together
Hi, Any idea how to use api 1.13 materials names also working in 1.8-1.12?
Don't ping
which is not what I want
Increase the priority
The javadocs for String.format tell you what's passed in there
Of the chat event
it's to monitor
How would a movement value in a position packet be +โ or -โ
greater or smaller than 64bit i guess?
Hey guys, how can we execute ssh commands from a JavaPlugin ?
yeah why would you do that lol
the only time I've seen someone doing that was antibots plugin executing firewall bans
This is to test a personal stuff (seems really dangerous) ^^
How long does it take for unban support to get back to you?
That sounds like a really fucking bad idea
That sounds like a worse idea than litebans sqlexec
Guys how does buying plugins work?
Please donโt put that on a production server or in a plugin you release
I want to buy LeaderHeads but I dont know how this works
If I buy it I can download it any time I want by accesing its spigot page with my account right?
For sure Kevin, this is a localhost server for personal test intend
@frigid ember if you buy a plugin on spigot, you'll be able to download it whenever you want, and you'll get all the updates
In that case, there are plenty of libraries that will happily connect you to an ssh server
Or if youโre only worried about running commands locally, use Javaโs process builder
Okay perfect, thanks !
why there is double d at the end of this inventory action HOTBAR_MOVE_AND_READD
a really serious question
it's re-adding it, so...
Just want to make sure,
https://guava.dev/releases/23.0/api/docs/com/google/common/collect/Multimap.html#removeAll-java.lang.Object-
this means that the reference to the key won't be kept in the Multimap, right?
(so memory leaks won't be caused)
please ping me if you answer ๐
the documentation says the key gets removed
yeah, I read that, just wanted to make sure. thanks.
Is there a way to make the names of players in spectator mode appear as normal/non-italic in the player list?
Not really with that little info.
Does the pom exist? Is it valid?
although it's clearly there in my module directory
i can even provide the opensource repository on GitHub, if you want to look
Can you show the full warning
I think it searches for the module... on spigot repository?
Although I've clearly specified the parent in the pom.xml
Seems like it's the pom of one of your dependencies, CheatEscapeCore isn't your plugin, is it?
well this is a multi-module project
the Core module should be added as dependency for Spigot module
It even lets me use Core classes and files inside Spigot module
SSH
This does compile however if I run "clean package" into the main project directory
WHERES SSH GANG
dude wtf are you on about
what the fuck
can you stop
this is #help-archived not #retard
