#help-archived

1 messages · Page 3 of 1

proper sapphire
#

does the keepchunksloaded plugin automatically load all chunks?
or is there a command

green lodge
#

as long as it semi works

hasty forge
#

how to find out by nickname a licensed account or not

quick arch
#

what

#

Offline mode?

old heart
#

I'm just wondering if someone could explain to me quickly why IntelliJ is recommending me putting @NotNull before the method, (I wrapped in asteriks)

    *@NotNull*
    public static Boolean doesSenderHavePermission(@NotNull CommandSender commandSender, String permissionNode){
        if(!commandSender.hasPermission(permissionNode)){
            TextComponent message = new TextComponent(ChatUtils.colorize(FileManager.GetStringFromFile("config.yml", "Messages.NoPermission.Message")));
            if(message.getText().isEmpty())
                return false;
            String hoverMessage = ChatUtils.colorize(FileManager.GetStringFromFile("config.yml", "Messages.NoPermission.Hover").replace("{Node}", permissionNode));
            if(!hoverMessage.isEmpty()){
                message.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder(hoverMessage).create()));
            }
            sendMessageToSender(commandSender, message);
            return false;
        }
        return true;
    }```
hasty forge
#

Offline mode?
@quick arch no

#

just wondering if nick has a license KoHfeTkA

old heart
#

Cheers @fluid basin

hasty forge
quick arch
#

what

tiny dagger
#

isn't the array a primitive too since it's O(1)?

subtle blade
#

Arrays are not primitives, no

zealous yoke
#

an array isnt a primitive as it can be null, even an array containing primitive elements

subtle blade
#

An array can contain primitives, but the concept of an array is not primitive

tiny dagger
#

oh

hasty forge
#

just say that you don’t know. why ask why why

quick arch
#

uuids are randomly generated in offline mode

#

so it most likely wouldn't work at all

unreal anchor
#

UUIDs are not randomly generated with online-mode=false

#

They are type 3 UUIDs based on the username that joins.

hasty forge
#

I just need to know. friend asked to know the nickname "KoHfeTkA" already taken?

unreal anchor
#

So if I join an online-mode=false server as 'mbaxter' I will always have the same uuid there

quick arch
#

wonky

unreal anchor
#

As of march 8th that name has been taken

hasty forge
#

спасибо родные помогли

#

thank

last acorn
#

Hi was hoping that u could help me with adminshop, can u?

tiny dagger
#

Does anyone know why EntityWithers are invisible if you've extended over them?

stuck nebula
#

probably some entity id registration at a guess

wooden harness
#

perhaps a large increase in traffic/covid

old heart
#

It's been slow all day for me too @iron ravine

frigid ember
final verge
#

report the thread, this isnt the place to get staff to remove or delete things

unreal anchor
#

Oh hey it's that site that injects obfuscated, malicious code into its downloads! (I got bored and took one apart)

final verge
#

ALso you dont need to post it in every single chat

#

That helps no one

unreal anchor
#

They used to just inject a remote killswitch for their plugins but now it's something far more detailed that I haven't bothered to dig into much yet.

#

So, from the perspective of providing help in the help channel- don't download from there, it's malicious.

sharp hollow
#

I have the some version of their Anti-Piracy source code 👀

green lodge
#

hmmm how can I get the time left in a BukkitRunnable

#

as an example count down when there's 10 seconds left

velvet halo
#

You declare a float variable for time...?

#

It's not difficult

narrow basin
#

Any spigot builds for 20w14a?

radiant sierra
#

what are you basing your time off of, as in do you know exactly how long this bukkit runnable will take each time? or is it varying

green lodge
#

I know each time

radiant sierra
#

if you dont, what is your idea of "time" for the task being run

green lodge
#

ticks

velvet halo
#

He wants a countdown xD

#

20 ticks

#

is a second

green lodge
#

right

radiant sierra
#

are you running a loop, or is your runnable soley for the purpose of doing a countdown

green lodge
#
        new BukkitRunnable() {
            @Override
            public void run() {
                giveItem();
            }
        }.runTaskTimer(this, delay, period); //Delays in ticks
#

like this

#

I'm a bit new to Java programming atm so I apologize

velvet halo
#

private int time = 10;
plugin.getServer().getScheduler().runTaskTimer(plugin, ()->{
    if(time <= 0) //give item
}, 0L, 20L);
green lodge
#

Still learning while doing plugins as well

#

That works

#

thank you

radiant sierra
#

looks good to me ^^

velvet halo
#

make sure to make it a bukkit task tho

#

So you can also cancel the scheduler so it doesn't run forever

green lodge
#

Is bukkit runnable not used as much as scheduler

#

or are they both situational

velvet halo
#

It is the same time.

green lodge
#

oh interesting

velvet halo
#
public abstract class Countdown {

    private int time;

    protected BukkitTask task;
    protected final Plugin plugin;


    public Countdown(int time, Plugin plugin) {
        this.time = time;
        this.plugin = plugin;
    }


    public abstract void count(int current);


    public final void start() {
        task = new BukkitRunnable() {

            @Override
            public void run() {
                count(time);
                if (time-- <= 0) cancel();
            }

        }.runTaskTimer(plugin, 0L, 20L);
    }

}
#
new Countdown(time, plugin) {      
                                   
    @Override                      
    public void count(int current) {
                                   
    }                              
                                   
}.start();     
#

This is the first spigot link I found when researching on google.

#

You will find most of your questions if not all your questions on spigotmc.org

limber marlin
#

huh?

#

how can i make them have AI then

solemn grove
#

any nice sqlite library out there?

velvet halo
final verge
#

H2 itself thou makes your jar thicc so it's a give and take

velvet halo
#

That library looks nice!

final verge
#

yeah it uses classes to make tables

#
public class AxesTable {
  @Column(autoIncrement = true) private int id;
  @Column(primaryKey = true) private String uuid;

  @Column(defaultValue = "0") private int current_exp;
  @Column(defaultValue = "0") private int current_level;
}```
solemn grove
#

Don't really want to depends on other plugins tho

velvet halo
#

It isn't a plugin

#

You shade it into your jar

final verge
#

and if i add new columns in the future then it auto adds them

#

to the table

velvet halo
#

That is so chill 😄

final verge
#

im not too good with sql so my queries are jank af but it's functional mostly thanks to this xD

velvet halo
#

I honestly need to find a nice SQL library

#

I have been working with Apache cayenne

final verge
#

What library is old @frigid ember ?

velvet halo
#

However it is kinda of a pain to setup.

final verge
#

ahhh xD

velvet halo
#

Yeh lol

#

How do you create relations Diamond with the library you sent?

final verge
#

not sure about relations. I can ask ethan but I just have a table for each of my skills with the players UUID's as the primary key

solemn grove
#

I wanted a standalone dB file so I guess sqlite is the way to go

final verge
#

For simple DB it's nice for me to use since I don't have too much time to dedicate to making sure new fields exist/get added etc. This just handles it for me xD

radiant sierra
#

diamonddagger im no sql/db genius but quite certain your queries can highly benefit from making them relations rather than standlone tables, in terms of caching results

velvet halo
#

I shall look into the source code more, I am sure I can find it

final verge
#

I'm not much of a database expert, ethan highkey made this library just so i can have an easier time with it and focus my time on other areas xD

#

Once I move out of beta I plan to go and start recoding chunks and cleaning things up

#

Eventually moving away from FlatDB to something else

velvet halo
#

Yeah makes sense

final verge
#

Im running a custom fork that removes guava as a dep since spigot i think contains it natively so it is just bulk on the jar

velvet halo
#

Yes it does contain it natively

#

That would be a smart idea

radiant sierra
#

just browsed through flatdb, i dont think it has relational support? is that the point its supposed to be "flat"

#

that kinda went over my head

velvet halo
#

Yeah...

final verge
#

