#help-archived

1 messages · Page 166 of 1

jaunty night
#

Also most of what can be achieved in a fork can be achieved within a plugin

keen compass
#

most of the time yes

frigid ember
#

but how do i customize the menu

weak violet
#

I guess i'll try to find help somewhere else then

keen compass
#

I have helped you the best I could, I have told you where your problem is happening, I have given you some math examples to do some things differently. The rest is up to you to figure out how to manipulate the numbers to be what you want. Just another note, 1.0D tends to be a large value in minecraft as well

frigid ember
#
        @EventHandler
        public void onBucketEmpty (BlockPlaceEvent e) {
            Player player = e.getPlayer();
            UUID uuid = player.getUniqueId();
            Block block = e.getBlockPlaced();
            World currentWorld = e.getBlock().getLocation().getWorld();
            int x = e.getBlock().getLocation().getBlockX();
            int y = e.getBlock().getLocation().getBlockY();
            int z = e.getBlock().getLocation().getBlockZ();
            Location finalLocation = new Location(currentWorld, x, y, z);

            if (block.getType() == (Material.WATER)) {
                BucketsPlaced.put(uuid, finalLocation.toString());
                block.setType(Material.AIR);
            }
        }```
sshould remove the water instantly after placement right?
BucketsPlaced is a hashmap btw
undone narwhal
#

Ok Frostalf, I found Biomes class which contains all the biomes in static final field. I tried changing OCEAN with the value of PLAINS

#

Let's see

keen compass
#

@frigid ember why not just cancel the event instead?

jaunty night
#

🤔

keen compass
#

that event is ran before the action so no, your end code piece will not work

halcyon fiber
#

For some reason, my plugin doesn't work properly when using paper :/

keen compass
#

Well this isn't paper discord

halcyon fiber
#

but works well on craftbukkit and spigot

keen compass
#

should go ask the paper people

halcyon fiber
#

Yeh I should

finite belfry
#

hi so i got a plugin to join minigames but /st join 1 or /st join 2
but is there a way that if players do only /sw join to get to the arena with most players on it like how hypixel did?

jaunty night
#

What plugins are you using first of alk

finite belfry
#

a custom minigame plugin

keen compass
#

then its going to require a custom plugin for what you are wanting

#

fortunately such a plugin is easy to make 😉

finite belfry
#

anyone can help me make?

keen compass
#

?services

worldly heathBOT
finite belfry
#

th

#

thx

#

i dont have permmision to post there

keen compass
#

need to be active in the community

#

not hard to do 😉

undone narwhal
#

Method 1: Doesn't work

subtle blade
#

Either restart your server & client or wait until auth servers are available again

#

Wow that’s the first time they’ve been down in years if that’s the case lol

#

Not sure

undone narwhal
#

They aren't

frigid ember
#

is it possible to get a offline players uuid from name without json?

sage fiber
#

Hi everyone! I'm not sure if this is the right place to ask, please let me know if not. I'm looking for a very basic barter plugin that doesn't use fiat currencies or extra libraries. Something dead simple for setting up shops on my semi-vanilla server that use in-game items to trade. Any suggestions? I don't want too many bells and whistles.

rare prairie
#

is it possible to get a offline players uuid from name without json?
Bukkit#getOfflinePlayer

keen compass
#

it is deprecated but yes, but why would you need json?

frigid ember
#

if the player is online, will offlineplayer work?

sturdy oar
#

Is this a bad way to get the CommandMap? For unknown reasons it's not exposed by Spigot API

coarse island
#

oh god I hate Scoreboards

keen compass
#

yes you can use offlineplayer if the player is online @frigid ember

frigid ember
#

okay, ty

coarse island
#

first thing is fine, when you log in, we create a Scoreboard, Objective, and some Teams (to antiflicker, they say), but if the player logs out and in again, I got a lot of conflict of already existing...

keen compass
#

need to set a task to run to handle that

#

so, when the log out you remove that stuff

#

and then have the task run a tick or so later after they log in to check that it doesn't already exist

coarse island
#

awh, you are not dumb at all

keen compass
#

if not create it, if it does, destroy it and recreate it

coarse island
#

thanks

hollow thorn
#

how do i make the scoreboard side thing

coarse island
#

Server.getScoreboardManager();
Scoreboard = scoreboardManager.getNewScoreboard();
Objective = scoreboard.registerNewObjective();
objective.getScore(name).setScore(int);
objective.setDisplayName(name);
objective.setDisplaySlot(slot);

Player.setScoreboard(scoreboard);

// Simple as that, update it is a bit harder.

tiny dagger
#

stop using scores

#

it's 2k20

frigid ember
coarse island
#

@tiny dagger should i use hashtag instead?

hollow thorn
#

how do i make the scoreboard side thing
@hollow thorn as in the graphical interface you use for the servers and stuff

#

the side bar display

#

https://prnt.sc/te5522
someone know how summon that small particle ? i know is sweep attack but
@frigid ember world.Spawn_Particle()

Lightshot

Captured with Lightshot

frigid ember
#

yes i need

#

know exactily

#

that small particle

#

understand, because if i use SWEEP_ATTACK only send me a big particle

hollow thorn
#

it still doesn't want to connect
@frigid ember the auth servers for minecraft are down meaning that you can only use cracked servers

#

understand, because if i use SWEEP_ATTACK only send me a big particle
@frigid ember it might be an explosion particle

coarse island
#

@hollow thorn objective.setDisplaySlot(DisplaySlot.SIDEBAR); ?

frigid ember
#

I feel that this particle has an effect when you hit a small entity

#

@frigid ember it might be an explosion particle
oh yeah its true

smoky anvil
#

I'm using EssentialsXChat and my LuckPerms prefix only shows in Discord chat with DiscordSRV.

hollow thorn
#

Server.getScoreboardManager();
Scoreboard = scoreboardManager.getNewScoreboard();
Objective = scoreboard.registerNewObjective();
objective.getScore(name).setScore(int);
objective.setDisplayName(name);
objective.setDisplaySlot(slot);

Player.setScoreboard(scoreboard);

// Simple as that, update it is a bit harder.
@coarse island sorry i dont feel im composing myself correctly if you join a server like mineplex or hypixel you get stuff with your money and score at the side where the sidebar would be for objectives im wondering how to make that

peak glade
#

how this ?

frigid ember
#

do you use a api discordsrv ?

peak glade
#

what verinos ?

smoky anvil
#

No.

hollow thorn
peak glade
#

yes

hollow thorn
#

or just have it so when they touch an armor stand with a certain name e.g Creative they get their location set to another world and teleported there

peak glade
#

yes i know

#

but how

#

portal ?

hollow thorn
#

so you could do a multiblock thingy

#

or just make it so when you walk into water

sturdy oar
#

Store portal coordinates, check if player moved into them?

hollow thorn
#

thats easier

#

how do i make a custom stats sidebar thingy

#

the tutorial doesnt help by the way

tiny dagger
#

@coarse island what do you even mean?

hollow thorn
#

he wants to know how to make a custom portal

#

like from the aether mods

hollow hedge
#

I'm using EssentialsXChat and my LuckPerms prefix only shows in Discord chat with DiscordSRV.
@smoky anvil Unsure if you've already solved this, but EssentialsXChat relys on Vault in order to obtain the prefix from Luckperms. https://dev.bukkit.org/projects/vault

smoky anvil
#

I have Vault installed.

#

The only issue is getting it to show in Minecraft. DiscordSRV picks up on it just fine.

hollow hedge
#

What placeholder are you using to display the player name?

fossil shoal
#

PotionMeta#getCustomEffects always returns an empty list for me. Could someone try to reproduce this?

rare prairie
#

because potions can have more effects

fossil shoal
#

@rare prairie what?

peak glade
#

?

#

Hello ?

frigid ember
#

if i want that users have no bungee permissions should i put a [] or {} or () after default: or should i let it empty ( default: admin: bungee.command.server)

peak glade
#

InitialHandler has pinged ?

frigid ember
#

@subtle blade is there any reason that SkullMeta .setOwningPlayer isn't async by default? (not that it's an issue seeing as I'm just generating the items in an async task and throwing them back) but might be something worth looking at? 🤷

wanton delta
#

is there a setting in spigot.yml or some way via plugin development to remove players from showing in the serverlist when hovering over the protocol icon thingy

teal oasis
#

itemStack BroadSword = new ItemStack(Material.IRON_SWORD);

    ItemMeta meta = BroadSword.getItemMeta();
    meta.setDisplayName(ChatColor.GRAY + "Knights Sword");
    meta.addAttributeModifier(Attribute.GENERIC_ATTACK_DAMAGE,1f);
#

how do i use meta.addAttributeModifier(Attribute.GENERIC_ATTACK_DAMAGE,1f);

jaunty axle
#

Hi, this sounds really stupid but I know I messed up somewhere but idk what I did and what to do: my craftbukkit server does not run with the run.bat file, it only appears for a second and nothing happens. Is there any way I can get it started (probably something with java and the path but idk really)

vernal spruce
#

Any specific reason for running craftbukkit oposed to spigot? Also this should be asked on bukkit forums to be in same category..

lime crater
#

Is this allowed?

#

96328387823431680 if you need id.

wise spoke
#

idk why but my multiverse core plugin is not changing the gamemode of the world.

#

even though i used the command and made sure that it says CREATIVE in worlds.yml

vernal spruce
#

@lime crater you can block the dude also

tiny pebble
#

It shouldn't be allowed though tbh

vernal spruce
#

that thing has already been done and i think even branched to spigot

lime crater
#

Aware, I'm here to report

vernal spruce
#

meaning there should be a fairly easy api to create that

#

meaning a dev can make that "premium" in like 10minutes

lime crater
#

Ok, I'm here to report DM advertisers.

vernal spruce
#

dont bother just block them,there will always be a bunch of new ones every day

lime crater
#

No bother, I'll just leave

#

great moderation

vernal spruce
#

after they see no succes they usually

#

just leave by themself

winged sparrow
#

Like it’s moderation’s fault

vernal spruce
#

Well didnt want to simply state,that whats in ur dms its not spigots business..

winged sparrow
#

Does anyone know how much it costs to get a name change?

tiny pebble
#

Though it is heavily frowned upon and is usually a bannable offense in a majority of servers. I think he did the right thing coming here and reporting it, though personally I'd recommend DMing a moderator about it since this help channel is based more-so on development.

vernal spruce
#

i think 5-10$

winged sparrow
#

Nice

vernal spruce
#

Not sure though,you should ask a staff first

tiny pebble
#

Name change in what? In MC you can change it for free every 30 days

winged sparrow
#

No, on Spigot

#

I very much dislike this name lol

tiny pebble
#

Didn't know you had to pay to change it, damn

vernal spruce
#

Not sure if thats really the case so better ask first

hollow thorn
#
                                       Player me = e.getPlayer();
                                       List<String> lore = e.getItem().getItemMeta().getLore();
                                       Location loc = me.getEyeLocation();
                                       World world = me.getWorld();
                                       int ii = Integer.valueOf(lore.get(0));
                                       if(ii>0){
                                           ii=ii-1;
                                           new BukkitRunnable(){
                                               @Override
                                               public void run(){
                                                   loc.add(loc);
                                                   DustOptions eee = new DustOptions(Color.fromRGB(0,127,255),1);
                                                   world.spawnParticle(Particle.REDSTONE, loc, 0,eee);
                                                   if(loc.getBlock().getType()!=Material.AIR)
                                                     cancel();
                                                   
                                                     for(Entity ent : getEntitiesByLocation(loc, 0.545f)) {
                        if(ent instanceof LivingEntity) {
                            if(!(ent.equals(me)))
                            ((LivingEntity) ent).damage(10, me);
                            ((LivingEntity) ent).setFireTicks(10);
                            
                        }
                        
                    }
                                               }
                                           }.runTaskTimer(Bukkit.getPluginManager().getPlugin("StaffWeapon"), 0L, 20L);```
