#help-archived

1 messages · Page 64 of 1

wet sentinel
#

My friend is running a server for me and my friends but the server keeps crashing due to this error. We have looked for ways to fix it gut had no luck, anyone have any idea on how to fix it. Would be very appreciated.

#

Time: 5/6/20 10:54 PM
Description: Exception in server tick loop

java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextNode(Unknown Source)
at java.util.HashMap$KeyIterator.next(Unknown Source)
at net.minecraft.entity.EntityTracker.func_72788_a(EntityTracker.java:290)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:779)
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:397)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
at java.lang.Thread.run(Unknown Source)

tiny dagger
#

Deleting entities in main tick

fleet crane
#

thats not a spigot log

wet sentinel
#

do you know what the solution could be?

tiny dagger
#

Minecraftserver? 🤔

wet sentinel
#

Yeah, it keeps crashing due to that same error

frigid ember
#

Hello,

I am using ProtocolLib to grab the Vehicle Steer and Vehicle Move packets while riding a Ravager. My end goal is that the ravager's body rotate to match the rotation of the player during movement. I've got this working, but now the player rubber bands hardcore. I believe the issue extends from the fact that I am cancelling packets (line 108) and then sending new packets (110), but I don't know what else to do. If someone wouldn't mind skimming over my code to help me understand why this rubber banding occurs, I would appreciate it. Code:
https://sourceb.in/b33c82a06c

Please ping me if you have a suggested fix or any tips to optimize my code 🙂

pastel condor
#

for some reason my code is going in an infinate loop and crashing my server

nova mural
#

you have a while loop that runs that code

#

your while loop must be continuously running

pastel condor
#

yeah

#

oh

#

lol

tiny dagger
#

Any loop can go to infinite if not properly used

pastel condor
#

forgot to do i++

frigid ember
#

no one ever does i-- 😔

tiny dagger
#

I did

#

Quiet a few times too

nova mural
#

i just did i— in a discord bot

tiny dagger
#

There just aren't as many cases

subtle blade
#

Yea that log above is like a Forge... not Spigot

#

Or some MCP mapped server

ebon charm
#

i'll get this error if I want to change the spawner with selfmade /spawner cmd: org.bukkit.craftbukkit.v1_8_R3.block.CraftBlockState cannot be cast to org.bukkit.block.CreatureSpawner

#

in console*

nova mural
#

cast block to spawner iirc

#

then get spawner creature

#

i haven’t used a spawner in forever am probably wrong

ebon charm
#

CreatureSpawner spawner = (CreatureSpawner) targetblock.getState();

#

this is the code

#

and Block targetblock = p.getTargetBlock(new HashSet<Byte>(), 6);

#

and Block targetblock = p.getTargetBlock(new HashSet<Byte>(), 6);
@ebon charm here the cast?

nova mural
#

your error is in your spawner initialization

#

i could again be very wrong

#

and i’ll double check

#

but if you cast block to spawner

#

that should be acceptable

#

wait nvm

#

Block#getState()#getSpawnedType()

#

that’s should be cast-able

ebon charm
#

there is no #getSpawnedType()

#

ah you mean the spawner

nova mural
#

yeah

#

if you add that on to your spawner variable

#

should be good

ebon charm
#

same error

#

I think I made something wrong

kind cove
#

I have what I think to be a problem having to do with bungeecord.
I've been experiencing a problem ever since I attempted to use OnlyProxyJoin. I set it up on each server of my bungeecord network and tested it. It kicked any player who joined from any ip (even the proxy) despite attempts to prevent it from doing that. I uninstalled OnlyProxyJoin on all servers. Now, every time I try to join (even on the proxy), it gives me this message: "Kicked whilst connecting to hub: Please join directly on example.com \n This is the default message" and "Upstream has disconnected." in the proxy's console. I have been searching on the internet for fixes and I know it has something to do with bungeecord and firewalls, but each attempt I've made at fixing it has not worked. Has anyone on here had a similar problem and gotten a solution?

frigid ember
#

Whats a good skyblock plugin that you can create your own skyblock island for people to use

#

and vault

lilac wasp
#

@frigid ember there are a ton of free/premium Skyblock plugins, I recommend you do your own research.

pastel condor
#

there are a lot

frigid ember
#

I can't get Multiverse portals to work

manic island
#

Is it possible to make a map renderer only run once?

agile rock
#

Whats a good way to stress test my server

craggy tundra
#

spawn a bunch of mobs

final quail
#

On a technical standpoint is ChunkGenerator or BlockPopulator Faster? If i was making very detailed caves? I see alot of people use block populator for caves

subtle blade
#

That's most likely the job of a populator

hoary parcel
#

chunk generator is faster

#

and like, caves are part of carving phase, if you look at vanilla

#

populators are decoration, that happens much later

frigid ember
#

Hey guys, how do I get the attacker in an EntityPlayer class?

    @Override
    public boolean damageEntity(DamageSource damagesource, float f) {
    boolean damaged = super.damageEntity(damagesource, f);
    if (damaged && velocityChanged) {
        new BukkitRunnable() {
        @Override
        public void run() {
            Knockback.applyKnockback(getBukkitEntity(), null, 0);
        }
        }.runTaskLater(Kingdoms.getPlugin(Kingdoms.class), 1L);
    }
    return damaged;
    }
#

Oh nevermind, I think I found it ```java Entity entity = damagesource.getEntity();

#

wheres md5 @

#

I found him! md_5

frigid ember
#

Hey guys, how would I change the nametag with packets with protocollib per player?

    protocolManager.addPacketListener(
        new PacketAdapter(this, ListenerPriority.NORMAL, PacketType.Play.Server.PLAYER_INFO) {
            @Override
            public void onPacketSending(PacketEvent event) {
            }
        });
    }

This is what I've got so far. Using gameprofiles or scoreboards isn't an option unfortunately

true anvil
#

Could someone help me?

#
public static ItemStack createSkull(Inventory inv, int invSlot, String username, String displayName, String... loreString) {
      ItemStack skull = new ItemStack(Material.SKULL_ITEM, 1, (short) 3);
      SkullMeta skullmeta = (SkullMeta) skull.getItemMeta();
      skullmeta.setOwner(username);
      skullmeta.setDisplayName(displayName);
      skull.setItemMeta(skullmeta);  
      inv.setItem(invSlot - 1, skull);
      
      return skull;
  }```
This doesn't set it to the player skull it sets to a steve head why does it do that
#

I use it like this Utils.createSkull(inv, 11, p.getName(), "&b&lPlay Time", "Lore");

mossy zenith
#

@true anvil

            ItemStack playerHead = new ItemStack(Material.PLAYER_HEAD, 1);
            SkullMeta playerHeadMeta = (SkullMeta) playerHead.getItemMeta();
            playerHeadMeta.setOwningPlayer(Bukkit.getOfflinePlayer(targetPlayer.getUniqueId()));
            playerHeadMeta.setDisplayName(ChatColor.YELLOW+"Moderating: " + ChatColor.RESET + targetPlayer.getName());
            playerHead.setItemMeta(playerHeadMeta);```
that's what I use to do it. works fine for me.
true anvil
#

ok ill try that thanks

mossy zenith
#

yep np 🙂

true anvil
#

Im in 1.8

mossy zenith
#

oh 😐

true anvil
#

so would i change PLAYER_HEAD to SKULL_ITEM?

mossy zenith
#

probably actually

true anvil
#

ok ill try that

mossy zenith
#

and now I'm not even sure that setOwningPlayer() will be there

true anvil
#

iv been trying to find a fix for the past 2 days

#

yeah ill check

#

I cant get the uuid for a string smh

wanton delta
#

?

mossy zenith
#

UUID.getFromString()

#

iirc

mossy zenith
#

yea

wanton delta
#

UUID#fromString

mossy zenith
#

UUID.fromString()

true anvil
#

ok

#

ty

#

Yeah set owning player doesnt work

#

The method setOwningPlayer(OfflinePlayer) is undefined for the type SkullMeta

patent monolith
#

setOwner perhaps?

frigid ember
#

I'm looking for a plugin for setting up occasional broadcasts to display website/discord/dynmap links and general info

mossy zenith
#

@true anvil oh, okay 😦

wanton delta
#

setOwner is what i have

frigid ember
#

ive tried autobroadcast but it's giving me trouble

mossy zenith
#

wait a sec

river apex
#

hey what is a good scoreboard/tab list plugin

patent monolith
#

maybe try looking for an automatic command executor

mossy zenith
#

@true anvil does it take a String username or Player?

patent monolith
#

then setup commands that /say

wanton delta
#

setOwner takes the Name of the player

true anvil
#

hold on

#

string username

mossy zenith
#

@wanton delta not either or?

wanton delta
#

afaik its just the username of the player

patent monolith
#

oh, setOwner is deprecated

#

for a good reason too

wanton delta
#

1.8

true anvil
#
      ItemStack skull = new ItemStack(Material.SKULL_ITEM, 1, (short) 3);
      SkullMeta skullmeta = (SkullMeta) skull.getItemMeta();
      skullmeta.setOwner(username);
      skullmeta.setDisplayName(displayName);
      skull.setItemMeta(skullmeta);  
      inv.setItem(invSlot - 1, skull);
      
      return skull;
  }```