Yeah, but you probably can expose the driver since it runs using h2 natively to add your own

velvet halo
#

one to many relations are so powerful and nice tho xD

radiant sierra
#

many to many.....

velvet halo
#

and many to many

radiant sierra
#

for player -> skills though yes

#

got a question actually, most/all of my dev work is outside mc, so i got a question about version support

#

is viaversion the go to plugin for multiple version support

#

or do many servers have custom versions of that

final verge
#

Yes and no. There is via version and viarewind. (Forward and backwards compatibility respectively). Almost all servers that have multiversion support have those and not custom ones. But they can offer issues in between versions so the experience isn't uniform across all versions even with those plugins

radiant sierra
#

gotcha, thank you

velvet halo
#

There is probably a way where you can make a spigot.jar support versions 1.8+

final anvil
#

@frigid ember So how the code must looks like

#

I dont know

austere dock
#

when im trying to install JRE8 which thing should i download

zenith palm
#

I think the bot got them

austere dock
#

i just download this

#

it brought up a bunch of options again

narrow basin
#

Hey i have a problem
I cant connect to my server

#

I have a hyper fall server (same as bungee but 1.16 support) and a spigot server as lobby to connect but it doesnt

untold wren
#

anyone good with litebans or have customized litebans?

austere dock
#

ive got the jdk-14 what do i do from there

#

ive dowloaded a file jdk-14 then what do i do

sharp nebula
#

Hi there,
i'm making a plugin that use NMS and i got a problem, i want to make my NPC moving at a player location.
I try this but not working and i don't know why

Constructor<?> packetPlayOutEntityConstructor = getNMSClass("PacketPlayOutEntity$PacketPlayOutRelEntityMove").getConstructor(int.class, short.class, short.class, short.class, boolean.class);
            Object packetPlayOutEntity = packetPlayOutEntityConstructor.newInstance(how_get_entity_id_here ?, (short) location.getX(), (short) location.getY(), (short) location.getZ(), true);

            sendPacket(player, packetPlayOutEntity);```
#

i don't know how to get my npc ID

#

and i don't know if it's the right way to dot it

#

if you have an solution ping me i gonna sleep, thx

zenith palm
#

?ban @inland cosmos Ban evading

worldly heathBOT
#

🔨 Banned 365558671108997142 indefinitely

fluid egret
#

@sharp nebula You have to spawn the entity first...

#

Then use that entity id to send the move packet

sharp nebula
#

Yes the entity is spawn

#

I have an EntityPlayer

#

But i don't have an .getId

frigid ember
#

@sharp nebula that's...not what that means

#

entity ids are pre-defined for each entity type

sharp nebula
#

Ok thx

#

But a player what is it's id ?

frigid ember
#

Then what is he looking for

quick arch
#

He's looking for the entity's id when they are spawned in

#

i.e. player.getEntityId() something like that

#

It shows in console when you join the server

sharp nebula
#

Yes but it return UUID

quick arch
#

but there's a method to get it

#

what

sharp nebula
#

@quick arch i need an int not an UUID that why i'm block. Mby i miss something that i don't undertsand (first time i use nms)

thorny crag
#

Idk if this is really spigot related, but I seem to have an issue exporting a library. In my class path in intellij I have it checked and scope is compiled. Is there something Im missing that I need to do to include a library with my plugin?

#

Any help is appreciated 🙂

cloud sparrow
#

gradle or maven or no>?

thorny crag
#

Maven

cloud sparrow
#

what library?

thorny crag
#

JFreeChart and JFreeCommon

#

Also just more info, I also include each libraries in the artifact section as well.

#

So they're included with the Artifact and Module Dependencies

sharp nebula
#

@frigid ember i gonn a try this tomorrow thx for the help

thorny crag
#

Okay a bump... I decompiled the jar file and I can see that the library is indeed being exported with the plugin. Anyone have any ideas why this may not be working? I've been on this for 3 hours and I'm literally dying.

#

I think I need to initialize the library jars or something.

unreal anchor
#

You haven't actually described the issue yet

thorny crag
#

My issue is that when the plugin is ran, it cant find the libraries classes

#

Im getting a java.lang.NoClassDefFoundError

#

org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: org/jfree/data/category/CategoryDataset

unreal anchor
#

And is that class in that position?

thorny crag
#

Yes, it was part of a constructor of the same library. I set it to null so it can skip it and see if any other objects come up with that exception and the next one does as well.

#

I tried some example code from there website, and same thing... When the jar file is loaded, do I need to manually initialize the libraries jar? I can't understand why I can access the classes, since they are indeed being exported

zenith palm
#

Sorry I wanted to report it to Discord's trust and safety team

proper sapphire
#

what is the best claim plugin?

zenith palm
#

oh damn

nimble solar
#

They don't give a crap unless its serious

#

basically if the problem can be solved by blocking/banning they dont care

cloud sparrow
#

Spigot likely just needs a discord hook

#

so if they decide to join it's just more work for them.

#

and ban on them.

zenith palm
#

It's a shame servers cant blacklist image hashes

sharp hollow
#

You could, but you'd need a bot specifically for that kind of thing

thin osprey
#

I guess that won't really help, I mean someone how uses so many vpns just for fun is surely able to to code a program to change one random pixel of the image to a random value :/ @zenith palm

wooden harness
#

It does

buoyant star
#

^ only works on media

proper sapphire
#

can someone tell me what the best land claiming plugin is?

final verge
#

It depends on what you want it for

#

Creative? PlotSquared I think is one of the popular ones. Survival? Towny or Lands. Factions? Any faction plugin out there

thorny crag
#

Okay to those who where helping me earlier or care, I found another library and was able to manually import it to my source code, this isn't practical and I dislike it, but thats my solution. Thank you for help 😄

patent matrix
#

Why is my server crashing?

wooden harness
#

Sorry our magic 8 ball is busted

zenith palm
#

Why is my server crashing?
@patent matrix you need to give more information

frigid ember
#

How do I check whether player's armor has Fire Protection enchantment?

fleet crane
#

?jd

worldly heathBOT
fleet crane
#
  • getInventory + getArmorContents + getItemMeta + Enchantment.PROTECTION_FIRE
languid summit
#

ItemStack itemStack = new ItemStack(Material.IRON_CHESTPLATE);
if(itemStack.getEnchantments().containsKey(Enchantment.PROTECTION_FIRE))

#

@frigid ember

#

player.getInventory().getArmorContents();

frigid ember
#

Thank you guys 👍

unkempt plover
#

you are my god @fleet crane

subtle blade
#

No reason to get the item meta, it's on the item stack

median hare
#

Can anyone tell me how to customize the loot tables for chests in the hunger games plugin

tiny dagger
#

Treat each chest as unique? 🤔

#

And when it's opened for first time add n items randomly or based on rarity

median hare
#

But what about adding items to the regular loot tables of the chests like iron ingots

#

Like the commands or something for it

viral seal
cloud sparrow
#

@viral seal LimitsAPI.java:272

#

what is on that line.

ripe igloo
#
> [02:01:09 WARN]: at me.ulrich.limits.api.LimitsAPI.getPermPlayerLimit(LimitsAPI.java:272)```
viral seal
#

It seems to be throwing that error for one specific user.

cloud sparrow
#

Why are you in a decompiler.

viral seal
#

Because I don't own the plugin.

cloud sparrow
#

well issue is in getPermPlayerLimit api.

#

decompilers don't show the right number always.

viral seal
#

Ah ok thanks. Unfortunately the plugin isn't open source so I can't do much and the dev isn't that active. 😦

cloud sparrow
#

Guessing it was a private plugin?

viral seal
#

No I linked it above, it's public on Spigot 😛

cloud sparrow
#

Issue is in the config.

viral seal
#

o

cloud sparrow
#

whatever you are running for the block

#

type

#

"LimitedBlocks." + blocklimit + "." + blockpermission