#

why isnt this working

#

no error was shown

weary cargo
#

Is there a way to turn an exception message into a string?

peak glade
tiny dagger
#

ex.getmessage

weary cargo
#

Thanks

balmy sentinel
#

I never use static methods if I have to, but why does everyone hate them so much?

tiny dagger
#

because they missuse them

#

not understanding basic oop

#

and so on

#

the static keyword is very useful tho

#

don't get it wrong

fringe cairn
#

So using the metadata API I can store data inside a tile entity like a chest, right? How can I make it so that metadata is kept when a shulker is picked up and placed again?

proven sinew
#
  command: /vclip
  type: RUN_AS_OPERATOR
  runcmd:
  - '/essentials:tp ~ ~3 ~'
  permission-required: true
  permission-node: mycommand.cmd.vclip
  required_args: 0
  register: true```
#

why isnt this working?

#

MyCommand

wheat mirage
#

On the topic of static, what the hell is going on with all the static handler methods in event classes @tiny dagger

#

Never understood where the necessity for that came from

hollow thorn
#
                                       Player me = e.getPlayer();
                                       List<String> lore = e.getItem().getItemMeta().getLore();
                                       Location loc = me.getEyeLocation();
                                       World world = me.getWorld();
                                       int ii = Integer.valueOf(lore.get(0));
                                       if(ii>0){
                                           ii=ii-1;
                                           new BukkitRunnable(){
                                               @Override
                                               public void run(){
                                                   loc.add(loc);
                                                   DustOptions eee = new DustOptions(Color.fromRGB(0,127,255),1);
                                                   world.spawnParticle(Particle.REDSTONE, loc, 0,eee);
                                                   if(loc.getBlock().getType()!=Material.AIR)
                                                     cancel();
                                                   
                                                     for(Entity ent : getEntitiesByLocation(loc, 0.545f)) {
                        if(ent instanceof LivingEntity) {
                            if(!(ent.equals(me)))
                            ((LivingEntity) ent).damage(10, me);
                            ((LivingEntity) ent).setFireTicks(10);
                            
                        }
                        
                    }
                                               }
                                           }.runTaskTimer(Bukkit.getPluginManager().getPlugin("StaffWeapon"), 0L, 20L);``` why isnt this working
peak glade
#

what is plugin ?

#

ASP ?

hasty crag
#

How can i retrieve the text from org.bukkit.advancement.Advancement?

#

i mean the name of the advancement

#

I tried advancement.getDisplay() but it displays sth weird which ain't the name

weary cargo
#

How can I clear a String variable and set it to a thing?

#

Nvm just used config file

tiny dagger
#

@wheat mirage i haven't looked propely but i think those are used to identify instances

#

because there is HandleList.unregister

#

and they hold those static instances

tiny pebble
#

ok so ignore the beautiful art...
but is there a way in a config to check for all of these subgroups? like... config.subGroup().get("users"), basically I check for founder, manager, admin, user, and any others and check for the users group under there

tiny dagger
#

yes

#

getconfigurationsections

#

wait

#

to check for all users tab?

#

well still get configuration sections nvm'

tiny pebble
#

Ah yeah I might have made it a bit unclear. To check all of the users under each of the first sections, whether i add one or not

tiny dagger
#

well use get configuration section

#

get to the user tab

#

check if it has one or not

#

and do your thing

#

pseudo example

#