patent monolith
#

oh

true anvil
#

thats what i had before

mossy zenith
#

@patent monolith he's on 1.8

patent monolith
#

oof

true anvil
#

username is a string

wanton delta
#

are you sure its the correct username?

#

(debug?)

patent monolith
#

use 1.15 though, then install protocolsupport and oldcombatmechanics

frigid ember
#

does anyone know of a good broadcast plugin that supports adding click links?

true anvil
#

Utils.createSkull(inv, 11, p.getName(), "&b&lPlay Time", "Lore");

patent monolith
#

if you want a 1.8 server

#

an*

#

a**

true anvil
#

How do i debug, this is one of my first bigger plugins iv made

#

besides simpler stuff

mossy zenith
#

oh

true anvil
#

-_-

patent monolith
#

it would be much easier that way

#

and you can stay up to date

mossy zenith
#

Bukkit.broadcast(username, "some.permission.here");

#

or, p.sendMessage(username + "'s skull obtained");

true anvil
#

when i log user name to console it sends my ign

mossy zenith
#

it does say the correct name?

wanton delta
#

i found this

true anvil
#

yes

#

it does

wanton delta
#

i would assume profilestring is the json from that one mojang url i cant think of

mossy zenith
#

..

#

now this is getting way more complicated than it should need to be

true anvil
#

that looks confusin

#

yeah i asked in another discord and noone could help and linked me here and said "Have fun"

#

lol

mossy zenith
#

well in 1.15.2 it's easy

patent monolith
#

I suggest using 1.15, then install protocolsupport and oldcombatmechanics

wanton delta
#

are skins even working right now?

#

i went to mcuuid.neet

#

my skin doesnt show

true anvil
#

but doesnt that mean i have to change all other plugins?

patent monolith
#

are the others not up to date?

mossy zenith
#

probably, or at least update them

true anvil
#

Some of them require an older version

#

ok ill look into it.

patent monolith
#

well if they have the newer version on spigot, go ahead and download them

mossy zenith
#

@true anvil try it out on a test server first, and find if there are new plugins to replace your ones that require older version

true anvil
#

ok i will thanks

patent monolith
#

yeah

true anvil
#

Thats my best bet?

patent monolith
#

clone your current server

#

so you can go back if things go south

#

like copy the directory

wanton delta
#

you could also always just look at how another lpugin does it

#

for 1.8

#

and replicate it

#

nothing wrong with referencing code

#

(just dont steal it completely lol)

patent monolith
#

well afaik, isnt it possible to use vanilla commands to set skull owners?

true anvil
#

OK, ill try that first then if it doesnt work ill try 1.15

wanton delta
#

yes perzan

mossy zenith
#

@patent monolith not in 1.8 afaik

true anvil
#

could i use something like skulldatabse to reference?

#

head database*

#

wait nvm thats $10

patent monolith
#

Maybe build 1.15 and look at the SkullMeta.java

true anvil
#

ok

stone rampart
#

not super spigot related but I can't imagine asking this elsewhere

#

How can I make it so my server runs plugman unload <plugin>, copies the target artifact to the plugins diectory, the runs plugman load <plugin> on maven build or with another shortcut in intellij

nimble solar
#

Why not just live debug instead

stone rampart
#

or, in case of xy, is there another way of hotswapping on intellij?

patent monolith
#

So whenever you compile/save, it updates on the serve

stone rampart
#

^

patent monolith
#

server

stone rampart
#

yes

patent monolith
#

Live debugging o_o

#

I feel like a granny who just discovered touch screen phones

stone rampart
#

I think I tried live debugging but it froze up after 1 minute on an event or something like that

patent monolith
#

Wow im about to get an epic upgrade thanks sir

stone rampart
#

^

#

thank you ❤️

patent monolith
#

Guess it's time to move on from eclipse

stone rampart
#

it's always time to move on from eclipse

patent monolith
#

pats eclipse thank you 😢

#

I am a little attached to eclipse but there are times where we need to move on :,)

true anvil
#

Im back bc im persistant 🙂 Soooo i found code that gives you your head (Literally what i had except without a few extra things...) And when you run the command it gives it to you so i was like yk what ill try that in my utils. So i do. And yk this is the code ``` public static ItemStack createSkull(Inventory inv, int invSlot, Player p, String displayName, String string) {
ItemStack playerskull = new ItemStack(Material.SKULL_ITEM,1, (short) SkullType.PLAYER.ordinal());
System.out.println(p);
SkullMeta meta = (SkullMeta) playerskull.getItemMeta();

    meta.setOwner(p.getName());
    meta.setDisplayName(ChatColor.DARK_PURPLE + "Player Info");
    
    playerskull.setItemMeta(meta); 
  inv.setItem(invSlot - 1, playerskull);
  
  return playerskull;

}``` but it still shows steve head... No notice i printed username and this is what it printed CraftPlayer{name=GenGummy} Is it supposed to print that? Im thinging my error is where im getting th player unless its supposed to say that

patent monolith
#

Stanley the steamshovel is about to get clapped by the newer shovels

nimble solar
#

@true anvil something like this should do the trick


ItemStack item = new ItemStack(Material.SKULL_ITEM, 1 , (short) 3);
SkullMeta meta = (SkullMeta) item.getItemMeta();
meta.setOwner("Demeng");
item.setItemMeta(meta);```
true anvil
#

yes but the thing is im trying to set it for the user that opens the gui

nimble solar
#

Wdym

#

That works for GUIs as well

true anvil
#

ik

#

but i dont want it to be a specific head

#

i want it to be the player who opened the gui

nimble solar
#

meta.setOwner(player.getName()):

true anvil
#

thats whats not working

stone rampart
#

ItemMeta#setOwner is depreceated 1.15

true anvil
#

im in 1.8

stone rampart
#

oh lol

true anvil
#

yeah

nimble solar
#

That worked for me back when I did something like this :thonk:

stone rampart
#

same

true anvil
#

Hm

#

idk why it wont work for me

nimble solar
#

Try opening the GUI twice

#

Does it show Steve first time and then the actual head the second time

true anvil
#

steve head both times

#

i let the gui sit open since i sent the message asking for help

nimble solar
#

That’s weird

#

Essentials uses literally the same method I showed you

true anvil
#

i feel like its the way im gettig the player

stone rampart
#
private ItemStack getPlayerHead(String name, String player, String... lore) {
        ItemStack head = new ItemStack(Material.SKULL_ITEM, 1, (short) 3);

        SkullMeta headMeta = (SkullMeta) head.getItemMeta();
        assert headMeta != null;

        headMeta.setDisplayName(ChatColor.AQUA + name);
        headMeta.setOwner(player);
        head.setItemMeta(headMeta);

        return head;
    }```
#

my method

#

that I used

true anvil
#

hm ok

#

im just gonna try that

nimble solar
#

My project was from 2016 so no way I can find it lmfao

#

Didn’t know how to use git back then 😄

stone rampart
#