#

oh nvm

#

permission*

#

@viral seal

#
if (p.hasPermission(FileManager.getConfig().getText("Config.BasePermission").replace("%group%", blockpermission))) {

}
viral seal
#

Sorry for being an idiot, what's the issue? 😛

cloud sparrow
#

permission

#

it's null

viral seal
#

o

cloud sparrow
#

Config.BasePermission

#

that's what the code says at least.

viral seal
#

well I did notice his uuid wasn't in the yaml file for data

#

@cloud sparrow just to confirm: the plugin is checking for his uuid in the file but can't find it then proceeds to throw said error?

cloud sparrow
#

issue is the config

#

the plugin's config

#

not someone's data

viral seal
#

ok

#

so nothing I can do

cloud sparrow
#

Config.BasePermission

#

Issue is on the %group% portion likely

viral seal
#
  Tag: '&d&lSKILLS &8|&f'
  BasePermission: 'ulimits.limit.%group%'```
hmm weird. i'll let the dev know
#

thanks a bunch!

unborn wolf
#

hey

#

i have made a cell that a normal person can rent, but they cant okace or nreak anything only open the door

#

i have set the priority on 10 for the cell and 1 for the main claim

#

how do i fiz thet

cloud sparrow
#

contact the developer

unborn wolf
#

i am the delepoer of my server

#

or do you mean this servers develepor ?

tiny dagger
#

a server owner is not a developer in my opinion

unborn wolf
#

i am also only dveloper

#

but also

#

co owner

#

cux

#

itts my friends who pays for it

keen magnet
#

hi guys

#

such a stupid thing

#

but my InventoryMoveItemEvent doesn't get called

old heart
#

Have you registered your events and labelled it @EventHandler

keen magnet
#

yeah, and I have other events in the same class and they get called

#

it's really weird

old heart
#

Can you write a sysout on the first line of the event to see if it gets called at all?

keen magnet
#

I did and it doesn't

#

it never gets called

old heart
#

Can I see your class?

keen magnet
#

the InventoryMoveItemEvent is the one that isn't working

old heart
#

What are you expecting the event to be called?

keen magnet
#

when?

#

That class is a custom inventory and I tried moving items to it

#

I also tried with a chest

#

and a hopper

#

nothing works

tardy harness
#

Kompye can we see how you register the events?

keen magnet
#

sure

#
backpack = new Backpack(backpackItemsFile);
getServer().getPluginManager().registerEvents(backpack, this);
minor laurel
#

Did I hear someone needed help.

#

Can you provide if there's any other logs?

#

and what is Backpack? assuming it's a listener or can you provide your event that is specifically InventoryMoveItemEvent?

keen magnet
#

There's no error or anything but I can give it to you if you want

minor laurel
keen magnet
#

Backpack is an InventoryHolder and a Listener

#

I sent the class above

minor laurel
#

Ok I am assuming you do backpack per player which can be obviously laggy of course.

keen magnet
#

I do

minor laurel
#

As you registered individual listeners per inventory.

keen magnet
#

there's only one instance of backpack

#

when I want a player to open it I just do openInventory(player)

subtle minnow
#

Anyone knows what would be the reason for Proxy connection lost error? (Server crashing and then restarts)

minor laurel
#

Can you provide a error log @subtle minnow?

#

@keen magnet but you aren't listening as that'd be just opening whatever inventory 0 is.

subtle minnow
#

Sure one moment

minor laurel
#

There's no difference per player and will always be the same inventory btw.

keen magnet
#

oh

#

let me check

subtle minnow
#

@minor laurel I can't send files here can i dm it to you?

#

Pastebin, doesn't work since it's too large.

keen magnet
#

whoops

#

kyle you were right

#

how can I fix this

minor laurel
#

@subtle minnow sure and can you convert it from a log to a pastebin while I go do something else instead?

#

@keen magnet well what's the point of the arraylist for inventories?

keen magnet
#

there are multiple pages

minor laurel
#

is that just a cache of 1 inventory that won't change?

subtle minnow
#

@minor laurel It's too large to be converted.

minor laurel
#

@keen magnet add it into a hashmap

#

UUID, INVENTORY

keen magnet
#

okay

minor laurel
#

Might be a way to help you with it.

keen magnet
#

yeah it makes sense

minor laurel
#

@subtle minnow Give me a few to fire up my log converter then (no idea it is broken).

subtle minnow
#

sure take ur time

#

It works fine with me (using Notepad++)

#

without converting

minor laurel
#

Just noticed that thought it would mess up like in the past it did.

keen magnet
#

@minor laurel it worked 😄 tysm for letting me know that

#

but I still have the event issue :/

old heart
#

If you get a hopper going into a chest does the event fire?

keen magnet
#

nope

#

I tried

#

no

#

that's the problem

#

I have this in the main class

#
Backpack backpack = new Backpack(backpackItemsFile);
getServer().getPluginManager().registerEvents(backpack, this);
tiny dagger
#

@EventHandler is present above the event?

#

does it implement Listener?

old heart
keen magnet
#

I think it's something that has to do with the inventory-per-player logic :/

tiny dagger
#

i mean

keen magnet
#

is there an event limit per class? though I doubt it

tiny dagger
#

no

#

i just think the way you design it is wrong

#

imo

#

i would have done differently per player inventory

#

as of moment it looks like it wouldn't scale well

keen magnet
#

I modified it

#

because every player had the same inventory

tiny dagger
#

this is okaish but still it wouldn't scale imo

keen magnet
#

it works tho

#

maybe I'll redesign it a bit after solving the event issue

tiny dagger
#

but when you will have to add new features to it you for sure youre gonna have a harder time

keen magnet
#

I mean I will change it as @frigid ember said

#

but is my problem related?

keen magnet
#

After removing the InventoryHolder implement, how do I check if a player has this inventory open?

#

for the events

frigid ember
#

Hello, how to let a player lay down in 1.14.4? There is no USE BED packet in the latest mc protocol!

#

😐

white basin
#

Any idea why mySQL while testing inside a testing class in IntelliJ

    @Override
    public List<String> getTables() {
        Connection connection = getConnection();
        List<String> tables = new ArrayList<>();
        try {
            ResultSet resultSet = connection.getMetaData().getTables(null, null, "", null);
            while (resultSet.next())
                tables.add(resultSet.getString(3));
        } catch (Throwable throwable) {
            throw new IllegalStateException("Failed to get tables", throwable);
        }
        System.out.println("Found Tables for mysql: " + tables);
        return tables;
    }```
Returns ``Found Tables for mysql: [stats, stats_testing]``
When testing inside plugin (same database, same code) it returns  ``Found Tables for mysql: []`` Any idea?

I've found out that's it's the mysql driver version 5.1.48 but works fine on latest
dusk briar
#

Hey together :)
Is it possible to connect with a vanilla MC client to a spigot instance?

#

No plugins are installed, simply and MC server (spigot)

old heart
#

You use the normal minecraft client to connect to a spigot server, correct

dusk briar
#

ok, then smth. on my server side goes wrong ^^

old heart
#

Whats your error message on the client

dusk briar
#

a red X - the server has docker isntalled and uses an imigae for the mc-spigot server

#

but it seems, that smth. isn't going through the container, to connect to the mc server ^^

old heart
#

Can you screenshot the error message on the client, win key + shift + s

dusk briar
old heart
#

That means that the client can't connect to the server, are you sure that the server is running and the hostName is correct

dusk briar
#

but it seems, that smth. isn't going through the container, to connect to the mc server ^^
@dusk briar

#

means, that smth. important is missing, in our docker environment, where the server runs @old heart

#

and yes, the server runs smoothly

old heart
#

Maybe someone else can help you, i'm not quiet sure what the issue is

zenith siren
#

Is there a way to pause a for-loop for an X amount of time with a scheduler?

#

