#help-archived
1 messages · Page 99 of 1
>.... [16:57:58 WARN]: [Essentials] Task #156626 for Essentials v2.17.2.0 generated an exception
java.lang.NullPointerException: null
at com.earth2me.essentials.xmpp.XMPPManager.updatePresence(XMPPManager.java:142) ~[?:?]
at com.earth2me.essentials.xmpp.EssentialsXMPP.updatePresence(EssentialsXMPP.java:113) ~[?:?]
at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftTask.run(CraftTask.java:84) ~[patched_1.15.2.jar:git-Tuinity-"8499889"]
at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:452) ~[patched_1.15.2.jar:git-Tuinity-"8499889"]
at net.minecraft.server.v1_15_R1.MinecraftServer.b(MinecraftServer.java:1185) ~[patched_1.15.2.jar:git-Tuinity-"8499889"]
at net.minecraft.server.v1_15_R1.DedicatedServer.b(DedicatedServer.java:431) ~[patched_1.15.2.jar:git-Tuinity-"8499889"]
at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:1112) ~[patched_1.15.2.jar:git-Tuinity-"8499889"]
at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:934) ~[patched_1.15.2.jar:git-Tuinity-"8499889"]
at java.lang.Thread.run(Unknown Source) [?:?]```
help plz
this happens any time someone leaves
dont use essentials is the way to go
im using essentials, it's something im extremely familiar with. What else should i use?
when i had a server i used my own plugin instead of essentials
no server i've ever been on hasn't used it
good servers dont use that shit
well theres nothing much you can do about this
and im not gonna ask my dev to replace essentials
hes got enough on his plate as is
so this error that spams console when someone leaves is unavoidable?
Getting rid of essential is an essential tbh
Getting rid of essentials is essential*
You're not helping
well i dont have an answer to that question
saying "Get rid of it" with no extra, isn't helping
I am asking, what to get to replace it.
i dont have an answer
contribute don't drop
So what should i replace essentials with, as it's the only thing i've known how to use. If it's a premium plugin, i'm fine to buy it, as this server is well funded
You can always pay someone to do it
oh wow this actually looks really good
Essentials create so much files that it will be problematic when your server grows
Fair
yeah as ive said its shit @obtuse rose
Rn i'm working with my dev to make a fork of Tunity that uses zstd compression instead of zlib, so thats why i don't wanna hastle him with this rn
For world?
Yeah, better world compression
it should be about a 20-30% decrease in space
as zlib is extremely outdated, and updating it to zstd would make a huge dent in it
it's just a pain lmao
@frigid ember why do you have XMPP loaded? do you actually use it?
I always wondered if any servers actually used XMPP
2 servers do
the devs put in a metrics on who actually set their configs for it, only 2 servers
nice
Ah, i forgot that was installed
remove the xmpp module
ew
its gone
There are some alternative websites that offer a clone of the 1.7.10 jar file
it is gone, the sources are not avail. it was only released in final batches of binary patch files
yes and those websites are distributing unknown versions
though I would strongly recommend you simply use an up-to-date non-archaic version
the validity of any file you find there can not be verified
it may contain a virus
none of us are going to recommend it
at least use 1.8 or something dang
you don't use 1.7.10
buildtools came out in 1.8
I don't think BuildTools supports 1.7.10
<_< literally everyone whos on ancient versions is on 1.8 and now we got a 1.7 guy
man
lol
haven't seen a 1.7 person in literal years
no
1.7 was only good for the modpacks
1.8.8 was the last version with the original pvp
and now mods are on more current versions, 1.12, 1.15
No, they are 1.8.8
minemen is in 1.8.8
(╯°□°)╯︵ ┻━┻
and just uses protocols to let older versions join
its not
i dont know arcane
but no servers run on 1.7.10
how do u know it
prove it
arcane supports up to 1.12
shit version
I imagine they use custom server software
dude, not one server runs 1.7.10. If they have it, its literally for no reason other than to support people like you. 1.8.8 was the last update before the new pvp mechanics. and its way better
doesn't matter, all those minor versions are compatible ¯_(ツ)_/¯
it does
13 issues fixed
From released versions before 1.8
MC-2324 – Player trapped/cannot get out of flowing water
MC-17595 – Villages still spawn when "village" is not in the preset
MC-31577 – Some arrows shot into a block never despawn
MC-33265 – Words are divided in chat.
MC-36260 – Nonstandard parts of nonstandard character skin still show with invisibility potion.
MC-42150 – Christmas trapped chests do not have texture of presents
MC-47726 – Block breaking animation may occasionally change to a weird color
From the 1.8 development versions
MC-57016 – Water and lava glitches and shows blocks as if air
MC-72469 – Fence gate smooth lighting inconsistent
From the current version, hotfixed
MC-94199 – Realms crash when using arrow keys on advertisement page.
MC-94467 – When closing a world on Realms, the world remains on closing and players could not switch to the same world or another world.
MC-94651 – Ampersand will trim realm name and description.
MC-94820 – Realms: an error occurred (401): invalid session id.
Video
there is no 1.8.9 server, only client
1.8.9 was a client sided update to resolve client sided issues
Spigot never released a server
nor did Mojang if I recall correctly
Though all that is irrelevant because 1.8.8 and 1.8.9 are both 5 years out of date. Update your server
?bt
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
Nope, because all 1.8.x versions are compatible with each other
You're on your own
We're not going to help you build 1.8 anymore
Do it yourself
Read the wiki
why did u tell him
i hope your least ok with encouraging forks for 1.8 choco, cause otherwise thats just dangerous to tell people to use spigot
:P
Right, Aikar. That's exactly what I want to be doing
Why the fuck would anybody in their right mind want to encourage the use of 1.8?
Kinda hard to miss the wiki section if you go onto the site for even a moment, but okay
Fork or not
encouraging forks for 1.8 choco
i didnt mean it that way
yea
If you're using 1.8, you're entirely on your own. You will receive absolutely no support whatsoever
You shouldn't be using 1.8 at all
i meant in a "if you must use this shitty version, at least use a fork over spigot as forks have some of the exploits patched"
Figure the shit out yourself
I'm genuinely getting sick of answering 1.8 questions
i dont even recommend paper for 1.8 because we dont have but one of them patched over spigot, still others
Its insane too the amount of people looking for support for my plugins on 1.8.x
I hate it
or or or, just use 1.15.x, and no via version?????? literally just include one plugin if you want the old shittier pvp mechanics
Don't you even think about starting your shit because you're on my last straw, temedy
anyway good luck gangster
hes already stil lbeen doing it choco
n o
aikar what have i been doing?
we're saying don't use 1.8
fuck the 1.8 clients
being a troll
because it's ancient
no one should be using it
you're clinging on to it
yes!!
yes
you said do not use != to compare objects
everyone is gangster 😛
Drooooooooooooooooop ittttttttttt
because you aren't comparing the objects, you are comparing the memory location of them. !Objects.equals() is better
Gangster it's like telling someone to get a new car but they don't want to because their old, unsafe, slow, inefficient, car has a nice horn
what is happening
youre comparing the objects with the equality operator.
oh, external emotes are turned off
and you use .equals if the class has overriden the method
anyway .equals() would just be wrapper, that doesnt mean its better, and it depends on the use case
yes
oh... yeah 1.8 sucks. don't expect help
that is the responsible answer
don't create a 1.8 server
is what we're saying
I recommend you take our advice
Literally any class worth using will have it overridden. You should not be using the equals operators for those kinds of comparisons.
literally everyone on here is telling you not to
You can create a 1.8 server all you want, just don't expect help.
perhaps there's a reason
what if you want to check if the objects are same instance?
Then yes, you can use that, but that's only because instance means same memory location.
I think temedy is just arguing semantics
!Objects.equals() is better
Even then, shouldn't be using that because there's really no reason to be comparing for instances
I like how you give him a lmgtfy link and then give him the actual link.
^^^
Kind of defeats the purpose of the lmgtfy... :/
bitwise operations
you're going to be sorely disappointed
1.8 is not appreciated anywhere
Forge will outright ban you if you use it
you've reached the maximum something alright
I wish we'd do the same
like whose actually used XOR
(from their Discord)
and for what
🤔
did we ask?
if anyting forge is more complicated but ok
hey im trying to make an arrow invisible by sending a packet with this code java for(Player p : Bukkit.getServer().getOnlinePlayers()) { PacketPlayOutEntityDestroy packet = new PacketPlayOutEntityDestroy(arrow.getEntityId()); ((CraftPlayer) p).getHandle().playerConnection.sendPacket(packet); }
but its not doing anything
any ideas how i could fix it? using 1.15.2
1.8 is over 6 years old.
Its broken, bad, and just unsupported.
@full tusk could you instead listen to the EntityCreate packet and cancel it?
rather than sending a EntityDestroy packet
Though really if you're arguing about whether something is 5 or 6 years old, you're making the wrong argument
1.8.0 is 6, 1.8.9 is 5
is that possible without protocollib?
well yes
But yeah, what choco said
ok thank you
1.8.0 is 6, 1.8.9 is 5
ehh... https://howoldisminecraft1710.today/
not supporting u btw
use latest
Sept. 2, 2014 = nearly 6 years
Dec. 9, 2015 = nearly 5 years
1.8.0 and 1.8.9 respectively
Again, completely wrong argument here
Its like arguing about how old your broken down car is, doesn't matter since its broken down and not working as it is
Outdated version has left the chat
How do I delete the loaded chunks in the world?
'-
If chunks have been loaded, you can't delete them without corrupting the world
Ah, okay
Yeah, sorry
If my machine has 32gbram and I want to add all of it to my server how many would need the machine?
like 2gb ram for the machine and 30 for the server?
whats your machine running on
Adding that much ram to a server can be more harmful than helpful. Dedicate as much as you need and expand it when needed.
(Not an MC thing, but rather a java thing)
Also, the amount of ram a computer actually utilizes depends almost entirely on the operating system and running processes. Not what its actual physical specs are.
By the time you need 30gb for a server, you should be splitting that across multiple JVMs (meaning, multiple servers proxied together with bungee)
Is it possible to allow the same player name to be connected to BungeeCord twice, but not disconnecting the first player who joins it?
Like disabling the "You are already connected to this proxy" message
They don't have the same UUID, only same player names
So cracked?
I'm using a fork of Bungeecord to let both Bedrock players and Java players join the same proxy
And would like to both being able to connect at the same time if it's possible
Oh, same proxy, not same server, got it. I was wondering how the hell you had cross platform for java lol
Haha yeah xD
You would need to patch this then
Not sure if anything else relys on names being unique
That might below up elsewhere
Got it working pretty good to sync everything in the player data, like balance, rank and everything. The only remaining issue is that someone can buy a Bedrock account and select the same Java name as someone already has, and that would disconnect the Java player 😛
Not everything uses uuids, especially not for plugins
Ah will look into that, thanks!
Is there a difference performance wise between Scheduler.scheduleSyncDelayedTask() and Scheduler.runTaskLater() ?
thoughts on using Collections.shuffle for list of objects like List<Town> and is there a better way? Using it a few times but it seems to be too simple to be true!
I'm like 90% sure scheduleSyncDelayedTask() and the like are deprecated
the version that uses a runnable isn't but the one that accepts a bukkitrunnable is
I guess if you don't need to be able to cancel a task or anything like that you might as well use scheduleSyncDelayedTask and save yourself an object
@frigid ember that’s a fine way to permute a list if that’s what you want, depends how much you want to actually shuffle it
If all you want is to move a few things around then you could do it more efficiently in a different way since #shuffle is a linear time op
But if you want to randomize the list order completely that’s the way to go
Pretty sure this is a bug - someone give me a heads up if they know anything.
Basically when I set the fuse timer on a TNTPrimed entity, mc does not actually decrease the ticks. It just stays at whatever value I set. I believe this is a bug
Is it an easy process (in the source) to allow one more protocol version to connect to the BungeeCord?
2 questions, 1st why do many tutorials make you create a package for events and a package for commands? Is it necessary or something? And second can I have multiple functions with the same event?
Or does more have to be changed than just an array of int?
Hey ive purchased a resource, payment has gone through but i cannot download it. its trying to make me re-purchase it
hey does this server help people trying to code their own custom plugins?
yes
@woeful mural no, probably requires a lot of changes
I always recommend the forums but most programming questions we can help you out with
@tawdry raven Give it time, probably just a slight issue on the frontend, if it continues over a day or two, open a thread on the forums, since more staff will be able to help there
@small citrus while not required, basically recommended. Its for readability, maintainability, and access control. Its a standard java convention to separate related classes into packages
Makes sense
And also can I have multiple event handlers that are the same but in different classes?
Yes, why you wouldn't put them in the same class tho, I don't know
Pretty sure this is a bug - someone give me a heads up if they know anything.
Basically when I set the fuse timer on a TNTPrimed entity, mc does not actually decrease the ticks. It just stays at whatever value I set. I believe this is a bug
-Bump
This isn't a forum, if you want to bump posts, make a forum thread
@worn temple or you could just answer the question?
don't know the answer lol ¯_(ツ)_/¯
Would it have been better if I just repeated the same question instead of saying “bump”?
no, it just gets spammy in a discord server
neither
So I ask once, people who may know the answer don’t see it, tough luck?
Questions like that should be asked on the forums, wider audience, etc
Dumbest thing I’ve ever heard. Pretty sure 2 hours of time is good padding
dude, its a discord server with a 10th of the users on the forums
Ight, I’ll ask on the forums
No one here knows the answer, so go to the forums
bumping or repeating your question while your question is still visible is pointless and annoying
^
How does Bukkit track the logger each Plugin uses, to redirect print & println from System.out ?
Is there an event fired in 1.8.8 when a fish bites onto your rod? I thought PlayerFishEvent would be fired but it isn't.
> using 1.8
@woeful mural if by different protocol version you mean different versions of the java protocol as opposed to something like bedrock+java, that’s already done in the default bungeecord
The trickier bit is supporting different protocol versions on the spigot server side
@nimble stump Ah, I was thinking if I could allow 1.7 clients to connect to my BungeeCord of the latest version and send 1.7 players to another spigot server on the network
Do you know where that can be changed?
Don't support 1.7
Where what can be changed
Allowing another protocol version to connect
I don’t think there’s like a config option to send different client versions to different servers
By default, BungeeCord doesn't allow 1.7 any longer
i need the web of spigot
If they’ve explicitly disabled 1.7 then you would need to mod bungeecord to re-support it I guess
1.7 players would be sent to a 1.7 server, only for kitpvp players
Not sure how tricky that would be, depends on what they did to remove support for it
I see
You're not going to get any support for 1.8 and lower
Supporting 1.7 is insanely hard given just how much it fucking changed things. But you shouldn't be even support 1.9, let alone 1.8 and 1.7.
You don’t want to be maintaining a separate fork of bungeecord
We maintain a 1.8-1.15 fork of spigot but we use a vanilla bungee
You don’t want that stress in your life
So I have this class, https://paste.md-5.net/onasowahow.java
and this one which extends it https://paste.md-5.net/hiwudoduna.java
when HasteyBoysCraft#register() is called, org.bukkit.event.inventory.CraftItemEvent is printed out. I'd think this would mean that my executor will only be called for the CraftItemEvent, however it appears to be called for EVERY InventoryClickEvent, giving me errors like
java.lang.ClassCastException: org.bukkit.event.inventory.InventoryClickEvent cannot be cast to org.bukkit.event.inventory.CraftItemEvent
at net.iceblaze.hostedevents.game.components.scenarios.hasteyboys.HasteyBoysCraft.run(HasteyBoysCraft.java:8) ~[?:?]
at net.iceblaze.hostedevents.game.components.implementation.GameInventoryScenarioComponent.lambda$getExecutor$0(GameInventoryScenarioComponent.java:29) ~[?:?]
I'm extremely confused how it's being called for events other than CraftItemEvent, as type is definitely the CraftItemEvent.class
(note that the line 8 and 29 is correct as how they appear on hastebin)
Saved them yesterday, 1 sec I'll make new ones
that is probably why then. They don't last forever 😛
So I have a GameScenarioComponent/GameComponent system thing which is aimed to make it easier for me to create listeners for specific games that my plugin creates
The end goal is for me to be able to just do this
public class HasteyBoysCraft extends GameInventoryScenarioComponent<CraftItemEvent> {
protected HasteyBoysCraft(Game game){
super(CraftItemEvent.class, game);
}
public void run(CraftItemEvent e) {
and it'll automatically verify that everything's in the right game and stuff
and then call run
It works for other events, but for some reason not this one
do you have custom inventories? And this event is to check if its the inventory that is your custom one?
No
This is to check if the person who clicked is in the game this listener is created for
but it should only be called for CraftItemEvent(which extends InventoryClickEvent)
but it's instead called for ANY type of InventoryClickEvent
Yes because other inventories can craft items
Yeah, which is supposed to call CraftItemEvent
That's not a reason why my method would be getting ran for other types of events
if anyone knows shopguiplus api here is my issue I am trying to deduct money from a players account fetching the price of the block from the shops
well your code isn't something I come across routinely plus I just woke up, so I will leave it to others more better suited to try and help. Personally I would just have created custom events where they only run in places they are supposed to
I just created this system as I figured it'd be more convenient in the future as I create more listeners, and it works for literally every other event I've tried, so I'm quite confused why this doesn't work
xd
1.8, which I know it sounds bad but this stuff is pretty much documented the exact same way as 1.15 so I don't really think it's changed
While the API might be the same, doesn't mean implementation hasn't
something could have changed implementation wise between 1.8 and 1.15. I don't have 1.8 source at the moment so I can't help not that I normally help with outdated versions. Essentially might want to look at the server code to see what is going on
True, but I don't see any world where Bukkit.getPluginManager().registerEvent would register multiple events
I'll try and look
While it might not register multiple events, it doesn't mean the implementation doesn't have a bug
where it calls multiple events to fire
not exactly hard to fire off events you know. Just have to tell it to create a new event and there you go, an event was fired XD
Anyways, since you are on outdated version you are going to have to get accustomed to fixing server bugs as they present themselves unfortunately because 1.8 isn't going to get any more updates
Yeah, I'm just trying to find out if I'm missing something in my code before I go and edit server stuff
I don't think you are, at least it doesn't appear so to me
and I think it is a bug in the server code
I do recall that some bugs existed for some events back then
but were fixed in later versions
but 1.8 was so long ago so it is hard for me to be specific lol
https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/browse/src/main/java/org/bukkit doesn't have the plugin package which plugin manager is in, would I have to decompile the jar myself or?
you could just use buildtools to get the source for the server
Oh yeah, forgot about that lol
Stupid question: am I right in thinking Bukkit.getPlayer(name) returns null if the player with the given name is not on the server?
it does say exactly that in the javadocs
Np ❤️
So i saw people use command blocks with certain words in them that they could call on in their scripts, like someone had a command block with "archer" in it and it would give them a bow + arrows + armor. How do i do that in spigot?
likely not a spigot server, sounds like modded tbh
or sounds like a plugin
is there any reason why all my guis seem to be called at the same time (like if you click slot 3 on this one gui, it seems to click slot 3 on all my guis) here is my code for one of the guis (all of them share a similar inventory checking method) https://pastebin.com/eAt8F3XP
No like they put values into the command block and were able to call upon those values in their script
Like they can see when "archer" is activated to give an archer kit
yeah, that really doesn't sound like something a plugin can do...
unless the command block is just constantly polling for a value change (which would be so inefficient), I'm not sure how a plugin could do that
My thoughts exactly, also you cant call upon other plugins in eclipse?
So does spigot have something like that?
Or is there some api i should get
you need to bring it in as a dependency in maven/gradle
Lemme look that up
Well yeah, a plugin can totally see what a command block does, I assumed he wanted it the other way around based on how he worded it @keen compass
Ah
Yeah, maybe he just worded it badly, in which case that would work
I mean just need to have the plugin intercept the command that a command block normally uses
parse it for the keywords
if keywords present do something 😉
doesn't necessarily need to run custom commands lol
Yeah, I assumed they wanted a command block to do something on a plugin action, on its own, not code related
Yeah, that's why I assumed it was a mod function
yeah, so that's why I assumed it was a mod he saw used, but if its a plugin intercepting a command block command, totally possible and been done a lot.
@pastel condor are you using separate instances of your gui or just using the same instance for all players?
think you need to hold a separate instance for each player that has it open so that they don't interact with each other
So lemme clear up confusion
So you input a value into a command block
Lets say the word "fighter"
if the command block is running commands, doesn't really matter what you put if there is a mod or plugin intercepting the commands. Plugins have to do it differently then Mods do, but both can achieve just about the same thing. Mods have more degree of control over it.
When you activate the command block, your plugin detects that command block "fighter" is activated
what do you mean by separate instance? @keen compass
And it carries out a designated action based on that command block
I'm creating a new inventory Inventory inv = Bukkit.createInventory(null, 36, "Basic Settings");
Well you have an Instance of your gui right? AKA an inventory ?

I'm no longer implementing inventory holder
oh yes
this is the instance Main.getInstance().openGUI.put(player.getName(), inv);
then I check if (!event.getInventory().equals(Main.getInstance().openGUI.get(player.getName()))) return;
so you only have 1 instance of your gui?
I have multiple guis, just they are different classes
I create a new inventory (instance?) every time a player opens it
still recommend setting an owner on the inventory
already tried that
Lord Gaben, I have never used a command block before, so I am curious as to why use the command block for the input in the first place?
lol
*advised not to
well, give me an hour or so and I will open up my IDE
have stuff to do in my IDE anyways that needs to get done
lol okay, no rush
I know I have a plugin that does something with inventories
oh cool
@golden vault well you can get for example stuff at the click of a button, or detect when something walks above the block
The only place I can see where using a command block is better is if you wanted to limit where they can get items
as opposed to globally running a command in the chat
and you can check if they clicked a button
so IE, they actually have to walk to a button to get that item or items
makes sense but all that could be done with a plugin
Sure, not saying command blocks are better, just I can see a very limited case where it might be easier
where you want to provide a player a choice in their input
but also restrict where at
sure
otherwise, just do it all via the plugin
Yes that is what we are talking about
generally it is more optimal to use the plugin to handle this without the use of command blocks
^
A command block can issue plugin commands assuming it is coded to allow non players to issue commands, so ideally you don't have to even bother with nonsense like that and so a command block can use a plugin command for something like kits
You could also use a shop plugin that allows for kits
is your project on github @pastel condor ?
oh
it's on my repo
@keen compass
it's a private repo
I'll just make it public
for now
there
made an account
oh okay
not like it was difficult to do 😛
is this your personal git site?
you do realize that github provides free private repos now?
but they don't have workers, so I was going to set one up for private repos
workers?
yes
I meant that lol, sorry there are so many names
okay I just gave you write perms to the repo
I mean github has actions available
for private repos?
yes
became free when M$ bought it
No, it became free only recently
well that isn't what my email messages tell me 😛
either way
private repos are free, you can have actions for private repos
I think they limit the amount of actions you can have I think and that is about it
oh okay
doesn't really matter
I just have to migrate over 😦
thats always painful
github has utility for that I think
oh?
that works too
kk I'll do that when I get a chance
Its only a certain amount of actions, and no protected branches, so contributors can force to master for example. But otherwise, its basically 100% free
thats still reasonable good
I mean considering my website is really slow
it takes like 10 seconds to load a page for me
lol yeah
I'm self hosting it from a raspberry pi
anyways, could you please help me with my gui issue?
I am looking at it lol
Well you should probably remove them statics from the hashmap's
second, you don't have a method for referencing your hashmap
oh yeah, I removed it then reverted my git
for getting the inventory I just use Main.getInstance().mapName.get(player.getName)
yes, but the map isn't public per-say so I am surprised you are able to
without it complaining lol
it just might be the way you are accessing it. You are accessing it indirectly via a static method
I'll try using non static
@pastel condor you have a pr waiting for you 😉
Guys Someone help me plz my waters not flowing
no
Go away
You go away dumbass gay @worn temple got out of ur stupid little tiny mouse server
Hahahahaha
@pastel condor what I mainly did was changed how the references of the instances are obtained. Not entirely sure if that will fix your problem or not. If not, we can move forward into fixing it some more/changing it.
oh okay, I'm going to first test it then if it doesn't work I'll let you know
You go away dumbass gay @worn temple got out of ur stupid little tiny mouse server
@tulip pendant thats kinda homophobic tho 😮
He’s irritating me
you mean she?
@keen compass, it looks like the same issue as before is happening
Is it throwing the same errors as before @pastel condor ?
The thing is there are no errors
yeah, to prevent dragging items out, will need to set the inventory owner to something other then null
it should prevent that
if not, there is always listeners for it
will get back to it here in a bit to see what needs changing
Kk I’ll add you in 5 minutes
If you're talking about a custom implementation of the InventoryHolder interface, then that's a misuse of the API:
Is there anyone that could possibly help me config my voting platforms for my server. Please and thank you.
I still am unable to find the packet/event for when a player's potion effects are modified.
EntityStatus doesn't seem to be called when doing /effect give, and I couldn't find any documentation related to potions in wiki.vg.
Any ideas?
Okay just added you @keen compass
@rain plank Were you able to resolve the auto teleport?
No.
That's odd, if it's not a permission/op issue, and you don't have another plugin interfering somehow, the only other possibility was the configuration.
@torn robin how about the one called Entity Effect? https://wiki.vg/Protocol#Effect
yeah I just now found that it is indeed the correct packet, ty!
👍
Simply run the jar?
ill show the msg i am getting
1 sec
it says "This app can't run on your PC. To find a version for your PC, check with the software publisher."
What OS?
windows
What version and you have java installed?
Also you have the start script?
yep
By that i mean what windows version
windows 10
What did you do to "run" it exactly?
any ideas on what i should do?
@brittle summit how are you trying to run it?
wdym?
wdym wdym
how are you trying to run it
are you double clicking it or running it through CMD prompt
lol
do you have any images of the error message?
double clicking
ok
where do you see that @brittle summit
double click the script, not the server jar @brittle summit
https://www.spigotmc.org/threads/craftitemevent-being-called-for-other-inventoryclickevents.441074/ Gonna post this here again hoping I can get some help. Someone previously told me they thought it was a server issue, but that seems unlikely to me as normally the event functions just fine. I'm honestly clueless about what could be causing this
but... you're calling both inventoryclickevent and craftitemevent?
I'm not calling any event...
I register a listener only for craftitemevent
yet it's being called for every type of inventoryclickevent
@ebon snow when u say double click the script u mean the notebook save with the script in it?
probably because CraftItemEvent shares a handler list
so you need to throw in an instanceof
Hm ok
just a quirk of using the event api directly
could possibly be called a bug, but youre using 1.8, so it aint gonna get fixed
md why there is a PlayerPickuparrow event and pickupitem, wasn't there a better way to just give the arrow a field that tell it it's in ground? 🤔
theres a few events like that, mostly specific subclasses
Ok
the arrow event extends the item event
@ebon snow when u say double click the script u mean the notebook save with the script in it?
it does? 🤔
i mean i tried it on 1.13/1.14 and itempickup didn't triggered on arrow pickup
maybe it's newerr
@brittle summit Assuming you're on windows, you'll have something that looks like this
that's what you double click
oh wait I completely misread your problem
"This app can't run on your PC. To find a version for your PC, check with the software publisher."
thats the msg i get
i cant see anything on the forums for it
I lost access to my Premium Plugin download.
?faq
@fleet crane have u seen the problem i have b4?
Hey MD if i reach out to the Plugin Author they should be able to grant me access again?
Cause i got charged, it already withdrew the money from my Paypal account it just telling me I have to purchase it for access.
do u think i should make a forums post about the iissue?
what do you have in the start.bat
1 sec
@echo off
java -Xms1G -Xmx1G -XX:+UseConcMarkSweepGC -jar spigot.jar nogui
pause
as it is in the wiki
java -Xmx1024M -Xms1024M -jar server.jar
ill try that

still the same msg
do not just copypaste kek
will that help?
can you share the message you having?
rename server.jar to your actually jar or vise versa
@brittle summit are you trying to run buildtools to get spigot or trying to start a server
the latter
how did you get the server.jar originally?
the get bukkit website
👏
🙆♂️
run buildtools
ok
?bt
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
Anybody know how I can set the Attack & Follow range of a entity
Well, there's your problem
Hey i tried to make a /heal command but the command dosnt work on my server... anyone know how to fix?
send me the code
Which one
The command
Has anyone with a 1.15.2 creative server been able to disable saved toolbars?
you cant, theyre client side
someone has a link to a tutorial to create an API and his core ?
Anybody know how I can set the ATTACK RANGE?
Are the entries in the Player Tablist considered part of the Main Scoreboard or are they part of a separate system?
separate system I imagine
does the player#getbedspawnlocation returns the /spawn location?
how do i make runnables
how do i use that
Bukkit.getScheduler()
How to properly disable vanilla advancements?
I know there is advancements: disabled: in spigot config, but disabling only roots will lead to a lot of errors
gamerule
I have a question about runnables and variable data changing by day
ill show an example and tell me if you guys can help
gamerule
@tiny dagger no
long get_Day = get.month.day;
@EventHandler
public void onDeath(PlayerDeathEvent event){
Player p = event.getEntity().getName();
if(get_Date == 1){
Bukkit.broadcastMessage(p + " died in day 1");
} else if(get_Date == 2){
Bukkit.broadcastMessage(p + " died in day 2");
}
}
So I have a problem because when its day 1, its says day 1. but the next day dsnt said day 2, its still saying day 1 until I make a /reload or /restart. (the plugin needs to be reloaded to get the date again), my question is, how can I put this variable in a runnable that is updating itself every x seconds/mins?
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.
with that code my exampl should be enough
I cant use world ticks
I need the plugin work in a real life date
the system is done, but need that var to be updated
@frigid ember go and ask some koreans in their magicspells discord
@frigid ember 255xdR use this invite link
How can I null check this?
for (String key : getConfig().getConfigurationSection("Holograms").getKeys(false)) {
}
if key is null
the NPE is on the for line
I don't think it will ever be null if you have default config 🤔
well because there are no keys 😂
final ConfigurationSection section = getConfig().getConfigurationSection("Holograms");
if(section != null) {
if(section.getKeys(false).size() != 0) {
section.getKeys(false).forEach(key -> {
});
}
}
How can I give a zombie the texture of a human
plugin.getConfig().set("Holograms." + hologramUUID + ".owner", player.getName());
plugin.getConfig().set("Holograms." + hologramUUID + ".world", player.getWorld().getName());
?
wdym save as world
I want it to save as a string
But in the config it doesnt have ""
So when I read it it does this...
nvm
My mistake, i wrote it wrong (i used getint)
How come you don't need to use '' or "" when writing a string in a config?
How can I give a zombie the texture of a human
custom resource pack probably
No its posssibile without. Like a npc plugin
Yes i will give the mob the texture of a fake player
No I mean you cannot set the skin of a mob
You can only set the skin of the fake player
For some stupid reason there is always whitespace at the end of the name?
its minecraft problem iirc when involving colorcode
String nameText = ChatColor.translateAlternateColorCodes('&', "&f&lOwner: &f" + getConfig().getString(path + ".owner"));
TextLine textLine2 = hologram.insertTextLine(1, nameText);
Oh
How can I fix it then?
what mc version?
1.8.8
meet notch at his mansion, he will fix it
Notch doesn't own minecraft lol
Can i give a fake player the ki of a mob?
@frigid ember Probably using some complex code yes
notch still own some part of minecraft
@remote socket okay is it possibil tha a fake player target a player?
using disguise
It must be possible to fix or the other various plugins using holograms would also have it
@remote socket okay is it possibil tha a fake player target a player?
Yes, much like in Citizens where the npc faces the nearest player, you could have the fake player follow them instead
Fixed it using &r instead of &f
guys do you know a good Spigot/Bukkit plugin that will show weapons on the back of the player? I'm using BackTools but it's a Forge mod and I'm looking into migrating to Spigot/Bukkit
Not rly a way without killing performance
As in vanilla we can't simply add new stuff
I'm also wondering, why on all/most Plugins the custom items are "eggs"? For example I was checking out DiceFurniture.
Like...can't the devs set icons for the items?
only by using a custom texture
or player heads with custom heads
when it comes to spigot all we can do is modify what already exists
we cant rly add new things like blocks,mobs...
aaaaha, understand
but Mods (Forge) can do that as it can just add local stuff, correct?
understood
so basically a "chair" is a...modified...what?
for ex DiceFurniture ads new models
either texture or a bunch of player heads
yeah but you can sit on the chairs
thats just creating a invisible entity and setting the player passanger to it
simulates how you ride a pig horse or smthng.
sneaky 😛
sorry I gotta go, thanks for your time/explanations!
I'm using Magma so I'm trying to do as much as possible with Spigot/Bukkit so I don't have to send files too everybody at each update
btw is there any better way to distribute updates/packs, rather than emailing them...? :\
you can try creating ur own modpack and place it on curse
so you could just update the pack,and all they need to do is click download..
Is there a way to edit the bow drawing speed?
probably
Hello, I have a bungeecoord performance problem (more details here : https://www.spigotmc.org/threads/how-fix-cpu-overconsumption-for-the-bungee-server.440813/ )
I would know here How you debug the performance usage with bungeecoord. With spigot/paper i use timing everytime
For the moment i have just remove unnecessary plugins and use a javaagent to add some indexes on SQL Query
how would i know if someone opens or closes a inventory...
InventoryOpenEvent ?
is there a way to paste the latest.txt contents into a pastebin ?
with code ?
in the logs folder
is it possible ?
InventoryOpenEvent doesnt work.
https://paste.md-5.net/uliroziyew.cs
any idea why open is empty in the Inventory close event?
I only modify it in the openInventory method and then the close event ... yet somehow, even though data is added above it is empty when it comes to the close event
hey does anoyne know how to get the contents of a command?
it would be rly helpful
brb
sry if I don't respond immeadiattly
contents of a command?
what do you mean
use arguments ?
well i mean what i put into a command
the last parameter in your oncommand method
well yes
but i mean
the <nameOfIMG> <urlOfIMG>
so it would be somthing like this
/replace <nameOfimg> <urlOfimg>
okay, so use args
then it would give it to these command
and get the name and url
s
/remove <nameOFimg
/afcreate <sameNameOfimg> <urlOfimg>
@dusty topaz how would I use args for this?
hello?
anyone their?
*there
anyone?
😦
hi guys
oh hello!
I'm very new to Minecraft world, my daughter knows all the stuff. However she recently asked me to help her with Javascript programming in Minecraft Education Edition and I was very frustrated that I can't find a decent documentation for that
I'd appreciate any pointers
i'm a newbie
and i'm in the same situation
though I can try to help you?
umm
i'm a young coder too 🙂
but
if you would like
I could also suggest another channel
Javascript? Here we use Java
Its not..
spigot is server software for minecraft java edition, not education edition so it might not be the best place to ask
yeah your right
thanks Stellrow, at least I know I'm not in the right place
I am in the process of installing my own server; the big problem is I don't know what to chose so in the end I could write Javascript code for Minecraft
I don;t care about the Education Edition, I found that there's no decent documentation available for it
hmm
this is something that is out of my hands
my dad setup mine for spigot plugin testing
i'm not that good at setup
but i can suggest a few videos that might help
from Kody Simpson or the source code
on youtube
but I think that's all I can give @frigid ember
Closest thing to get it running with javascript is getting a plugin wich can translate it
thanks a lot H311KN1GHT, I appreciate you're trying to help
🙂
to reiterate, if you're looking at spigot, there's currently no framework to write plugins in javascript
java is better than javascript for minecraft
eh eclipse
never mind i'm wrong: https://github.com/walterhiggins/ScriptCraft
however dont expect that much support while doing it in js not alot of people are working with it..
Hi, anyone have an idea for what it doesn't work ?
https://paste.md-5.net/nijolizego.cs
https://paste.md-5.net/moyehemebe.java
the only thing i get in my config is:
blocks:
RED_SAND:
drop: GLASS
amount: 1
xp: 8
why not just do block.forEach(block -> { }
im assuming block is an list/set
also why is the consumer named like a class lol
its a variable
final CutCleanBlock[] cutCleanBlocks = new CutCleanBlock[] {
new CutCleanBlock(params), new CutCleanBlock(params);
};
for(int i = 0; i < cutCleanBlocks.length; i++) {
fileConfiguration.set("blocks." + cutCleanBlocks[i].getFrom() + ".drop");
fileConfiguration.set("blocks." + cutCleanBlocks[i].getFrom() + ".amount");
fileConfiguration.set("blocks." + cutCleanBlocks[i].getFrom() + ".xp");
fileConfiguration.save();
}
also take look at these naming convetions i cant look at it
Hi all, I'm a noob when it comes to web interactions and I want to post something to hastebin but at the same time kick the player with the link to that post.
I've looked into Future and Callable but I couldn't exactly figure out how/if I should be using those.
why at the same time
just first post it to hastebin and then kick him with the link for it
Yeah how can I kick him once I have the link?
no I mean since I'm doing the web request async I can't use that right after
@maiden zephyr they are all shit but LiteBans is one of the decents
why not
synchronized(this) { }
Asynchronous player kicks aren't allowed last I checked
and u can kick them
ah
thats not how synchronized works
youd have to schedule a task on the main thread (getScheduler().runTask(...)) and do it there
Multiple types of databases are supported, including MySQL, MariaDB, and H2. H2 is used by default, meaning that MySQL is not needed to use LiteBans with a single-server setup.
you dont have to
about to ping choco
that synch block will first get accessed by the first thread to get a grasp and it will make the other thread wait there till it can take hold of it
so depends if you really need a synch block
you can run an Async task and do synchronized(this) { }
the task will by synchronized with itself (or whateverthisis in your case)
not in the main thread of the server
so tl;dr i should just use the BukkitScheduler
yep
👍
schedule an async task, do your async stuff there
schedule a sync task inside the async task and do the kick there
Thanks temedy, but i'm still getting the same result https://paste.md-5.net/yipavijuku.cpp
Only the last CutCleanBlocks is added to the config
i've got a feeling there's a reason why i didn't do that (i think i did do it and it didn't work, but i probably just did it wrong)
I would make sure getFrom aren't the same Superhize
would also probably not use an indexed for
and/or rename the array from cutCleanBlocks juts to Blocks for brevity