#help-archived
1 messages · Page 157 of 1
But varags works like this:
public Object[] method(Object... objects) {
return objects;
}
and then
Varargs just takes a bunch of arguments and let’s you access them like an array
void method1() {
method(); //empty array
method("hi"); //array with 1 element
method("hi", "hi2"); //array with 2 elements
}```
no1 saw :l
I saw
sssh
yeah
itemStack
@subtle blade Should I create a resource of how to make an actual API? I've seen lots of bad APIs recently, well I mean it's spigot plugins but still.
Do what'cha want. Though I'm also annoyed at how many "libraries" there are that all do the same thing
Now what?
lol yeah
If ya want an API, PR it to Bukkit :((
Would an item builder ever make it into spigot?
No
Was shut down in the past
Builder pattern isn't something Bukkit really likes to adopt. There are few exceptions like firework effects
I'm sure my itembuilder would be fine

felix
now make a class called InventoryListener or something where we essentially listen to events
An ItemBuilder in Bukkit would just wrap all of ItemStack and ItemMeta which is one more thing that has to be maintained
also make a clas for the commands
That's true and it's not really hard to make one yourself
Right
That’s fair
So, no, it wouldn't ever make it 😛
I think the only other thing in Bukkit that has a builder pattern aside from fireworks is... loot context?
Yes
mhm
@naive goblet I was gonna do one class per command
Oh what about world creator? Is that builder too?
That's good
Gah idk. There are a few exceptions from old school Bukkit
I mean kinda
So what's next?
builders are for making immutable stuff and there's really no precedent for immutability in bukkit, everything is mutable lol
Is it done?
make a class that listens to the InventoryClickEvent
Right. Even things like Location and Vector are both mutable
if there's mutability, you definitely don't need a builder. you hardly need a constructor 😛
Ah location confused me so much at first
Done
Also Choco, wouldn't comparing Inventory with == be fine?
no?
I believe there are cases where that would not hold true. However, Inventory_View_ is referentially comparable
Took a little bit before I realized location.add actually added to the original location :p
Necessarily InventoryView is just 2 wrapped inventories?
public class InventoryClickEventListener implements Listener{
@EventHandler
public void onInventoryClick(InventoryClickEvent event) {
}
}```
What should I set it to?
private Gui gui;
public InventoryClickEventListener() {
gui = new Gui(9, "&cExample Gui");
}```
or smtng
also gui can be final I believe
as you're going to use 1 gui only right?
and never re-assign it?
I plan to use more than one
But that gui is always going to be the same?
No
I mean you could just change it by removing its items
How would I check for when I switch to an item? I know there is PlayerItemHeldEvent, checking the item you are currently holding. Basically I want it to just cancel the event when I switch to a specific item
and setting new one then
It'd be easier to not do so though
Tanku getItemInHand or getItemInMainHand ?
im using mainhand rn
i am and then when i switch to the item it does the opposite, i cant switch off of the item 😂
incompatible types: org.bukkit.ChatColor cannot be converted to net.md_5.bungee.api.ChatColor
uh oh
You can use the held event and then set player.getInventory.setHeldItemSlot
Oh maybe make a GuiManager class?
You'll win much by doing extra in the long term kinda
why are there two different ChatColors anyway
no idea
in 1.16.1 bungee one is implemented in spigot?
It has been for a while
yh
public class InventoryClickEventListener implements Listener {
private final GUI gui;
public InventoryClickEventListener() {
gui = new GUI("&cExample Gui", 9);
}
@EventHandler
public void onInventoryClick(InventoryClickEvent event) {
}
}```
I got this
im trying to send stuff to the action bar lol
Problem is I want to change the title sometimes
Idk why they don’t merge them
And I can't do that with this method
why change title?
Because I might need to change it?
yes ?
I plan 2 completely different use cases for this GUI stuff
say them
Enchants and several shop pages
enchants?
custom enchants
like a view gui?
To add stuff
Does anyone here have experience with using the Dynmap API?
no sry
I'm having trouble finding / building a jar for it and linking it with my plugin
Felix well just create more guis?
I can't if it's final
You can't re-assign it
but why would want to do it anyways?
I'd suggest you to do this
Make a Map<String, Inventory>
In a seperate class
and then use dependency injection to access it in any other class
I just wanted to fix the method I had working lol
Well, I'm sure this extra work will pay you off in the future
okay make a new class called GUIManager
done
yeah well we could manage all your guis in 2 ways
1 being a map
2 being lot's of getter and encapsulated guis
I'd suggest a map if you are familiar with it
Map it is
?
I've used maps before
You know in a nutshell how they function?
Sup
you forgot to separate the file and the folder
plugin.getDataFolder(), arg + ".yml"
Yeah
Thanks for your help
contact me in dm
ok
ok so
my buildtool still isn't working
is there somewhere I can like put a picture to show you the error message
verify yourself
here I put it on imgur
its saying something about my storage, but I have a ton of storage on my pc
so how do I give it more ram
Read the message
java -Xmx512M -jar BuildTools.jar
ok yeah
¯_(ツ)_/¯
now it just has like a ton of stuff
i allocate ~8gb
saying that stuff is copied and completed whatever
does anyone know how i would just get the full number for the player's x/y/z location
good
instead of the long decimal
wym
GetBlockX/Y/Z
an integer?
ye
Coll said it
hello basically i tried to run a Runnable to make it updates every some ticks https://hastebin.com/ixanuqefen.java here is the class i deleted the runnuble thing in this bc im 100% i did some thing wrong with it can i get help please ? 😄 i know im idiot at java sry D:
Location#getBlockX Location#getBlockY Location#getBlockZ
ty
repeating the scoreboard set action
/ event
or what ever its called
like to update it like any normal scoreboard plugin
Bukkit.getScheduler().runTaskTimer(plugin, () -> {
//code
}, 0L, 20L);```
this would run every second
if server tps is 20
i tried that but there is something wrong like its not even working on that class
for some reason
How do you use it in other classes?
no
.
Well you shouldn't have a tasktimer in an eventhandler
it would create a new task everytime the event fires
so how do i fix that ._.
So I should do it in an EntityMoveEvent?
is it normal for my git bash thing to still be loading messages
Doesn't EntityMoveEvent fires like very frequently
Yep
I don't like that
I know there was
so how do i fix that ..
.__,
At least I think I remember seeing it at one point

@hardy cedar fix what?
@naive goblet the scoreboard thing? 🤦♀️
BKCommonLib has one
well schedule the timertask in onEnable I guess
@naive goblet the plugin doesnt detect the board in that case
it does?
and also register the listener
its in the main class
https://hastebin.com/ixanuqefen.java clearly not in main
main class
import org.bukkit.event.Listener;
import org.bukkit.plugin.java.JavaPlugin;
public class Main extends JavaPlugin implements Listener {
@Override
public void onEnable() {
getServer().getConsoleSender().sendMessage("§aEnabled GraveLobbyCore by iiAhmedYT");
new Basics(this);
new WMCommand(this);
new KaboomCommand(this);
new Scoreboard(this);
new PlayerList(this);
getServer().getPluginManager().registerEvents(new Basics(this), this);
getServer().getPluginManager().registerEvents(new WMCommand(this), this);
getServer().getPluginManager().registerEvents(new KaboomCommand(this), this);
getServer().getPluginManager().registerEvents(new Scoreboard(this), this);
}
}
Is there a way to simulate a player hitting an entity? The effect of the entity taking damage, becoming red, making the noise, and the knockback?
I tried LivingEntity.damage(), though nothing really happened
why are you initializing everything twice?
Tanku wym, so the effect lasts longer or what?
why are you initializing everything twice?
what do u mean?
basically i just want that after a certain amount of ticks, the effect repeats (already have BukkitRunnable done) @naive goblet
so it gets hit twice with one hit basically
packets probs
i get the scoreboard when i join its working fine but it doesnt update
I need to get some sleep but I can help you tmrw, just come by dm
Thanks Conclure, didn't think of that
gn Conclure
ChatColor.of
Anyone know what packet would be used to simulate an entity being hit by something? Or a method?
entity.damage(double, Entity) hasn't worked from what I've seen
whats a good method to set the item a player is holding to air?
@tiny pebble Use wiki.vg
And protocollib
@@frigid ember Give it a hex color with a # before
yeah im trying but im too dumb to understand it lmfao
Or an instance of color
any idea why this isn't setting the QueueValue to the specified value?
is there a way to send a packet to an entity though? 🤔
@lapis plinth Do you save the config anywhere? Dont work with configs much
@tanku yes
i found a thread with the exact thing i want, but on the player, and i dont want it to send to the player
Learn protocolliv
so how do i send it to the entity
was wondering if it was possible lmfao
my entire goal is to make it so when i hit an entity, 5 ticks later it hits the entity again without me hitting it manually
Overall
as in a double hit, with the same 'damage status' and all
damage status being the knockback, redness, and sound as well as damage taken
.damage should work for that
You'll probably have to reimplement the velocity thouhh
is it meant to replicate the entire process? i dunno from what i've gotten through nothing happens
.damage(double amount, @Nullable Entity source)
AFAIK theres no way to save kb
i'll see what i can do
@tiny pebble Hastebin code
If .damage isnt working
Its either not being called
or you're not using it right
Worst case use set health and then send all nearby players the entity hurt packet
player.getEquipment().setItemInMainHand(null)
wouldnbt that throw an NPE?
https://hastebin.com/deviwavome.cs
Here's what I have right now.
The message that I told to send does indeed send, so what I'm getting at is that I'm using it wrong most likely @wheat mirage
fair warning i also only have around 5-6 months of experience with java
nvm that worked without any issues
@tiny pebble Set the delay to 40
I reckon its an invincibility ticks thing
So actually set it to 100
And if it works
Try using entity#setInvincibilityTicks
or something
I'm not actually looking at the code
ah you were right it was the invincibility ticks
it may be invulnerable ticks
twas
No problem, enjoy
thanks 🙂
:)
Question: to update a map from 1.12 to 1.16 do you need to use force upgrade on every version leading up to 1.16
or can you get away with latest
Or is there a tool somewhere
ChatColor.of("#ffffff") + "Best Item"
wait so can you just do any hex color or does it like snap to the nearest chatcolor
Any hex color
Use the bungee ChatColor class
what version of spigot jar are u using
I tried running BuildTools as administrator, but I still keep getting this strange error... (I deleted all the folders that BuildTools created before running again):
at org.spigotmc.builder.Builder.runProcess0(Builder.java:804)
at org.spigotmc.builder.Builder.runProcess(Builder.java:741)
at org.spigotmc.builder.Builder.main(Builder.java:427)
at org.spigotmc.builder.Bootstrap.main(Bootstrap.java:34)```
that is what followed Error: Unable to access jarfile BuildData/bin/SpecialSource-2.jar
I checked to see if BuildData/bin/SpecialSource-2.jar existed and there it was
I guess I can't develop anymore 😦
picks up suitcase and takes hat off of coat-rack It looks like my time here is up, it was a good run
Lol
on the flipside, I have this batch file going for me
@echo off
@echo Arguments: "%*"
set "DIRECTORY=%BuildTools%\data"
@echo Building In "%DIRECTORY%"
@echo Cleaning up old data
del /s "%DIRECTORY%" /q >nul 2>&1
mkdir "%DIRECTORY%"
pushd "%DIRECTORY%"
::Data::::::::
curl "https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar" > BuildTools.jar
call java -Xmx1024M -jar BuildTools.jar %*
::::::::::::::
popd
@pause
@echo on
How to read ENCHANTED_BOOK's Enchantment,i try to use itemHand.getItemMeta().getEnchants();,but the Map was empty.
yes,i see the NBT name was StoredEnchantments,but tool was Enchantments
thanks
How does colouring entities / players names in 1.16 work?
I used to do via PlayerName and entityid but both seem broken now
Teams and prefixes still work though
Is there any documentation for the https://api.spigotmc.org/ API ?
hi So i had made a vanilla minecraft server and i looked around i cant fiqure out if you can install spigot to a normal server
How can I make ghast fireballs give me wither?
hi So i had made a vanilla minecraft server and i looked around i cant fiqure out if you can install spigot to a normal server
@severe mirage I will suggest paperMC
oh ok
Just replace server.jar with paper-xxx
do i have to remake my server or do i just run it and it installs?
@EventHandler
public void onPlayerMove(PlayerMoveEvent event) {
Player player = event.getPlayer();
double x = player.getLocation().getBlockX();
double y = player.getLocation().getBlockY();
double z = player.getLocation().getBlockZ();
if (!PluginUtil.ToggleCoords.contains(player.getName())) {
player.spigot().sendMessage(ChatMessageType.ACTION_BAR, new ComponentBuilder(ChatColor.WHITE + "X: " + ChatColor.AQUA + x + ChatColor.WHITE + " Y: " + ChatColor.AQUA + y + ChatColor.WHITE + " Z: " + ChatColor.AQUA + z).create());
}
}``` does anyone know why this would like skip coords
it doesnt update every block
How can I make ghast fireballs give me wither?
Btw anyone know this?
could you use a listener for when the fireball entity hits you
Ok
and like check if its a fireball then give yourself wither
I'll try it
im not sure
I'll check that
i know there is EntityDamageByEntityEvent
you could listen to ProjectileHitEvent and check if the shooter is a ghast.
but im not sure if the fireball directly damages the player
if so, apply wither on to the hit entity.
or yeah that
You can use entityExplodeEvent and give wither to nearby players
I’m not sure if the explosion will trigger an EntityDamageByEntityEvent
@frosty cave How fast are you going
And does anyone know about Scoreboards in the recent versions
like speed 2
ok thank you 🙂
@frosty cave Try slower, you may be moving too fast between ticks to log every block
Especially if tps is low
tps is 20
@lone fog You know anything about scoreboards?
Yeah why
Colouring names isn't working for me in 1.16
The way I did it in 1.12 doesn't work
The team's prefix has a colour code at the end which should then colour the name I think
Don’t you just add them to a team and give the team a color
What area_effect_cloud do?
@frosty cave try using event.getTo rather than player.getLocation
aight
Oh yeah I didn't even see that
Never rely on getLocation inside move events I've found
Do the new rgb chat colors work with teams @lone fog ?
how do the hex code colors work btw
Look at the docs, lol.
just curious
thats cool
didnt know you could use colors other than the ones like already there
New in 1.16
sick
Could justn ot be in the api yet
Went from like 16 colours to 65k or so
if (event.getEntity().getType() == EntityType.PLAYER && event.getDamager.().getType() == EntityType.GHAST) {
Player player = (Player) event.getEntity();
player.addPotionEffect(new Potion effect(PotionEffectType.WITHER, 250, 1))
About time lol
Btw will this do it
I'd use instanceof instead of getType
Yeah
No, use get type
Yeah if you want the ghast that fired it, use Projectile#getShooter
How?
@lone fog Why
@lone fog no, using the enum is bad design
And instanceof is faster
Especially since a subtype of an object could be a different type
but still be instanceof what you want
@karmic stone
Ok
And for the fireball
Cast to projectile / fireball and use getShooter
You may want to check if that's an instanceof ghast
Depending on your use case
Fire charges from dispensers are also Fireballs IIRC
In this case, how else are you supposed to check for an instance of Fireball and any subtypes without writing redundant code?
I don't see an issue with using instanceof in this case.
That’s true
That's because their is none
But we know there are no subtypes
Fireball does have some sub interfaces.
DragonFireball, LargeFireball, SizedFireball, SmallFireball, WitherSkull
Also the OO design comment in the original Q isn't correct either
not sure if all of those relate to the EntityType fireball though.
There are a lot of notes calling it bad design
oh yeah forgot to ask
is there any way to get rid of the .0 at the end of getBlockX/Y/Z()
you could cast it to an int, maybe.
perhaps
there's also some methods I believe that return an int for the location's x, y and z.
Yeah you can just change your variables to int
Any ideas on why deserializing a Itemstack from the config would return null?
FileConfiguration config = YamlConfiguration.loadConfiguration(playerFile);
//ItemStack[] pInv = p.getInventory().getContents();
for(int creativeSlot = 5; creativeSlot <= 45; creativeSlot++) {
if(config.contains("creativeItems." + creativeSlot)) {
System.out.println("Got Item at " + creativeSlot + ", Item is " + config.getItemStack("creativeItems." + creativeSlot));
p.getInventory().setItem(creativeSlot, config.getItemStack("creativeItems." + creativeSlot));
}
}
How come its telling me I'm using an outdated version when my version is past the --rev latest?
I'm using 1.16.1 and latest is 1.15.2
Yeah, update
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
That’s pretty much why it’s there :p
If it has the 20s thing and someone asks. Most likely... No Buildtools person.
True, but they just mentioned buildtools above that
Alternatively you could do -DIReallyKnowWhatIAmDoingISwear
People Don’t scroll up
Don’t let them find out.
So if I used build tools to make my jar why is it asking
.jar is like an Embrio, Or like John Snow... it knows nothing.
It’ll ask if you are outdated
Used to be set to 1 day but I think it’s up to 3 days now since 1.16 is more stable
Usually it’s Every release, Until more stable than my Ex.
Should be around the end of this year
Rip Devs, Good Luck thoe.
Does anyone know how to make a horse walk toward a player?
I was trying to use the setTarget(player) method, but I don't think that works
I could set the horses velocity, but I also think that would be weird
How about a Leash? I don’t code Ill Shh for now.
setTarget only works with entities that have attack goals
You could use NMS to add a goal to walk towards the player
I like leashing the horses In creative and Watching them bounce.
Hi guys
Works well with _jeb sheep
I got this huge problem
?ask
If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply.
What did you do beforehand
And do you have a crash report
Called UltimateStacker
When I place the spawner and change its type
this happens
Now im sad
Probably need to contact the plugin developer
Easy, You drop the Plugin, and the Dev.
Ah geez it’s songoda
Hm hm
That’s Why, also Choco said not to mention the name >.>
Any problem being songoda?
So it’s like Voldemort
Just drop plugin.
My Point of view:
If you decide to Be upgrading your server in the future drop the Dev.
Yes, Always.
You done ran out of RAM
Also, any spawner shop plugin that wont do this shi-
you could just not use the plugin for the time being and wait until they fix the issue.
not sure what to do if you need the plugin this moment though.
Tried looking into Gui Shops?
I can’t recommend, Because it’s a Bais Opinion in my part. ;3
Well, Good Luck My Community Member!
i have this code, now how can i make a ghast give me wither??
Google how to give potion effects to entities
You're relying too much on spoonfeeding
you won't learn much that way
The player is an entity
You're proving my point
If you rely on spoonfeeds, you don't build a foundation of knowledge like that
so first i cast the player, and then addPotionEffects?
You probably won't need to cast, but yes
ok thanks
how do I know if I have spigot installed
Check your Users/<user>/.m2/ @light orbit look for org.spigotmc.spigot
I’m trying to make it so certain blocks only change one a certain players screen and I’m wondering if there is a plug-in for this or if you do it with commands
Thats not very specific
I think he's referring to client side blocks
A split between plugin / spigot help and development help would be good
yup, how do you make client side blocks?
When I try to install spigot 1.16.1 maven repo using gradle, it gives me this error v
Someone please help me with this I am trying to fix the problem from past 3 days
plugins {
id 'java'
}
version '1.0'
sourceCompatibility = 1.8
repositories {
mavenCentral()
maven { url = 'https://oss.sonatype.org/content/repositories/snapshots' }
mavenLocal()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compileOnly 'org.spigotmc:spigot:1.16.1-R0.1-SNAPSHOT'
}
Where is it?
how do you make client side blocks?
how do you update your spigot server to 1.16.1?
I can't find it
how do you update your spigot server to 1.16.1?
@ebon girder Just download spigot 1.16.1
@sage summit Become a dev
well im learning how to do client side blocks...
wait yeah
where is spigot 1.16.1
idk how to use the buildtools unless im completely oblivious to smth
ok
@cold wharf In your file explorer you muppet 😛
C:/Users/<user>/.m2/
See if you can find spigot
/org/spigot/
There'll be a 1.16 jar there if its in correctly
if not
Run buildtools for 1.16
/org/spigotmc/
yes
Run buildtools for 1.16
@wheat mirage I did it yesturday and it generated spigot 1.15.2 jar bruhh
Always --rev what you want
@wheat mirage I can only see 1.15.2 jar here
Then --rev it
Go learn how to use buildtools
Like just put in 5 minutes to learn to do stuff properly guys
A stitch in time saves nine
guys my intelliJ is has been frozen, same did happen yesterday. Any solution?
I've been having the same problem its a nice ide but it freezes up alot
https://gyazo.com/3d5155b2040458d6f735d6b20f941822 Is this normal? I did that yesterday
Can someone explain this to me? I've been confused for like 2 days now and I have no idea why I can't access the ConfigurationSection when it has things in it. When the configurationsection is empty, it isn't null
Bukkit.getLogger().info("" + playerData.get("players." + player.getUniqueId() + ".Vault")); // Prints {bfc94ee9-c792-43b5-8dc3-b8f830429023={Amount=50000, CreatedAt=1593671088, SpawnedBy={UUID=1df9f495-76fc-4477-beeb-9fe457a1c8cc, Name=MachoPiggies}}}
Bukkit.getLogger().info("" + playerData.getConfigurationSection("players." + player.getUniqueId() + ".Vault")); // Prints 'null'
players:
4797614d-4488-4fc9-b653-ce28b0a091eb:
Vault:
bfc94ee9-c792-43b5-8dc3-b8f830429023:
Amount: 50000
CreatedAt: 1593672608
SpawnedBy:
UUID: 1df9f495-76fc-4477-beeb-9fe457a1c8cc
Name: MachoPiggies
@left plover try java player.getUniqueId().toString
still null @frozen echo
weird
Its definitely there because of the first print in that code
wyd lol
When I was editing a plugin page, suddenly a few settings changed. One of them was the plugin category. It was moved to "Web", now that I switched it back to Premium it says the plugin is awaiting approval... No one can access the page now. What can I do?
oof
?
I don’t see the vault option here
hey i have an issue
hey i have an issue
[09:52:54 FATAL]: ChunkTooLarge! Someone is trying to duplicate. (island_normal_world - -376,-375) Go clean it up to remove this message. /minecraft:tp -6016 128 -6000 - DO NOT REPORT THIS TO PAPER - You may ask for help on Discord, but do not file an issue. These error messages can not be removed.
[09:52:57 FATAL]: ChunkTooLarge even after reduction. Trying in overzealous mode. (island_normal_world - -376,-375) Go clean it up to remove this message. /minecraft:tp -6016 128 -6000 - DO NOT REPORT THIS TO PAPER - You may ask for help on Discord, but do not file an issue. These error messages can not be removed.
[09:52:57 WARN]: Large Chunk Detected: (8, 9) Size: 440 ./island_normal_world/region/r.-12.-12.mca
how to fix this?
playerData.get("players." + player.getUniqueId() + ".Vault")
is whats being accessed
Lol my bad
@fresh pivot someone or something at -376 ~ -375 is trying to duplicate something using a chunk bug
then something is corrupted
what does that mean xD
what does that mean xD
@fresh pivot https://en.wikipedia.org/wiki/Data_corruption
@naive goblet thank you so much!!! that literally saved my life. i'll test it over lunch and get back to you
@fresh pivot someone or something at -376 ~ -375 is trying to duplicate something using a chunk bug
its empty there
there is nothing
Hello, I don't know why but my condition doesn't work, I do that : if(pls.getDisplayName().equalsIgnoreCase(args[1])) I search to take the /nick and the arg1 of a command and look if it's good but don't work, there are egals maybe when I verified with a send message 🤔 An idea ? (Sorry for my english)
Hello, I have a problem, i'm trying to start my server and the jar file, crashes
stops when is saving worlds, any help please?
uhh
also, the world folders does not appear in the server folder
Local host
and the start.bat i use this @echo off java -Xms1G -Xmx1G -XX:+UseConcMarkSweepGC -jar spigot.jar nogui pause
the server is for me, with 2 plugins
the eula is in true
try using
@echo off
java -Xms512M -Xmx1G -XX:MaxPermSize=128M -XX:+UseConcMarkSweepGC -jar spigot.jar
pause
edit the sizes though
if you want that
the sizes?
okay
unable to acces spigot.jar file :/
in the folder there is the start.bat and the spigot.jar
@echo off
java -Xms512M -Xmx1G --jar spigot.jar
tried this?
i clicked and the jar worked
howdy, i've programmed a party system where whenever the party leader switches servers, so does its members. however when i do so, for some reason im receiving this error atm NullPointerException : null @ net.md_5.bungee.util.ChatComponentTransformer:44
and the same @fresh pivot I'm gonna try that
eee
hm apparently i have to update bungee
the bat started and immediately stop
Did you accept the eula?
yes
Then.. what does it say (just select something in your terminal right before it is closing, so you could read it)
And is it generating any other files and/or folders rather than the eula and properties
the logs folder
i just wanna play impossible + + of Fundy 😭
xd
shall i try "pauze" at the end of the start.bat?
the console just nothing, starts and crashes, in less than a second
U added "pause"?
nop
try that
i added this @echo off
java -Xms512M -Xmx1G --jar spigot.jar
with "?
nop
k
oof
Without capital letter
doesnt matter
Gotta mention that :)
xD
eee
Well a long time ago, it did (like my server crashed 30 times before figuring out it was the capital letter, might've been something else though)
capital letter should matter but i should try without capital
Unrecognized option: --jar
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has ocurred. Program will exit.
Pulse a key to continue
yeah it is -jar
oof
No I don't
This is just one of my many localhost development servers
ohhh
But since I have like.. 20 development servers, it can be quite annoying to update the spigot version every month or so
so, what should i do?
What the hell is that font
pause```
This
As long as your jar file is named 'spigot', it should work
yeah, it name is "spigot.jar"
does not work :v
what does it say
@sleek minnow can you check your dm please?
Error: Unable to acces the jarfile spigot.jar
lol that font
^
even worse than comic sans
what does knockbackReduction mean? I only know about horizontal, friction-horizontal/vertical, and vertical
just click the jar file
🤦
what
it works
when you forget to PATH java
and need admin perms
just click the spigot.jar
"it works" != is the best option
How are you going to "click" the jar on a server lol
and do you even know the cons of running the jar "by clicking it"
that's not a thing
i did it once on a survival server i ran
i accidently landed in lava
and i just closed the console
- You have literally no access to any flag by clicking the jar
- (if you're using Java8 which... sadly >70% does) Clicking the jar will enable PGC by default which is way worse than manually specifying G1GC
- You have no access to heap management, this can hurt performance (Xmx and Xms are not set as matching)
- "Clicking the jar" doesn't make you learn automation, which is a required skill in server managing
Wth is this
PATH
the pathing for java
if its not set
then your basically just throwing something at the computer
and saying run
i mean... you're going to set the java path anyway
the script won't work as well if you haven't set a path for java
it takes 1 second to do however...
~/.bashrc
Hello how can I make the dragons breath give me wither effect, I tried dragon fireball but it doesn't work
EntityDamageEvent
I know
Check if cause is DRAGON_BREATH?
I mean in the auto completion tab
so many vanilla bugs
here's my code for dragon fireball
@karmic stone what’s the actual troubleshooting here or are you just here clowning around?
i want dragon's breath to give me Wither effect. I tried DragonFireball as damager but it doesn't seem to work
@karmic stone what’s the actual troubleshooting here or are you just here clowning around?
why would i just come here for clowning ??
and there's also nothing like DRAGON_BREATH
@EventHandler public void onDamage(EntityDamageEvent e) {
if(e.getCause() == EntityDamageEvent.DamageCause.DRAGON_BREATH) {
//do stuff
}
}```
welp, time for the daily rebuild
Well if you’re checking stuff like that yes
ohh thanks conclure
You could eventually make a method for that if you’re going to check multiple enchants
Hello conclure, sorry i was afk, should my code be something like this?
Yes
Fendi only the man himself knows
Hi, where can I download the Spigot engine for 1.15.2 (latest build)? It's best if you gave the link 😄
download buildtools
BuildTools
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
the damager should be enderdragon right?
In EntityDamageEvent there is no damager?
yeah my bad
You could eventually make a method for that if you’re going to check multiple enchants
@naive goblet yea, but I want to modify the level in enchanting table
How do I send a message to the actionbar?
p.spigot().sendMessage(ChatMessageType.ACTION_BAR, TextComponent.fromLegacyText("test"));
Is this the best way to do it?
instead of IV it should be III
https://www.spigotmc.org/wiki/buildtools/
@frigid ember okay i'm on this page. What should I click to download?
Hello everyone, so I'm having a problem and I don't know how to fix it. I made a wither with command block. This is the command: /setblock ~ ~-1 ~ spawner{SpawnCount:1,MaxNearbyEntities:1,SpawnRange:2,Delay:20,MinSpawnDelay:1800,MaxSpawnDelay:1800,RequiredPlayerRange:50,SpawnData:{id:"minecraft:wither",CustomName:'["",{"text":"Wither "},{"text":"[LVL 10] ","color":"yellow"},{"text":"[BOSS]","color":"red"}]',CustomNameVisible:1,PersistenceRequired:0b,Health:400,Attributes:[{Name:"generic.maxHealth",Base:400},{Name:"generic.followRange",Base:6},{Name:"generic.knockbackResistance",Base:0.7f}],ActiveEffects:[{Id:7,Amplifier:0,Duration:2147483647}]}}
And I can't deal damage to him and he doesn't take damage, not even from void.
thats the download page mate
These are my plugins: CratesPlus, WorldEdit, PluginConstructorAPI, ColoredSigns, Mines, PlaceholderAPI, ClearLag, BetterChairs, NoSunlightBurn, WorldGuard, AdvancedPortals, SkinsRestorer, PermissionsEx, WGLecternFlags, AntiCurse, AntiCraft, Vault, ItemEditor, UltimateRepairing, Essentials, PlotSquared, ActionHealth, Multiverse-Core, Holograms, Citizens, ColoredTags, Quests, TradeSystem, EssentialsGeoIP, EssentialsChat, Multiverse-Portals, EssentialsSpawn, BlockParticles, TitleManager, UltimateShops
minecraft version@daring oracle
1.14.4
He doesn't even die in the void and his name tag is easily seen from the surface of my map.
.-.
He also has a custom name.
These are the region flags:
flags:
other-explosion: deny
water-flow: deny
use: allow
ice-melt: allow
interact: allow
vehicle-destroy: deny
chest-access: allow
weather-lock: clear
firework-damage: deny
ride: deny
MobHunting: allow
enderdragon-block-damage: deny
sleep: allow
vehicle-place: deny
snowman-trails: deny
mob-damage: allow
block-break: deny
entity-painting-destroy: deny
lightning: deny
wither-damage: allow
ice-form: allow
chorus-fruit-teleport: deny
mythic-drops: deny
lighter: deny
enderman-grief: deny
pvp: deny
deny-spawn: ['minecraft:ocelot', 'minecraft:slime']
block-place: deny
mythic-drops-custom: deny
mob-spawning: allow
mythic-drops-tiered: deny
mythic-drops-unidentified-item: deny
crop-growth: deny
item-drop: deny
creeper-explosion: deny
mythic-drops-socket-gem: deny
exp-drops: allow
vine-growth: deny
fall-damage: allow
item-pickup: allow
potion-splash: allow
damage-animals: allow
mythic-drops-identity-tome: deny
tnt: deny
ghast-fireball: deny
entity-item-frame-destroy: deny
owners: {}
type: cuboid
priority: 1
metro:
min: {x: -2344, y: 0, z: -766}
max: {x: -2185, y: 31, z: -604}
members: {}
flags: {wither-damage: deny, item-drop: allow, vine-growth: deny, mob-damage: allow,
item-pickup: allow, feed-amount: 20, feed-delay: 1, damage-animals: allow,
interact: allow, pvp: allow, MobHunting: allow}
owners: {}
type: cuboid
priority: 0
dude, use a pastebin
?paste
Oh, sorry, I'll use it enxt time
i just wrote this code for giving me wither effect if i get get damaged by dragons breath and, confusion if i drown, for some reason only confusion effect is working when i drown
did i do anything wrong?
I'm confused, you said what you wanted to do and unless I'm reading it wrong, said it did exactly as you said you wanted.
wdym
i mean to say when i step in dragon's breath i dont get the wither effect
but i get confusion effect if i drown
Version?
1.15.2
that code could be improved
then whhat the new
Can you replicate it on 1.16.1 because I’m leaning towards a bug
so is it impossible?
Well I just don’t see why it wouldn’t give you an effect so I’m wondering if maybe there’s a missing event call
yeah
In bed atm but I can check when I get up
wtf lol
- use a switch,
- that instance check is always true
- you're not checking player instance
it will crash the plugin if another entity type gets damaged
what command can i run on bungeecord to check version please?
/bungee
anyone know an easy way to check if an item has an unsafe enchantment?
get the level, compare it with Enchantment#getMaxLevel()
The certificate for Spigot IRC (*.spi.gt) expired a couple days ago
ah good idea sept ty
@karmic stone can you try listening for DamageCause.MAGIC instead of DamageCause.DRAGON_BREATH?
I don't see any call to dragon breath but it's considered an area effect cloud so I'm wondering if maybe it's a bug
Hey does anyone have a recommended way to simulate running a server on low end hardware? Some users of my plugin have noticed a couple of laggy methods in my plugin and I realised a lot of servers won't have hardware anywhere near as fast as my desktop.
@karmic stone can you try listening for DamageCause.MAGIC instead of DamageCause.DRAGON_BREATH?
@subtle blade yeah even that fits, let me try
If it works with the MAGIC cause, I think it's a bug
yeah thats what the death message is. "<Player> was slained by Ender Dragon using Magic"
ohh
i need help configuring spigot.yml to have vanilla behaviors
Think those were 1.9 snapshots lol
@crimson sandal Use one of the free hosting sites - I bet their hardware is pretty bad 🙂
Ah.
this.d.addEffect(new MobEffect(MobEffects.HARM));
dragon breath is just an area effect cloud with a harm effect
@crimson sandal Use one of the free hosting sites - I bet their hardware is pretty bad 🙂
@wraith thicket Yeah I guess so lmao
Going to try a strange fix. Maybe md has a better idea but this is what imma do
hey choco where do i add that
anyone know why object =board.registerNewObjective("showhealth", "dummy", ""); is giving me a null pointer exception? none of the code is deprecated hm```cs
Scoreboard board = manager.getMainScoreboard();
Objective objective = null;
if(board.getObjective("showhealth") == null)
objective = board.registerNewObjective("showhealth", "dummy", "");```
It's not really something you can add, PhoKing
if the NPE is on the line of if(board.getObjective... then likely manager.getMainScoreboard returns null
It's a bug in vanilla, going to try and fix it on CraftBukkit
Hm thats real strange
It's not magic either?
ill just have a null check
This will likely be targeted to 1.16 though so in the meantime, get the source of the damage, check if it's an area effect cloud and check if the effect is instant damage. I'm not sure what else you could do
hey people
[3:12 PM]
why can i not run this command? /function as:admin/craft_book_toggle
NEW
uh huh...
so I definitely didn't fix it lol
Dragon breath just crashes the server now
how do I make it so code waits 1 second before running the next line?
Anyone know what class i can use for chat https://wiki.vg/Protocol#Chat_Message_.28clientbound.29
seems i can no longer use IChatBaseComponent
Whats the best way using world guard to display blocks around spawn to a player if they are combat tagged?
ah right that explains it
hm thats strange i was in offline before and had my usual uuid
Offline generates names based on name