I have a list with commands and I want to execute those commands right after each other but sometimes if the string in the list is wait <seconds I want the for-loop to wait that amount of time to go to the next command

frigid ember
#

did anyone know what packets will be sent when a player sleep?

hasty crag
#

i think its the sleep animation packet

#

nvm

#

unless you need when they leave bed

frigid ember
#

i want to let a player lay on the ground.....

#

g o o g l e

#

use it

hasty crag
#

did you just thumb up your own message

frigid ember
#

no ;/

#

and i always send USE BED packet on 1.7.10

hasty crag
#

lmao purplex

frigid ember
#

but it is doesn't have any packet about "BED" on the current protocol on wiki.vg

woeful juniper
#

what did i do wrong for essentials kits

#

kits:
tools:
delay: 86400
items:
- 272 1
- 273 1
- 274 1
- 275 1
food:
delay: 86400
items:
- 260 16
- 297 8
iron:
delay: 86400
items:
- 256 1
- 257 1
- 258 1
- 267 1
- 306 1
- 307 1
- 308 1
- 309 1
- 364 16
diamond:
delay: 86400
items:
- 277 1
- 278 1
- 279 1
- 276 1
- 310 1
- 311 1
- 312 1
- 313 1
- 364 16
op:
delay: 86400
items:
- 277 efficiency:1 1
- 278 efficiency:1 1
- 279 efficiency:1 1
- 276 sharpness:3 1
- 310 protection:1 1
- 311 protection:1 1
- 312 protection:1 1
- 313 protection:1 1
- 364 24
- 322 4

zenith palm
#

?paste

worldly heathBOT
zenith palm
#

Please paste your code into that

woeful juniper
#

the numbers are red

#

for enchantment lvl

stable cove
#

It is normal that I haven't the Material.java, Blocks.java and Items.java when obtain source code with BuildTools ?

zenith palm
stable cove
#

@fleet crane

woeful juniper
#

EssentialsAntiBuild-2.x-SNAPSHOT
EssentialsChat-2.x-SNAPSHOT
EssentialsGeoIP-2.x-SNAPSHOT
EssentialsProtect-2.x-SNAPSHOT
EssentialsSpawn-2.x-SNAPSHOT

#

thats what im using

zenith palm
#

looks like numbers around the wrong way

#

it should be

#
    delay: 86400
    items:
      - 277 1 efficiency:1
      - 278 1 efficiency:1
      - 279 1 efficiency:1
      - 276 1 sharpness:3
      - 310 1 protection:1
      - 311 1 protection:1
      - 312 1 protection:1
      - 313 1 protection:1
      - 364 24
      - 322 4```
woeful juniper
#

i had that originally but it still didnt work

frigid ember
#

yea

#

wat

#

👀

zenith palm
#

might be a yml formatting issue

frigid ember
#

ssam add me

#

im a big fan

#

big fan of u

#

if u dm me my dream will be achieved

#

and add me too

zenith palm
#

i had that originally but it still didnt work
@woeful juniper found the issue, you had one space in front of "OP"

woeful juniper
#

oh dang

zenith palm
#

try that

frigid ember
#

nce videos ssam

#

im big fan

#

your yt videos

woeful juniper
#

im gonna give it a try

zenith palm
#

im gonna give it a try
@woeful juniper good luck 🙂

#

i didn't test that config

woeful juniper
#

it worked

#

lmao imagine one space caused 2 hours of work

#

fp

#

so it worked but im not getting the food at the bottom of the kit

#

for kit op

frigid ember
#

@hoary parcel am still waiting for proper docs on vgl2

#

👀

hoary parcel
#

I mean

#

Code is the documentation 😂

frigid ember
#

Negatory

hoary parcel
#

And there is examples and you can just annoy me with questions

#

But like, vgl is not where I want it to be and I don't have a reason to continue working on it

frigid ember
#

So aka don't use vgl because abandoned

#

Gotcha thx!

hoary parcel
#

Unless you are open to change stuff in it

#

It's definitely not unmaintainable

frigid ember
#

maybe but i need to understand how the fucc it works first

hoary parcel
#

The core concept isn't that hard, and that's written in the docs

#

I thought about doing a v3 before but I have no way to tell I'll actually finish that either

frigid ember
#

the docs are literally broken; wiki on GH tells me i can't 'edit' the wiki (??) when i click a page and your whole site (voxelgameslib.com) is broken

#

404s

#

so...ye

#

also bad ssl

#

ah the edit page thing is bc the page doesn't exist

#

and a whole lot of:

There is not much here yet, but in the future this will be the place to be for finding documentation for VoxelGamesLib

hoary parcel
#

Try that

frigid ember
#

well that works

tiny dagger
#

what would be the best license to stop others from selling code yet i still have the right to sell the code if i want to 🤔

frigid ember
#

Correct, no license at all gives you full control.

#

(However, it also restricts people from using it at all.)

tiny dagger
#

uh, that easy

frigid ember
#

Yes, if you include no license, exclusive copyright to the owner is implied

#

You can say it is "Copyright <year> <your name>. All rights reserved."

hoary parcel
#

No clue why my domain got fucked like that

#

On work time right now and haven't started my personal PC yet so can't check

frigid ember
#

not a big deal

#

oh shoot am in the help channel

#

how do i get a java server online

#

with a custom ip

tropic nacelle
#

hostnames lol

crimson raft
frigid ember
#

like hypixl when u type in their ip

crimson raft
#

Its a domain

#

you buy the domain name, and link it to the ip

frigid ember
#

yea but ok so like im using ngrok and it chnages the ip evertime

#

i want to use something that doesnt do that so i can get a custom ip

crimson raft
#

its the same just more handy to remember

frigid ember
#

alr but like how do i get a stable ip that doesnt change everytime i start the server

crimson raft
#

how you host your server?

#

local?

#

on your own pc?

frigid ember
#

yea

crimson raft
#

okey, does your ip change each time?

frigid ember
#

im look for an alternative to ngrok

#

yea

#

the server ip changes everytime

crimson raft
#

try port forwarding

#

see if your public ip changes a lot

frigid ember
#

alr

#

@frigid ember Since your hosting the server locally, your IP address will still continue to change unless you have a static IP address provided by your ISP.

crimson raft
#

if you cant port forward, you would need to make like a vpn tunnel to another server

#

or proxy

#

and have it connect to that

sour dock
#

doesn't have to be hamachi

half cairn
#

buy a domain name. for example mcserver.com
and link play.mcserver.com to your server ip
@crimson raft
Every time that I try I need to paste my port after the ip... Can I make it without a port?

sour dock
#

our servers run on a home server through an openvpn tunnel to a VPS

#

@half cairn use port 25565

half cairn
#

Instead of my own port?

sour dock
#

if the server listens on the default port you don't have to specify it on the client

half cairn
#

My server is hosted on a server with the port 20001

sour dock
#

you could do SRV records but that has issues

half cairn
#

I'am using SRV records at this moment. But I can only join my server with the port after it

sour dock
#

if your SRV record is set up properly, you don't have to

uneven cradle
#

How can I access a variable that is set in a command from another class?

sour dock
#

make it a public static field

crimson raft
#

@crimson raft
Every time that I try I need to paste my port after the ip... Can I make it without a port?
@half cairn you need to make a sub Domain
for example if you have the domain mcserver.com you should link it to your website.
Now you create a sub domain called "play" so you have play.mcserver.com
In the setting of the sub domain. you should be able to define the port in the record

#

you should do a "A" record for the sub domain

#

a normal A record is preferred as some dont accept ipv6 by default...

uneven cradle
#

The problem is that if I do that then IntelliJ complains about public not being alowed.

crimson raft
#

IntelliJ ???

uneven cradle
#

Yes.

crimson raft
#

oh

uneven cradle
#

IDE.

crimson raft
#

well what is the error

#

see why its complaining XD

uneven cradle
#

Modifier "public" is not allowed here

sour dock
#

make sure it's a field

#

you can't make a variable in a method public

uneven cradle
#

Ohh, is that the problem?

#

So where would I put the variable to fix it?

sour dock
#

outside of a method

uneven cradle
#

But I can't set the variable outside of a method because it uses the player.getPosition() function.

#

So it has to be inside the onCommand boolean.

sour dock
#

declare it outside, assign in inside

uneven cradle
#

Ah, OK.

#

So just in the main class then?

#

You see, one of my commands logs player position when it is run, and the other one makes a call to that variable when it runs.

ashen stirrup
#

If you cast int to a coordinate, e.g block.getX(), will it go from 000.00 to 000?

uneven cradle
#

But wait, if I declare the location outside the player boolean what do I pass to it as a stand-in value?

dusky herald
#

By a coordinate, you would mean a Double. Integers can be cast to Doubles, but they dont have any decimal values.

ashen stirrup
#

So if you cast integer to a double it stops being a decimal?

dusky herald
#

So it would turn from 0.00 to a whole number 0

ashen stirrup
#

Great

dusky herald
#

Integers have no decimal values.

#

Doubles do.

ashen stirrup
#

Good

dusky herald
#

So yes.

sour dock
#

if I declare the location outside the player boolean
I don't know what that means

#

and yeah a field is probably not the way to do it but that was the question

#

you should rethink this

uneven cradle
#

Well all I want is to be able to get a position in one if statement and reference it in another.

random prism
#

Hello there, pretty new in here

#

I wish to install a modpack on my spigot server

#

And i have absolutely no clue on how i do this

uneven cradle
#

You don't run modpacks on Spigot, you run them on Forge.

random prism
#

So i can't install mod from anywhere except this link you juste send ?

sour dock
#

what "mods" are you talking about?

#

if you mean forge mods, no, they'll only run on forge (or spongeforge)

random prism
#

Well i've been searching a mods list and found one, can i send the link in here ?

ashen stirrup
#

What's a good way to split this string?
I'm making a plugin where it needs to write the coords to a config file, the way I'm doing it is as a string:
xCoord;yCoord;zCoord

And then I'm using the following code to split that string

for (Object o : oreLocation.getConfig().getConfigurationSection("placed").getKeys(false)){
                String mainString = String.valueOf(o);
                String[] sort = mainString.split(";");
                World world = Bukkit.getWorld(String.valueOf(oreLocation.getConfig().get("placed." + String.valueOf(o) + ".world")));

                Location blockPlaced = new Location(world, Integer.parseInt(sort[0]), Integer.parseInt(sort[1]), Integer.parseInt(sort[2]));
                placedOres.add(blockPlaced);
            }

This doesn't seem to work though, does any one have any ideas?

sour dock
#

why are you storing the keys in an object then converting them back to a string

#

just make the var in the for loop a string

ashen stirrup
#
placed:
  -415;78;241:
    world: world
#

It's stored like this

sour dock
#

and use getString instead of String.valueOf(config.get(

random prism
#

This is the modpack i'm wish to use

ashen stirrup
#

Store it like

'-415;78;241'
dusky herald
#

kxuy, I'm also curious

#

nvm

#

lol

#

Are you getting stacktrace errors?

ashen stirrup
#

One second, let me print them

dusky herald
#

Also, even though you sorted them by colons;

#

the last one would still have the ':' in your sort, correct?

#

So are you getting a NumberFormatException error?

ashen stirrup
#

No

#

No error at all for some reason

dusky herald
#

Are you sure that the Object : o for loop is running then?

#

Are these ores also all the same kind of ore? I noticed theres no block-type associated with it.

ashen stirrup
#

The for loop is running

#

I had that idea at first

#

(This was me coding at 4am)

#

But I couldn't figure going from 1: to 2: to 3: and so on

#

I'll try again now lmao

random prism
#

No one knows ?

dusky herald
#

@random prism Are you using a minecraft server host or running from home

#

nvm

#

its a modpack

random prism
#

Well, actually i'm on a panel name AMP Spigot

#

Yeah, i know that is a modpack

hasty crag
#
RayTraceResult rayTrace = player.getWorld().rayTraceEntities(player.getEyeLocation(), player.getEyeLocation().toVector().normalize(), 40);```
#