for String section : config.getConfigurationSection("group").getkeys(false) {

#

if (config.get("group."+section ".users") != null

#

do your thing

tiny pebble
#

Thank you so much!

hasty crag
#

How can i retrieve the text from org.bukkit.advancement.Advancement?
i mean the name of the advancement
I tried advancement.getDisplay() but it displays sth weird which ain't the name

subtle blade
#

Well Advancement#getDisplay() doesn't exist so I don't know where you got that from

tacit trellis
#

Where can I contact moderators?

stark oxide
#

I was trying to figure out how to prevent players from completing advancements in a world, and I ran into this code in the forums ```java
@EventHandler(priority=EventPriority.NORMAL)
public void blockAdvancement(final PlayerAdvancementDoneEvent event) {
Player p = event.getPlayer();
String world = p.getWorld().getName();
if (world.equals("world_creative")) {
Advancement advancement = event.getAdvancement();
for(String c: advancement.getCriteria()) {
p.getAdvancementProgress(advancement).revokeCriteria(c);
}
}
}

and below it, a comment saying "you need to block the packet" (in order to block the server from displaying the advancement in the chat). How do I actually do this?
tiny pebble
#

when it comes to configuration files is there like a getChildren() method? im just trying to check the children of one section and see if each of those children has a specific child themself

rare prairie
#

this is spigot not sponge

lapis plinth
#

getting this error

ashen stirrup
#

-DIReallyKnowWhatIAmDoingISwear, why is this a startup parameter 🤣

lapis plinth
#

lmao it is?

ashen stirrup
#

Yeah lmao

rare prairie
lapis plinth
#

this.getCommand("pit").setExecutor(new RegionDefiner());

#

this is line 24

tiny pebble
#

it's probably in the class RegionDefiner

lapis plinth
#

Huh ok

lyric cypress
#

Trying to remove the bar

this.getServer().removeBossBar(key.key);

The key in key.java

public static NamespacedKey key = new NamespacedKey(plugin, "key");

why does this not remove the bossBar?
bar is created here:

KeyedBossBar bar = plugin.getServer().createBossBar(key.key, "Big Boi", BarColor.GREEN,
                    BarStyle.SEGMENTED_20, BarFlag.PLAY_BOSS_MUSIC);
            bar.setVisible(true);
            bar.setProgress(1.0D);
#

I tested if it was null

KeyedBossBar bar = this.getServer().getBossBar(key.key);
#

and it is null

rare prairie
#

Maybe you can try with adding player to the bossbar? BossBar#addPlayer

lyric cypress
#

I'm trying to remove the bossbar entirely

#

oh maybe

rare prairie
#

Try to increase the progress value to highest value

lyric cypress
#

getServer is a different server

rare prairie
#

just use Bukkit#createBossBar its more fastest

lyric cypress
#

ok

austere flame
lyric cypress
#

an actionbar

austere flame
#

ty

hollow thorn
#
                                       Player me = e.getPlayer();
                                       List<String> lore = e.getItem().getItemMeta().getLore();
                                       Location loc = me.getEyeLocation();
                                       World world = me.getWorld();
                                       int ii = Integer.valueOf(lore.get(0));
                                       if(ii>0){
                                           ii=ii-1;
                                           new BukkitRunnable(){
                                               @Override
                                               public void run(){
                                                   loc.add(loc);
                                                   DustOptions eee = new DustOptions(Color.fromRGB(0,127,255),1);
                                                   world.spawnParticle(Particle.REDSTONE, loc, 0,eee);
                                                   if(loc.getBlock().getType()!=Material.AIR)
                                                     cancel();
                                                   
                                                     for(Entity ent : getEntitiesByLocation(loc, 0.545f)) {
                        if(ent instanceof LivingEntity) {
                            if(!(ent.equals(me)))
                            ((LivingEntity) ent).damage(10, me);
                            ((LivingEntity) ent).setFireTicks(10);
                            
                        }
                        
                    }
                                               }
                                           }.runTaskTimer(Bukkit.getPluginManager().getPlugin("StaffWeapon"), 0L, 20L);```
#

why this no work

lapis plinth
lyric cypress
#

@austere flame

person.spigot().sendMessage(ChatMessageType.ACTION_BAR, TextComponent.fromLegacyText("something here"));
tiny pebble
#

wouldn't it be args[0] if you want it to be /pit setcorner1? @lapis plinth
also i think you should have an else statement for the args.length > 0, since it won't know what to do if there are no args. Though don't quote me on that one, I just haven't done it without the else

lapis plinth
#

wouldnt the first arg be /pit?

#

or am i just dumb

tiny pebble
#

I don't think it counts that as an argument

#

since it's the command

lapis plinth
#

kk

tiny pebble
#

you also don't really need the if statement at 24, since the command registration already checks for that being the command

urban stone
#

Hey, when I have this

Player player = (Player) sender;

So the "player" is always instance of Player right? So doing this if check is useless?

        Player player = (Player) sender;

        if (player instanceof Player ... )
tiny pebble
#

Well, yes it's useless unless you run the command through console. That will result in an error since the console can't be casted to Player.

I usually do:

if (sender instanceof Player) {
  Player player = (Player) sender;
  ...
}
urban stone
#

ok thanks

woeful gorge
#

I know this has nothing to do with spigot, but none of my players can name pets and Im not sure which plugin could be causing this or how can I fix it

tiny pebble
#

What exactly happens when they try to name pets?

forest plaza
#

can he let them sit?

woeful gorge
#

They can sit perfectly

#

But no naming

#

Nothing, the name tag stays in their inventory

forest plaza
#

any protection plugins installed?

woeful gorge
#

World Guard

forest plaza
#

im not familiar with world guard, but it sounds like the interaction event gets cancelled, which is usually done by protection plugins

#

can you try it without world guard?

woeful gorge
#

I would be very tricky. Im sure is something in the config plugin that Im missing. I'll see if I can ask in world guard's group :D thanks

tiny pebble
#

It could also be a permission problem if you have any sort of permissions manager plugin

nocturne laurel
forest plaza
#

not for me

nocturne laurel
#

odd

#

Now it is working for me

forest plaza
#

O.o

#

when im sending the player packets for hidden advancements, the lines are still shown, is this normal behaviour?

frigid ember
#
        @EventHandler
        public void onRightClickBucket(PlayerInteractEvent e) {
            Player player = e.getPlayer();
            ItemStack holdItem = player.getItemInHand();
            
            if (holdItem == new ItemStack(Material.WATER_BUCKET)) {
            if (e.getAction() == Action.RIGHT_CLICK_BLOCK) {
event.setCancelled(true);
            }
            }
        }```
#

This should remove the water after placement right?

#

or just cancel the placement event

forest plaza
#

did you try PlayerBucketEmptyEvent?

#

but yours should work too

frigid ember
#

it doesnt thats the problem :/

#

0 errors

forest plaza
#

try holdItem.getType() == Material.WATER_BUCKET

subtle blade
#

Was just going to mention the same. ItemStacks are not referentially equivalent 99% of the time

#

Check its type, not the item

forest plaza
#

yeah to compare them u have to use equals i think

subtle blade
#

.isSimilar() or .equals(), yes

#

Though in this case it's just unnecessary. Type will suffice

forest plaza
#

true

frigid ember
#

is using lambda forEach() or using a for each loop better in terms of performance

rare prairie
#

use both

#

its the same

frigid ember
#

hm ok

stark oxide
#

is there any event for advancement messages ("X has made the advancement Y")? I tried BroadcastMessageEvent but that's not it

forest plaza
#

there is, let me find it

stark oxide
#

thanks!

frigid ember
#
            if (holdItem.getType() == Material.WATER_BUCKET) {
            if (e.getAction() == Action.RIGHT_CLICK_BLOCK) {
                blockLocation.put(uuid, location);
                e.setCancelled(true);
            }
            }```
How would I get the location of where I placed water get the clicked block and add 1 to y? Or is there an easier way, PlayerInteractEvent
stark oxide
#

i am specifically looking for an event that can be cancelled, so AdvancementDoneEvent does not work

rare prairie
#
            if (holdItem.getType() == Material.WATER_BUCKET) {
            if (e.getAction() == Action.RIGHT_CLICK_BLOCK) {
                blockLocation.put(uuid, location);
                e.setCancelled(true);
            }
            }```
How would I get the location of where I placed water get the clicked block and add 1 to y? Or is there an easier way, PlayerInteractEvent

Event#getClickedBlock

frigid ember
#

yes thats the block I clicked

stark oxide
#

or basically any way to prevent server from showing the advancement messages, but just in some cases, so gamerules or server settings really don't work either

subtle blade
#

No, clicked block will be the one the player actually clicked on

#

getBlock() will be the water

frigid ember
#

isnt there a bucket empty event for this

subtle blade
#

That's what he's using

frigid ember
#

oh

#

im using PlayerInteractEvent :/

subtle blade
#

Oh, wat

#

Use PlayerBucketEmptyEvent lol

frigid ember
#

yes :p

forest plaza
#

@stark oxide that was the event i was using, sorry. but you can edit the message, maybe try removing it?

stark oxide
#

oh, thats true

#

i'll give that a go

frigid ember
#

how would u prevent the player from getting the advancement?

#

ive been trying to do this too

subtle blade
#

afaik there's an advancement event

forest plaza
#

advancement done

#

or criterion grant

frigid ember
#

are those cancellable?

stark oxide
#

but that can not be cancelled

frigid ember
#

yea

stark oxide
#

and @forest plaza i actually can not modify the message 😦

forest plaza
#

wait wut

#

lemme see

frigid ember
#

@subtle blade getBlock() is not in the list

forest plaza
#

damn youre right

frigid ember
#

e.getBlock() wont work

#

what is e

#

PlayerBucketEmptyEvent?

#

event

#

what type of event?

#

yes and PlayerBucketEvent

#

tried both

#

what version r u on

#

1.12.2

#

¯_(ツ)_/¯

#

idk how to access old spigot docs

forest plaza
#

you edit the version in the url lol

frigid ember
#

wait really

#

lol

forest plaza
#

oh no, its only that way for paper lol

frigid ember
#

yea

#

there is no version in the url

forest plaza
#

you could use paper docs xD

frigid ember
#

hmmm

thick prawn
#

When using ShapelessRecipes, can you make the ingredient just a namespacedkey vs having to provide an itemstack? That way if the ingredient's nsk is that, it'll work?

frigid ember
#

oof

#

is there event.getFace?

#

maybe u can use getclickedblock and then get relative using the face?

#

event.getBlockFace() yea

#

event.getClickedBlock().getRelative(event.getBlockFace())

#

maybe thatll work

#

unless getrelative doesnt exist in 1.12 either

subtle blade
#

It does

#

Though I don't see any reason to be on 1.12.2

#

3 years old

sturdy oar
#

There are reasons

#

sadly

frigid ember
#

is it optimization?

sturdy oar
#

I am not totally against old versions, but I am when people don't have a proper reason for their outdated servers

balmy sentinel
#

This is my code to establish a connection with my database however I keep getting this error "java.sql.SQLException: Unable to load authentication plugin 'caching_sha2_password'." There is no password for the database so I'm confused..

frigid ember
#

people like to hang onto 1.7, 1.8, and 1.12

sturdy oar
#

If you need to have a huge playerbase on a single instance, there's no way you'll use 1.15.2\1.16.1

#

sadly this is the truth of newer versions

frigid ember
#

ive always wondered how hypixel works, how do they support multiple versions?

sturdy oar
#

hypixel has their own server and their own protocol translators

#

they're an exception compared to the other serves

frigid ember
#

o really? they dont use spigot or bukkit or paper or bungeecord?

sturdy oar
#

can we go to #general to talk about this

frigid ember
#

uh ok

rare prairie
#

This is my code to establish a connection with my database however I keep getting this error "java.sql.SQLException: Unable to load authentication plugin 'caching_sha2_password'." There is no password for the database so I'm confused..
can you show the error and your database username, address and database strings

balmy sentinel
rare prairie
hollow thorn
#

?paste

worldly heathBOT
hollow thorn
#

why thoesnt this work

rare prairie
#

debug your code, or atleast if you don't know how to then do syso after every check

#

because some checks is false

fossil shoal
rare prairie
#

It refers to the if the potion can be extended and/or upgraded

fossil shoal
#

It means whether the potion is upgraded and whether it is extended, I know, I can read. What does extended and upgraded mean, though?

rare prairie
#

extended when you can set 2 or more level

#

upgraded when you set tier 2

#

like to fire resistance 2

fossil shoal
#

Okay, thanks.

tiny pebble
#

will casting a set of strings to a permission work 🤔

fossil shoal
#

Where is the duration of the potion specified?

rare prairie
#

will casting a set of strings to a permission work 🤔
to Player#hasPermission ?

tiny pebble
#

I'm just trying to set permissions but I want to set several at once rather than in several lines of code

#

I have an array of strings I would like to each be considered a permission basically if that makes sense?

fossil shoal
#
rare prairie
#

loop through your permissions that is in the list, add the permissions using

getServer().getPluginManager().addPermission(new Permission(permName, PermissionDefault.FALSE, permissions));
fossil shoal
#

So PotionEffect does not help

tiny pebble
#

Thank you @rare prairie !

#

Hm, do permissions have to be registered? I assume what you sent above was some sort of registration though I thought they could just be applied as strings and checked as such as well

grizzled quiver
#

hey how i update my server to last version

rare prairie
#

Hm, do permissions have to be registered? I assume what you sent above was some sort of registration though I thought they could just be applied as strings and checked as such as well
Permissions will get registered after this process is done, so the permission(s) is added to your server instance.

tiny pebble
#

ah okay, thank you again 😛

grizzled quiver
#

im 33 version behind lol

lyric cypress
#

hmm

#

I can't put up videos

sturdy oar
#

you need to be verified

grizzled quiver
#

send it to me

lyric cypress
#

I got this

grizzled quiver
#

what do i need to be verified

lyric cypress
grizzled quiver
#

just type like the other+

lyric cypress
#

yes

#

Anyways the projectiles are like teleporting around and stuff

#
Vector tLoc = le.getLocation().toVector();
Vector fLoc = giant.getLocation().toVector();
Vector vec = tLoc.subtract(fLoc);
vec.normalize();
giant.launchProjectile(WitherSkull.class, vec).setDirection(vec);;

le is me
giant is the giant

Weird Result:
https://giphy.com/gifs/f41IQ8Mb6MRbYYQbxJ

brazen mason
#

hey, question on plugin development. if I use PlayerIneractEvent, how do I know what block the player interacts with?

rare prairie
#

Event#getClickedBlock

solar heart
#

am not a sent verification to the spigot account

rare prairie
#

Because your name is not the same to discord and to spigot

brazen mason
#

public void OnClick(PlayerInteractEvent event, Event#getClickedBlock block) {
like this?
sorry dont know how to do the code outline. im new to all this

rare prairie
#

Bruh, go learn java first

brazen mason
#

sorry

frigid ember
lapis plinth
#

why is this erroring?

rare prairie
#
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0 at club.atomicnetwork.pitofdoom.commands.RegionDefiner.onCommand(RegionDefiner.java:27) ~[?:?]
lapis plinth
#

heres my command class

coarse island
#

RegionDefiner line 27 ...

lyric cypress
#

The projectiles are teleporting around and stuff

Vector tLoc = le.getLocation().toVector();
Vector fLoc = giant.getLocation().toVector();
Vector vec = tLoc.subtract(fLoc);
vec.normalize();
giant.launchProjectile(WitherSkull.class, vec).setDirection(vec);;

le is me
giant is the giant

Weird Result:
https://giphy.com/gifs/f41IQ8Mb6MRbYYQbxJ

rare prairie
#
if (args.length > 0)
#

The projectiles are teleporting around and stuff

Vector tLoc = le.getLocation().toVector();
Vector fLoc = giant.getLocation().toVector();
Vector vec = tLoc.subtract(fLoc);
vec.normalize();
giant.launchProjectile(WitherSkull.class, vec).setDirection(vec);;

le is me
giant is the giant

Weird Result:
https://giphy.com/gifs/f41IQ8Mb6MRbYYQbxJ
What is le is enity? Or world?

lapis plinth
#

wdym? Do I like put that if statement before my arg check?

rare prairie
#

Yes

lapis plinth
#

kk

solar heart
#

maybe because here are two accounts on spigot similar niciel and pl_niciel_pl and the discord is used by two people together, so maybe something can be overcome

lyric cypress
#

le is me, an entity

#

I just have myself as le for testing

#

But le is livingentity

stiff dew
#

hey i have some problems with the gameprofile class

#

eliteSCHW31N has the following entity data: {id: "minecraft:player_head", Count: 1b, tag: {SkullOwner: {Id: [I; 1242183092, 408570530, -1775538905, 1897320766], Properties: {textures: [{Value: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZWI3YWY5ZTQ0MTEyMTdjN2RlOWM2MGFjYmQzYzNmZDY1MTk3ODMzMzJhMWIzYmM1NmZiZmNlOTA3MjFlZjM1In19fQ=="}]}, Name: "eliteSCHW31N"}, display: {Name: '{"extra":[{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"color":"aqua","text":"eliteSCHW31N"}],"text":""}'}}}

#

why is the SkullOwner id [I; 1242183092, 408570530, -1775538905, 1897320766]

#

it makes no sense

#

i use 1.16.1

frigid ember
#

How to teleport
in center of block?
looking cimterical infront

stiff dew
#

get the Block coords and add 0.5

#

x = ((double) player.getLocation().getBlockX()) + 0.5;

frigid ember
#

but how to make the

#

look cimetrical too?

crimson cairn
#

i have a feeling you asked this before

frigid ember
#

its possible

stiff dew
#
        double y = 0.5;
        double z = 0.5;
        String world = "world";
        double pitch = 0.0;
        double yaw = 0.0;
        x = ((double) player.getLocation().getBlockX()) + 0.5;
        y = player.getLocation().getBlockY();
        z = ((double) player.getLocation().getBlockZ()) + 0.5;
        world = player.getLocation().getWorld().getName();
        pitch = player.getLocation().getPitch();
        yaw = player.getLocation().getYaw();
        plugin.spawnloc = new Location(Bukkit.getWorld(world), x, y, z);
        plugin.spawnloc.setPitch((float) pitch);
        plugin.spawnloc.setYaw((float) yaw);
        player.sendMessage(plugin.sucessfulplayercmd + "New spawn location placed.");```
#

thats way then ernough...

crimson cairn
#

symmetrical?

frigid ember
#

jaw and pitch to be

#

infront

stiff dew
#

?

crimson cairn
#

a multiple of 90 degrees?

lyric cypress
#

What

frigid ember
#

-471.407 4.00000 -259.317

#

can you give me example for this to be cimetrical?

#

-471.05?

lyric cypress
#

Symmetrical?

crimson cairn
#

0.5

#

-471.5

#

Math.floor() it

#

and add 0.5

frigid ember
#

Does anyone know how to fix this?

crimson cairn
#

worldedit's //drain

lyric cypress
#

Worldedit’s //replace

frigid ember
#

-471.5 4.0 -259.5 180 360

#

this make it look in grund

#

how to find out to make it infront?

crimson cairn
#

pitch needs to be 0

frigid ember
#

They stand alone when someone puts water, a whole chunk

lyric cypress
#

Yeah either drain it

#

Or fill it with water

#

//replace air water

crimson cairn
#

water air

#

oh

frigid ember
#

Only the person who put the water sees it, the others do not

lyric cypress
#

Or //drain big number

#

Oh that’s what you mean

frigid ember
#

When they enter the water they are kicked by fly, it is a bug

crimson cairn
#

anticheat?

frigid ember
#

I have been told that it is due to viaversion

#

But I don't know how to fix it

grizzled quiver
#

how i update my server without redoing it

lyric cypress
#

/reload

grizzled quiver
#

no i mean the version of spigot

lyric cypress
#

Unless you mean spigot

#

Then you have to close it

#

And replace the spigot jar

grizzled quiver
#

i have the 1.16.1

lyric cypress
#

And change the run.bat

grizzled quiver
#

but its still said its out of date

lyric cypress
#

Yes

#

Get buildtools

grizzled quiver
#

i tried

crimson cairn
#

make a copy of your worlds, just in case something bad happens

grizzled quiver
#

but it was 1.15 version dk why

lyric cypress
#

Buildtools latest is 1.15 I think

#

So you have to specify 1.16

grizzled quiver
#

how?

lyric cypress
#

In gitbash or whatever you are using

grizzled quiver
#

oh so i should type 1.16.1 when i run right?

lyric cypress
#

java -jar BuildTools.jar --rev 1.16.1

grizzled quiver
#

oh ok specify it :3 ty so much

frigid ember
#

Anyone knows how default world is set?

#

beacuse i cant delete 1 world it says its default

#

....=>.... [22:10:34 WARN]: [Multiverse-Core] World 'SPAWN' could not be unloaded. Is it a default world?
.... [22:10:34 INFO]: World 'SPAWN' could NOT be deleted!

pastel condor
#

Delete it from the file system 🤦‍♂️

wheat summit
#

Does anyone know what the Material for a Redstone Repeater be?

sturdy oar
#

Yes

wheat summit
#

What is it?

sturdy oar
wheat summit
#

It isn't there @sturdy oar That's why I'm asking...

sturdy oar
#

Outdated version?

wheat summit
#

I am in 1.8 Bukkit

#

Though it also doesn't seem to be appearing there on the Java doc

sturdy oar
#

Yeah

#

Probably doesn't exist

#

Weird

wheat summit
#

Oh ok

sturdy oar
#

Maybe different names

wheat summit
#

Could be

sturdy oar
#

There's also this on 1.16

crystal creek
#

maybe try DIODE for 1.8

wheat summit
#

That did work weirdly

#

Does anyone know how to get the Number ID of a material though? As in Records are #2256 and Note Blocks are #25? I would like to have a way to get those numbers since I'm debugging a shop and some of the items don't show up though I need to remove them and it's hard to tell

#

Nevermind got it

velvet geyser
#

Hello, I am using spigot sercidor and we have killed the dragon when trying to enter to look for the Elytras and Sulker Cajas the console and the whole server are closed. If there is someone who can tell me how I can solve this problem, they would do me a favor. Thank you very much for reading this.

tiny pebble
#

How can I add a custom permission to operator?

#

Also is there a way to print all permissions available but not in the form of something like: org.bukkit.permissions.Permission@134ecdbe

lyric cypress
#

I followed a tutorial on making a custom zombie

public class BossGiant extends EntityGiantZombie
}
{
    public BossGiant(Location loc)
    {
        super(EntityTypes.GIANT, ((CraftWorld) loc.getWorld()).getHandle());
        this.setPosition(loc.getX(), loc.getY(), loc.getX());
        
        this.setCustomName(new ChatComponentText(ChatColor.DARK_RED + ChatColor.BOLD.toString() + "BIG BOI"));
        this.setCustomNameVisible(true);
        this.setHealth(2048F);
        this.goalSelector.a(0, new PathfinderGoalFloat(this));
        this.goalSelector.a(2, new PathfinderGoalMeleeAttack(this, 1.0D, false));
        this.goalSelector.a(3, new PathfinderGoalLookAtPlayer(this, EntityHuman.class, 8.0F));

        this.goalSelector.a(7, new PathfinderGoalRandomStroll(this, 1.0D));
        
        this.goalSelector.a(8, new PathfinderGoalRandomLookaround(this));
        this.targetSelector.a(0, new PathfinderGoalHurtByTarget(this, EntityHuman.class));
        this.targetSelector.a(1, new PathfinderGoalHurtByTarget(this, Entity.class));
        this.targetSelector.a(2, new PathfinderGoalNearestAttackableTarget<EntityHuman>(this, EntityHuman.class, true));
    }
#

but I cannot make it a bukkit zombie

subtle blade
#

@tiny pebble Permissible#getEffectivePermissions()

#

Returns a List of PermissionAttachmentInfo on which you can call #getPermission(), a String

lyric cypress
#
Giant giant = (Giant) new BossGiant(p.getLocation());
tiny pebble
#

oh sweet, thanks

#

i spent all this time converting arrays lmfao

subtle blade
#

player.getEffectivePermissions().forEach(p -> player.sendMessage(p.getPermission()));

lyric cypress
#

org.bukkit.command.CommandException: Unhandled exception

#

Caused by: java.lang.NoClassDefFoundError: net/minecraft/server/v1_15_R1/EntityGiantZombie

#

Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_15_R1.EntityGiantZombie

tiny pebble
#

Also will that display every permission or just the users permissions? Every permission is what I'm going for

subtle blade
#

That would be just user permissions, yeah. Though I think plugin manager has a list of all registered permissions

tiny pebble
#

Yeah when I used that that's when it printed out as the org.bukkit.permissions.Permission@134ecdbe format. Is that just how the bukkit permissions are and I'm not seeing my custom permissions?

subtle blade
#

Well it's a Permission object, not a String, right? Permission doesn't have a toString() override

tiny pebble
#

ah I see

#

thank you!

#

I'm just trying to put it in an array now rather than sending a player message which seems a bit wonky to me for some reason

frigid ember
#

hello please anyone could hhelp me with this

#

console error is in the pastebin as well as the class

subtle blade
#

Well Collections have a toArray() method to make things even easier

#

Actually, you'd stream it to map to names

#

Bukkit.getPluginManager().getPermissions().stream().map(Permission::getName).toArray(String[]::new);

tiny pebble
#

ah yess!!! it worked, thank you so much 🙂

frigid ember
#

what?

#

any1 can help me?

#

plz

subtle blade
#

You never initialized plugin

#

It's null

frigid ember
#

its in my main

#

class

#

OH

#

NO

#

MY GOD

#

my bad

#

i must have deleted the constructor by mistake im so dumb

#

thanks so much @subtle blade

#

❤️

subtle blade
#

o/

frigid ember
#

damn

#

still doesn't fix it

#

Anyone know an economy plugin

#

essentials

#

that is based on items

#

code it yourself

#

no it's virtual currency

#

smh

#

ez to code

#

nah already found it

#

btw nobody knows?

woeful flame
#

Hi. I have a server that is currently on Bukkit in 1.15.2. How should I migrate to Spigot in 1.16.1?

tiny pebble
#
for (int i = 0; i < array.length; i++) {
  if (groupsConfig.getConfigurationSection(array[i].toString()).get("users." + player.getDisplayName()).equals(player.getUniqueID())) {
...
}
}

Alright this is a bit messy but...
The if-statement sometimes results in a NullPointerException. How do I make it so it just continue through the for loop even if it does result in null? This is most likely just a Java question, but I'm not mastered at it yet so I still need some help 😛

#

For context:
I'm checking each ConfigurationSection to see if it has "users." + player.getDisplayName(), if it does, run the statement. If it doesn't, continue through the loop until it does. The problem is that if it doesn't, then it just equals null, resulting in the exception.

slim hemlock
#

hey uh

#

did the maven id for the spigot maven repo change recently-ish?

fleet crane
#

maven id?

slim hemlock
#

sorry groupId

#

no wait

#

it's just <id>

#

I had spigotmc-repo and the current docs seem to use spigot-repo

fleet crane
#

id means nothing

#

you could put purplemonkeydishwasher in it if you wanted

slim hemlock
#

mhk wasn't sure

#

maven is being annoying again

#

thanks

subtle blade
#

you could put purplemonkeydishwasher in it if you wanted
On that note, please do

hardy cedar
#

hmm uhhh how to unload a world?

fleet crane
#

Bukkit.unloadWorld ?

hardy cedar
#

oh thx xd

tiny pebble
#

figured out my problem!

lapis plinth
#

How to cancel a runnable task?

#

cancel() and BukkitTask.cancel() doesnt work

bold anchor
#

Use a BukkitRunnable

#

that is easy to work with

lapis plinth
#

Wdym

#

This is what i have

#

I want it to cancel when n = 0

bold anchor
#

If you use a bukkitrunanble you can cancel it inside the task

lapis plinth
#

kk

#

But whats the method to cancel it tho?

subtle blade
#

Just edit the signature of your lambda to accept a task

#

() -> { to task -> {

#

task.cancel()

lapis plinth
#

kk ty

subtle blade
#

Just remember that the cancel will only do so on the next iteration. If you want to halt the process there, cancel and return

lapis plinth
#

"Incompatible parameter types"

subtle blade
#

Version?

lapis plinth
#

im planning to use this for 1.8.8

subtle blade
#

Was added in like 1.13

lapis plinth
#

Fuck

subtle blade
#

Use a BukkitRunnable then

#
new BukkitRunnable() {
    @Override
    public void run() {
        this.cancel();
    }
}.runTaskTimer(plugin, delay, interval);```
lapis plinth
#

kk

bold anchor
#

Ehm, don't just copy that since you need to shit your code in there.

subtle blade
#

Well, yeah lol

lapis plinth
#

😂

#

I was planning to just copy and paste the top and bottom part

bold anchor
#

I've seen the spigot users so i don' trust you guys, hoepfully you figure it out tho.

#

Segmentation error

#

what

subtle blade
#

First time I've ever seen a segfault on a JVM lol

bold anchor
#

This is undoubtly not related to spigot

lapis plinth
#

I did it, but whats the method to cancel again?

#

OH

#

i see

#

im dumb

bold anchor
#

this.cancel() or BukkitRunnable.this.cancel()

lapis plinth
#

yeah i got it

#

ty

bold anchor
#

Try uninstalling and installing your jvm iPabsziot

#

also redownload spigot, just to be sure.

sage summit
#

configVar.set(path, list)
What would I put where list is?

bold anchor
#

The edited list

sage summit
#

so that name of it?

bold anchor
#

No clue, you are the one with the new list.

sage summit
#

so the*

frigid ember
#

please anyone would that work?
public void claimKit(Kit kit, UUID playerId) {
Player player = plugin.getServer().getPlayer(playerId);
for(int i=0; i <= kit.getKitContent().length; i++) {
ItemStack[] item = kit.getKitContent();
player.getInventory().addItem(item);
}

#

Do i < kit.getKitContent().length instead of <=, remember that indexes start at 0, if you loop up to kit.getKitContent().length included, you'll get an OutOfBoundsException or however it's called

lone fog
#

Why are you looping through it at all if you are just getting the entire contents each time

frigid ember
#

oh what the fook

ionic hound
#

how do i summon a mob in a world i am making a command block run the /summon command they keep spawning in the wrong world

zealous shore
#

When I do
PacketPlayOutWorldParticles packet = new PacketPlayOutWorldParticles(EnumParticle.ASH, player.getLocation(), true, (float) 0, (float) 0, (float) 0, (float) 0, 10);

Intellij does not recognize the EnumParticle

This is my build.gradle if it helps.

    mavenCentral()
    jcenter()
    mavenLocal()

    maven { url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
    maven { url = 'https://jitpack.io' }
}

dependencies {
    compileOnly 'org.spigotmc:spigot-api:1.16.1-R0.1-SNAPSHOT'
    compile "com.github.KevinPriv:HypixelApi4J:API-1.7"
    compile "com.github.KevinPriv:MojangAPI:1.0"
}```
grand anchor
#

When I tried to use the tutorial on the SpigotMC page for the Bungeecord config API, I got this error in my IDE:
The method copy(File, OutputStream) in the type Files is not applicable for the arguments (InputStream, Path)
My code is exactly the same as the tutorial for saving a default config (I have checked multiple times and used an online text comparer)

subtle blade
#

miqhtie, you're in 1.16... use World/Player#spawnParticle()

#

you have no reason to be using packets for that lol

zealous shore
#

fruahgiahiu

#

ok thanks lol

lusty vortex
#

@zealous shore You are only importing the API

open ibex
#

Tdash if it's not a custom world use /execute in minecraft:(world) run summon ...

lusty vortex
#

That doesn't contain NMS

grand anchor
#

I gtg, so please DM me with the info I need and the questions you have and I’ll respond in the morning

drifting lichen
#

[Pterodactyl Daemon] Server marked as STOPPING stop [22:52:27 INFO]: Unknown command. Type "/help" for help.

#

i get this when i stop my server

#

and i have to kill it

grand anchor
#

I probably just need to swap IDEs. I’ve had so many problems with Eclipse

drifting lichen
#

does anyone know why that might be happening

frigid ember
#

@drifting lichen did you remove the stop command using commands.yml?

sage summit
frigid ember
#

what is it you want to achieve?

sage summit
#

me?

frigid ember
#

yes

sage summit
#

i want to add for example each world that is created into a config file

frigid ember
#

the world's name?

sage summit
#

yes

#

but i dont know how to add it inside a list

#

and not just set it to
Worlds: playersworld

#

i want
Worlds:
world
end
nether

Not
Worlds: world

frigid ember
#

oookay so you want a list of strings with the worlds' names, did I get this right?

sage summit
#

yes

lone fog
#

Pretty sure you can just set a list<string> directly

#

And read it with getStringList

rich olive
#

can you not close/reopen your own ticket on JIRA?

frigid ember
#

yes, in the .set method, you can do .set("Worlds", myList) (myList being a List<String>)

#

u can do that?

subtle blade
#

Don't think so, no, nicegamer. What issue?

rich olive
sage summit
#

yes, in the .set method, you can do .set("Worlds", myList) (myList being a List<String>)
@frigid ember Would the myList be List<String> world = getConfig().getStringList("PlayerWorlds");?

rich olive
#

it's still reproduceable (as of a couple days ago), I'm about to test it right now though

subtle blade
#

Yeah if you're on the latest version and can still reproduce it, either comment on the ticket or create another one

frigid ember
#

It could be that, you could also iterate through all the worlds from Bukkit.getWorlds() (or however it's called) and add the names of each to your list

sage summit
#

ok

barren egret
#

what is the new color code format for hex codes?

#

&x&0&3&f&c&8&4 just translated to &4 for me and I have no idea if it's because of the plugin I am trying to use it with or if I have the format wrong, can't find it anywhere

drifting lichen
#

the format depends on what plugin youre using

#

some use that

#

some use &#COLORCODE

rich olive
#

yup, it's still reproduceable

buoyant path
#

are lambdas really performance intensive in java 8?

wraith thicket
#

What "isn't working"?
What kind of behaviour are you expecting?
What kind of behaviour are you experiencing?

frigid ember
#

Anyone know

#

Gringotts plugin?

#

How to disable when you buy something it stop giving you currency

chrome lark
#

it tells you, you're missing a )

#

well, you're still missing one

#

4 (, 2 ) on that line

#

still missing one

#

count the ()

frigid ember
#

u opened 4

#

so close 4

wraith thicket
#

You're not closing the first #translateAlternativeColorCode.

pastel arrow
#

You don't need the second ChatColor.translateAlternateColorCodes()

#

Should yes.

frigid ember
#

What event is thrown when a player is hit?

#

EntityDamagebyEntityEvent, no?

#

should be

rotund orbit
#

How do you make text appear on the screen, but not in the chat window?

winged sparrow
#

Action bars?

rotund orbit
#

I have a factions plugin and I think it could be cool when entering/leaving territories

winged sparrow
#

I think you can access a title with player.spigot().sendMessage

rotund orbit
#

Thanks, I'll give it a shot 🙂

winged sparrow
#

I know ActionBars are accessible through it so titles should be as well.

#

Dependent on what version you’re using though.

latent rock
#

java -Xms128M -Xmx{{SERVER_MEMORY}}M -jar {{SERVER_JARFILE}}

Do I add aikars flags on top of that
Or add it to the end?

winged sparrow
#

After

#

Honestly you could just

latent rock
#

do i put java again

winged sparrow
#

Copy Aikar’s flags and replace the ram use and jar name

latent rock
#

ok

frigid ember
#

lolol

latent rock
#

If I have 32GB at my disposal, does 30GB sound safe to use for mc server?

frigid ember
#

give os 4gb minimum of room

latent rock
#

ok

frigid ember
#

I reccomend 6-8 gb for room

latent rock
#

ill send it at 24

#

set*

frigid ember
#

good idea

#

all my 7 servers are at 16 anyways lol

latent rock
#

hmm aikar site says 1000-1500M

#

should i disregard

frigid ember
#

^

latent rock
#

thank you

frigid ember
#

bro i was warned for spamming ^

latent rock
#

should i limit cpu usage

tiny dagger
#

we need a bad troll rule

#

to just ban them

#

bad troll = ban

opal bay
#

he did say a bunch of racist shit earlier

tiny dagger
#

well

#

what are the mods doing

opal bay
#

asleep

latent rock
#

is 50GB enough for system files

#

if i have 1TB total on ubuntu 16.04

wraith thicket
#

What's a mod?

tiny dagger
#

some ancient legend

frigid ember
#

its like a plugin

#

but a mod

wraith thicket
#

How long can a mod sleep before there's an issue? 🙂

tiny dagger
#

3 minutes top

wraith thicket
#

Well, damn...

#

It's a good thing I'm not a mod, but a Junior Mod, though 😄

tiny dagger
#

oh then you're at easy

#

you get 6 minutes top

#

😮

chrome lark
inland oxide
#

too bad that checkstyle can't just fix the formatting errors rather than requiring a fix, and restart of the compile.

cold wharf
#

Hey one of my player is getting kicked for Keepalive timeout

#

Does anyone know the fix for it?

tiny dagger
#

sounds like he doesn't respond with the packet

cold wharf
#

So how do I fix that issue?

tiny dagger
#

i'm not sure tbh

teal oasis
#

ItemMeta meta = BroadSword.getItemMeta();
meta.addAttributeModifier(arg0, arg1)

#

does anyone know how to use it

#

???

tiny dagger
#

yes

#

use the paramets

#

check which types they are

#

most likely they are

#

Attribute.

#

and a double as value

teal oasis
#

i tried it did not like it

#

i want to add more attack damage

tiny dagger
#

well

#

check the parameter type then

teal oasis
#

i have it makes no sense

#

attribute modifier

#

nothing comes up for it when i try to use it

tiny dagger
#

jeez

#

let me look

#

what's so hard about it? 😮

teal oasis
#

i have tried it come up with a error

#

i am still a bit new to java

#

it told me to do this

#

meta.addAttributeModifier(Attribute.GENERIC_ATTACK_DAMAGE,AttributeModifier.deserialize(AttributeModifier​("Damage", 6, AttributeModifier.Operation.ADD_NUMBER)));

wraith thicket
#

What are you trying to deserialize exactly?

#

Just create new instance of AttributeModifier and pass it as the second parameter.

inland oxide
#

ugh, what is Mojang doing to the login packet!

austere breach
#

I don’t want to interrupt this lol but for the past like week I’ve been able to set up my server, but when I type in my laptops IP, it doesn’t work for others to join, I can join but others can’t. Then I tried an external IP and that also didn’t work for either me or my friends... is this a somewhat common problem or is my IP stuff just messed up?

inland oxide
#

your pc needs to be setup as a fixed ip for your router and your router needs to port forward 25565 to your pc's ip and you need to disable the firewall on that port on your pc.

austere breach
#

Ah I see, thanks 👍

inland oxide
#

maybe you didn't have the pc as a static ip and it got reassigned a new ip from the dhcp server on your router.

austere breach
#

Interesting, I gotta look into that stuff lol

inland oxide
#

you can setup as a static, or setup the router's DHCP to assign a particular ip address based on the mac id of your laptop's network interface (reserving an ip)

#

either way it would not change when you turn off and on

#

stuff for you to look into

austere breach
#

Oh okay i see

#

Thx bruh 👍

inland oxide
#

when you setup your port forwarding on your router, usually you have to define the service (port) then add to the firewall rules to allow incoming and then forward to a specific IP address.

#

You only need to forward that one port.

austere breach
#

My firewall is already disabled which idk if that ensures ALL connections but yeah I’ll have to look into that stuff

inland oxide
#

seems like my login packet is overflowing the buffer

#

This new Dimension codec NBT stuff in the login packet is huge.

frigid ember
#

How would I get the data from:

        for (Block blocation : Bucket.blockLocation.keySet()) {
            getConfig().set(blocation.toString(), Bucket.blockLocation.get(blocation));
        }```
 This is on Save(); and on Load() I need to load the location from a String
wraith thicket
#

What are you trying to do here exactly? Save a bunch of locations? If so, then you can simply ConfigurationSection#set the list (then save) and ConfigurationSection#getList when loading it

frigid ember
#

Yes, im saving the info of the hashmap above but I still have to get the information out of the .yml file

#
    private void loadData() {
        if(getConfig().getConfigurationSection("data.playerdata") != null) {
            for (String str : getConfig().getConfigurationSection("data.playerdata").getKeys(false)) {
            Block blocation = Block.fromString(str);
            long seconds = getConfig().getLong(str);
            Bucket.blockLocation.put(blocation, seconds);
        }
        }
    }```
#

So sometthing like this

#

but the 'Block blocation =' one doesnt work

wraith thicket
#

As it shouldn't ...

frigid ember
#

how would I format that? :/

bleak cipher
#

@inland oxide is it mojang

#

or is it spigot

#

or is it proxied thru bungeecord ?

wraith thicket
inland oxide
#

no, it's my changes to bungeecord, i'm looking at what md_5 did, seems he used the se.llbit.nbt library to parse the NBT stuff, probably better than my hacky parser.

fossil shoal
#

How do I get the duration and level of a potion bottle? For example a normal vanilla speed potion. I've been looking at the docs for a while, but couldn't find anything, what I did manage to find is PotionMeta#getaBasePotionData, but I don't see a method to get the duration and level of the effect

inland oxide
#

I think my parsing is overflowing a buffer of some sort

bleak cipher
inland oxide
#

suppose I could just rebase to his 1.16 changes and then update for 20w28a

wraith thicket
#

@fossil shoal If they're vanilla potions, you should be able to build up a map and use the various #isExtended and #isUpgraded methods to figure out which time it'll have.
If they're custom effects, use PotionMeta#getCustomEffects and PotionEffect#getDuration

#

It looks like the PotionEffect of vanilla potions is only created once they're applied.

fossil shoal
#

Thanks

#

I am assuming extended means the duration and upgraded means the level

wraith thicket
#

Yeah, I'm guessing that as well

inland oxide
#

yeh, something fishy with the NBT in the login packet.

#

It's like it's not just passing dimension names but biomes? There's like 511 of them

undone narwhal
#

Is it still possible to set a 2D biome since the biomes are now 3D?

#

Cause making a for loop each time is kinda heavy no?

tiny dagger
#

wait the biomes are now per block huh?

undone narwhal
#

Yeah :c

tiny dagger
#

that's cool in some ways

inland oxide
#

yeh, will be really cool with some custom maps

#

but...

#
05:24:30 [INFO] [klugemonkey] disconnected with: DecoderException : net.md_5.bungee.protocol.OverflowPacketException: Cannot receive string longer than Short.MAX_VALUE (got 8028031 characters) @ io.netty.handler.codec.MessageToMessageDecoder:98
#

somthing not kosher in pigville

undone narwhal
#

My head will soon explode

#

I'm playing with BlockPopulator

#

And....

inland oxide
#

I find that beer helps that problem.

tiny dagger
#

i just moved to prune juice

undone narwhal
#

^ aperitif time

#

oh

tiny dagger
#

good to hear you like prune juice too 😂

undone narwhal
#

lmao

#

You put the else block not with the permission but with the if (commandSender instanceof Player) {

tiny dagger
#

isn't that how permissions work 🤔

#

oh

#

i see you misplaced {}

#

well

#

move the no permission to the different block

undone narwhal
#

move your else {, one } after

#

x)

frigid ember
#
    private void loadData() {
        if(getConfig().getConfigurationSection("data.playerdata") != null) {
            for (String str : getConfig().getConfigurationSection("data.playerdata").getKeys(false)) {
            Location blocation = Location.fromString();
            long seconds = getConfig().getLong(str);
            Bucket.blockLocation.put(blocation, seconds);
        }
        }
    }
    
    private void saveData() {
        for (Location blocation : Bucket.blockLocation.keySet()) {
            getConfig().set(blocation.toString(), Bucket.blockLocation.get(blocation));
        }
        saveConfig();
    }```
How would I get the Location from a string
Location blocation = Location.fromString();
out of the config.yml
undone narwhal
#

config.getLocation(path)

frigid ember
#

oof thanks

undone narwhal
#

@tranquil edge you have a structure like this:

  • if the command is ...
  • if the send has permission
  • if the sender is a player -> Do your stuff
#

The problem is that:

#

you made this:

  • if the command is ...
  • if the send has permission
  • if the sender is a player -> Do your stuff ELSE SEND NO PERMISSION
frigid ember
#

Don't think I can get it like that _Rolyn

inland oxide
#

well, this time it joined for half a second then died.

undone narwhal
#

But you should to the send no permission one block upper

frigid ember
#

it automatically stores it on this path "data.playerdata"

#

Location blocation = getConfig().getLocation("data.playerdata");

#

config.getLocation(path)

inland oxide
#

says overflow in packet, but not which one

frigid ember
#

there is nothing in the if statement

#

than do ! in the if statement and dont put else

undone narwhal
#

Oh...

fossil shoal
#

@wraith thicket thanks for your help! I managed to get it to work

frigid ember
#

but I don't think thats what you want

undone narwhal
#

Cloud I sent you the corrected code above

#

yep

#

@frigid ember I don't understand your problem

#

Why ?

#

Don't ask help then

#

And go learn java

frigid ember
#

trying this rn Location blocation = (Location) getConfig().get("data.playerdata");

#

ima check

#

a smiley

undone narwhal
#

@frigid ember depending on where your store the player data.. What's your file architecture ?

frigid ember
#

tf you think it is xd

tiny dagger
#

it's a russian smile

#

i think

#

they also have )

#

which is weird

#

where is mah : )

undone narwhal
#

"they"? Russians or EU ?

tiny dagger
#

i think it's a russian thing

#

i haven't seen it anywhere else

undone narwhal
#

right

frigid ember
#

x)

#

laughing smiley

#

or a dead smiley

undone narwhal
#

But x) is used everywhere

sturdy oar
#

:}

undone narwhal
#

Coming from South Park

tiny dagger
#

o.o

#

what's x) supposed to represent?

#

i know : d

#

or xd

undone narwhal
#

But let's talk about it on #general

frigid ember
#

How can i get the subid of a itemstack?

undone narwhal
#

Wdym by subID?

#

What's your version?

frigid ember
#

1.8

tiny dagger
#

oh

#

the data

#

you know the magic bs

frigid ember
#

No xD

sturdy oar
#

69:420

#

best lever

tiny dagger
#

that's an id

frigid ember
#

Yes

tiny dagger
#

that or the material id

undone narwhal
#

<material id>:<cool data>

frigid ember
#

The id after the colon

inland oxide
#

and now it's working, not sure why

#

yeh

undone narwhal
#

item.getData().getData()

#

It's a short

inland oxide
#

needs more work

frigid ember
#

Thanks

inland oxide
#

yeh, that's actually a big rewrite

#

I had started into it, but critical bugs were taking priority

#

I'm going to rewrite some stuff, i think had to do with that.

#

no, no commitments 😄

sturdy oar
#

isn't data a byte

tiny dagger
#

yup

#

it is

inland oxide
#

when I get around to it, they wanted to be able to format the lore stuff

tiny dagger
#

byte and sometimes short

inland oxide
#

\n is not bad solution, if you are adding a bunch of custom text it there

tiny dagger
#

tho i never seen it pass byte sizes

undone narwhal
#

mostly byte cause you don't need a decimal number

#

byt shorter

#

but

tiny dagger
#

isn't short the 2^15-1 thingy?

undone narwhal
#

-32,768 to 32,767

tiny dagger
#

yeah that's what i said

undone narwhal
#

Yes x)

tiny dagger
#

then why the decimal talk?

#

neither short or byte are of the decimal type

inland oxide
#

getting a varInt too big message now, not a String overflow. Something is not right.

undone narwhal
#

Cause I'm studipdly tired

inland oxide
#

some packet after login has changed i think

undone narwhal
#

And in france , are .

tiny dagger
#

here too

abstract swallow
#

what is the best free anticheat

tiny dagger
#

ncp

#

by miles imo

inland oxide
#

shutdown -h now

abstract swallow
#

ok thanks

frigid ember
#

is it possible to spawn a particle at the end of it?

tiny dagger
#

nope

inland oxide
#

ncp is free, and it's big

sturdy oar
#

the end of what

tiny dagger
#

particles are client side

undone narwhal
#

of the world

tiny dagger
#

you can't know where it ends

#

you can predict

inland oxide
#

will chew up a significant amount of your tick processing packets

frigid ember
#

like this

#

wait

abstract swallow
#

what is the best anticheat for 1.16.1

inland oxide
#

make sure you configure ncp accordingly to what you are trying to solve

tiny dagger
#

yeah predict

#

ohh

#

the end frame

frigid ember
#

i'm cant send images here fu..

#

yes Fr33styler

#

a end frame

#

how i do this ?

tiny dagger
#

those are client side too

#

the server only knows location and type

frigid ember
#

how do i do it

tiny dagger
#

make a client mod for it

frigid ember
#

yeah

#

client mode = packet right ?

#

or MOD

tiny dagger
#

or texture pack

frigid ember
#

i'm have texture pack

tiny dagger
#

no

frigid ember
#

but dude i'm dont know

tiny dagger
#

client means your minecraft

#

client and server

#

makes sense to me

frigid ember
#

I play on a server and can generate these restrictions at the end of it

#

yes i know

#

i'm want understand how i generate tha particle of end flame

tiny dagger
#

you need to remove the frames in the texture pack

#

and keep a static one

#

aka the ending one

frigid ember
#

is there any way I don't know how to use speed on a negative number

#

you need to remove the frames in the texture pack
yah