haha I wrote that literally 3 days ago

frigid ember
#

Hey guys, can someone join my test server I have to test nametags but I don't have another account usest.homehosted.pro:25566 (Version 1.8.8)

stone rampart
#

is that a joke?

nimble solar
#

Invalid IP lol

stone rampart
#

did you see it's 25566 not 25565?

true anvil
#

lmao

nimble solar
#

I can’t connect

#

Yes I did

stone rampart
#

rekt whoever I just joined and rekt nerd >:D

true anvil
#

lol

nimble solar
#

I tried both

true anvil
#

beaker it didnt work -_-

nimble solar
#

Lol

true anvil
#

nothing is there now

wanton delta
#

1.8.8 👀

nimble solar
#

At least use via version :/

frigid ember
#

Nvm I got someone

true anvil
#

Im still lost -_-

#

whats the method for 1.15 im going to try that

frigid ember
nimble solar
#

1.15 is setOwningPlayer

#

I think

scenic tendon
#

hi

frigid ember
#

@frigid ember , my plan is to have a prefix of 16 characters, and then use the name and suffix for the rest

true anvil
#

Do i need to export in different java when 1.8

nimble solar
#

No

scenic tendon
#

was wondering if anyone knew how to make votingplugin give out keys as a reward?

frigid ember
#

And I have it with protocollib where it doesn't change the name in chat but the name above the head changes

true anvil
#

so just use that plugin in 1.15?

nimble solar
#

@scenic tendon pretty sure you can just execute the commands for giving key on vote, no?

scenic tendon
#

trying to figure that out honestly

#

haven't used this plugin before

nimble solar
#

The plugin has a wiki and some YouTube videos, maybe that would help

junior tide
#

Do i have to donate to change my name on spigot?

#

Do i have to donate $10?

earnest grove
#

DOES ANYONE know how to make clickable messages?

stone rampart
#

@earnest grove message components

earnest grove
#

yes

stone rampart
earnest grove
#

but i want to do something like "do you accept [yes] [no]"

#

that tutorial doesnt explain how

stone rampart
#

literally just make a command for either yes or no

earnest grove
#

i can do this with that tutorial "[yes] [no]"

stone rampart
#

and then execute it onclick

#

yes.

#

read the whole tutorial

#

thoroughly.

buoyant path
#

If you use a entity destroy packet does it stay as long as the player stays online?

stone rampart
#

I believe so iron man

buoyant path
#

So like, if i were to do an armorstand health bar, it would stay hidden as long as I destroy it when they log in?

stone rampart
#

yep

earnest grove
#

@stone rampart

stone rampart
#

cbf

#

wait for someone else

buoyant path
#

Just add extras to the component then send it all as one component

#

@earnest grove

earnest grove
#

but how

#

@buoyant path

stone rampart
#
TextComponent acceptComponent = new TextComponent("§a[ACCEPT]");
        acceptComponent.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/duelaccept"));

        TextComponent declineComponent = new TextComponent("§c[DECLINE]");
        declineComponent.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/dueldecline"));

        TextComponent interactiveComponent = new TextComponent();
        interactiveComponent.addExtra(acceptComponent);
        interactiveComponent.addExtra(declineComponent);

        invitee.spigot().sendMessage(interactiveComponent);```
#

found some code I wrote a while ago

#

just do it like this

earnest grove
#

hmm

frigid ember
scenic tendon
#

how do i run a command when it detects a vote w/ votingplugin

frigid ember
#

How can I test if a player moved an item into a certain inv slot? InventoryDragEvent?

earnest grove
#

@stone rampart Thank you

stone rampart
#

@earnest grove if you're using it yourself

#

§ is depreceated

earnest grove
#

&a for example would work right?

stone rampart
#

no

#

wtf

earnest grove
#

the method auto translates color codes?

stone rampart
#

I don't think so?

#

use ChatColor.GREEN

frigid ember
#

Hey guys, I'm getting a null pointer exception, can this ever be null?

            Scoreboard score = Bukkit.getScoreboardManager().getMainScoreboard();
warm carbon
#

if you are using #getMainScoreboard() it depends when you are initializing score. I looked it up quickly, and since that method uses the vanilla scoreboard manager, it means that it doesn't exist and will be initialized after the worlds are loaded

#

so yeah, basically it can be null, just depends on your code as a whole

#

(at which point you call it, it will exist but at a "specific time")

dry kiln
#

Quick and easy question

#

whats the best way to get someones x y and z

#

not trying to get it based off block preferably

frigid ember
#

Hey guys, how is PlayerInfoData#getPing() different from PlayerInfoData#getLatency()

knotty karma
#

How would I go about updating liquids after setting them in my custom chunk generator via setBlock()?

tiny dagger
#

update pyshics ?

knotty karma
#

correct.

#

Also update lighting

#

(the lighting is all messed up)

frozen cedar
#
{"extra":[{"text":"Meow"}],"text":""}
#

Is there any way to parse this with Spigot's api?

fleet crane
#

ComponentSerializer

frozen cedar
#

Thankz :3

knotty karma
#

so how would I update physics/lighting in my chunk generator?

marsh hawk
#

you can get nmsWorld#getHandle()#applyPhysics

#

cant remember what args it takes

knotty karma
#

alright i'll look into that

#

thanks!

marsh hawk
#

do an if statement checking if that == null

#

yeah

#

oh wait

#

you want a boolean?

#

Sorry just confused with your question

#

if Teszt.use is a boolean you can do plugin.getConfig().getBoolean("Teszt.use")

#

or just barse it with

#

Boolean.parseBoolean(plugin.getConfig().getString("Teszt.use"))

sturdy oar
#

getBoolean(path);

#

also reading from a config each time is not a good idea

#

you should make a class that stores the values

wraith thicket
#

You're not really reading from a config (file) each time. It's cached in linked hash maps on first getConfig. With that said, if performance is what you're after, caching the exact value yourself does make sense.

scenic osprey
#

what does it mean to "load" or "unload" a world?

chrome edge
#

@scenic osprey That means what it looks like.

#

Load meaning is load the world and chunks in the world to server.

stable egret
#

server console[15:05:36] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 5012ms or 100 ticks behind

#

says this

#

occationally

#

i have 17 gb memory free

#

and it still says this

sturdy oar
#

memory is not the issue usually when the server gets overloaded

stable egret
#

then?

#

can you explain the fix?

sturdy oar
#

CPU \ plugins

#

I have no idea

#

provide a full stacktrace

keen compass
#

when it is running behind, it means the cpu can't keep up with whatever is going on in the server

#

usually this is because you are running the server on subpar hardware, it is running in a VM with subpar cpu, or plugins and/or plugins and subpar hardware lol

stable egret
#

well

#

its running on a 12 core ryzen

#

with 32gb ram

#

Ryzen 9 3900x

marsh hawk
#

Anyone got a clue why the armor stand isnt spawning with the attributes? (invisibility etc)

EntityArmorStand stand = new EntityArmorStand(EntityTypes.ARMOR_STAND, s);
        
        stand.setLocation(loc.getX(), loc.getY(), loc.getZ(), 0, 0);
        stand.setCustomName(new ChatMessage(ChatColor.translateAlternateColorCodes('&', display)));
        stand.setCustomNameVisible(true);
        stand.setArms(false);
        stand.setInvisible(true);
        stand.setNoGravity(true);
        stand.setInvulnerable(true);
        
        PacketPlayOutSpawnEntityLiving packet = new PacketPlayOutSpawnEntityLiving(stand);
        ((CraftPlayer)player).getHandle().playerConnection.sendPacket(packet);```
#

^Was working in 1.14

hoary parcel
#

,out don't send a metadata packet

#

You*

#

Metadata isn't part of spawn anymore

marsh hawk
#

oh is that so. Hm how do is pawn an entity just for one player then?

hoary parcel
#

Send a metadata packet after the spawn packet

tiny dagger
#

yup

marsh hawk
#

gotcha thanks

ripe spear
#

i have a problem with my server config its a bungee

#