I'm trying to use this to get an entity a player is looking at

dusky herald
#

I couldn't tell you why it doesn't work. I havent played in awhile and I'm not too familiar with modding the client that much anymore.

hasty crag
#

Wait I might know why

tribal coral
#

Is it possible to update a premium resource while it is awaiting approval? I have noticed a plugin-breaking bug

ashen stirrup
#

I'll give it a try

tribal coral
#

So what should I do? Is my plugin going to be approved eventhough there is a bug?

#

Or is a review only to check if there are no illegal data being sent to a personal database or something?

#

Because if it is actually being tested, nothing will happen because of the bug haha

dusky herald
#

Probably more or less just quality control.

tribal coral
#

Alright

#

Cool

#

No worries then

dusky herald
#

Having premium resources uploaded would mean you'd want specifications followed, and for them to actually be "premium". If they overloaded the website with premium resources without an approval, nor quality control then there wouldn't be a difference between normal resources and premium, just a price tag.

ashen stirrup
#

So I did a bit of debugging and logged some of the strings
For some reason, it prints the coordinates 3 times.

                getLogger().log(Level.SEVERE, positions[0]);
                getLogger().log(Level.SEVERE, positions[1]);
                getLogger().log(Level.SEVERE, positions[2]);

It prints this 3 times
-415
68
241

