#help-archived
1 messages · Page 146 of 1
I'll just figure something else out or leave it for another time.
Out of curiosity, though, why is it in it's own interface?
If all ItemStacks have those methods
Did you try to debug-output the actual item meta like I suggested? If nothing else, you'll see its class
As for the question - I wouldn't know. I didn't write it.
What is triggered when a player respawns with that respawn anchor?
I searched already through the classes but i found nothing
Doesn't that just change the player's spawn location?
I don't believe any special event would trigger for it unless it does something else that I'm unaware of
yeah but a respawn type would be nice
respawn types exist?
Not direct
https://i.imgur.com/fB3PRln.png
i haven't changed anything on the formatting, does anybody know why it is like buggy?
Your chat plugin?
Nah its a lobbysystem
am i the only one who is encountering the following problem:
the playerskull is not loading for the own player, but for the other - this happens for me on every server
Is there any way to use the StringUtils in bungeecord?
I tried a shaded build with the spigot dependency. It didnt work.
Would anyone know why dynmap is giving render error
"[04:20:42] [Dynmap Render Thread/ERROR]: [dynmap] Exception while fetching chunks:
java.lang.RuntimeException: Invalid length given for storage, got: 320 but expected: 342
at net.minecraft.server.v1_16_R1.DataBits.<init>(SourceFile:111) ~[spigot-1.16.1.jar:git-Spigot-758abbe-38de0b8]
at org.dynmap.bukkit.helper.v116_1.MapChunkCache116_1$NBTSnapshot.<init>(MapChunkCache116_1.java:211) ~[?:?]
at org.dynmap.bukkit.helper.v116_1.MapChunkCache116_1.loadChunks(MapChunkCache116_1.java:438) ~[?:?]
at org.dynmap.bukkit.DynmapPlugin$BukkitServer$6.call(DynmapPlugin.java:490) ~[?:?]
at org.dynmap.bukkit.DynmapPlugin$BukkitServer$6.call(DynmapPlugin.java:477) ~[?:?]
at org.bukkit.craftbukkit.v1_16_R1.scheduler.CraftFuture.run(CraftFuture.java:88) ~[spigot-1.16.1.jar:git-Spigot-758abbe-38de0b8]
at org.bukkit.craftbukkit.v1_16_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:400) ~[spigot-1.16.1.jar:git-Spigot-758abbe-38de0b8]
at net.minecraft.server.v1_16_R1.MinecraftServer.b(MinecraftServer.java:1059) ~[spigot-1.16.1.jar:git-Spigot-758abbe-38de0b8]
at net.minecraft.server.v1_16_R1.DedicatedServer.b(DedicatedServer.java:354) ~[spigot-1.16.1.jar:git-Spigot-758abbe-38de0b8]
at net.minecraft.server.v1_16_R1.MinecraftServer.a(MinecraftServer.java:1007) ~[spigot-1.16.1.jar:git-Spigot-758abbe-38de0b8]
at net.minecraft.server.v1_16_R1.MinecraftServer.v(MinecraftServer.java:846) ~[spigot-1.16.1.jar:git-Spigot-758abbe-38de0b8]
at net.minecraft.server.v1_16_R1.MinecraftServer.lambda$0(MinecraftServer.java:164) ~[spigot-1.16.1.jar:git-Spigot-758abbe-38de0b8]
at java.lang.Thread.run(Unknown Source) [?:?]"
how would I save 3 hashmaps onDisable and load them onEnable, in a Data folder and per player data storage
private void loadData() {
for (String str : getConfig().getConfigurationSection("").getKeys(false)) {
UUID uuid = UUID.fromString(str);
int enchantments = getConfig().getInt(str);
enchantgilde.amountEnchanted.put(uuid, enchantments);
}
}
private void saveData() {
for (UUID uuid : enchantgilde.amountEnchanted.keySet()) {
getConfig().set(uuid.toString(), enchantgilde.amountEnchanted.get(uuid));
}
saveConfig();
}```
I have this rn
but this only save the amountEnchanted
and not in a data folder
I need it to save amountEnchanted, woodDestroyed, oresMined
https://i.imgur.com/fB3PRln.png
i haven't changed anything on the formatting, does anybody know why it is like buggy?
@lyric stream It’s your resource pack. Faithful font changes all the common Unicode characters
public void saveOresMined(UUID uuid, int amount) {
if (!amountEnchanted.containsKey(uuid)){
amountEnchanted.put(uuid, amount);
return;
}
amountEnchanted.put(uuid, amountEnchanted.get(uuid)+amount);
}```
and this in the other class ofc
Any idea of why my construct get's the wrong parameter? trying to create a bungee command. I give him multiple parameters, then i do super(Command), but it gets the Name, no sense
can't understand where i'm wrong
Command new_command = new CommandClass(Position, Name, Command, ecc)
it gets the Name instead of the Command
all works
idk
but it uses the Name
AFAIK, the Command constructors for bungeecord take either just String cmd or String cmd, String perm, String... aliases, one of those has to be called by your command-extending class.
Then you instantiate your class and registerCommand on enable
Yes, all works
but i want to pass hime the "Command" value, but what he likes to get it's only the Name
infact he register the /name
? How does your code look like?
Like i posted it to you
public class CommandClass extends Command implements TabExecutor{
private int Position;
private String Name;
private String Command;
lets censor it lol
public Command(int Position, String Name , String Command..
super(Command);
this.Position = Position;
this.Name = Name;
this.Command = Command;
i'm not setting up permissions or aliases
The problem is
I pass the Name variable and Command
but he somehow takes the Name for Command
but when i retriveve teh data
is all correct
before input them and after
Then you are misplacing/swapping Name and Command somewhere. That's all I can think of with this much info 🤷♂️
- how are you calling the constructor of your class
- how are you testing if it is working properly or not
I'm registering multiple commands, so can't be the name of the construct
all gets the same fate
Hi there, I'm struggling to find a group with the name "admins" in my code... PermissionGroup adminGroup = new PermissionGroup("admins", null, null); doesn't work, does anyone know what does?
@old plume mind showing me one example of the many commands? I really can't help if I don't get to see how exactly you're doing things
I just retrieve data from yml files, and create that construct with all the info needed
then i pass them into the code i've already showed yyou
ConstructClass new_command = new ConstructClass (Position, Name, Command, ecc)
getProxy().getPluginManager().registerCommand(this, new_command);
the other pieces of code are the one i've already posted
they're cut down yeah, but nothing to see, just other variables
get no error while creating anything, and everything returns back coirrectly
but he somehow takes the Name for Command
how are you testing this exactly?
@frigid ember are you using WorldGuard or any kind of area-protection plugin?
Nn, for my java plugin
I would restore a flowing water [block], after a replace ( I have replace with ICE_BLOCK, and I would restore this water block )
Hi there, I'm struggling to find a group with the name "admins" in my code... PermissionGroup adminGroup = new PermissionGroup("admins", null, null); doesn't work, does anyone know what does?
@old plume when you try to /cmd the command is no the "Command" but the "Name" instead? Is that the issue?
yes
Then you are definitely swapping "Name" and "Command" when passing the arguments to the constructor
I'm having an issue where my spigot 1.16 server isnt pinging/allowing me to connect, I've probably overlooked something, but does anyone have any troubleshooting tips?
anyway what i put in super(cmd) is indifferent, from what iov'e noticed
but somehow he uses the name
Try swapping Name and Command when you call the constructor, in onEnable and leave the rest unchanged
ok, wait i've closed all down, i was delaying it forf another time lol
if i make the Name as the Command, yes, the command register in the right way
but of course i want to have both
...
and in the info, you set up the data, and the command too
@river cradle I have never heard of a PermissionGroup class
@old plume so you want to be able to do /name (assuming name is what you pass as the Name param) AND /command (assuming command is what you pass as the Command param) and both behave the same way?
@frigid ember So is there another way by finding a group by its name in PeX?
@river cradle have you tried through Vault API?
if i want aliases, i know you can put aliases there
No I haven't, but I'm just not really keen on installing yet another plugin if that makes sense, I wouldn't see why I just couldn't get a group by the name just with PeX
anyway there is something wrong on the costruct, for now i go
@frigid ember Wait, having looked into it, could I use Vault to replace PeX, or does it have to work alongside it?
short answer, you need both installed, it doesn't replace pex
but it has no overhead whatsoever
@river cradle why do you have pex
Anything wrong with the spigot version checker?
https://api.spigotmc.org/legacy/update.php
I’d highly recommend switching to LuckPerms
it's not showing the correct version
Perhaps there is an issue
I’d highly recommend switching to LuckPerms
yes, please do lmao
I mean, it literally suggests you look at LP in the Bukkit project page 🤣
@river cradle why do you have pex
@naive goblet I really don't know, I looked up a tutorial that used pex

Alright, so I guess LuckPerms it is from now on 😄
Does anybody know what I should do in order to prevent the Java console from opening alongside CMD?
java -Xms1G -Xmx2G -XX:+UseConcMarkSweepGC -jar spigot-1.16.1.jar
pause```
—nogui
Thank you.
No — needed
@naive goblet Help, my brain is extremely fried at the moment, what do I pass in as the second argument?
Group adminGroup = new Group("admins", <what to put here?>);
anyone got any ideas to proxy a minecraft server? it's currently homehosted (it's on an actual server, not some POS 2002 dell pc)
i've just played about with it and used ssld on my VPS, only thing with that is when anyone joins they're all gonna have the same IP.
i don't want to expose my origin IP, unsure if this is possible though?
Not sure if this solves it but I know that TCP shield has DDOS protection
im kinda late but translateAlternateColorCodes dont support the RGB right?
if i'm using my own homehosting though and my origin ip is exposed that wouldn't help, right?
translateAlternateColorCodes is '&' so any minecraft colour, no rgb
alrighty, so I have to make a wrapper for rgb
afaik you can't display rgb in minecraft? dont quote me on that tho
1.16
havent played with that api yet
yea same, im trying to understand how to support 1.16 in my plugin
ChatColor.of("#rrggbb") (rrggbb being the color code in hex) or ChatColor.of(java.awt.Color color)
Everywhere i see this
My IDE doesn't show a getDamager option
I'm using 1.8.8
EntityDamageByEntityEvent
👍
oh wait ChatColor.asBungee().of()
@peak briar if you're using org.bukkit.ChatColor then yeah, if you're using the one from the bungee chat api directly, there is no asBungee method lmao
so currently the only way to support rgb is to make your own wrapper and use ChatColor.of until the color codes get known
huh?
scratch that :P, will there be rgb color codes like &xRRGGBB?
then only way to currently support 1.16 rgb is to make your own thingy that converts &xRRGGBB to rgb so your plugin users get happy
oo so its §xrrggbb official?
hold on, translateAlternateColorCodes work with &x&r&r&g&g&b&b lol
hold on, translateAlternateColorCodes work with &x&r&r&g&g&b&b lol
lmao does it?
Wth
@dreamy tide just tried to use TCPShield, every time I log in I have a different IP 🤣 Think I'll need to find something else
i just tested it lol
then only way to currently support 1.16 rgb is to make your own thingy that converts
&xRRGGBBto rgb so your plugin users get happy
@peak briar I mean, you could pretty much just use regex anyway,&x[a-f0-9A-F]{6}
xd don't mind my methods, I'm happy with myself
https://imgur.com/6iwMQY0.png ```yaml
prefix: "&6[&r&eRoleSync&6] &x&7&2&8&9&d&a"
lol
using bukkit's translateAlternateColorCodes
Can anyone point me in the direction of where I can read to find out how to get the helmet material and mount type of a mob?
bungeecord is having problems before superlobby ran commands for players -> server: survival now no longer runs
Or a better way to identify this mob
Anybody mind checking out my timings report? My server is experiencing lag spikes and it's extremley difficult to try to fix it. We work on it every single day and have even moved hosts to get Aikars Flags, yet, we experience spikes.
Aikar's Timings Viewer - View Timings v2 reports from Paper and Sponge
@remote socket I believe you're looking for these methods
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/Entity.html#getVehicle--
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/inventory/EntityEquipment.html
huh it works for me
U missed the l lol
How would I get the inventory in the first place?
Of what?
is there an event for when the server finishes loading and for when the server starts shutting down?
Do you specifically need to know when the server starts/stops, or would the onEnable/onDisable for your plugin be sufficient?
onEnable/onDisable works, but my use case is having it send a discord webhook every time the server starts so it would be better to have like a proper event when the server is ready to connect to
nevermind, i think i found it
org.bukkit.event.server.ServerLoadEvent
There is a ServerLoadEvent, though /reload would trigger it as well.
i can try to have it set a variable the first time its called so it only sends the webhook once
thanks
where I report a bug?
Does anyone know the equivalent of this in 1.16?
Basically WorldServer#getTracker doesn't seem to exist anymore
And i've been unable to find equivalent
what is wrong in this code?
Version 1.14+
why is there no 1.16.1 bukkit jar on spigots nexus hub
The server's down or it's on the wrong version
more if I give /server and click on survival enters
no have
no
before it was normal only I updated bungeecord to 1.16.1 that it happened
Any NMS guys here?
@north inlet are you registering the event?
@frigid ember i completely forgot how to do that
why do all the portals go in the same place? (1.16.1)
do you java a class that extends JavaPlugin?
Bukkit#getPluginManager#registerEvents
i thought it was getServer().getPluginManager().registerEvents(new eventclass(), this);?
There's a bunch of ways to get the plugin manager
ah
Anyone help with the entity tracker stuff?
staff on?
Bukkit.getPluginManager just calls server (which is static) getPluginManager
@north inlet You need a class that extends JavaPlugin and set that class as your main in plugin.yml, override onEnable and register the event as they said above
oh, ok
Any NMS guys here?
idk, I just let the tab completion guide me xd and maybe check docs lmao
bungeecord does not want to run the /server survival command
Any errors?
@naive goblet What's the equivalent of WorldServer#getTracker().trackedEntities.get(entity.getEntityId());
In 1.16
That’s not nms?
this is probably more of a maven question, but is it possible for the plugin.yml to get the plugin version from the pom.xml?
Its possible iirc
how though?
Haven’t worked with Maven in ages but it’s possible in gradle atleast
in gradle how? cuz im using gradle
Oh yh I’m dumb
@peak briar https://github.com/Conclure/SplendidVouchers check how I did it here
ok thanks
And it’s not done btw
Just wip
@wheat mirage did they remove anything of that in 1.16?
It's 1.12 code, so probably inbetween
I've decompiled the spigot source and I'm looking around now
Seems to be something to do with PlayerChunkMap
Well I’m not very experienced in what happened to 1.16 sorry :/
It's probably more 1.14
But anyway I'll keep looking
.getChunkProvider().playerChunkMap.trackedEntities.get(entity.getEntityId());```
After decompiling, I've figured out the equivalent code is now this
Basically things have been organised into different sub-objects
Hope this helps someone searching in future.
Hey can someone please tell me how to correctly upgrade my 1.15.2 to a 1.16.1
In our server we've currently only used the 'world' world
Okay an actual Spigot question. What happened to Inventory#getName? Lol
?1.16
Spigot and BungeeCord 1.16.1 are now available. Please see https://www.spigotmc.org/threads/447405/ for more information.
Reminder that BuildTools is the only supported means of obtaining the Spigot server jar.
then why is there a bukkit 1.15.2 jar on the hub. trying to update my plugin
seems weird there's a spigot 1.16.1 but only bukkit 1.15.2
Read the thread above
where does it talk about the maven mismatch
HMMST
is there a way to sync plugins and config across a network?
they removed bukkit building @sleek ivy
I have an old maven project using it, so how do I get the api now
use spigot api
php?!?!?!
someone can help me i'm giving /server survival by chat works more if i use the bussola doesn't work
what's bussola?
compass in portuguese lol
hey for some reason its constantly raining, im not sure if its an issue with spigot or some other plugin on my server. Sleeping in a bed and doing /weather clear or /weather sun doesnt fix anything. Any ideas?
im running 1.16.1 btw
I had a similar bug. You just have to wait out the rain for now
its been raining for like 10 days straight
damn lol
is there really no other way to fix it?
I couldn’t fix it
/minecraft:weather broken too
for me it went away after a couple in game days
then came back
xD
Which world is which? DIM1 = Nether? DIM-1 = End?
Okay sweet
where do i get to jira
is there a way to sync plugins and config across a network?
how would i get server tps?
/tps
no it’s a default feature
i mean from a plugin sorry
in the api?
yes
its fine
you know where i could see the /tps source code?
is it in EssentialsX?
uh how do i not be 31 versions behind
im assuming i go to like
the spigot webpage right
run BuildTools again and get a new jar
@grizzled hound I know ClearLagg has a tps counter if you read their source
aight ill take a look
yes. there are instructions how to do it in the forum post announcing 1.16 spigot release
@mortal jolt
oh cool thanks
np
ok im sort of lost. i have all this, but im confused on where to go next
wait i may be stupid one second
ok yeah i just did it wrong nvm
can people join with 1.16.1 if the bungee cord jar is 1.8 to 1.16.1 and other server paper 1.8
np
Is ChatColor.RESET supposed to leave text italicized now?
Spigot bug
In item names at least
does anyone know how to remove this from a music disc lore? Its not an attribute
hmm nope idk know
Probs nms but not sure
I doubt it’s removal at all for the sake of attribution
Does anybody know if there's a 1.16 update for dynmap?
Could have sworn I saw some people using it in 1.16 the other day
'a kick occurred in your connection' this message appears sometimes when i try amd join my 1.16.1 spigot server through my bungeecord
Dynmap isn't updated yet as far as I found. I am having an issue where non-op players are unable to pick up items or use commands. Assuming it is due to EssentialsX or some other plugin not being updated yet.
its not an attribute, so the itemflag doesnt hide the disc label
Is there a reason why my server is just restart looping without any catastrophic errors?
[12:43:53] [Server thread/INFO]: [BlocksHub] BlocksHub plugin WorldGuard...enabled
[12:43:53] [Server thread/WARN]: [BlocksHub] Loaded class net.coreprotect.CoreProtect from CoreProtect v19.0-dev which is not a depend, softdepend or loadbefore of this plugin.
[12:43:53] [Server thread/INFO]: [BlocksHub] Registered CoreProtect 19.0-dev logger.
[12:43:53] [Server thread/INFO]: [BlocksHub] BlocksHub plugin CoreProtect...enabled
[12:43:53] [Server thread/INFO]: [BlocksHub] LogBlock: plugin not found.
[12:43:53] [Server thread/INFO]: [BlocksHub] BlocksHub plugin LogBlock...disabled
[12:43:53] [Craft Scheduler Thread - 1/INFO]: [Vault] Checking for Updates ...
[12:43:53] [Craft Scheduler Thread - 6/INFO]: [Lottery] There is a new Version of the Plugin: 1.4.2
[12:43:53] [Server thread/INFO]: Saving the game (this may take a moment!)
[12:43:53] [Craft Scheduler Thread - 1/INFO]: [Vault] No new version available
[12:43:54] [Craft Scheduler Thread - 3/INFO]: [BW] New RELEASE version 0.2.10 of BedWars is available! Download it from https://spigotmc.org/resources/screamingbedwars-1-9-1-15.63714/download?version=335756
[12:43:55] [Server thread/INFO]: Saved the game
[12:43:55] [Server thread/INFO]: Stopping the server
[12:43:55] [Server thread/INFO]: Stopping server
[12:43:55] [Server thread/INFO]: [WorldGuardExtraFlags] Disabling WorldGuardExtraFlags v4.1.2
[12:43:55] [Server thread/INFO]: [ViaRewind] Disabling ViaRewind v1.5.0
[12:43:55] [Server thread/INFO]: [ProtocolSupport] Disabling ProtocolSupport v4.29-dev
[12:43:55] [Server thread/INFO]: [SuperVanish] Disabling SuperVanish v6.1.3
[12:43:55] [Server thread/INFO]: [CraftBook] Disabling CraftBook v3.10.2-SNAPSHOT;4557-a8df046
Latest build of Spigot 1.16.1
Pls bin
try to --forceUpgrade your world chunks
anyone ran into problems with entityplayers 2nd layer?
does anyone know how to remove this from a music disc lore? Its not an attribute
@old solar Try ItemFlag.HIDE_POTION_EFFECTS. Even though it's not a potion effect, it should work. Minecraft Wiki describes this itemflag as "others", instead of only potion effects.
alright will do thanks for the suggestion
I will note this was working on the first initial builds from yesterday but I have a script that updates Spigot on a cron job quite frequently for Multicraft.
Anyone facing issues where they cannot pick up items even though they have free inventory space?
I ran the force upgrade already yesterday and it ran for 12 hours on 16c/32t.
There are some minor plugin errors (I know but nothing seems out of the ordinary).
@royal spade yes we are unable to pick up items unless an OP
wat
it seems random user-to-user
Some users are able to without issue
some are not
ah i had a user that couldnt so i had to op her and then she was fine
@drifting relic it works, thanks
Hi, there is any way to block player interaction with HorseInventory in Spigot 1.12.2 ? I have tried this but .. nupe.
public void onInteractInventory(InventoryClickEvent e){
if(e.getInventory() instanceof HorseInventory) {
e.setCancelled(true);
}
}
can I see all of the codes?
have you registered it
Yeah i have registered it
what does this even mean?? [13:45:51] [Netty Server IO #1/INFO]: Your version isn't recognized, switching to fallback solution: "generic_v3", please update! [testing out early 1.16 version]
is there a way to sync plugins and config across a network?
if not, is there a better way than just symlinking?
People usually use git or rsync and custom scripts afaik
hmmst
Hm on 1.16.1 bungeecord and client the tab don't reset on server switch is that bungeecord bug or minecraft bug? or is that only on my server?
Like players from lobby 1 still displaying after switching server
How can I know a server version from ProxiedPlayer in bungee?
ProxiedPlayer#getServer().getInfo() doesnt give anything about version
im doing this so i can know whether to support RGB on that ProxiedPlayer or no
(ping when answering plz)
Can anyone help me out? Having some issues with my mc server rn. My friend cant join, worked completely fine like under a week ago when we last played. Constantly gives him the io.netty.channel.AbstractChannel Connection timed out error thing
'io.netty.channelAbstractChannel$AnnotatedConnect Exception: Connection timed out: no further information:'
Hm on 1.16.1 bungeecord and client the tab don't reset on server switch is that bungeecord bug or minecraft bug? or is that only on my server?
@soft ruin isn't there an option in bungeecord config.yml to list in tab all players in the network? 🤔
its on per server, and it don't display all players it only display players who was on servers i have been on
Help I never use spigot and I don't know how to install it
Any tutorial whit video out there?
https://www.spigotmc.org/wiki/buildtools/
Start Reading Boys/Girls/Unidentified
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
PSA: if you're having that issue where you can't pick items up, interacting with something such as a furnace fixes it.
2 players on my server both had this issue and that fixed it.
Weird ass bug
Does anyone know if spigot is causing the issue where custom named items will show up as italics (&r doesn't seem to work), it shows up on all plugins with guis and custom items (for example heads)
Same, BossShopPro over here.
Sadly has to do with Nbt, Lots has Changed. rip
Since The Italic Drags Over.
There is no fix for it? Will we just have to deal with it and remake plugins, or can it be fixed via spigot?
Probably a Edit or something to their code.
anyone know about my issue?
Having an a class that extends EntityZombie as a custom zombie, is there a way to cast it as an Entity? Code like ((Entity) entityZombie).setCustomName("test"); throws an error saying that I can't cast my custom zombie to an Entity.
Because EntityZombie is already an entity
Ah, I feel dumb
Hello, I just updated my server to spigot 1.16.1 and now it's impossible for my players to use commands (or even myself);
there is no errors in the console, just the message "Player issued command /help" but nothing happened.
Can anyone help me
Check out the plugins
ok i'll try them one by one ty
help me 😦 Disconnected with: Could not connect to a default or fallback server, please try again later: io.netty.channel.AbstractChannel$AnnotatedConnectException
Try to start your server with --forceUpgrade argument
Anyone knows a working world managment plugin for 1.16.1?
@rare prairie problem is its not for every player
at least not for the first one
subsequent players have the issue
That argument is used to force upgrade the world(s) chunks
forceUpgrade also wouldnt do anything for worlds that i load myself :p
Start Reading Boys/Girls/Unidentified
@fierce briar everyday I wake up, I am more sure that people don't know how to read
They probably forget about “Continue...” on the Forums.
But, Yea They don’t
“Youtube” is the way they go.
I mean look at this
They asked the same question minutes after and the answer was right above
smh
Ahaha
You:“Scroll Up”
Them: Oh Ok thank you!
Best way
Well, Depends if they can see the history aswell
Since there is a way to disable it on discord from people seeing it. But 🤦♀️ Yea
How would you match an Entity with a custom entity, feel like it's going over my head, I've tried matching with UniqueID but it doesn't seem to be working.
Type=creeper
Specific entities from an ArrayList
Ahh
Yeah 😅
UUID should work
public static boolean isInFromID(Entity entity){
for (NormalZombie zombie : Infection.gameLoop.getZombies()){
if (zombie.getUniqueID() == entity.getUniqueId()){
return true;
}
}
for (NormalZombie zombie : Infection.gameLoop.getBossZombies()){
if (zombie.getUniqueID() == entity.getUniqueId()){
return true;
}
}
return false;
}
Using that method, it doesn't return true
.equals
^
for uuids you'll want to use .equals
(for any instantiated object actually lmao)
Not much to do with spigot but more to do with minecraft servers;
I've been trying to get this one resourcepack for a map called Cero to prompt and download, but it for some reason fails to activate after it downloads. Help?
(Resourcepack linked to see if anyone can find anything wrong with it)
and no matter where I upload it the issue persists
I have been having an issue where players randomly are unable to pick up things and I went back to a different version of paper before it updated upstream from bukkit/spigot and everything is fine has anyone else had this issue?
Hi there,
I've made a backup of my server to test the 1.16 version, so I have deleted the plugins and changed the spigot jar version. But when I start the server, this error appears (only at the first time):
[12:32:53] [Server thread/ERROR]: No key position_predicate in MapLike[{location_predicate:{predicate_type:"minecraft:block_match",block:"minecraft:water"},output_state:{Properties:{level:"0"},Name:"minecraft:water"},input_predicate:{predicate_type:"minecraft:block_match",block:"minecraft:dirt"}}]; No key position_predicate in MapLike[{location_predicate:{predicate_type:"minecraft:block_match",block:"minecraft:water"},output_state:{Properties:{level:"0"},Name:"minecraft:water"},input_predicate:{predicate_type:"minecraft:block_match",block:"minecraft:grass_block"}}]; No key position_predicate in MapLike[{location_predicate:{predicate_type:"minecraft:always_true"},output_state:{Properties:{snowy:"false"},Name:"minecraft:grass_block"},input_predicate:{predicate_type:"minecraft:random_block_match",probability:0.2f,block:"minecraft:grass_path"}}]; No key position_predicate in MapLike[{location_predicate:{predicate_type:"minecraft:block_match",block:"minecraft:water"},output_state:{Name:"minecraft:spruce_planks"},input_predicate:{predicate_type:"minecraft:block_match",block:"minecraft:grass_path"}}]
Here's the whole log (starting the server for the first and second time): https://pastebin.com/nPwHwJbe
It should be noted that I am not an expert programmer and I'm starting to learn a bit day by day, so I would be grateful for your help :)
Thanks.
PD: I also get this error and I don't understand why the ms are too high.
[14:23:38] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 3429593ms or 68591 ticks behind
im gonna
bump this
still have no clue whats going on
try to repeat the process on a differnet server, it works there apparently
Hey guys, would you give me a rough estimate of how much time would it take to convert 1.15.2 map (50gb) to 1.16.1 during server force upgrade?
hmmm i just found out my spigot version is outdated again lol
I have been having an issue where players randomly are unable to pick up things and I went back to a different version of paper before it updated upstream from bukkit/spigot and everything is fine has anyone else had this issue?
if anyone knows anything about this please let me know
Hey guys, would you give me a rough estimate of how much time would it take to convert 1.15.2 map (50gb) to 1.16.1 during server force upgrade?
@torn elk
Your map size wouldn't increase by much or even increase
@languid jolt But how much time would it take to convert it?
If you wanna regen your nether just delete your nether world and gen a new one
That takes maybe 5mins
i will delete both nether and end worlds
If you just load your current map on 1.16.1 Minecraft will generate the new chunks in unexplored areas
I mean the end didn't get updated
that's fine
does someone know how to use EntityDamageEvent
But how many hours would it take to convert the regular world that is 50gb's
is overnight enough?
does someone know how to use EntityDamageEvent
No need to repeat. WDYM "use"?
That specific event values, or how to listen to events in general?
But how many hours would it take to convert the regular world that is 50gb's
@torn elk
Map don't need "converting" for each version
I want to make if player get hit getDamager regeneration for 2,5 secs
Player#addPotionEffect
You can then put in that a PotionEffect which you can make using new PotionEffect.
I don't seem to be able to check if a custom entity from an ArrayList is an entity from an event.
public static boolean isInFromID(Entity entity){
for (NormalZombie zombie : Infection.gameLoop.getZombies()){
if (zombie.getUniqueID().equals(entity.getUniqueId())){
return true;
}
}
for (NormalZombie zombie : Infection.gameLoop.getBossZombies()){
if (zombie.getUniqueID().equals(entity.getUniqueId())){
return true;
}
}
return false;
}
I'm using this code to check if an entity from an event is my custom entity (NormalZombie). The zombies are spawning as expected, just having issue checking.
Anyone got any ideas?
I have been having an issue where players randomly are unable to pick up things and I went back to a different version of paper before it updated upstream from bukkit/spigot and everything is fine has anyone else had this issue?
Can anyone help?
Guys
which is better for
more tps
and no lagg
paperspigot 1.15.2 or spigot 1.15.2
Server seemed to crash or something, here is the crash log: https://pastebin.com/NBRfvSwr
@ashen stirrup What even are you using?
If its a custom entity then spigot events like Interact event wont work with it
you will have to create your own
paperspigot 1.15.2 or spigot 1.15.2
Do your testing, see what works better for you.
NMS, EntityDeathEvent
Are you registering custom AI or just a NPC?
Also it says "failed to verify username" when I try to rejoin
Hi there,
I've made a backup of my server to test the 1.16 version, so I have deleted the plugins and changed the spigot jar version. But when I start the server, this error appears (only at the first time):
[12:32:53] [Server thread/ERROR]: No key position_predicate in MapLike[{location_predicate:{predicate_type:"minecraft:block_match",block:"minecraft:water"},output_state:{Properties:{level:"0"},Name:"minecraft:water"},input_predicate:{predicate_type:"minecraft:block_match",block:"minecraft:dirt"}}]; No key position_predicate in MapLike[{location_predicate:{predicate_type:"minecraft:block_match",block:"minecraft:water"},output_state:{Properties:{level:"0"},Name:"minecraft:water"},input_predicate:{predicate_type:"minecraft:block_match",block:"minecraft:grass_block"}}]; No key position_predicate in MapLike[{location_predicate:{predicate_type:"minecraft:always_true"},output_state:{Properties:{snowy:"false"},Name:"minecraft:grass_block"},input_predicate:{predicate_type:"minecraft:random_block_match",probability:0.2f,block:"minecraft:grass_path"}}]; No key position_predicate in MapLike[{location_predicate:{predicate_type:"minecraft:block_match",block:"minecraft:water"},output_state:{Name:"minecraft:spruce_planks"},input_predicate:{predicate_type:"minecraft:block_match",block:"minecraft:grass_path"}}]
Here's the whole log (starting the server for the first and second time): https://pastebin.com/nPwHwJbeIt should be noted that I am not an expert programmer and I'm starting to learn a bit day by day, so I would be grateful for your help :)
Thanks.
PD: I also get this error and I don't understand why the ms are too high.
[14:23:38] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 3429593ms or 68591 ticks behind
@mortal belfry Can anyone help me a bit please?
entity.setLocation(loc.getX(), loc.getY(), loc.getZ(), loc.getYaw(), loc.getPitch());
((CraftWorld)loc.getWorld()).getHandle().addEntity(entity, CreatureSpawnEvent.SpawnReason.CUSTOM);
Sorry for the text amount
@fossil shoal
Ah, alright... You just want to add an entity to the world? Why do it through NMS when spigot provides a great API for that?
So you don't know which is better ?
Because it uses different pathfinding
Could anyone help me with this? Server seemed to crash, here is the crash log: https://pastebin.com/NBRfvSwr After it happened, it say "Failed to Verify Username"
Oh, alright i asked that question above, thought you were just adding an entity... What i would do i first debug though it and see if the event gets called.. My guess is that it wont since its a custom entity and not registed with Spigot, If its not registered then you make a packet listener that waits for the entity ID
@mortal belfry known bug. Vanilla issue
So you don't know which is better ?
I am not running a server, I did not test psrsonally.
You can make some googling and see what other people find better or as I said, do your own testing.
I won't encourage people to use different software on SpigotMc discord.
Alright
Does anyone know what is wrong?
@deep lion Let me look at the crash report
When it happened, I left and tried to rejoin, but it said failed to verify username
me?
ye
@deep lion
Caused by: java.lang.IllegalStateException: BlockFadeEvent cannot be triggered asynchronously from another thread.
Do you have custom plugins in there?
What plugins?
@pastel condor If they had made any plugins themselves
That actually looks like a vanilla bug
Luckperms, worldedit, plugincontructorAPI, saml, singeplayersleep, holographicdisplays, buycraftx, votifier, worldguard, mytrip, wolfyutilities, WitherAC, vault, nightvisionplus, griefprevention, quality armory, chestshop, essentials, custom crafting, claimslistclassifier, ajantixray, headsplus, voting plugin, esschat, tab, rtp, essentialsspawn
1 sec, lemme take a look at this other one first
yea thats fine lol
Though that too looks like a CB bug
what could be causing that blockfadeevent issue?
Is that a spigot problem or most likey plugin?
i wasnt too sure because i tried to reproduce with no luck
but
i mayve tried to reproduce incorrectly
or missed something
@hot scroll , the event is being called
Alright well then you have your fix!
Just keep stepping through and figure out what the issue is
I think Mojang made a change that screwed up CraftBukkit's event call. I'm looking into it, Beng
Thank you
What were you doing to have this issue fired? Converting a world? Just playing?
This is not a programming question, but i am going to use it for it. While having text selected and pressing the button TAB or TAB + CTRL, you move the text by 4 spaces (Also known as a tab) but is there also a way to move this text 1 space back? I just completely refactored my shop system and i need to fix up the config so that's why im asking.
Server crashed again, seems to have happened when I did /butcher in the nether
I'll paste
Same thing it seems
Also at the time I was working on making a world guard region by setting flags
not sure if that has anything to do with it
This is all in the nether in a new biome
So it's definitely a CB bug. In that case, create an issue on the JIRA and I'll try and write a PR to fix it
?jira
Does somebody know how to set a server to a lobby so that you will be send to this server if you join? (Bungeecord)
Reproduction steps, version, etc.
6.06.2020 22:17:39] INFO: [Lobby-1] [22:17:39 ERROR]: Callback onResult call produced an error
[26.06.2020 22:17:39] INFO: [Lobby-1] net.minecraft.server.v1_8_R3.CancelledPacketHandleException
Can any1 help me?
1.8 is not officially supported
? xd
A lot of people seem to be using this over dependency injection in order to retrieve the main class ```java
private static final INSTANCE;
@Override
public void onEnable() {
INSTANCE = this;
}
public static INSTANCE getInstance() {
return INSTANCE;
}``` Is this like... a smart way ? 🤔 Should i move from dependency injection to this instead? Not sure if using static for accessibility is the right way here
but literally every plugin i find uses this lol
Is this like... a smart way ? 🤔 Should i move from dependency injection to this instead?
Please don't
Dependency inject where you can sensibly do so
Commands, listeners, etc.
There are situations where a static instance grabber is required (i.e. creating NamespacedKey constants in another class - you need your plugin's instance, or in certain situations when writing an enum, etc.)
So making a static instance grabber for the main class is wrong 🤔
Create one if you have to use it
Though constructor dependency injection should be preferred where possible
Hmmm my error has appeared on Paper bugs before
I'll stick to DI For now then, thanks for the info!
So i would like to think its not me doing something wrong lol
Alright I submitted the issue to JIRA
Also choco, mind if i ask you a question about an issue im having? i reported it in JIRA this morning but i think its now marked as solved and not going to be looked on
That BlockFadeEvent issue looks to me like Mojang made some parts of feature generation in structure gen async
Sure, which issue
md is asleep right now, it's possible he will look at it later, nikv
It can probably be fixed, it's just beyond my knowledge, Beng. So again, I ask you create a JIRA issue if you haven't already 🙂
Definitely a bug CB should resolve though
This is the one, in 1.15.2 and previously, when i attempted to recursively delete a world folder with my plugin and generating one afterwards. i've had no issues and no exceptions at all. with the new one i'm getting a security exception with session.lock being left undeleted (which should happen by default when deleting vanilla worlds)
Yeah I did, did I do it right? https://hub.spigotmc.org/jira/projects/SPIGOT/issues/SPIGOT-5847?filter=allopenissues
Not sure if I submitted it correctly
Sure choco no worries! just dont forget me ^^
Yep! Thank you! Though edit the "version" field to include the output of /version
I would post my thing but I cant reproduce :/
Rest looks okay
I am 4 versions behind btw, perhaps I should try updating?
yea doesnt hurt
No that's okay. None of the changes made since resolved that issue
👍
I'm having a super weird glitch when going between my 1.16.1 server to my 1.15.2 server
I don't exactly know how to explain it other than mobs show on the 1.15.2 server from the 1.16.1 server?
Wat
i am trying to open an inventory for a play
*player
but this error keeps comming up
1.16 worlds aren’t compatible with 1.15 servers
Here lemme show you choco
Won't let me stream
F
Is there anyway I can share my screen to you Choco rq?
@subtle blade i dont mean to bother but how would i go about investigating the issue im running into? I cant seem to reproduce (at least not with a basic plugin) but also the error doesnt give any info on what could be going wrong :/
is there a release date for 1.16 to come out on the server?
?1.16
Spigot and BungeeCord 1.16.1 are now available. Please see https://www.spigotmc.org/threads/447405/ for more information.
Reminder that BuildTools is the only supported means of obtaining the Spigot server jar.
Been out for a few days, bud 😄
@subtle blade Can I share my screen with you and show you my issue?
Whats the issue
2 Things
1st is that the Tab doesn't refresh/update
2nd The mobs are transferring over to another server, but they're just floating there and you can't hit them
Did you update from 1.15.2->1.16.1 ?
No, I had a fresh install of 1.16.1 on the one server
But the rest of the servers are 1.15.2
A complete new one?
Yes, I can delete all files and retry it if you'd like
No plugins ?
I added plugins, yea
But I removed them since then
To see if it was a plugins issue or a spigot issue
I have hard thinking hat they would be the issue
But the issues can definitely be some weird bugs
Jar sided
Want me to make a clean spigot 1.16.1 install?
Anyone here good with 1.8 NMS?
Decent
Uhh Entity FOLLOW_RANGE?
What’s up with that?
Trying to make it so that inside an arena, the entity will have a target but the arena has points where the entity will stop targeting the player. I have this to set the target:
Random random = new Random();
this.goalSelector.a(new PathFinding(IPlayer.getAsPlayer(Infection.ingame.get(random.nextInt(Infection.ingame.size()))), this));
And then for the Follow Range (something I found online while trying to figure it out)
try{
Field field = Navigation.class.getDeclaredField("e");
field.setAccessible(true);
AttributeInstance e = (AttributeInstance) field.get(this.entityInsentient.getNavigation());
e.setValue(256D);
}catch (Exception e){
}
Who was it that wanted an ItemMeta#setRepairCost() again?
Jeeb what is the issue
Hey so I'm coding a plugin that uses persistent data, but when I tried to store an array of strings it compiled fine but gave an error saying something about the tag adapter not being defined (or something like that)?
I googled and couldn't find anything so I made a quick workaround so I could store it as a single string instead but I've just thought that I've got to store a few things of my own classes that can't really be worked around - is this a spigot thing or a java thing?
The Zombie still untargets
I've left my pc now so I can't really fiddle with it, I just wanted to ask while I remembered
Wait how is the follow range suppose to work? Is that relative to the entity or just a fixed location
Also is there a way to define a tag adapter for a class?
The target should be a player in the minigame.
The range should be 256 blocks (So that the entity can't untarget in the arena)
omg. just started building out another server on 1.16.1 and it still wont stop raining. Cannot figure out what plugin is doing it.
I set spawn-protection=0 (was 16) and guess what... no more rain. the heck.
crap. nevermind rain is back
It happens to someone that when you refresh your server list a server doesn't load them instantly? Do you know why this happens and do you know any solutions? The problem is with the first and second servers (they are different dedicated)
Did you update from 1.15 to 1.16?
I had that first time I ran the server after updating from 1.15 to 1.16 and only the first time.
uhm anyway to stop mob spawning from capping? cuz on my multiplayer survival server (hard difficulty) it feels like there are no mobs at night, but usually one player is overloaded with mobs. So what can I do in spigot settings or server settings to prevent this?
hey, im after some advice i play on a 1.15.2 server, we wanted to update to 1.16.1 but the owner cant do it for some reason?
Well that doesn’t help us at all
“He can’t do it” is the most vague you could have put it 😛
Okay I disabled multiverse and installed hyperverse. Rain seems to have stopped. Did a restart and still no rain.
either way added a jira ticket for spigot just incase they see something that can fix it
Hello, I'm having an issue with a spigot 1.16.1 server. A player on the server recently tried to use an ender pearl to go through an end gateway, which resulted in a null pointer exception. From the crash report, it would appear that the cause is that the thrown ender pearl's vehicle was null. In my testing, I have found that this issue affects all attempts to travel through end gateways with an ender pearl, but does not affect players who just walk into one. I can provide the full crash report, as well as the logs from testing, if they are needed. Any help with this is appreciated.
Hey I just have a quick question, If I was using paper 1.15.2, could I theoretically use spigot 1.16.1 until paper updates, or am I jeopardizing my maps?
Update
You're like 35 versions out of date, Starman. Always update your server before asking for help with a crash
That was fixed within a few hours of release
Spencer, that's a question you should be asking the Paper guys. We don't know what changes they make that may potentially cause issues
My apologies, I didn't realize I was behind.
You should be updating with BuildTools practically daily
(at least while 1.16.1 is still in active development)
@subtle blade Aight, I gotchu. Thanks for your input regardless 🙂
I was under the impression it was just full RGB
Saw that issue earlier and was very confused lol
nah they just added like 20 more colours
Im assuming the new colours arent rendering
but idk
Did anything change regarding the Tablist settings in the latest version of Bungeecord? When I am using Minecraft 1.16.1 and switch from server-1 to server-2 the player that switches servers still sees the player(s) in the tablist of the previous server. The player that remains in server-1 will see the updated tablist where the player that left is also removed from the tablist.
Tested on a 1.16.1 Spigot server (version : git-Spigot-16d7899-4ff609e) running without any plugins.
I also tested this using a 1.15 Minecraft client, 1.15 Spigot server and the same Bungeecord and the issue didn't happen.
I just wish they'd use RGB for map rendering. I don't understand why there has to be a restricted palette.
Eh, compression I guess...
8 bits (byte) vs 32 bits (RGB integer)
So i got an armorstand that i change the velocity on. Is there a way to make it go up halfslabs?
does anyone have a link to the changelog saying that they added more map colours?
maybe the new colours are bugged
They added a few in different snapshots
Don't know if there's just one unified list
noice
nylium
is the transprent thing
did they make maps work in the nether
let me try there
Well let's see if they decide to take their time and address some bugs in 1.16.2 - because that was confirmed
hmm
its not transprent on single player
o.o
tests vanilla server
urgh so it is a bug on spigot
yo do u guys know why a user payment from my buycraft website is still on hold?
it's been 4 days
We're the last people to contact for that. Your request should go either to (a) Buycraft or (b) PayPal
your right, lemme do that
Or, (c) the user ;P
The user already received his items in-game 🤷♂️
It's probably because ur mail isn't verified or something
I received buycraft payments before, like a year ago, and it didn't happen.
It says I need to verify my shipping info or something, but it's a virtual product.
@fleet crane Don't know if you found it already, but here you go.
yeah I found the issue
Cool!
Hey, I have a request, a bit stupid tho. Could anyone pass me the link of the page where I can download FileZilla safely. I had already downloaded it, but my antivirus said that it was "a potientally damaging download".
best place is the official site https://filezilla-project.org/download.php?type=client
Download FileZilla Client 3.48.1 for Windows (64bit)
if your antivirus says it's malware, try to bypass it
I have no clue wheter winscp has advanced settings regarding upload speed (like I had set it to unlimited but it had no effect whatsoever), but Filezilla was at least twice as fast for me
plus winscp only supports windows
anything that is executable is a potentially damaging download
top ten best philosophical quotes
and also the modus operandi for almost every antivirus program
I'm new to server hosting, is there a plugin that prevents mobs from spawning in a spawm chunk
Worldguard
Just wondering but is there a way to increase the timeout? With 1.15.2 and the 1.16.1 builds with a area that has a LOT of redstone, hoppers, etc, i typically crash, and the server also ultimately ends up crashing on me. This does not seem to happen as much when I walk/fly over to the area, but if i use a warp plugin or a nether portal to go to the location, it almost always crashes. Logging into the location if i crashed there also does not seem to crash the server for some reason.
timeout-time? it literally tells you in the crash message
It doesn't actually say it was timed out, it is a very long stack heap in the log though
Watchdog creates that stack heap after a few (10?) seconds and then stops the server if its still not responding after 30 or 60 seconds.
But tbh if your chunks take that long to load there is something wrong and you should not just increase the timeout to hide the issue
So i got an armorstand that i change the velocity on. Is there a way to make it go up halfslabs?
Can anyone help me with this xd
yeah i only run into that when im using a debugger on my plugin xd
i wonder how this chat colour thing is gonna work cross version
It aint xd
yeah it'd be nice if watchdog could detect debuggers
convert it to the nearest base colours not that difficult
just disable watchdog for your testserver. Shouldn't debug the live server anyways 😄
I guess i'll just regen those chunks, maybe i need to space everything a bit further apart 🙂
anybody run into the issue of end gateways crashing the server when you ender pearl through - after update?
what does /version say
I saw a bug report and it said fixed, but we just ran into it on my hosted server
r0.1 - 37 versions behind
I guess i'll just regen those chunks, maybe i need to space everything a bit further apart 🙂
@gilded bobcat You can try reducing hopper tick rate (if there are a lot of hoppers in that area) or using Paper's eigencraft-redstone as soon as its updated & works. But spacing it out is likely a good move in any case
well I think you've answered your question then
i guess so. lol
afaik eigencraft will be dropped
from what i've seen nobody has any interest in updating it
or ya know you could report the issue so its actually fixed
anything lagging your server for 60 seconds is very much a bug
bugs dont get fixed if all you do is keep trying to hack your way around it
i seemed to forget how to make changes to craftbukkit
- i changed the file, applied patches, committed, then ran buildtools
lol ok where should i upload the log and a bug report to then md?
and it no work 😭
idk, we had some players build a very big farm that lagged the server this much. Back with 1.13.2, so most likely not a bug. Its possible if you don't have any rules regarding automatic farms
Also, The 1.16.1 build from buildtools doesnt put the 1.16.1 craftbukkit jar in my local maven repo
asfaik craftbukkit is no longer distributed with 1.16
Then where do i get the stuff for nms shit xd
md do you know where the server determines which dimension manager to use?
for extra worlds? in CraftServer.loadWorld or whatever
for normal worlds, MinecraftServer.loadworld
How do i send a text component to a player now?
that method has never been a spigot method
the spigot method has ALWAYS been .spigot().sendMessage
this is even in the 1.16 release notes
ah right
Right so I'm getting this error - the dragon battle api is broken
java.lang.NullPointerException: null
at org.bukkit.craftbukkit.v1_16_R1.boss.CraftDragonBattle.getEndPortalLocation(CraftDragonBattle.java:33) ~[spigot-1.16.1.jar:git-Spigot-6f4ff1b-71045d3]```
Though I can't figure out why
How do i obtain the nms stuff now? since it doesnt come with the buildtools build anymore
nothing has changed re availability of nms
its still installed to your local repo by buildtools
huh
@subtle blade open a bug report
Nice MD i see you fixed the tab issue 😄
I'm under the impression that the dragonBattle passed through the constructor in CraftWorld#getEnderDragonBattle() but the only way it can be null is if the dimension manager says it's not a dragon battle creator (basically anything but the end)
Alright
Gonna run some quick tests to see if I can figure out what exactly is null first though
use the intellij debugger and put a breakpoint on every line xd
see where it goes null
Thank you for the answers to my FileZilla request! I really appreciate it!
Is there a separate username/password for the JIRA?
yes you need to make a new account
Ah, it's not the handle that's null. It's the exitPortalLocation
Wonder if maybe that's a world conversion issue
Has to be. Think I have a fix
Will make an issue on JIRA and a PR
is player isOnGround working
and setting an item's displayname to &f makes it tilted?
hmmmm
i found a fix for a problem that i coudlnt reproduce but it doesnt seem like it was an issue on my end, and made the changes to CB accordingly which fixed the weird issue i was having
i would make a PR but it would be a bit odd consider i dont even know how the bug worked or how to reproduce
I found the solution after going to https://github.com/PaperMC/Paper/issues/2803 which had the exact same issue i had
anyone know the chances of that kind of PR being accepted?
I'm trying to make items with custom names, however I can't remove the italics anymore (the ChatColor.RESET + x worked in previous versions but fails now). How can I fix this?
ItemStack head = new ItemStack(Material.PLAYER_HEAD);
SkullMeta meta = (SkullMeta) head.getItemMeta();
OfflinePlayer player = Bukkit.getOfflinePlayer(owner);
meta.setOwningPlayer(player);
meta.setDisplayName(ChatColor.RESET + player.getName());
meta.setLore(message);
head.setItemMeta(meta);
return head;```
Alright thank you for letting me know.
so reset will remove italics in the future again?
From what I understand the intended behavior of reset is to reset all colors and formatting (bold, italic, underline, strikethrough, and/or obfuscated)
Hey, im using Packet Listeners to get packets for interacting with a custom NPC(no external libraries for this) I have 2 plugins that need to do this, and i was wondering if when i register a Handler in 1, and then register the same handler in another will it through a duplicate handler ex? If so i guess i have to make a API to do this or do something else?
should be duplicate although I haven't written any plugins xD
Hi everyone, what is the permission node for the new gamemode switcher menu (if there isn't one, who has permission to use it)
Sometimes when a player leave on bungeecord its a very small chance it not always triggering PlayerDisconnectEvent is it a reason for that?
Is there any other stuff i need to listen on?
Like i remove player from a list when them leave but a very few times it don't remove kinda fells like the event did not trigger when the user left
it's hard to say at this point. because 1.16 is currently in a snapshot for spigot, we can barely tell performance
and see that there is a bug with .RESET
"bug"
@fleet crane
**'A kick occurred in your connection the server you were on previously went down' ** there is no console error. This happens on 1.16.1 server. I don't believe it's because of any plugins.
Players receive the message randomly when they try to join. Then when they try joining a 2nd time they can. However sometimes they can't join at all.
Plugins Just incase
Plugins (47): LuckPerms, Wild, SCommandBlocker, Skript, PlaceholderAPI, ClearLag, UltimateTimber, PlugMan, Hub, IllegalStack, SkQuery, WorldBorder, NametagEdit, HolographicDisplays, Votifier, VoteParty, Multiverse-Core, AutoRespawnPlus, FastAsyncWorldEdit, DeluxeTags, ViaVersion, CraftingStore, Vault, StaffPlus, ViaBackwards, ViaRewind, WorldEdit, CrazyCrates, LastLoginAPI, Essentials, SpigotLib, OnlyProxy, LiteBans, Marriage, WorldGuard, ChatFormat, WildStacker, Citizens, VotingPlugin, AuctionHouse, TAB, EssentialsSpawn, GriefPrevention, Harbor, ChestShop, Guilds, BountyHunters
(The players were joining with 1.16.1)
Hey this is throwing an IllegalArgumentException on 1.16.1. Is this due to an api change or is it likely a bug?
Firework fw = (Firework) p.getWorld().spawnEntity(p.getLocation(), EntityType.FIREWORK);
I want my plugin to be able to spawn a minecart on some rails which players cannot push but, whenever a player enters the minecart, force the minecart to move forward without allowing the player to make it go faster, backwards or leave the minecart. Any ideas how I could stop the player from pushing it and stop players from controlling it while inside it? I've looked around for a while and can't seem to find anything except for stopping players from moving in boats. Thank in advance!
@stable ermine UPDATE
ok boss will do
poor soul
how do a put things in like code format
3* ` ?
``` code ```
You mean using code blocks in Discord mrschmiffy?
yes
Use 3 of the apostrophes next to the 1 on your keyboard, type the name of the language (e.g: Java) then on a new line paste your code and use 3 of the apostrophes again
@subtle blade Lemme know when you have a minute, I'd like to screenshare my issue lol
If you want them to be colored then you can type the language on the first line
ok thanks
Hey guys is there a guide on how the new chat colours work?
And is it chat only no signs / item lores
ok
Do the old chat colors still work?
yes
Very nice, thank you
Do the chat colors need to be sent as json messages
Or will Bukkit broadcast message etc still do fine
Developers
The only significant change that may be of interest to developers is the ability for chat text to take on any 'hex' colour. Support for such colours exists only in the bungeecord-chat API (which is also available for use on any Spigot server). You can use these 'hex' colours both with the component system (Player.spigot().sendMessage(...)) and also with the existing String-based APIs (Nameable.setCustomName(ChatColor.of("#123456"))). To help facilitate the use of bungeecord-chat as a universal chat API, it has been fully released to Maven Central where it is available as net.md-5:bungeecord-chat:1.16-R0.1 (keep an eye out for updates).
So basically use Bungee cord chat colours for everything
I'm surprised they dont just deprecate bukkits implementation
And what would you use the chat dependency for
I mean not adding new features to it is basically deprecating it
Suppose so but it seems Bungee's is now superior in every way
For spigot developers
Deprecation would be a nice way to signal chat
Also what would the chat single dependency be used for, would it work with something like Forge? Because spigot has it built in by default.
yes
Very nice, exciting stuff!
Can the Minecraft Development intelliJ plugin update to the latest (1.16.1) version of the api or do I have to manually update it?
no idea, its unrelated to spigot
was just wondering if anyone had experienced it as I got recommended it through spigot communities
It basically sets up a default plugin in intellij, makes your pom.xml and your JavaPlugin file
just manually edit the pom to 1.16.1?
idk, before I started spigot I used netbeans and when I switched it was the first thing I did as I was just doing what was recommended
Hah I don't even use a template project. I just create a Maven-based project and add everything manually, so there's that
epic
Ryxian, all you should have to do is change the 1.15.2 version number in your pom.xml to 1.16.1
then reload the project
Yeah, I just did that
Its all good
I had never done that before
I'm pretty new to Maven
I wish my professors had told us about it, its super rad
and thats the truth
time for the daily update...
yes the scheduler is thread safe
any idea why @p isnt working with /tp in spigot?
Do you have essentials
Is there a way to delete the spawn that was set? -New to making a server-
thank you
./minecraft:setspawn
TY
Is anyone else having this issue? https://media.discordapp.net/attachments/665659399930511384/726255455457771540/2020-06-26_20.59.26.png?width=1112&height=677
Uhm, sir. Your creepers are floating
I hate when that happens
The creepers are becoming quite threatening
With Spigot is there a way to just restart? Without stopping and restarting manualy?
Yes. Spigot supports restart scripts and adds a /restart command
im having an issue where the nether is stuck on peaceful and the overworld is on hard mode. could anyone help?
What command do I need to add? I did /restart and it just stoppped the server and closed the CMD?
in the script where you launch the server, wrap the line that launches the server in an infinite loop
that way it will always start back up after being shut down
the restart script option in spigot.yml is shaky at best
New to server making...Make a line to do a loop?
No, don't make a loop, please
In the spigot.yml you'll find a restart-script option
Point that to your start script (./run.bat, ./run.sh, whatever)
yes
I'm going to give it a try. How do I pull up that white windows for the server console?
Why didn't my brain relize that nogui mean nogui not some french word...
Also that command isn't restarting the server. It causes it to stop, but keeps me at the press any key to continue
Is the 1.16 bug that after setting a player as the inventory holder using Bukkit.createInventory mentioned before? It returns null when I use getHolder()
The issue that I'm having is that whenever I go from my Vanilla server (1.16.1) and back to my hub (1.15.2) the mobs transfer over but they're not attackable and they don't move. Just float there.
Batch Script - Commands - In this chapter, we will look at some of the frequently used batch commands.
Here ya go
“Exit” i guess
@subtle blade I got the command in the spigot.yml working, but when it restarts it says, "." is not reconized
@spring nexus no I haven’t heard that
Alright, I just tested this on 1.15 just to make sure. Yeah, it's always null for the constructor with inventory type. It works as expected if I use the ctor with inventory size.
I tested it with 4 different inventory types, same thing. Except PLAYER type.
Oh, it works for WORKBENCH, BARREL, ENCHANTING, ANVIL, ENDER_CHEST, BEACON, CARTOGRAPHY, LOOM, STONECUTTER, SMITHING, GRINDSTONE, SHULKER_BOX and CHEST too.
So it doesn't work on: LECTERN, HOPPER, FURNACE, DROPPER, BLAST_FURNACE, DISPENSER, BREWING, SMOKER
Just making sure, but EntityPickupItemEvent is called before the item is added into the inventory, right?
Yeah.
Is anyone having an issue where the mobs from a 1.16.1 server are transferring over to a 1.15.2 server?
What
https://discordapp.com/channels/690411863766466590/690470011382267904/726264098144124998
Their AI properties are probably different. I think the only way is to make your hub 1.16 too.
Ok. I'll see if that fixes it.
petition to ban sweet berries
How can I put colors on the console for spigot? Like warning for yellow, info for white, Error for red
I'm currently testing some of the plugins and I'm having a hard time to determine which errors, warnings or infos only
yeah that's a bad bug rm
Can I get someone to see if they can connect to my server?
@frigid ember same as with players, Bukkit.getConsoleSender or whatever .sendMessage
It's an issue when moving from a 1.16.1 server to a 1.15.2 server
idk but how the hell can an interface has 2 same method with different return type
Must be a pretty old version youre looking at
I'm trying to create a /nick command and I am using translateAlternativeColorCodes() and setDisplayName() to do this. When I set the nickname with &4 however, the entire line becomes red, not just the name. What can I do to only change the name, not the message?
add &r at the end of the nick
Thank you! I'll give it a shot!
I have received so much help from this chat. You guys are all excellent.
Weird
Adding it while using the command worked
But adding it in the programming didn't
Nvm
Misplaced parenthesis
anyone know what the slot numbers are for an enchantment table
I am switching to spigot from paper while paper updates, but I am getting an issue where my already created worlds are being regenerated when they load up. this is on the latest spigot 1.16.1 build
Not sure what is causing it to happen
wait, nvm. sorry this issue seems to have been fixed
Welp
Anyone know how can I put colors on console of spigot? Like warnings is yellow, red is error etc...
@frigid ember same as with players, Bukkit.getConsoleSender or whatever .sendMessage
@fleet crane
OKay okay, thank you!! Much appreciated!
When will SPIGOT-5810 and SPIGOT-5835 be fixed
When md_5 has time to be able to fix them
Hey guys does anyone know how i can make my server execute a command a server launch?
My start.sh script is pictured below
hi!
Does anyone know a good rankup plugin? I want to use it for a prisons server. Thanks in advance for those who respond!
thank you!
Thanks for the info, much appreciated!
np
@hoary idol
; after the command to always do the second one, regardless of the first launching or not.
&& after the first, if you want the second command to launch ONLY if the first one runs fine.
|| after the first if you want the second command to only run if it fails.
e.g.
java -Xms1G -Xmx1G -jar server.jar no gui && echo Started! || echo Not started!
thank you so much kittleapps
no problem. Bash/Terminal usage is a little weird for people to start on and remember, just remember Linux is Case-Sensitive. 😛