server_connect_timeout: 5000
remote_ping_cache: -1
forge_support: false
player_limit: 100
permissions:
default:

  • bungeecord.command.server
  • bungeecord.command.list
    admin:
  • bungeecord.command.alert
  • bungeecord.command.end
  • bungeecord.command.ip
  • bungeecord.command.reload
    timeout: 30000
    log_commands: false
    network_compression_threshold: 256
    online_mode: false
    disabled_commands:
  • disabledcommandhere
    servers:
    lobby:
    motd: '&1Just another BungeeCord - Forced Host'
    address: 26.6.247.121:25566
    restricted: false
    hungergames:
    motd: '&1Just another BungeeCord - Forced Host'
    address: 26.6.247.121:25567
    restricted: false
    skyblock:
    motd: '&1Just another BungeeCord - Forced Host'
    address: 26.6.247.121:25568
    restricted: false
    prisons:
    motd: '&1Just another BungeeCord - Forced Host'
    address: 26.6.247.121:25569
    restricted: false
  • query_port: 25565
    motd: '&1Another Bungee server'
    tab_list: GLOBAL_PING
    query_enabled: false
    proxy_protocol: false
    forced_hosts:
    pvp.md-5.net: pvp
    ping_passthrough: false
    priorities:
    • lobby
      bind_local_address: true
      host: 26.6.247.121:25565
      max_players: 99
      tab_size: 60
      force_default_server: true
      ip_forward: true
      remote_ping_timeout: 5000
      prevent_proxy_connections: false
      groups:
      md_5:
    • admin
      connection_throttle: 4000
      stats: 3d6f1906-b3b4-4e46-a3c2-8962cba42958
      connection_throttle_limit: 3
      log_pings: true
#

thats the config

#

can u create a config for me in that stae

#

IT GIVES AERROR

#

idk

#

how

chrome edge
#

@ripe spear You should be more descriptively whenever explaining your problem.

ripe spear
#

i mean i cant start my bungee server

chrome edge
#

And try to use hastebin/pastebin which are fore text codes if your text is large

ripe spear
#

pastebin isnot working for me

scenic osprey
#

@chrome edge can you teleport to unloaded worlds?

ripe spear
chrome edge
#

@scenic osprey of course not.

#

It's unloaded.

ripe spear
#

it worked until today

#

ok i try

#

i cant add new server

#

localhost

#

ok do u mean in cha

frigid ember
#

now i wait 25 hours and still haven't got my plugin

#

@atomic rapids @zenith palm

#

I bought a plugin and haven't got it yet

tiny dagger
#

ask the dev @frigid ember

frigid ember
#

on spigot

tiny dagger
#

if 24 hrs has passed then there is a problem on spigot side

#

it happened to me too

#

i had to add him manually

frigid ember
#

i wait more than 25 hours

vernal spruce
#

You loop through each string from the configsection "Teszt" and send a message for each rather than repeating yourself

#

Also plugin.getConfig().getDouble(path) returns the number to set healt

#

Double because there are 0.5 in half a heart

ripe spear
#

Sorry

#

Powetwent out

#

I cant give u the config now

#

Sorry

sturdy oar
#

I think I've already told you this, but you should not read directly from the config each time

ripe spear
#

But tell me how do u add servers to bungee without the a problem u

#

Luke normallt

#

Normally

sturdy oar
#

?

ripe spear
#

Just put the server info in the lines

#

Right

#

I am on mobile buy earlier i showed u

#

There thats the one i send

#

Yea its happens in any part

#

But thats the defailt

#

Thats the latest bungeecord

#

Next i have is papers waterfall or travertine

#

They suck

#

For me

#

Cant u dm me

#

Pls

#

I am on mobile

#

Ok ill copy it somewhere

bold abyss
#

Hey, so I'm having a bit of an issue with bungeecord. This is a super specific situation but i havent found many resources and I have been at this for nearly 6 hours now. Everything worked perfectly fine for the longest time but suddenly today, my server could not handle more thatn 20 people moving around. Bungeecord just uses insane amounts of cpu and everyones ping goes up. Then, the bungeecord server crashes. I'm on an I9-9900k dedicated server and there would be no reason for this cpu usage. So i'm not sure what to do. Any help would be muchhhh apreaciated. Thanks

#

So like clear everything out and then only drop the jar in and restart the server?

frigid ember
#

hello

bold abyss
#

Sure

frigid ember
#

if(forward > 0){ //Vooruit
EulerAngle angle = mc.getHeadPose();
dir = new Vector(Math.toDegrees(angle.getX()), Math.toDegrees(angle.getY()), Math.toDegrees(angle.getZ()));
dir.multiply(0.35);
dir = dir.setY(player.getVehicle().getVelocity().getY());

#

armorstand doesnt move

#

mc = armorstand

#

okay

#

some expreienced coders?

bold abyss
#

Alright, I'll give that a shot! thanksss

#

Not yet, still trying to load the new jar up

#

Yes I know. I saved the stuff like you said

#

So then I deleted everything

#

Now I'm putting the Jar back in and i'm going to restart.

#

the server

#

Like so it generates the files

#

uhh

#

im winging it

daring nacelle
#

What third world english means reinstall is also stop the server...

astral flower
#

Hi guys, I've been looking for a Wanted plugin for a while to put a player every x time and that he kills him gives him a reward. I have seen similar but they are outdated can you help me one for 1.15.2

#

Skript?

bold abyss
#

I stopped the server, deleted everything, put the jar and configs back in, and I started the server.

#

After doing that, the cpu still rises to like 40% when just one player joins

daring nacelle
#

We've tried that

#

ight

ripe spear
#

Gry it worked thanks

#

@frigid ember

#

Thanks

#

For u code

#

It worked

#

No the bungee cord config u fixed

bronze marten
#

p.sendMessage(plugin.getConfig().getDouble("Teszt.Message"));

plugin.getConfig().getDouble("Teszt.Message") == double
p.sendMessage(String)

ripe spear
#

:-)

bronze marten
#

so do p.sendMessage(String.valueOf(plugin.getConfig().getDouble("Teszt.Message")));

#

then your double is 0

#

check your config at Teszt.Message :P

frigid ember
#

Who is good with vectors etc?

bronze marten
#

just do a bit of linear algebra 👌

supple elbow
#