hasty crag
#
RayTraceResult rayTrace = player.getWorld().rayTraceEntities(player.getEyeLocation(), player.getEyeLocation().toVector().normalize(), 40);```
Using this detects the player that it's raytracing from
ashen stirrup
#

I know it is

hasty crag
#

Any idea how to make it continue raytracing without detecting the player

ashen stirrup
#

For some reason it still doesn't work 🤔 Genuinely lost here.

Location blockPlaced = new Location(world, Double.valueOf(positions[0]), Double.valueOf(positions[1]), Double.valueOf(positions[2]));
#

Because when I store it as a double it messes it up since "-415.00, 68.01, 241.23" will end up with:

placed:
  -415:
    00;68:
      01;241:
        23:
#

I added another debug line

getLogger().log(Level.INFO, "Ore added at \'" + String.valueOf(Double.valueOf(positions[0]) + ", " + Double.valueOf(positions[1]) + ", " + Double.valueOf(positions[2])) + "\'");

Every time it prints it 3 times

vernal lance
#

because you can't use points in yml files

#

it'll make it a sub configurable data

ashen stirrup
#

I know

vernal lance
#

just replace it with a placeholder

ashen stirrup
#

I know, it's a block location, it doesn't particularly need to be a double

#

It can be an Int

vernal lance
#

probably better then ye

zenith siren
#

Is there a way to pause a for-loop for an X amount of time, without pausing the whole thread and thus pausing the server?

ashen stirrup
#

I didn't

#

I was giving an example of how it'd be with doubles

#

It didn't change, it's still

placed:
  -415;78;241:
    world: world
#

That's an example of how it'd look if I stored them as doubles rather than integers

#

I know! I'm saving them as Integers!

fickle coral
#

ChatSerializer.a("{text: \"Map\", color: \"blue\", bold: \"true\", clickEvent: {\"action\": \"open_url\" , value: \"108.61.239.35:8467\"}}");
This gives me an error saying json is malformed. I dont know json so yikes

unkempt vigil
#

Hey, does anyone know about a good "RTP" plugin that does the following:

  • RandomTeleports me in "Survival" world only.
  • And actully works.
  • When people do RTP in "Spawn" world they will get teleported to "Survival" world and random teleported.
    Please tell me 🙂
crimson raft
#

@unkempt vigil why dont just do per world perms?

ashen stirrup
#

So, I started debugging again and tried to teleport myself to where the block is on the config and it seems to be getting the location right

unkempt vigil
#

How can that help me, @crimson raft?

crimson raft
#

block rtp in spawn world
not giving the perms in spawn world
random tp in survival only
only give the permissions in survival

unkempt vigil
#

Edited my message, @crimson raft.

crimson raft
#

i dont think you can define it like that to be honest....

#

must be some specific plugin if you want it to teleport to another dimension let alone random teleport.

ashen dove
#

How can i check if a player is WALKING, not MOVING, like, he is moving on his own (pressing the movement controls)

unkempt vigil
#

join vc 2 if someone can help me with rtp plugin

frigid ember
#

@ashen dove check if server isn't sending any velocity applying packets to the player and if the server isn't teleporting the player, this way you can know that it isn't knockback

uneven cradle
#

Could someone please walk me through creating a Location object?

#

I had a look at that, the bit I don't understand is how to define the world the player is in.

pallid portal
#

so mobs, they kinda all over the place, is there a plugin that fixes it?

uneven cradle
#

OK, but the thing is I'm having to define the variable outside the onCommand boolean so that I can use it outside the if statement in which it is assigned.

pallid portal
#

I need a plugin where mobs don't all spawn at one person

uneven cradle
#

Paper has a feature where you can have the mob cap per person.

pallid portal
#

I don't really lag at all

#

I have dropped frames

#

so lag isn't the issue I guess

#

but that plugin is very nice

uneven cradle
#

What, Paper?

pallid portal
#

doesn't work with 1.15

uneven cradle
#

Paper does.

frigid ember
#

anybody know how to use IPWhitelist?

zenith palm
#

?fw is more robust

worldly heathBOT
pallid portal
#

anyone know how to fix the mob spawning issue? if many people are on the server it seems mob spawning is quite bad

frigid ember
#

i think i set it up properly

radiant sierra
#

hey was wondering if there is a way to make players spawn at the spawnpoint of my hub after leaving and coming back. Wanted to know if there is a config setting for this or would I need to download/create a quick plugin to do this for me, thank you

cloud sparrow
#

/setworldspawn

#

in the world.

#

Oh wait my bad that's first time.

radiant sierra
#

yaa

#

i have advanced portals, any way that i can do /server <servername> make it warp to a advanced portals destination?

#

./server <servername> would be from a different server

sour dock
#

easiest would be to use one of the many "teleport to spawn on join" plugins

radiant sierra
#

kk, was just tryna see if there was an easier config way to do this, thanks

pallid portal
#

anyone know how to fix the mob spawning issue? if many people are on the server it seems mob spawning is quite bad just @ me

cloud sparrow
#

send a timings report @pallid portal

solemn grove
#

btw the /locate and cartographer's map are killing my server
is there any fix other than killing every cartographer (spigot way)?

fathom shard
frigid ember
#

approval takes 1 week usually

tropic nacelle
#

You can PayPal choco for express approval

frigid ember
#

null in server tick loop 😼

#

really?

#

lmao

#

no he doesn't approve

#

he doesn't do approvals

#

@subtle blade is it true people pay you to get faster approval?

vernal lance
#

wait really?

#

👀

#

might make use of that LUL

tropic nacelle
#

It's usually the price of the resource + $5

subtle blade
#

I don't usually do approvals and no we don't take bribes for faster approval

tropic nacelle
#

Officially, he doesn't.

round lichen
#

Can somebody help me?

subtle blade
#

Absolutely not. never. Not in this Discord

#

No, but really, what's your question

round lichen
#

...

#

ok

#

where?

subtle blade
#

I'm kidding 😛 Ask here

round lichen
#

Im making a troll plugin where I can type /troll <player> and a GUI opens and I can select the troll. SO i did that and now I want to freeze somebody. But I need to make a listener in a listener then so Im confused. CAn you join gen2?

tropic nacelle
#

Another troll GUI plugin

#

Nice

round lichen
#

xD

#

anybody join gen2 pls

tropic nacelle
#

Just cancel move event m8

#

Set speed to 0

#

Ez

round lichen
#

how do I add slow to the max value?

#

?

#

Both

#

I did: target.setPotionEffect(PotionEffectType.SLOW, Integer.MAX_VALUE, true);

#

thats what I have

#

thx bro

thorny quartz
#

hi everyone, I'm looking for a plugin that adds thirst in Minecraft, I wish it was a bossbar that shows you how thirsty you are. and when you have almost the empty bar it gives you negative effects.
Is there one?

P.S. I have already seen the "Thirst" plugin but it is broken in 1.15.2

round lichen
#

Does anybody has a server i can try my plugin on?

#

Bec its a troll plugin and I need somebody to troll

#

I do but nobody can join i can troll

#

I cant

#

I made it so you cant troll yourself

#

and no ops

languid summit
#
    public static void addItemsToPlayer(Player p, List<ItemStack> items){
        if(items != null && !items.isEmpty()){
            boolean dropped = false;
            for(ItemStack itemStack : items){
                if(itemStack != null && itemStack.getType() != Material.AIR){
                    if(itemStack.getAmount() > itemStack.getMaxStackSize()){
                        for (int i = 0; i < itemStack.getAmount(); i++) {
                            itemStack.setAmount(1);
                            HashMap<Integer, ItemStack> nope = p.getInventory().addItem(itemStack);
                            for(Map.Entry<Integer, ItemStack> entry : nope.entrySet()) {
                                p.getWorld().dropItemNaturally(p.getLocation(), entry.getValue());
                                if(!dropped) dropped = true;
                            }
                        }
                    } else {
                        HashMap<Integer, ItemStack> nope = p.getInventory().addItem(itemStack);
                        for(Map.Entry<Integer, ItemStack> entry : nope.entrySet()) {
                            p.getWorld().dropItemNaturally(p.getLocation(), entry.getValue());
                            if(!dropped) dropped = true;
                        }
                    }

                }
            }
            if(dropped) p.sendMessage(ChatColor.translateAlternateColorCodes('&', "Your inventory is full, the item was thrown to the ground!"));
        }
    }

round lichen
#

but i need to be op to execute the command

#

so

#

wait whats that wasmake

#

wdym

#

I could

#

but then the GUI gets opened to the sender

frigid ember
#

Is it possible to restart a server in the same cmd?

round lichen
#

so does somebody have a server?

foggy mural
#

Hello guys 🙂
Do you know an anti fly plugin?
just that, not a general anti cheat

frigid ember
#

So just make your test server cracked

#

That's what I used to do

molten whale
#

Does anyone knows where does this type of color codes come from? \u00A77

#

Yeah, but where I can see like a full list.. or something like that..

main cave
#

\u00a7 is the unicode thingy for uh this §

#

but yeah just google "Minecraft color code list"

molten whale
#

Ohh

main cave
#

so many sites

molten whale
#

Yeah

#

So its \u00a7 and then the number

#

okkk

torn peak
crimson raft
#

LEL

#

useclearlagg

subtle blade
#

Don't use \u00A7 in source, please. Use the ChatColor constants

torn peak
#

my server can barely start up

tidal pulsar
#

§

main cave
#

but yeah also that

tidal pulsar
#

jkjk

torn peak
#

I really don't know why its starting to load with that many chunks

proper sapphire
#

using ultimatehomes how do I set it so everyone can have 10 homes?

tropic nacelle
#

Ya read da docs

proper sapphire
#

would I find that in the lang.yml?

#

what does that mean

#

do I put that in lang.yml

#

i have luckperms

#

/lp editor wont work

#

how does one make a group/ do that

round lichen
#

does anybody have a server I can try my troll plugin on?

old heart
#

use ur own server and fire up two accounts noone is going to add your plugin and op you on it

proper sapphire
#

@frigid ember I did it, but how do I assign someone to a group

round lichen
#

@old heart en5 ho do I get a second account?

proper sapphire
#

ty

old heart
#

set online-mode=false in server.properties

round lichen
#

wdym

#

online mode?

proper sapphire
#

it says command not reconized

old heart
#

@round lichen Normally minecraft verifies your username with mojang when you login however if you turn off online-mode in the server.properties file it will allow players who don't have an actual minecraft account to join. Which means if you create another account that isn't a 'real' account it will be able to join

proper sapphire
#

is there a quicker way to add people instead of typing their name per person\

old heart
proper sapphire
#

ty

round lichen
#

Yo Thanks @old heart

proper sapphire
#

do I have to reload the pl;ugin after i do iot

rough root
#

@round lichen You should understand the risks of hosting an offline mode server.

round lichen
#

its just localhost

proper sapphire
#

my friend said he cant have more /sethomes (name)

old heart
#

@rough root he's using it as a development server

rough root
#

okies

proper sapphire
#

nope

#

I used in game commands

#

it says the can set home

#

I got it

#

I had to apply the command to 2 groups

#

Thanks

uneven cradle
#

Does anyone know of a good value to assign to a Location so I can make it public?

#

IE declare it outside of the onCommand boolean

paper compass
#

How long does it take for a moderator to approve a name change request?

#

Yes I know I have to wait for a moderator to approve it? I said: "How long does it take for a moderator"

#

k

tiny dagger
#

i wish my full name was available for taking

quick arch
#

Songoda has your back

#

or not ._.

unreal anchor
#

Oh no, what did they do this time

quick arch
#

They released a new website, distributing server jars

sharp nebula
#

@frigid ember i cannot access to this

(int) entityPlayer.getClass().getSuperclass().getSuperclass().getSuperclass().getDeclaredField("id").get(entityPlayer)```
id is private
#

ok thx

#

My code:

entityPlayer.getClass().getSuperclass().getSuperclass().getSuperclass().getDeclaredField("id").setAccessible(true);
            sendPacket(player, new PacketPlayOutEntity.PacketPlayOutRelEntityMove((int) entityPlayer.getClass().getSuperclass().getSuperclass().getSuperclass().getDeclaredField("id").get(entityPlayer),
                    (short) 10, (short) 0, (short) 10, false));

Error:
[20:11:35 WARN]: java.lang.IllegalAccessException: class fr.fr_phonix.specmode.npc.NPC cannot access a member of class net.minecraft.server.v1_15_R1.Entity with modifiers "private"

#

ha ok, thx, sorry for beginner question 😅

#

i just found Entity have getId methode

uneven cradle
#

Why is bukkit.getserver().getWorld() not showing up in IntelliJ?

#

Every tutorial I've looked at says that's the correct command but I can't find it.

#

Nothing.

#

bukkit has a red line under it

old heart
#

Bukkit.getServer().getWorld(uid or name)

uneven cradle
#

Thank you.

#

Fixed it.

subtle blade
#

Calls to getServer() are redundant

#

Bukkit mirrors all methods statically

#

Bukkit.getWorld() accomplishes the exact same goal

quick arch
#

Slowly making an RPG plugin and that's inside of it ^

#

It's somewhat buggy and messy

frigid ember
#

the server starts with 8gb ram

wooden harness
#

This is the Spigot discord.

quasi seal
#

Hello, does anyone know how to get a modded item ? It works with Material.getMaterial(id) but the id of my mods items seem to change, so its not really a good idea

subtle blade
#

If you mean a Forge mod, it's impossible

quasi seal
#

🤔 then why can I get them with id ?

subtle blade
#

Mere chance that an ID was assigned? Because Bukkit does not define any IDs to non-vanilla Materials

quasi seal
#

Every mod item has an id yes

#

And I think you cant change it yourself

subtle blade
#

I'm aware of that, but we're speaking about Bukkit which has no concept of Forge-added IDs

quasi seal
#

The Material.getMaterial(id) works fine though, maybe because Im using a cauldron-like system in 1.12 that makes the id's

subtle blade
#

Well yea that would be nice to mention

#

Because that's not Bukkit as Spigot knows it

#

You're on the Spigot Discord server, not Cauldron

winged barn
#

googling "spigot disocrd" -> fail
trying "spigotmc" invite url -> success lol

quasi seal
#

I thought there was a method for spigot, but it seems its the system I'm using that makes it possible, well thanks for your help

subtle blade
winged barn
#

i know

subtle blade
#

Likely the reason you stumbled upon it

winged barn
#

but i just put spigotmc into the "join a server" box xd

subtle blade
#

ic, ic

foggy mural
#

What is the best anticheat you know ?

#

thank you 🙂

wary plover
#

I love AAC, but I feel like it depends on the server

foggy mural
#

oh thank you

ashen stirrup
#

I thought you could make 2D ArrayLists like this?
public ArrayList<Player, Integer> x = new ArrayList<>();

subtle blade
#

You cannot, kxuy. Lists only accept a single type argument

#

What are you trying to do?

tiny dagger
#

ugh?

#

hashmap?

#

you can't create arrays like that

ashen stirrup
#

I thought you used to be able to

tiny dagger
#

no

ashen stirrup
#

Maybe not

tiny dagger
#

never

ashen stirrup
#

Probably getting it confused with HashMaps

tiny dagger
#

and if its not, it was never in

zealous yoke
#

I thought you used to be able to
well, thats not how java works

ashen stirrup
#

I phrased that badly I know xD

keen moth
#

A 2d arraylist would be an arraylist within an arraylist

ashen stirrup
#

Think I'm getting confused with Python

#

If you get from the main root of a config would it just be

for(String x : playerData.getConfig().getKeys(false)){
}
zealous yoke
#

yes

pallid portal
#

did anyone find a plugin to fix mob spawning issues? When many people are on the server and they only spawn to one person or where ever the most players are

old heart
#

I know this is the spigot server but i'm pretty sure that paper has a per player option for mob spawning

solemn grove
#

is there a way to stop playEffect with RECORD_PLAY from playing? (1.15.2)

limber marlin
#

Hey, does anyone know of a plugin which allows hostile mob spawners to spawn during day? I see it on lots of servers where it's daytime but mob grinders are still active, which plugin could help me achieve this?

old heart
#

mob spawners spawn in light level 7 or below are you sure this is a plugin or just game mechanics

solemn grove
#

I remember it offers some customization on spawning

fiery flower
#

Hi everyone, can someone help me to understand a timing report ? We have huge lags on our server and we are trying to find the cause

limber marlin
#

@fiery flower I recommend installing TopLite or something to see what's using all of your ram it's really straightforward

fiery flower
#

@limber marlin I looked at TopLite quickly and if I understood correctly, it shows which plugin is using the resources. However we don't have any plugin installed on the server, so I don't know if it can help me

#

The problem is that I don't understand what the events arepresent

humble widget
#

Hi guys, I am using BungeeCord PluginMessageEvent and I store values in message to custom object.
https://hastebin.com/jideciyosi.cs
Whenever I get event attribute of this class somewhere outside of this listener, all values are null, why?
When I log this object inside listener values are not null.
Inside: Event{eventState=LOBBY, name='Ocean', category='Sumo', reward=10}
Outside: Event{eventState=null, name='null', category='null', reward=0}

frigid ember
solemn grove
#

@frigid ember I am looking into it now, seems like I can't avoid using them for my case

#

Protocollib ofc

#

So I guess you can block certain packets from player to the server

frigid ember
#

to do what

#

use events?

#

idk what you tryna do

sly coral
#

Hii, i bought a multicraft server and I want to build a server with mods or plugins but I don't know how to add them. Is there a guide to create this kind of servers? Where can I find these mods/plugins?

solemn grove
#

It's kinda late here guess I'll figure it out myself tomorrow. Thanks for the help and clue btw

sly coral
#