Hello ! I have a problem with this code : p.closeInventory(); p.sendMessage(Main.logo + " §aVotre home a bien été défini sous le nom de §e" + creationHome.get(p) + "§a." creationHome.remove(p); p.getInventory().remove(new ItemStack(Material.IRON_BLOCK, 5)); p.getInventory().remove(new ItemStack(Material.GOLD_BLOCK, 1)); p.updateInventory(); All is working great except for the items. They are not removed and I don't understand why

tiny dagger
#

do they have a metadata?

supple elbow
#

nop

tiny dagger
#

I think it's removeItem

#

not remove

bronze marten
#

Try .removeItem() ?

supple elbow
#

okay I try

#

Oh god thank you so much !

bronze marten
#

yeah .remove() only works if the ItemStack in the inv is exactly the same

#

so the player should have exactly 5 iron_blocks

supple elbow
#

Oh okay, I see. Thank you !

#

I should have read the doc with more attention

#

my bad

tiny dagger
#

probabily removeIfExact would've been more descriptive

west girder
#

Hey guys I need help from you.Basically I am making OpPrison server and I will add fortune on pickaxes.I want fortune to be able to get more blocks if you mine stone,cobblestone

#

Every block that is in mine

#

Any good plugin for it?

#

1.8 version

#

???

#

plssssssssss

#

i will pay whoever helps me 😄

#

cuz i dont have time

#

and coding is not good for me

#

i get idea and pay the coders

#

to make something

#

then i sell their work

blissful verge
#

So everyone knows how hypixel skyblock has collection thingies, is there any plugin doing this for 1.15.2 or if not how tf can I make that

sturdy oar
#

So everyone knows how hypixel skyblock has collection thingies, is there any plugin doing this for 1.15.2 or if not how tf can I make that
@blissful verge "Collection thingies" ???

wraith thicket
#

'everyone knows'... Not everyone does

blissful verge
#

I mean which record like iron mined etc.

sturdy oar
#

Yeah to be honest I've never played on Hypixel once

blissful verge
#

lol

wraith thicket
#

Same

sturdy oar
#

BlockBreakEvent ?

blissful verge
#

But it basically records like iron ore broken and then if you break enough you unlock a recipe

#

So like how can I make it so when you break enough of block x you get a permission lets say iron.recipe.1

final quail
#

Anyone know much about NMS im trying to do entityplayer.spawnin it works, but the player has to relog

frigid ember
#

in the W key packet i want to move the armorstand in the direction of the headpose
EulerAngle angle = mc.getHeadPose();
dir = new Vector(Math.toDegrees(angle.getX()), Math.toDegrees(angle.getY()), Math.toDegrees(angle.getZ()));
this doenst work
?

wanton delta
#

@blissful verge statistics?

blissful verge
#

I guess

arctic stone
#

When I use the restart script I get another CMD window stating " '.' is not recognized as an internal or external command,
operable program or batch file."

c:\users\username\Desktop\Mincraft Server>

Any Idea how to fix?

sturdy oar
#

well

arctic stone
#

mines a .bat

#

mine is*

#

it still restarts, it just opens up another cmd window

#

also getting that. How do I stop programs from using that port?

sturdy oar
#

you have another server running on your same port

#

you obviously can't run two servers on port 25565 or whatever

#

you'd need to close the other before

arctic stone
#

I don't have another server running though

pine goblet
#

egyt check your task manager close all jar

#

anyone know how to link an mc account to an account on a forum (not xenforo/mybb etc)

arctic stone
#

I did that

pine goblet
#

?

arctic stone
#

I had closed all jar before, but it still says it's being used.

ripe spear
#

I had the same problem

#

Egyt

arctic stone
#

I even did a command in cmd to tell me what ports are being used

pine goblet
#

@arctic stone i thought you meant you did the account link before lmao

ripe spear
#

No thosemethods sont work

arctic stone
#

No, I had stopped all jar. 😂

#

They don't?

#

Then what does work?

ripe spear
#

Yhea

sturdy oar
#

you have something running on that port if it can't start...

ripe spear
#

Did u port foward

arctic stone
#

I port forwarded

ripe spear
#

At least try to

arctic stone
#

It worked yesterday

ripe spear
#

Did u change somethig as of yetrday

arctic stone
#

but today my internet just stopped working

#

and I had to restart router

#

maybe that is why

ripe spear
#

For me i just now use radmin vpn

#

I didnt portforward

arctic stone
#

lol

ripe spear
#

Try restarting thepc

#

And the router

arctic stone
#

I did that. But I'll restart the router again.

#

and the pc

ripe spear
#

May be it will help

#

And remove the portfoward

#

The port doesant mattet

#

The ip

#

Is the thing

#

So the local host is used with that ip

#

Or you portfoward ip

frigid ember
#

Chances are if you've restarted your router and it's now not working, you're on a dynamic IP

#

Check your external IP, see if it's changed

ripe spear
#

For me i just changed the ip of my server in rhe server prooerties fille

#

And didnt portfoward

#

I use radmin vpn

#

Its secure more

#

Than portfoward

#

I can join using thar ip now but not with localhost

frigid ember
#

I wouldn't say it's more secure

ripe spear
#

No

frigid ember
#

if anything, you're just adding more potential for exploitation lmao

ripe spear
#

But its morr

#

Nit actualy a vpn its network

#

U need to join the networj

#

To join the ip

arctic stone
#

Do I just use IP chicken to check external IP

ripe spear
#

U can easily use it without portfoward

#

Just type wahts my ip in a browser

#

Or some other way

#

Ip chiken ?

frigid ember
#

Radmin has a known backdoor

#

lmao

arctic stone
#

I'm setting a static IP using portforward software

ripe spear
#

What did u use to set tge portfoward

frigid ember
#

Check your machines IP, check your external IP and make sure neither has changed

#

Until we know that information is correct, we won't get anywhere

ripe spear
#

Yhea

#

I agree

arctic stone
#

I set my pc's IP to a different one. Gonna change the config file of server to match new IP

ripe spear
#

Yhea try that

#

Did u restart the server

arctic stone
#

I changed my external IP

paper stag
#

Any can help me for make a plugin?

arctic stone
#

gonna change the server one now

paper stag
#

Any can help me for make a plugin? if you can dm me

arctic stone
#

And yeah, it had changed

ripe spear
#

Hey i dont know very much about coding

arctic stone
#

due to it being dynamic

frigid ember
#

Thought so

ripe spear
#

Might be the case

paper stag
#

any can help me a plugin?

#

dm me if you can

frigid ember
#

Not the place to ask, go to the forums

paper stag
#

ok

arctic stone
#

YESSS!!! It worked 🙂

ripe spear
#

Wow

#

Can u join the server

#

Using the ip

#

Or localhost

arctic stone
#

Yep, I have port forwarded the port that is set.

#

Yep

frigid ember
#

Nice one

ripe spear
#

Ok now everythig us graet

#

Have a good day

arctic stone
#

Thank you for the help!

#

Thank you both*

ripe spear
#

Ok

#

👍

#

(╯°□°)╯︵ ┻━┻

frigid ember
#

somebody experience

#

with

ripe spear
#

What

frigid ember
#

yaw and pitch

ripe spear
#

Nope

frigid ember
#

?ask

worldly heathBOT
#

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.

frigid ember
#

Using worldedit?

hollow thorn
#

using bukkit

frigid ember
#

You'll need worldedit

hollow thorn
#

but i can fill an area in vannila with /fill

gentle kelp
#

can someone recommend me an anti-vpn api?

frigid ember
#

Don't know anyone that's ever used vanilla /fill lmao

hollow thorn
#

i was just wondering if there was an easier way to do it in a plugin since i dont want to make 81 variables for a small cube

#

9 i mean 9

#

how do i store multiple block types

ripe spear
#

Hello

patent monolith
#

@hollow thorn I think NMS does that anyway

#

So I mean I don't think it would be a big deal to make those references

blissful verge
#

@arctic stone

#

Atleast for me the server breaks if I use restart. Try stopping and starting server again always when you want to "restart".

arctic stone
#

Lol, I fixed it. But thank you!

ashen stirrup
#

How do you make a custom currency as a Vault Economy?

tiny dagger
#

you're using it's api and hook it to vault

#

thru the servicemanager bukkit has

ashen stirrup
#

Okay

lean steeple
#

Hello!
Does anyone knows the best way to iterate the whole world already generated chunks?
Maybe reading region files directly? It'd be really nice if an API already exists for that task
Thanks

subtle blade
#

World.getChunks()?

#

Oh you want all chunks, not just loaded ones. ehm

lean steeple
#

yep exact, I have to iterate all chunks generated in a world to get every location of every block of a particular type set as search argument

#

this task will be executed only one time and doens't matter how much time it'd take

tiny dagger
#

well then parse the region files for their x, z then load the chunk and do things to them

lean steeple
#

so i parse the region file, check which chunks it contains, load the chunk using spigot api and iterate its blocks?

tiny dagger
#

yeah

lean steeple
#

okay seems legit if there's no other solution, an API would be cool but i cannot find anything online (i want to avoid reinventing the wheel)

tiny dagger
#

i doubt there would be a better way

#

parse their name split dot get 1 and 2

#

then parse them to int

#

x and z

arctic stone
#

The server restarts but that pops up.

tiny dagger
#

run file name maybe instead?

arctic stone
#

file name?

#

wdym?

tiny dagger
#

the bat filename

arctic stone
#

yeah, I run the file name.

tiny dagger
#

no

#

i mean as a command

arctic stone
#

ohh, you mean run.bat

tiny dagger
#

run run.bat

#

or was it start run.bat

arctic stone
#

I use a plugin to do an autorestart. I'll send a screenshot of my .bat file

pine goblet
#

anyone know how to link an mc account to an account on a forum (not xenforo/mybb etc)

#

just to a website in general

arctic stone
tiny dagger
#

this works for me

arctic stone
#

I still get that popup

tiny dagger
#

i don't

#

it's the same window for me

arctic stone
#

do you use a plugin to do an autorestart?

tiny dagger
#

no

arctic stone
#

or timer?

tiny dagger
#

i just /stop

arctic stone
#

ok

hoary parcel
#

why would you use cms gc?...

subtle blade
#

I really should do more research on Java and its GCs

#

I know next to nothing

frigid ember
#

how do i know if someone jumping

hoary parcel
#

theres an event

#

PlayerJumpEvent

pastel basin
#

did they add PlayerJumpEvent?

frigid ember
#

Ok.

pastel basin
#

last time I search for it there wasn't

frigid ember
#

it isnt.

pastel basin
#

only paper has playerjumpevent

#

you'll need to make your own playerjumpevent if you want to be compatible with spigot

boreal tiger
#

does entity-activation-range override the entity's pathfinder range?

frigid ember
#

so there is no way i can use playermove event to know if a player is jumpin?

tiny dagger
#

you definetly can but it won't be only for jumping

frigid ember
#

thats probably fine.

silk bane
#

for a bungee PluginMessageEvent sent from a connected server to the bungeecord server, how can I get the player that the message was sent through?

tiny dagger
#

it's not in the event?

silk bane
#

well I don't see it

#

there's getSender and getReceiver

#

which are Connection objects

tiny dagger
#

Connection sender, Connection receiver, String tag, byte[] data

silk bane
#

i imagine one of them is the spigot server and the other is the proxy server

tiny dagger
#

it might be sender

silk bane
#

since the plugin message never gets sent to the player

tiny dagger
#

/**
* Creator of the action.
*/
private final Connection sender;

silk bane
#

but if it's being sent to a player....

tiny dagger
#

it's send or received?

silk bane
#

sent from spigot to bungee

tiny dagger
#

it should be sender imo

silk bane
#

so what would receiver be

tiny dagger
#

i don't know, you have to try i guess

#

try to get the class paths

silk bane
#

was a getPlayer too much to ask for 😭

tiny dagger
#

more details in the java docs would've been more useful

quasi rapids
#

Any of you heard of Apex minecraft hosting? Cause I need some help...

tiny dagger
#

there are a bunch of hosting sites

#

like a lot

#

so good luck getting that 1

chrome edge
#

I found so strange thing... If you put custom head on gui in thread and if there's another custom head in same slot, it would be very slow. Does anybody know that issue?

frigid ember
#

why 1.8.8

#

why not 1.8.9?

#

why not 1.4

#

ah yes.

#

@quasi rapids they use multicraft as their panel so go ahead?

subtle blade
#

1.8.9 had no server release

frigid ember
#

Hey guys, when I try adding a player to a scoreboard team no one sees the prefix or suffix

    String prefix = "[32Longcharacterprefix] ";
    PlayerConnection connection = ((CraftPlayer) p).getHandle().playerConnection;
    PlayerInfoData pid = event.getPacket().getPlayerInfoDataLists().read(0).get(0);

    ScoreboardTeam team = new ScoreboardTeam(
        ((CraftScoreboard) Bukkit.getScoreboardManager().getMainScoreboard()).getHandle(),
        p.getName());

    team.setPrefix(prefixScoreboard.toString());
    team.setSuffix(suffixScoreboard.toString());

    ArrayList<String> playerToAdd = new ArrayList<>();

    playerToAdd.add(pid.getProfile().getName());

    connection.sendPacket(new PacketPlayOutScoreboardTeam(team, 1));
    connection.sendPacket(new PacketPlayOutScoreboardTeam(team, 0));
    connection.sendPacket(new PacketPlayOutScoreboardTeam(team, playerToAdd, 3));

    PlayerInfoData newPid = new PlayerInfoData(pid.getProfile().withName(nameScoreboard.toString()),
        pid.getPing(), pid.getGameMode(), WrappedChatComponent.fromText(name));
    event.getPacket().getPlayerInfoDataLists().write(0, Collections.singletonList(newPid));
sharp dew
#

if you do it this way only the player p will receive the packet and so only him will see the change

frigid ember
#

The player I want to have the prefix is the player with the name pid.getProfile().getName()

sharp dew
#

you have to get the connection of him not the connection of p

frigid ember
#

But then how would p be able to see the prefix?

sharp dew
#

The player I want to have the prefix is the player with the name pid.getProfile().getName()
@frigid ember
i dont get it who of the 2 players need to see the prefix

frigid ember
#

p has to see the prefix of the player with the name pid.getProfile().getName()

sharp dew
#

you can't change chat messages with packets because the server handles the chat and the prefixes

#

if you want p to get the prefix of pid you should use the packet for sending a chat message to p

wheat summit
#

Just quickly how would I make an explosion?

#

I just need to make a quick plugin for myself and want arrows to explode, here's what I have so far:

        for(Entity entity: SpanishCore.get().getServer().getWorld("world").getEntities()) {
            if(entity instanceof Arrow) {
                if(entity.getVelocity().equals(new Vector(0, 0, 0))) {
                    //Explode
                }
            }
        }
#

Small spanish project ^

#

Nevermind got it

#

Or if there is some event to make it look a bit nicer?

brisk mango
#

World#createExplosion iirc

wheat summit
#

Ok thanks, is there some event to check if the arrow lands or only by a task like above?

clever hornet
#

my plugin RandomPackage loads in but none of the commands work, when I click the java file it says invalid or corrupt files and idk how to fix it can anybody help?

frigid ember
pastel basin
#

@wheat summit ProjectileHitEvent is called when the projectile hits an object

wheat summit
#

Ah ok thanks a lot!

inland depot
boreal tiger
#

you should post the code for EnvoyManager

inland depot
#

i'll make an edit

boreal tiger
#

also, not related to the issue, if possible dont call everything a Manager

#

sometimes manager doesnt really explain what the class does

inland depot
#

yeah true

#

i'll make sure to stop doing that

#

what code do you want from the EnvoyManager?

#

bc i dont think any of the methods from it are causing the errors

wheat summit
#

Does anyone know where the server .jar is? for some reason I can't find it...

#

Download for it

boreal tiger
#

you have to run buildtools @wheat summit

wheat summit
#

Ok thanks

boreal tiger
#

@inland depot I think the problem is you're not doing singletons properly

#

you're trying to create an instance of the class outside of the constructor

brisk mango
#

@subtle blade do vanilla items have an ItemMeta?

boreal tiger
#

if possible you shouldnt even be using singletons

inland depot
#

i dont think its possible

boreal tiger
#

and instead use dependency injection

brisk mango
#

don't use singletons

subtle blade
#

It's best to assume they may not

#

ItemMeta is nullable

inland depot
#

i have multiple classes that need info from the EnvoyManager class

brisk mango
#

ah thank you, as i thought

subtle blade
#

If you're fetching it from a vanilla source, it most likely will not have meta

boreal tiger
#

you can pass the instance around

subtle blade
#

(unless it obviously does have some sort of meta - name or whatever)

inland depot
#

I'm trying to make one instance and use it for multiple classes

boreal tiger
#

you can do that without a singleton

#

you can add a getter

#

for

brisk mango
#

xUltraGaming

boreal tiger
#

EnvoyManager in your main plugin class

brisk mango
#

that's how dependency injection works

#

it uses one instance

#

of the class

inland depot
#

i have a getter for it in my main class

#

i ran into an issue with it

boreal tiger
#

yes but you're initializing it

#

in a weird way

inland depot
#

how would you recommend initializing the envoymanager in the onenable

boreal tiger
#

EnvoyManager should have a constructor that you pass your plugin instance to

brisk mango
#

also, dependency injection is more testable/reusable,
explicit cohesion and defined ordering of how classes are used

frigid ember
#
            Scoreboard score = Bukkit.getScoreboardManager().getMainScoreboard();

            if (score == null) {
                p.sendMessage("null score");
                return;
            }

            Team team = score.getTeam(newPid.getProfile().getName());

            if (team == null) {
                p.sendMessage("creating new team");
                team = score.registerNewTeam(newPid.getProfile().getName());
            }
            team.addEntry(newPid.getProfile().getName());

Hey guys, why are team prefixes and suffixes not showing up

inland depot
#

@boreal tiger I removed all of the getInstance() methods and references and added a constructor the EnvoyManager

#

Gonna test it now

#

I fixed the error, now I need to see if the instance worked

clever hornet
#

how do I fix jar file is corrupt or invalid

#

can I do that with a server hosting company?

#

ite

inland depot
#

fun, the original error is back

frigid ember
#

1.8

marsh nova
#

@frigid ember That's vanilla 1.8 behaviour. Name tags are limited to 16 characters afaik

frigid ember
#

@marsh nova I'm making it so that 16 character prefix for the prefix + 16 for the name, and then the players real name goes in the suffix, so instead of dividing it up into 16 / 16/ 16 I'm doing 32/16

marsh nova
#

Like I said, the complete name tag can't be longer than 16 characters

frigid ember
#

48

#

Your mistaken

marsh nova
#

Why didn't you say that previously?

#

Also, where are you getting that number?

frigid ember
#

16 for the prefix, 16 for the name, and 16 for the suffix

marsh nova
#

what would that do?

frigid ember
#

I have it so that if you have 32 characters in the config as a prefix, it sets the team prefix to the first 16 characters, and then your name gets sent to the other 16, and then your real name gets put in the suffix

#

@frigid ember have you tried retrying

marsh nova
#

I see

frigid ember
#

Are you able to come on?

#

First one to come on gets $0.10

#

OK FINE

tiny dagger
#

Gg

bronze marten
#

+1

naive goblet
#

+2

frigid ember
wraith thicket
#

When in doubt, look at source

frigid ember
#

Yeah, I'm having trouble finding where they do it

#

Hey guys, do you know how to fix player skins being set to alex when I do this

            PlayerInfoData newPid = new PlayerInfoData(pid.getProfile().withName(nameScoreboard.toString()),
                pid.getPing(), pid.getGameMode(), WrappedChatComponent.fromText(name));
            event.getPacket().getPlayerInfoDataLists().write(0, Collections.singletonList(newPid));
steep eagle
#

i'm using this for skins:
gameProfile.getProperties().put("textures", new Property("textures", npcdata.texture_value, npcdata.texture_signature));

#

What is event for right clicking armor in hand? BlockPlaceEvent and/or PlayerInteractEvent doesn't work (allows me to still to equip it)

wanton delta
#

what is the velocity of an entity when it is standing still? its not 0 apparently...

#

or velocity.length

steep eagle
#

are you checking if entity is standing still or something different?

wanton delta
#

yea

#

i wanna know if its standing still

steep eagle
#

add threshold. velocity.length < 0.1 or something

wraith thicket
#

I'd suggest you use Velocity#lengthSquared instead to avoid the costly square root

wanton delta
#

thanks for the tip

#

and yea i should probably debug what the minimum is

#

thanks for that suggestino

whole plume
#

I Have an problem, How can i convert an String to Double without it to look like this: 1.23456789E8

crimson cairn
#

@wanton delta

#

is it <0, -0.0784, 0>?

whole plume
#

i tried:

 public static double getMoneyFormat(double balance) {
        String pattern = "";
        if (MF == 1)
            pattern = "#0";
        if (MF == 2)
            pattern = "#0.0";
        if (MF == 3)
            pattern = "#0.00";
        if (MF != 3 || MF != 2 || MF != 1)
            pattern = "#0";
        DecimalFormat formatter = new DecimalFormat(pattern);
        Double balance2 = balance;
        String formatted = formatter.format(balance);
        if (formatted.endsWith("."))
            formatted = formatted.substring(0, formatted.length() - 1);
        return Double.valueOf(formatted).longValue();
    }
crimson cairn
#

if so, divide Y by 0.98, and then add 0.08

wanton delta
#

nah i jsut realized the velocity only matters when the player is airborne

crimson cairn
#

Player#getVelocity() is broken btw

#

at least in 1.7-1.8

#

not sure in 1.15

rugged pelican
#

is there a Spigot 1.7.10 download anywhere? and if so, is there a way to run Forge Mods on it? and Spigot can run Bukkit Plugins right?

wanton delta
#
  1. use buildtools
#
  1. spigot does not support forge mods
crimson cairn
#

buildtools doesnt have 1.7

wanton delta
#
  1. yes
#

oh?

#

well

#

anyways

#

you're looking for sponge i believe

#

this isnt the discord for that

rugged pelican
#

Okay, so then, is there a way to get Spigot for 1.7.10?

crimson cairn
#

not really

#

well, no official way

#

you can download it off some sites, but im afraid if i post it here I'll get harassed by the people here

#

or you can go to ipvp's github repository, clone it, and compile it

#

it's a paperspigot fork, though

rugged pelican
#

What's PaperSpigot?

crimson cairn
#

a fork of spigot

#

a fork is basically a mod, or extension

#

pretty much spigot, but with some slight changes to the code

sturdy oar
#

why the hell are you using 1.7.10

rugged pelican
#

So... whats the Differences between Paper Spigot and Spigot?

#

Trying to set up a modded server for a friend

crimson cairn
#

slight changes in the code. paperspigot claims to run faster than spigot

sturdy oar
#

then you'll need Sponge

#

if you want forge mods

frigid ember
#

Hey when I want to start my server I get this problem :

[21:57:48] [Server thread/INFO]: Starting minecraft server version 1.15
[21:57:48] [Server thread/INFO]: Loading properties
[21:57:49] [Server thread/INFO]: This server is running CraftBukkit version git-Spigot-f39a89e-4633e6c (MC: 1.15) (Implementing API version 1.15-R0.1-SNAPSHOT)
[21:57:49] [Server thread/INFO]: Debug logging is disabled
[21:57:49] [Server thread/INFO]: Server Ping Player Sample Count: 12
[21:57:49] [Server thread/INFO]: Using 4 threads for Netty based IO
[21:57:49] [Server thread/INFO]: Default game type: SURVIVAL
[21:57:49] [Server thread/INFO]: Generating keypair
[21:57:49] [Server thread/INFO]: Starting Minecraft server on *:25565
[21:57:49] [Server thread/INFO]: Using default channel type
[21:57:51] [Server thread/WARN]: **** FAILED TO BIND TO PORT!
[21:57:51] [Server thread/WARN]: The exception was: java.net.BindException: Address already in use: bind
[21:57:51] [Server thread/WARN]: Perhaps a server is already running on that port?
[21:57:51] [Server thread/INFO]: Stopping server
[21:57:51] [Server thread/INFO]: Saving players
[21:57:51] [Server thread/INFO]: Saving worlds
#

could anyone help me please?

rugged pelican
#

I was gonna try to use Cauldron

crimson cairn
#

@frigid ember some other application is already running on port 25565

sturdy oar
#

close your other services on port 25565

frigid ember
#

how do I stop that ?

sturdy oar
#

you can do it from htop

frigid ember
#

?

sturdy oar
#

or a task manager

frigid ember
#

Yeah but I don't know what are the services that run on my port

crimson cairn
#

well in that case you can go into your server.properties file and change the port to something else

frigid ember
#

what I want or ?

crimson cairn
#

yes

#

but you'll need to connect with <your address>:<port number>

frigid ember
#

okay

crimson cairn
#

for example, if you changed your port to 32523, your address would look like this 123.456.789.012:32523

frigid ember
#

I understood ^^

#

Thanks for the help

crimson cairn
#

you're welcome

arctic stone
#

How do I allow the regular players to claim in a radius?

#

Nvm, wrong discord

odd rover
#

Does anyone know why this isn't working?

File userdata = new File(Bukkit.getServer().getPluginManager().getPlugin("DonationClaim").getDataFolder(), File.separator + "userdata");
File playerFile = new File(userdata, File.separator + uuid + ".yml");
sturdy oar
#

wut why are you getting your own plugin like that

naive goblet
#

@odd rover use DI or MainClassName.getPlugin(MainClassName.class) as an instance of main. You also don’t need to create a File instance for a directory. Make something like this.

File user = new File(MainClass.getDataFolder() + File.seperator + “userdata”, uuid + “.yml”); 
if (!user.exists()) user.createNewFile();```
#

(It’s recommended to use DI of main for managing userdata plainfiles)

odd rover
#

thank you conclure :) using parts of your example, I was able to fix it :]

naive goblet
#

😉

nimble solar
#

DI?

#

oh dependency injection

frigid ember
#

i'm at the end of my rope guys. i can't figure out how to create a hyperlink in chat that works unless it's a /tellraw, which i cant get to work on broadcasts

smoky tundra
#

im sure there is a plugin out there which will let you do that

frigid ember
#

i'm using chatmanager for broadcasts

#

Hey, any help for massive lag on a small server ?

#

i've looded ceasely for a plugin that would do that for me too

#

looked*

#

@glacial drum Check out NameTagEdit GitHub would be my advice, they use teams to set playernames but dont intervene with scoreboards

#

o/ hello.
Just looking at Bukkit Bungee Messaging Channel.
Is there any way I can get the server a player is on?

#

I've seen it a million times before where people have / commands or broadcasts containing hyperlinks. I just can't figure it out xD please help!

#

@glacial drum You could see how to put players on multiple teams from it possibly

#

@frigid ember look at base component

#

is that a plugin?

#

finding something about bungee and it

#

no luck still

valid brook
#

does anyone know how to upload a paper.jar into the multicraft panel?

#

(not using a hosting company, just regular multicraft)

wraith grail
#

Having a issue, I am trying to convert the block placed into water level 7. But it simply evaporated despite my attempt to turn off blockphysics.
Here's the code:
``
public class OnBlockPlaceListener implements Listener {

@EventHandler
public void onPlayerBlockPlace(BlockPlaceEvent event) {
    NameOfPlugin mainclass = JavaPlugin.getPlugin(NameOfPlugin.class);
    Player p = event.getPlayer();
    
    if (event.getBlock().getType().equals(Material.LAPIS_BLOCK)) {
        if (p.isOp() && mainclass.MakeWaterLeveled7 == true) {
            event.getBlock().setType(Material.WATER);
            p.sendMessage("Yo we heard you wanted special water.");
            
            Levelled waterlevel = (Levelled) event.getBlock().getBlockData();
            waterlevel.setLevel(7);
            event.getBlock().setBlockData(waterlevel, false);    
        }
    }
}

}
``
Basically, I want ultra thin water. When I test it out I do indeed see the lapis block turning into water level 7. But then it almost immediatly dissapears, almost as if it's evaporating. I don't want that.

tiny dagger
#

why do you get plugin instance like this?

frigid ember
#

Hey guys.
Do you know where I can get help with massive lag on a small server 🙂 ?

tiny dagger
#

use /timings

frigid ember
#

Only 6 player active, server is quite powerful, tps is between 10 and 17

tiny dagger
#

i see world save spike

frigid ember
#

i see a whole lot of numbers 😳

tiny dagger
#

too many entities maybe?

cloud sparrow
#

what cpu is the server on.

frigid ember
#

There's not THAT much. Fews cows, I've reduced activation to "12" for animals.

cloud sparrow
#

and rest of it's specs

frigid ember
#

8 core intel 2.4ghz

cloud sparrow
#

ssd or hdd

frigid ember
#

10GB allocated to the VM

#

SSD

boreal tiger
#

what plugins are you running?

frigid ember
#

WorldBorder, that's all

torn isle
#

Hey.. Hello

#

quick question... how to show all map, which command i use as OP? Ty in advance

marsh hawk
#

Im getting a Could not pass event EntityDeathEvent error when using EntityLiving#damage any way around that?

dusty topaz
#

you're trying to damage an entity when they die? lol

marsh hawk
#

It's only on the killing strike, the mob is still alive when called

bronze marten
#

you're trying to damage an entity when they die? lol
Extra death

subtle blade
#

lol

dusty topaz
#

It's only on the killing strike, the mob is still alive when called

#

okay, so i guess the error is just #damage is broken

#

🤦

lusty vortex
#

@frigid ember Show config

frigid ember
lusty vortex
#

auto-removal: minecart: true

Change to minecart: false

frigid ember
#

thx man

#

@lusty vortex by

- this_world <-This world will be ignored during removal!

#

oh wait

#

i cant find that

#

the auto removal

#

AH

#

thx

#

Hello I can't connect to my localhost's server

[01:54:11] [Server thread/INFO]: /127.0.0.1:50663 lost connection: Internal Exception: io.netty.handler.codec.DecoderException: java.lang.NullPointerException
#

That's the problem

patent monolith
#

@frigid ember what ip are you entering on minecraft?

frigid ember
#

localhost:25566

patent monolith
#

25566?

frigid ember
#

I changed the port cause 25565 are in use

patent monolith
#

Do you have another server running as well?

frigid ember
#

No

#

Theres another services that use 25565

patent monolith
#

What service?

frigid ember
#

Idk

#

So that why I changed

patent monolith
#

Restart the machine

frigid ember
#

?

#

Its on my pc

patent monolith
#

Use 25565

#

And restart your pc

frigid ember
#

Already

#

restarted

patent monolith
#

What does it say when you try to use 25565?

frigid ember
#

It stops the server

#

Wait i'll give you the log

#
[21:57:48] [Server thread/INFO]: Starting minecraft server version 1.15
[21:57:48] [Server thread/INFO]: Loading properties
[21:57:49] [Server thread/INFO]: This server is running CraftBukkit version git-Spigot-f39a89e-4633e6c (MC: 1.15) (Implementing API version 1.15-R0.1-SNAPSHOT)
[21:57:49] [Server thread/INFO]: Debug logging is disabled
[21:57:49] [Server thread/INFO]: Server Ping Player Sample Count: 12
[21:57:49] [Server thread/INFO]: Using 4 threads for Netty based IO
[21:57:49] [Server thread/INFO]: Default game type: SURVIVAL
[21:57:49] [Server thread/INFO]: Generating keypair
[21:57:49] [Server thread/INFO]: Starting Minecraft server on *:25565
[21:57:49] [Server thread/INFO]: Using default channel type
[21:57:51] [Server thread/WARN]: **** FAILED TO BIND TO PORT!
[21:57:51] [Server thread/WARN]: The exception was: java.net.BindException: Address already in use: bind
[21:57:51] [Server thread/WARN]: Perhaps a server is already running on that port?
[21:57:51] [Server thread/INFO]: Stopping server
[21:57:51] [Server thread/INFO]: Saving players
[21:57:51] [Server thread/INFO]: Saving worlds
#

@patent monolith

#

Hello I can't connect to my localhost's server

[01:54:11] [Server thread/INFO]: /127.0.0.1:50663 lost connection: Internal Exception: io.netty.handler.codec.DecoderException: java.lang.NullPointerException

Nvm it was ProtocolLib who do that error

patent monolith
#

@frigid ember what does your server's startup batch file look like? What's in it?

frigid ember
#

I fixed the problem

#

Thanks anyway

patent monolith
#

Did you click on the jar by accident?

#

@frigid ember what was the problem?

#

._.

placid hamlet
#

Need help finding a plugin that allows users to get efficiency 6 power 6 sharp 6 etc on an enchantment table at low chances, and allows players to add mending books, etc to kits that have efficiency 6 on items (essentials unsafe enchantments)
Any help would be appreciated

frigid ember
#

@patent monolith I said

#

it was ProtocolLib

patent monolith
#

Ih

#

Oh

frigid ember
#

Guys I keep getting this error

java.lang.NullPointerException
at me.phaze.tab.Tab.changeSkin(Tab.java:206) ~[?:?]
at me.phaze.tab.Tab$1$1.run(Tab.java:137) ~[?:?]
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71) ~[spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:723) [spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_242]
#
        ((CraftPlayer) pl).getHandle().playerConnection.sendPacket(
            new PacketPlayOutPlayerInfo(EnumPlayerInfoAction.REMOVE_PLAYER, ((CraftPlayer) p).getHandle()));

#general for more code

            Player target = Bukkit.getPlayer(pid.getProfile().getName());

            Bukkit.getConsoleSender().sendMessage("----" + pid.getProfile().getName());