i have the server the only thing i dont know is how to put the mods

#

or pugglings, i dont want vanilla

solemn grove
#

thanks you so much

sly coral
#

cause i always use forge

old heart
#

This is the spigot discord not forge... And just Google some tutorials to get started

sly coral
#

...ñ

#

i know

#

-_-''

#

thats what i join it, cause i dont know how can i use spigot

subtle blade
#

Spigot does not support Forge mods if that's what you're after

#

If you want plugins, Spigot will generate a plugins folder for you where you can drop in a plugin binary

#

?resources

worldly heathBOT
subtle blade
#

Whole bunch here and on BukkitDev as well

sly coral
#

okey okey, thank u

subtle blade
#

Mmmmm, don't think so

#

?bungee

#

?bungeecord

#

I know there's one for just the regular wiki though

#

?wiki

worldly heathBOT
frigid adder
#

is there any way to make the console echo to mcrcon?

#

mcrcon only shows the commands coming from it, nothing from the console

wary plover
#

anyone having issues on the spigotmc site? it keeps buggin for me

frigid adder
#

yee

wary plover
#

ok good its not just me

dusk briar
#

Hey together. I found out, that I would need bungeecord for my MC-Server setup, the questiion here is, if the latest BC-Version is supporting all MC version so that I can connect e. g. vanilla-node1-latest, ftb-node2-1710 and so on. Is this possible with BC and how to correctly setup the config.yml for each server and listener?

fleet crane
#

it supports 1.8-1.15.2

dusk briar
#

so I would need the no longer supported 1.7.10 build from BC to run my 1.7.10 FTB server and another BC instance to sopport all other MC versions, rigth?

fleet crane
#

yes

dusk briar
#

may I ask you for a little help refering to docker? I have the images from itzg (mc-server and bungeecord) but the docs are not well documented or better, examples are missing

fleet crane
#

you can and someone may be able to help

#

Im not familiar with those specific images (nor do I really use docker)

dusk briar
#

ok, the docker part wouldn't be that problem, either the BC config file which is shipped by the BC docker image, refering to the string for MCStats

fleet crane
#

youre gonna need to change the config anyway to add your servers

dusk briar
#

tha is correct, even if there is only one 1.7.10 server ^^

lean chasm
#

Does anyone know where I can post a request to pay someone to setup a server for me? I've tried many hosting services and tried to do it myself through multiple tutorials in the past week but I can't get it to work.

frigid ember
#

@frigid ember

#

can u help

#

i removed the for loop and now it wont show up for anyone

#

plz help

brisk void
#

oop

frigid ember
brisk void
#

lemme fix that

#

hi, i got a crash error, it goes something like this

// Who set us up the TNT?
Time: 4/3/20 6:01 PM
Description: Exception in server tick loop
java.net.UnknownHostException: h
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$2.lookupAllHostAddr(Unknown Source)
at java.net.InetAddress.getAddressesFromNameService(Unknown Source)
at java.net.InetAddress.getAllByName0(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at java.net.InetAddress.getByName(Unknown Source)
at net.minecraft.server.v1_15_R1.DedicatedServer.init(DedicatedServer.java:181)
at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:784)
at java.lang.Thread.run(Unknown Source)

A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------``` i have the crashlog if you want it
wooden harness
#

lol swift are you trying to load buildtools and a spigot jar as a plugin? 😂

frigid ember
#

so what do i do

#

@wooden harness wdym

fleet crane
#

@brisk void leave server-ip alone unless you know what you are doing

#

You set it to h for whatever reason

brisk void
#

i have no idea why its h lol

#

being a dingus is my specialty

green lodge
#

Might be a stupid question but if I wish to use SpigotLib do I import it as a dependency in intellij

wooden harness
#

Swift, you literally have both BuildTools and a Spigot jar in your plugins folder

fleet crane
#

Just leave it blank

brisk void
#

alright, thanks man

wooden harness
#

yeah ik

frigid ember
#

there is my code

#

both

subtle blade
#

Yea but you also have the server and BuildTools in the plugin folder

#

Neither of which are necessary

frigid ember
#

how do i take it of

subtle blade
#

You... delete those two files from the plugins directory?

#

Also, your event was not registered

frigid ember
#

where is the server

#

wdym

subtle blade
#

Nevermind I'm blind

#

Just saw it ;P

frigid ember
#

alr i took off build

#

yea

subtle blade
#

You have plugins\spigot-1.8.8-R0.1-SNAPSHOT-latest.jar and plugins\BuildTools.jar

frigid ember
#

i dont see a bat

#

yeaaaa i took of BuildTools

subtle blade
#

The server as well is in the plugins folder and should not be there

frigid ember
#

no its not where is it

subtle blade
#

Unless you removed it because that error log above definitely says it is ;P

frigid ember
#

whats is it called

subtle blade
#

As for your scoreboard error, Scoreboard names cannot be longer than 16 characters in 1.8.8 (which is unsupported and you should update)

frigid ember
#

yea but i want people to use 18.9 when playing my server

#

what line in the logs does it show the server thing

dusk briar
#

ok, is it possible to leave the stats-field in config.yml (bungeecord) emptiy or to simply edit a few digits from it?

#

because I have only a pregenerated config.yml so BC can't generate it's own

frigid ember
#

@frigid ember what version for longer names

wooden harness
#

1.13

#

if you just want older clients to join your server, update to 1.15.2 preferably and use a plugin like ProtocolSupport or ViaBackwards to allow them to join

subtle blade
#

Doesn't matter anyways. You should be on the latest version regardless

wooden harness
#

^

pallid portal
#

anyone have a 1 player bed plugin for 1.15.2

#

all the ones I found are old versions

cursive osprey
#

Is there a way of spawning Fishing Rod hooks as an entity?

vocal solstice
#

Has anyone messed with PlayerTeleportEvent?

#

Having a strange bug with scaffolding and it.

dusky herald
#

Just looking for opinions, if I'm storing Player Data over the memory; yes I use the Map and HashMaps to store the keys and objects. Should I be making them static so that I can access them or is there a better approach?

dusk briar
#

how is the config part for forced_hosts correctly working?

frozen hamlet
frigid ember
#

wait hold on

lean chasm
#

I asked a question about an hour ago and I'm not sure if it would be rude to ask again

robust orbit
#

hello. So I am new to all of this stuff with plugins and this stuff and running it on a server. I have never used any of this before and just wanted some sort of help and advice. For someone who just wants to have something in the background to run worldedit and possibly some other plugins, what program does everyone recommend I install? there's so many different types out there, it's hard to know what to do.

cursive osprey
#

you are in the spigot discord

#

they will only say spigot

lean chasm
#

Thank you @frigid ember

frigid ember
#

Paper

#

Currently looking at making my gems economy global across my entire network.
What sort of storage method(s) should I use to synchronize this?

I'm currently thinking of putting the data into the redis memory cache, then pushing to SQL (as a hard save) every x amount of minutes.
Would this be the best way of going about it?

green lodge
#

Trying to use SpigotLib and get this error whenever I try to build

#

Am I missing a file ?

frigid ember
#

I was only thinking of using redis because it would allow for more reliable synchronization as it would be relatively faster than SQL with storing large amounts of data into its memory cache at a very quick rate.

#

@green lodge is gyurix.configfile one of your files or is it from a lib?

green lodge
#

lib

frigid ember
#

You probably need to shade it

green lodge
#

sahde it ?

#

shade***

frigid ember
#

In maven or gradle

#

There are tones of tutorials on it, I’m not really the person to ask

#

and still not letting me do the name thing

#

this is the logs

silk bane
#

you're umm

#

installing spigot as a spigot plugin?

#

very nice

green lodge
#

Spigotception

frigid ember
subtle blade
#

Swift if you don't know what you're doing, don't do it

torn peak
#

I can't figure out why my server has randomly started loading in 42,335 chunks