#help-archived

1 messages · Page 2 of 1

frigid ember
#

I think i didt

crimson raft
#

but in your case, you want to do "localhost instead of the "111.111.111.111" "222.222.222.222" because you are hosting on the same server

frigid ember
#

i did it

#

😦

#

i awnt to cry

crimson raft
#

XD

frigid ember
#

the only thing that i need it it's

#

type the real ip of my dedicated server

#

and not 127.0.0.1

#

now when i try to connect directly to the spigot server i won't let me in

crimson raft
#

that would accept all ports yeah

frigid ember
#

connect to the server.. forever

#

like it's supossed to be

crimson raft
#

yeah, you should allow the connection between spigot and bungee

frigid ember
#

@crimson raft thank you so much, tho

crimson raft
#

npnp ^w^

frigid ember
#

🙂

#

i'm using ur pluign aswell

crimson raft
#

hehee

frigid ember
#

tbh who doesn't lol

#

if you want to allow non premium players on your server skinsrestorer is a must.

median whale
#

non premium
is that what people call "pirates" now?

tidal pulsar
#

I like alex and steve

frigid ember
#

a better name for them ye

#

we better move to #text or smt

#

tho

tidal pulsar
#

^

frigid ember
#

How do I fix this on every single item it shows numbers at the end like this one (#0339)

#

F3 + H

#

I think it's from the item id.

#

Oh I thought it was a server thing

#

Check to see if it works

eager lagoon
#

you update

frigid ember
#

it does

#

nice

valid zenith
frigid ember
#

?

frigid ember
#

How can I add a space in between rank and username as well as the chat symbol > to a »

#

format: '{DISPLAYNAME} {MESSAGE}'
#format: '&7[{GROUP}]&r {DISPLAYNAME}&7:&r {MESSAGE}'
#format: '&7{PREFIX}&r {DISPLAYNAME}&r &7{SUFFIX}&r: {MESSAGE}'

group-formats:

default: '{WORLDNAME} {DISPLAYNAME}&7:&r {MESSAGE}'

admins: '{WORLDNAME} &c[{GROUP}]&r {DISPLAYNAME}&7:&c {MESSAGE}'

#

Use .replace for the >

#

or just

#

Set it to the >>

#

Oh wait thats essentials

#

Just set it and change the yml formatting

#

Im in the config.yml for essentials

#

So yeah

#

just set it to that symbol

#

what would I replace in it though

modest atlas
#

ayo

frigid ember
#

In the config

#

format: '{DISPLAYNAME} {MESSAGE}'

#

format: '{DISPLAYNAME} » {MESSAGE}'

#

what about adding a space in the rank and username'

frigid ember
#

Is md_5 the only owner?

zealous yoke
#

Of the discord? Well, a discord server can only have one "owner" who can delete it etc

median dock
#

What are the benefits of paperspigot?

zealous yoke
#

Better performance and bugfixes

#

Thats what they say, not me

median dock
#

Is paperspigot better than spigot?

zealous yoke
#

Depending on what you wanna do, it is as good as spigot or better

frigid ember
#

It’s wayyy faster on 1.13+

median dock
#

Why doesn’t spigot work as good as paperspigot then

#

?

frigid ember
#

Owner of spigot

zealous yoke
#

I mean it wont matter whether your lobby server is a spigot or papoer one

median dock
#

It seems easy

zealous yoke
#

Because paper is a fork which adds additions to spigot

frigid ember
#

Yeah

#

Is md_5 the owner of spigot?

zealous yoke
#

The people of paper take spigot and add what they want

frigid ember
#

Yes he is

median dock
#

But why doesn’t normal spigot adds those improvements too?

frigid ember
#

Md

#

He doesn’t want to add them ig

median dock
#

Stupid

zealous yoke
#

Is md_5 the owner of spigot?
@frigid ember he is the owner of the website, the discord and many more things but to say he is the owner of spigot as the server is a bit wrong

frigid ember
#

Wrong?

zenith palm
#

Spigot is open source, so technically I think its not owned by one person

zealous yoke
#

Thats not right, thats where licenses matter

zenith palm
#

Yeah I'm not an expert on licenses

frigid ember
#

Is md_5 his real name? 😂

zealous yoke
#

Of course

#

As far as I know, the contributors are also the "owners" of spigot

tiny dagger
#

He puts it togheter when a new mc version comes in then he is the owner

zealous yoke
#

In general, if you write the code you own the copyright.

#

And everyone can contribute (can write code for spigot)

frigid ember
#

And what happens when he resign?

zealous yoke
#

Then someone else takes over it like the devs from paper. It is open source and as long as Spigot's license allows it, you can do what you want with the code like for example continue it

frigid ember
#

For some reason only on my server skins dont show

agile jungle
#

online mode disabled?

frigid ember
#

WHere would I check

agile jungle
#

server.properties

frigid ember
#

yeah thats it

#

How can I fix this I deleted the kits and stuff from Essentials already but this is still happening

hazy warren
#

I can not accept my confirmation email it just keeps throwing an error.. i have also tried resending another link and every time it just errors and says my account is not confirmed

hazy warren
#

SpigotMC - High Performance Minecraft - Error
Security error occurred. Please press back, refresh the page, and try again.

random rivet
#

ayy i need some assistance

#

pls

frigid ember
#

just ask your question.

random rivet
#

every time someone sends a message in chat they can't see their message pop up. death messages and commands still show but not chat. anyone know why?

cloud sparrow
#

probably another plugin of yours

random rivet
#

i havent added any new plugins since it started happening

cloud sparrow
#

list them

random rivet
cloud sparrow
#

what's harbor

#

oh wait

#

u need vault

#

for luckperms to work

#

and essentials need dat

random rivet
#

theyve been working without it... but alright

cloud sparrow
#

well if u want it for chat

#

u need vault usually.

random rivet
#

thanks boss ill try it out

#

it did not work

cloud sparrow
#

ip in dm if u want to send

#

I could hop on.

fringe prism
fleet crane
#

is there a question there

fringe prism
#

Yes sorry, I am trying to get the player from the ServerSwitch event and it's erroring.

fleet crane
#

whats the error

#

getPlayer is definitely a method

fringe prism
bronze tiger
#

@random rivet Get EssentialsChat.

fleet crane
#

its definitely a method

#

make sure your bungee is up to date

#

also if you imported the bungee source code your IDE may do weird things without lombok

fringe prism
#

Well I added the javadoc dependency and that didn't do anything. I am currently using maven I am using Lombok but don't know how to integrate it here.

neon matrix
#

Using Eclipse should lower your credit score; who's with me?

subtle blade
fringe prism
#

^

#

lol

raw nacelle
#

i haven't looked for a few years until now, are there any free anticheat plugins for spigot? lol

subtle blade
#

NCP is the only one that comes to mind

raw nacelle
#
  • that support 1.15.2
final verge
#

does NCP not?

raw nacelle
#

NCP says 1.12

#

last updated 2018

frigid ember
#

as n tities

raw nacelle
#

on the jenkins there's a bleeding 1.13 build from 2018

final verge
#

I think one server I play on for 1.15 still uses NCP. Mostly cuz I had to add support

raw nacelle
#

does the server run 1.15 or is it just using viaversion?

final verge
#

it runs 1.15

raw nacelle
#

oh i guess i could just run an older version for my kitpvp server lol

tiny dagger
#

What are the chances that the packet-handler channel to not exist? 🤔

crimson marsh
#

hi guys

valid zenith
#

Where spigot for support java 11? 1.15.2

crimson marsh
#

public void onDisable() {
for (Player p : Bukkit.getOnlinePlayers()) {
if (p.getOpenInventory().getTitle()
.equalsIgnoreCase(getConfig().getString("gui-title").replaceAll("&", ")))
p.closeInventory();
}
}

valid zenith
#

,

crimson marsh
#

how can i solve this it gives me an error exactly on this .replaceAll ("&", "error ->))) <- error

cloud sparrow
#

just compare colored inventory names? and if you don't wanna do that then strip the color from the getTitle(0 and compare to just a name.

dusky herald
#

The type of error is important.

#

if you read the stack trace and see what kind of error it is, it should help you figure out why

#

like are you getting NullPointerErrors?

final verge
#

@crimson marsh use #replace

#

Not replaceAll

valid zenith
#

Where spigot for support java 11? 1.15.2

dusky herald
#

change it to " "

#

?

#

looks like you're just missing a quotation mark "

crimson marsh
#

what change?

final verge
#

@valid zenith is spigot not working on java 11 for you? Lok

#

Lol

valid zenith
#

I don't know

final verge
#

I mean... it should just work lmao

valid zenith
#

BubbleChat not supported for Java 8

#

Work Java 11

#

Your minecraft version doesn't determine which Java version you're using. If you host the server at your house on a personal computer, just install Java 11 on the computer. If you pay for an online host, then try the plugin and if it doesn't work, that means they are using Java 8. Simply email their support and request them to upgrade you to Java 11.

crimson marsh
#

@dusky herald exactly where is it missing? I am new at this

dusky herald
#

("&", "")))

final verge
#

@valid zenith spigot is not java. There is no spigot build that contains java 11. You need to contact the server host if you’re being hosted or update your own java

dusky herald
#

add another " behind that one and see if that works for oyu

#

you

#

** .equalsIgnoreCase(getConfig().getString("gui-title").replaceAll("&", ""))) **

#

^ That works too. I pretty much forgot the entire API after not messing with it for years.

crimson marsh
final verge
#

@crimson marsh i would recommend watching some java tutorials or spigot tutorials. Thenewboston has some lovely java ones

crimson marsh
#

is that they gave me permission to modify a plugin but I really don't know much about the new spigotAPI

final verge
#

It appears you also aren’t very familiar with java in general. If you’re trying to do this for an extended period, investing in java tutorials early on will save you much heart ache

crimson marsh
#

.getTitle()

dusky herald
#

I can vouch on that for sure. When I first started to learn, I jumped in and realized I didn't know enough. I actually read the entire Oracle Docs on Java when I started out.

crimson marsh
#

If that gives me an error, which one can I change it for?

#

Do you have links to the tutorials? I don't understand very well why I speak Spanish and I don't know much English

dusky herald
dusky herald
crimson marsh
#

I stopped programming in java more than 6 years ago

final verge
#

Those are two tutorial series (for java and spigot respectively) you could look at

stone spoke
#

Hello, i use essentials and luckperms for the managing of my server, i have set prefixes for all the roles and i can see them in chat just fine, but i cannot see them in tab (in tab its just player names like in vanilla) how to show my prefixes in tab?

crimson marsh
#

I will take it into account, I want to program in java again, because I am about to open my server and I could use unique plugins

dusky herald
#

@stone spoke I just googled it for you; hopefully it's accurate but

#

go into the config.yml file for Essentials

#

and set ** change-playerlist: false **

#

to ** change-playerlist: true **

final verge
#

^

stone spoke
#

@dusky herald it is already set like that :/

#

but still thx

dusky herald
#

@stone spoke is ** change-displayname: true ** set as well?

#

It should be set to true.

stone spoke
#

it is :(

dusky herald
#

or try setting it to false

#

and see if that helps

stone spoke
#

ok

dusky herald
#

just the change-displayname

#

not the change-playerlist

stone spoke
#

yes

#

i am starting

valid zenith
dusky herald
#

@valid zenith The server does not support Java 11. It supports Java 8.

#

The plugin will not load, your server provider does not support Java 11.

frigid ember
#

you're using java 8

#

and trying to run a plugin that only works on java 11

valid zenith
#

Fuck

#

Ok

#

I am sending support hosting

dusky herald
#

@frigid ember It does not. However, if he's using another plugin to change the display name it could be interfering with his prefixes.

stone spoke
#

now it doesnt show prefixes even in chat

dusky herald
#

and now its confirmed it didnt work.

#

** # Disable this if you have any other plugin, that modifies the displayname of a user.
change-displayname: true ** that was why I suggested it;

stone spoke
#

ok

#

any other steps?

dusky herald
#

What are you using to add your prefixes/suffixes?

#

Essentials? Or the permissions plugin?

#

and are you using EssentialsChat?

#

does ** add-prefix-suffix: true ** have an # infront of it?

stone spoke
#

can i send the tutorial i wasdoing the prefixes after?

dusky herald
#

sure

#

I'm just trying to figure out where you set your prefixes at

stone spoke
#

i was using luckperms

dusky herald
#

He has them enabled.

stone spoke
#

does ** add-prefix-suffix: true ** have an # infront of it?
@dusky herald it does

dusky herald
#

It was the first suggestion I tried to give him.

#

He said it was set to true.

#

to ** change-playerlist: true **
@dusky herald

#

lol

stone spoke
#

its true

dusky herald
#

I found a fix

stone spoke
#

i am not doing the ranks using essentials guys i have done it after a luckperms tutorial

dusky herald
#

its in the Youtube comments

#

lmao

#

change-displayname: true

#

and set add-prefix-suffix: false

stone spoke
#

trying blackveileds fix now

dusky herald
#

Change-display name:true
Change-playerlist: true
Add-prefix-suffix: true
Add-prefix-in-playerlist: true
Add-suffix-in-player list: true

#

do all those

stone spoke
#

ok so the youtube comment didnt help, now i am gonna do this ome

#

one*

dusky herald
#

Yeah; I double checked more

#

Do what I just suggested; hopefully that actually takes care of it.

stone spoke
#

hey do these have to be 1 spot away from hashtag or nah?

dusky herald
#

If it doesn't work, then it could be another plugin interfering like SystemEncryption is saying.

#

The hashtag has to be gone.

stone spoke
#

When this option is enabled, player prefixes will be shown in the playerlist.

This feature only works for Minecraft version 1.8 and higher.

This value of change-playerlist has to be true

add-prefix-suffix: true

#add-prefix-in-playerlist: true

dusky herald
#

and no spaces before it

stone spoke
#

so like this?:

dusky herald
#

No

#

You have to remove the hashtags.

stone spoke
#

they are everywhere in the config

#

like every single line

dusky herald
#

They're comments, to help you read what each field means.

#

The server ignores the lines with hashtags.

#

So you would have to change it to this

#

When this option is enabled, player prefixes will be shown in the playerlist.

This feature only works for Minecraft version 1.8 and higher.

This value of change-playerlist has to be true

add-prefix-suffix: true
add-prefix-in-playerlist: true

stone spoke
#

ok now did this without hashtags

#

starting server

#

ok idk why it was like that by default then

#

ok

#

i just had an encounter with mentaly unstable person (not me) on the server

#

IT WORKS

#

thx guys love you

#

the essentials setspawn sets spawn for the entire server when they join right?

#

hmm ok thx

mossy condor
#

So I read multiple times that spigotmc.org has a REST api, e.g. to check for plugin updates, but I couldn't find a documentation about that api.
Can somebody send me a link?

#

thx

#

but the api link there is legacy, is there a new one?

#

okay, thanks!

frigid ember
#

starting my first server, writing my first plugins, worldpainter voxelsniper and world edit for build tools, adventure gamemode with destruction downgrading blocks rather than destroy. Any advice on building a plugin stack, and server admin considerations? Its a lot to take in and options to make my vision come to life.

crimson raft
frigid ember
#

@frigid ember do updates work for premium plugins too

#

i think there would be an authentication issue, right?

#

I am confused

#

Let's say I have a premium plugin

#

I push an update on the premium

#

and I want all users with the plugin to update.

#

How will a request work

#

Since it's premium?

#

but the author would need to integrate the updates is what I think sys is saying

#

There is only one requirement: Your resource must be uploaded on SpigotMC.org.

#

👀

#

I know, I am not dumb.

#

Well kinda.

#

Well, so premium cannot use this API.

#

I guess that is not the only requirement.

#

??

#

Ohhh

#

It notifies if there is an udpate

#

update*

#

what does that mean

#

version number string most likely

#

ok

dusky herald
#

@frigid ember You seem like you know some stuff; with the UUID Rate Limit imposed by Mojang, is this limit factored each time we use the getUniqueId() method?

#

I'm not having any issues with it, but I never noticed anything about it until now after going over the Spigot documents.

#

So, I'd like to plan ahead if I have to at least.

#

for a Player

#

or is it only concerning OfflinePlayers?

#

Alright good. That's how I was thinking it would function.

#

That makes more sense now, I just wanted to double check, I dont want to go back over my code and make a ton of changes because of that limit implementation.

#

So I shouldn't really even have to worry about it then.

#

I usually do that anyways, just for logging purposes mainly.

frigid ember
#

use Mojang api

#

make a request

#

why not?

#

Oh, what is it

#

??

#

What is the rate limit?

#

ELLO

tiny dagger
#

am i dreaming?

frigid ember
#

EY

#

yes

dusky herald
#

600 requests every 10 minutes

frigid ember
#

oh my fans are coming

tiny dagger
#

and the discord server is still here?

frigid ember
#

600 per 10 minutes

#

can one bypass this

#

vpn

dusky herald
#

Uh, no

#

That's 600 requests for the server.

frigid ember
#

if i do it on my client

#

i code an app

#

wait

#

im dumb

dusky herald
#

the server is requesting, not your client

frigid ember
#

ignore that

#

IK

#

IGNORE

#

BYE

#

u saw nothing

#

IK

#

so add a cooldown

#

or

#

queue system

#

E.Z

dusky herald
#

or just dont allow them to use a command to access an offline player request

frigid ember
#

no

#

what if u NEEED It

#

in a ban system

#

banning a player who never joined

dusky herald
#

use a database?

frigid ember
#

but how do u store theyre uuid

#

to store them in the database

#

u need to request

#

EXACTLY

#

I SAI DTHAT

#

so add a queue system

#

if u don't want spam

#

queue system to queue the bans for request needs is optional

#

incase u are a larger server

#

who knows

#

be prepared for anything

#

@frigid ember btw can u help me think of a new username

dusky herald
#

I mean, I dont personally see a need for that anyways.

#

even for a larger server...lol

frigid ember
#

spam

#

staff might spam

#

who knows

#

i said it is optional anyways

tiny dagger
#

but do you expect 600 requests in 10 minutes alone?

frigid ember
#

OPTIONAL

#

lol

#

@frigid ember help me think of a cool short catchy untaken name

#

urs is nice just kinda long

dusky herald
#

600 requests is a lot. Most people wouldn't really run into the issue anyways.

#

Especially since most servers are small.

frigid ember
#

u sound like a hard cool coder wannabe

tiny dagger
#

but can't you tell he was abusing this?

frigid ember
#

lol systemencryption

#

slowdown for the command is another solution

#

but

#

lets say its not abuse

#

and u really need to ban

#

and u cant

#

so queue it

#

for the next 10 minutes

#

purple

#

NOT PURPLE, but that's a theme

#

not like an already famous yter name

#

purple, and maybe a drug

#

im a lit kid

dusky herald
#

DankCoder

frigid ember
#

no

#

thats gay

#

lmao

#

not too memy

dusky herald
#

I know, thats why I suggested it.

frigid ember
#

yo can y'all add me

#

y'all some lit people

#

@frigid ember maybe fitting to my pfp#

#

if purple aint enough

dusky herald
#

CokeNCodes

frigid ember
#

no

#

if its a drink

#

must be a drug

#

coke doesn't sound lit

#

help me please

#

maybe a name with purp in it

dusky herald
#

LilLittiePurpCoder

#

Purpboi

frigid ember
#

loL

dusky herald
#

lol

#

l0l

frigid ember
#

IM a girl

#

;/

#

JK

#

lmao

#

lets put no genders

dusky herald
#

BihCoduh

frigid ember
#

?

#

LOL

dusky herald
#

lmao

#

PuRpLeSpigot

frigid ember
#

no, i sound like a md_6 wannabe

dusky herald
#

md_purple

#

QuarantineProgrammer

frigid ember
#

what does md mean

dusky herald
#

idk

#

mad dog

#

md 2020

#

MD 2020 is a drink

#

alcohol

frigid ember
#

alchohol is for losers

wheat yarrow
#

md_5_2nd

frigid ember
#

its weak af

dusky herald
#

sheit

#

thats all I do

frigid ember
#

drink purp

dusky herald
#

nah, i got a job

frigid ember
#

purpy

#

purpie

#

which one

#

purpy or purpie

dusky herald
#

purpyderpy

frigid ember
#

no

#

no derp

#

thats for little kids

#

i want real men as fanbase

dusky herald
#

you aint gonna get a real man fanbase with purp in your name

#

PurplFaZe

frigid ember
#

no faze is gay

#

no contract guy with fortnite player

#

tfue

#

messed up contract

#

nah no faze fam

#

purpie sounds gay

#

like a kid

dusky herald
#

so...why did you name yourself Retrooper

#

just seems like you replaced ard with rooper

zenith palm
#

Please move all non-help chat to #general

zenith siren
#

I used Inventory#removeItem and then I get this error in console, it doesn't even say what's wrong. How do I fix this?
https://pastebin.com/cVxZ07VG

stuck nebula
#

How did you call it?

#

From an event? Async?

zenith siren
#

It's being called from a PlayerInteractEvent

frigid ember
#

a*

#

you are welcome

zenith siren
#

XD

#

The item the player has in their hand when PlayerInteractEvent is being called

#

Yea, the idea is that if the player uses a wand 3 times it "breaks". It fully works but I get that error at the 3rd time when the items is being removed from the inventory

#

So first I check if the item they use to click is the wand

#

Sure

#

I still get the same error when I do this

#

Oh

#

Nope

#

Still get the error

#

🤔

opaque lagoon
#

Hello everyone ! -- Brewery Plugin
I can't make Red wine (in version 1.15.2), warts nether don't want to go into the cauldron!!
Do you have any ideas for making this alcohol?
Thank you ^^
(I'm also looking for the tea recipe if you have :3)

zenith siren
#

Sorry, I don't know anything about the Brewery plugin.

Does anyone know how to see if the player has an X amount of empty slots in their inventory

old heart
#

couldn't you iterate over the inventory and check if the itemstack is equal to null or AIR

zenith siren
#

Yea I just thought of that

#

Stupid me

#

I'm removing the item in the main hand of the player when PlayerInteractEvent is called

fleet crane
#

Changing items in the event it's being used is messy

zenith siren
#

Mhhh

#

Makes sense

fleet crane
#

Fairly certain there's a bug report for that particular one already

zenith siren
#

Any work around?

fleet crane
#

I mean there's the same workaround for like every event bug ever

#

Put it in a scheduler!

zenith siren
#

Lol

#

👍

#

Aaaaand it works :D

#

Thanks XD

hasty crag
#

If anyone is down to help

#

oh

#

posted it in the wrong section

#

oh really?

#

How do I make it so the player can see their own arm swing then?

#

hmm

frigid ember
#

Could somebody be so kind as to jump in general-2 voice chat and answer some of my stupid questions?

hasty crag
#

I use a resourcepack, maybe there's a way for me to do an animation

crimson raft
rough root
#

Hey, can we get a copy of the invite link in the announcements channel, pinned, so we can easily grab and share without digging through web pages?

subtle blade
tropic nacelle
rough root
#

Gracias Choco, Lax :)

frigid ember
#

anyone wanna help me so i made a scoreboard and it pretty simple and for some reason people without any op cant see it

#

alr

#

or actually only i can see it not even people with ops

#

cuz when i take off op from my self i still see it

#

oh whatt how should i do it

#

@frigid ember

#

where is that

#

im new to coding in this

#

so del the whole for loop

#

oh alr i get u

frigid ember
#

thats the events class i removed the loop

#

@frigid ember

alpine onyx
#

To do custom timing handling i should just make a nee CustomTimingHandler and call startTiming on it? And that will make it show up in timing?

inland depot
#

I'm trying to convert an enum constant to an entitytype. Here is what I have so far.

public EntityType toEntity() {
            for (MobType type : MobType.values()) {
            switch(type) {
                case BLAZE:
                    return EntityType.BLAZE;
                case CHICKEN:
                    return EntityType.CHICKEN;
                case COW:
                    return EntityType.COW;
                case CREEPER:
                    return EntityType.CREEPER;
                case IRON_GOLEM:
                    return EntityType.IRON_GOLEM;
                case PIG:
                    return EntityType.PIG;
                case SHEEP:
                    return EntityType.SHEEP;
                case SKELETON:
                    return EntityType.SKELETON;
                case SPIDER:
                    return EntityType.SPIDER;
                case ZOMBIE:
                    return EntityType.ZOMBIE;
                case ZOMBIE_PIGMAN:
                    return EntityType.PIG_ZOMBIE;
                default:
                    return EntityType.CHICKEN;
                }
            }
            return null;
        }

For some reason it only returns EntityType.IRON_GOLEM.
Am I doing this the right way? The method is in the enum and I want to be able to get an entitytype by doing something like MobType.COW.toEntity()

tawny karma
#

it's only iterating 1 time as you are returning the value

inland depot
#

In another class I did MobType.COW.toEntity() and it returned EntityType.IRON_GOLEM.

alpine onyx
#

Dont use a loop

#

Use this as the parameter for the switch

#

Just remove the loop

#

And use my msg above ^

subtle blade
#

Or, if it's an enum, make EntityType an argument

#

No reason for loops or switches at all

alpine onyx
#

No need for pram either

inland depot
#

Thanks for the help, it should work now. I don't know why I used a loop but I looked online for something similar and it said to use a loop.

alpine onyx
#

Param

#

this

Has the value of the enum already

subtle blade
#
public enum MobType {

    COW(EntityType.COW);
    // etc.

    private final EntityType type;

    private MobType(EntityType type) {
        this.type = type;
    }

    public EntityType toBukkitEntityType() {
        return type;
    }

}```
alpine onyx
#

Or that^

#

That is even better

subtle blade
#

What I'm saying is, there's no reason for switches

inland depot
#

yeah that looks much cleaner

alpine onyx
#

Thats an even more elagant solution yes

inland depot
#

everything should be working once i test this. you guys are great, thanks for the help 🙂

subtle blade
#

Not sure why you're mimicking the EntityType constants to begin with though. If you want to restrict the constants used (i.e. for a configuration), create an EnumSet of valid entity types for which you can compare against

alpine onyx
#

If anyone knows

To do custom timing handling i should just make a nee CustomTimingHandler and call startTiming on it? And that will make it show up in timing?

frigid ember
#

@frigid ember what do i do now

#

its gone now

#

like not even i can see it

bright forge
#

Of course, you removed the loop

#

for(Player online : Bukkit.getOnlinePlayers()){
if (online.isOp())
online.setScoreboard(s);
}

#

i think that was the method

frigid ember
#

yea so what was i supposed to do thats what @frigid ember tolf me to do

bright forge
#

instead of removing set it like that

#

to only allow to ops

frigid ember
#

what does that do

#

i want everyone to see it

bright forge
#

it allows the scoreboard to ops

#

oh

frigid ember
#

not just ops

bright forge
#

then remove the isOp method

#

and just use

for(Player online : Bukkit.getOnlinePlayers()){
online.setScoreboard(s);
}

#

oh i just noticed

#

you are doing this on join

#

Change

        online.setScoreboard(s);
        }```

to

```online.setScoreboard(s);```
#

Yeah

#

i just noticed

#

oh really

frigid ember
#

i thought u said the whole loop

bright forge
#

he removed the entire thing

frigid ember
#

including that

bright forge
#

@frigid ember I recommend you doing a course so you dont run into more trouble, try SoloLearn, is for free.

frigid ember
#

^

#

alr thx

bright forge
#

He removed the loop and the methods inside, thats what i meant with the entire thing

#

oh

#

i didnt see that

#

damn

#

im dizzy

#

im too bad at correcting code, sorry

#

he said it wasnt showing after doing that

naive crag
#

how can i create spigot server?

bright forge
tiny dagger
#

there are better ways to make a scoreboard

#

like only giving the scoreboard once then update the score that needs change instead of everythinh

frigid ember
#

Can someone help me with what to put in plugin.yml?

#

Cheers

tiny dagger
#

teams are amazing

bright forge
#

To fix flickering i just update/reset scores

#

it actually works, anyways i think teams its better and more optimized, never tried it out

winged umbra
#

I'm having a really weird issue with MySQL

#

exception spam on 1 project

#

but the exact same code works on the other

frigid ember
#

Thank you SystemEncryption and knat, I made it work

winged umbra
#

This is my load code

frigid ember
#

And also 1o ther guy

winged umbra
#

Exceptions are thrown when trying to get the GAMES value

frigid ember
#

Sorry Can't find his nickname

winged umbra
#

and then this

#

Yes and Yes

#

Should still work

#

I'm using my SQL Util

#

which is a bit redundant but whatever

#

no

frigid ember
#

@frigid ember ```java
online.setScoreboard(s);

#

when i do this it doesnt know what online is

tiny dagger
#

or is it a map error

#

wait let me see

frigid ember
#

@frigid ember how do i declare it

#

alr so i do p.setScoreboard(s);

frigid ember
astral epoch
#

I got a general question, currently doing some modifications to my Command framework library, when does spigot register HelpTopics for commands in the knownCommands map in the SimpleCommandMap class?

frigid ember
#

i took it off and still didnt work

proper sapphire
#

I need help

molten whale
#

ok

proper sapphire
#

using the ultimate homes plugin how do I make it so everyone can use the commands

old heart
#

you need to give them permission i guess

#

using a permission plugin

molten whale
#

Ex. Luckperms or PermissionsEx

proper sapphire
#

I need that plugin?

molten whale
#

Yes

proper sapphire
#

which one do you reccomend is better

molten whale
#

Every server should have a permissions plugin, just to manage things easier

#

I pernally prefer LuckPerms, because it has a nive web editor to manage the perms

#

So you dont have to do it ingame :3

molten whale
#

I spoke to the Pex developer some time ago, they are (or were) doing some pretty neat things

#

Spigot?

#

However, I in LuckPerms team. It has everything you would probably ever need.

proper sapphire
#

I have multiverse on the server as well

#

can Luckperms allow permisison to that as well?

molten whale
#

Yep

#

It can even do per world perms and groups!

proper sapphire
#

so how do I set it up? I am new to the whole plugins thing, and I want to learn java

old heart
#

You won't need to use java to set it up

#

Have you added LuckPerms to your Plugins folder and restarted your server?

proper sapphire
#

yes

#

I should probablly get an anti-cheat for the server correct

molten whale
#

Em, depends on what type of server you are running.. But ideally yes.

proper sapphire
#

How do I make it so the ultimate homes command is for everyone?

molten whale
#

Give the permission in the default group

proper sapphire
#

do I find that in the config file?

molten whale
#

Luckperms by default saves the permissions on a database that is not meant to be read by humans.

#

You can use /lp editor, this will give you a link where you can see all the groups and users you have

proper sapphire
#

it says that there was an error loading the data

molten whale
#

Can you send us your complete console log?

proper sapphire
#

?

molten whale
#

Where does it says that there was an error loading the data?

proper sapphire
#

when I click the /lp editor link

molten whale
#

Interesting.. You just did a fresh install and didnt change the config at all, right?

proper sapphire
#

yea

molten whale
#

Which is your server version?

proper sapphire
#

should I restartd the server?

#

1.15.2

molten whale
#

Not really, but you can try

#

You can always try adding permissions via the in-game commands

unborn wolf
#

How to make another ranks as default with groupmanager

molten whale
#

You mean that you want to give another rank to all players like the default one?

unborn wolf
#

yes

molten whale
#

Oh, interesting

unborn wolf
#

when you join the server for first time

#

then u get a rank

molten whale
#

Im not sure if you can make that, but you can make so the default group has the same permissions as another group.

unborn wolf
#

ok

#

thanks

proper sapphire
#

What plugins are best for a survival server

molten whale
#

With /mangaddi, you can "Add a group to another group inheritance list" @unborn wolf

#

A lot of Songoda's plugins add a custom taste to survival.

#

However, the basic/common ones are essentials, vault (if you want to add economy), a shop plugin, mcmmo (for abilities), a protection plugin.

#

All depends on where you want to guide your server

proper sapphire
#

I have the ultimatehomes, multiverse

#

one player sleep

#

do you know how to make it so when players spawn in it sends them to a "hub" worlld ???

unborn wolf
#

i made a cell to my prison server but when normal people buy them they cant place or break even that i made the flags block-place and block-break

#

allow

molten whale
#

@unborn wolf Which messege do users get when they try to break/place blocks?

old heart
#

and @proper sapphire u said earlier you were interested in learning java a TP on join would probably be a good starting point

unborn wolf
#

teh standard one "Hey! Sorry, but you cant okace that block here"

molten whale
#

Check the flags of the __global__ region

unborn wolf
#

and i made the priority higher than the main claim

#

how do i do that

molten whale
#

With /rg flags __global__

unborn wolf
molten whale
#

oh, nvm

#

/rg flag __global__

proper sapphire
#

I restarted and I get the same erroe

#

error

unborn wolf
#

either that

molten whale
#

Are they any errors on the console?

#

What does it appear? @unborn wolf

unborn wolf
#

what do you mean

molten whale
#

When you do /rg flag __global__

unborn wolf
molten whale
#

¯_(ツ)_/¯

#

Ohhh

#

Nvm

unborn wolf
#

i have never made a region called global

proper sapphire
#

itaquito no there are no console errors

molten whale
#

The __global__ is a default region that includes all the world

unborn wolf
#

i did

#

but stiil says that

proper sapphire
#

There was an error loading the data. Either the URL was copied wrong or the session has expired.

Please generate another editor session with /lp editor.

#

is what I get

unborn wolf
#

awd

#

ok

#

non of the pages says global

#

no

#

why is that ?

#

what do i have to wirte otherweise

#

cuz i have a regian that cover all my build

#

called MainC

#

My main region MainC has thease flags

#

i cant see that

#

arr

#

hereh

#

that is my main region

molten whale
#

There is your problem

unborn wolf
#

that has build deny

#

what

#

is my problem

molten whale
#

It has priority 1, it ovverides all of the regions that are inside it.

unborn wolf
#

oh

#

so it has to be a high priorirty

molten whale
#

Well

#

Which prioty does the cell regions have?

unborn wolf
#

2

molten whale
#

oh

#

Then it should be fine :3

#

However, try allowing the breaking of the blocks there for a second and see if the problem is solved

#

If not, then you know is not that

unborn wolf
#

i can still no

#

t

molten whale
#

What happens when you do /rg info in the cell?

unborn wolf
molten whale
#

And you say the member cant break blocks..?

proper sapphire
#

/lp editor wont work

unborn wolf
#

yes

#

thw person who has bought the cell cant break or place

#

onlt open dors

molten whale
#

@proper sapphire Try adding perms via in-game commands

#

hum

#

Of what?

unborn wolf
#

i have now allowed build in the cell but still not work

proper sapphire
#

Itaquito how does one do that

frigid ember
#

I have items you get when you join to access menus but essentials overwrites it with the stone starter toold ive went into the Essentials plugin and deleted the kits.yml 3 times already but the file just keeps coming back and I cant get rid of the stone tools.

molten whale
#

@frigid ember On the Essentials config, set this to ''

  # Do we want to give users anything on first join? Set to '' to disable
  # This kit will be given regardless of cost and permissions, and will not trigger the kit delay.
  #kit: ''
  kit: tools```
proper sapphire
#

so i do

#

I dont understand anything on the website yo sent

molten whale
#

/lp group (group) permission set (perm) true/false
or
/lp user (user) permission set (perm) true/false

#

Also, you downloaded the latest version?

proper sapphire
#

yes

#

how do I group someone

molten whale
#

/lp user <user> parent add <group>

proper sapphire
#

make the grouP?

plush folio
#

lp creategroup name

#

where should i buy the epicboss on sogonda or on spigot

#

idk where is the official author

#

so i need to buy on sogonda?

#

not on spigot?

#

iam right?

golden vault
#

Yes you would need to contact Songoda wherever she is selling her plugins, which is no longer Spigot.

plush folio
#

ok ty

quick arch
#

Why not just use MythicMobs 🤔

golden vault
#

np

frigid ember
#

Hey, so, i have a problem with the login on Spigotmc.org, it tells me to confirm my email, eventhough i already did that. Could somebody help me possibly?

#

Okay, so i had to open the link i a new tab

#

Weird

#

Well i fixed it

dusty topaz
#

Can you upload gifs in your resource thread?

#

Or do I have to make a youtube video? Imgur and Gyfcat gifs aren't going in

soft ruin
#

The book exploit was fixed in 1.8.3 right? don't exist in 1.8.8 right?

#

sounds like a guy keep crashing a 1.8.8 server i have with a book exploit

languid summit
#

Is there a way to get my donnor rank over here?

wooden harness
#

I mean you could just update your server

#

😛

subtle blade
#

You know where the book exploit doesn't exist?

#

1.15.2

#

The latest version

#

You know. Where all the bug fixes have been made

soft ruin
#

yea most servers are 1.15.2, wondering to update that one server self alot complain about it as them want 1.8 pvp and don't want 1.8 pvp plugin as its not same :/

still gazelle
#

@dusty topaz Gifs are possible, but they seem to be finicky. You can upload them directly to Spigot through the upload images option, but they have to be small

#

(Like, really small. I had to shrink mine)

#

And, unlike URL images, I was never able to get URL gifs to display correctly when I tried

dusty topaz
#

I've just made a youtube video instead

#

I wanted it to automatically play but I suppose if people care enough they'll click

#

Thank you though

paper compass
#

What time is it for md_5 rn?

quick arch
#

Friday, April 3, 2020, 5:19 AM

paper compass
#

ohhh

#

kk ty ❤️

#

ahhh

keen moth
#

@dusty topaz for future reference, iirc, your gifs will not render if they exceed 5mb

timid basin
#

Hi, can anoyne help me test my plugin? I'm looking for developers that can give suggestions on what other features I could implement

#

I'm going to message you the ip address of my server

#

oh i'm looking for people that could help me test the plugin

#

it uses a lot of packe bandwith so it's hard to test if it works for people with high ping

#

ok thanks for the suggestion

#

btw the plugin i'm working on is a fully working touchscreen display in minecraft that can update with a frame rate of 5-20 fps and can convert bufferedimages to map colors realtime

#

i have implemented a markup language for it that consists of buttons, image renderer, background renderer, music player, item shop, gif player

#

idk what else i can implement

#

i will try to record one now

#

dang that discord file limit

#

can't send a video

#

will try to compress

#

here is a quick example video of what the plugin can do

#

if you have some suggestions on what i should implement i will try

analog swift
#

@analog swift I'll see what i can do about Orebfuscator ^-^
@sharp hollow Thanks man :)
Tried fixing it myself but just got errors

final verge
#

Is this going to be a library devs can hook into?

timid basin
#

@frigid ember thanks a lot

final verge
#

I have some cool ideas I could use that for

timid basin
#

yes i will try making an api for it

final verge
#

What’s the name of it so I can be on the lookout for it’s release?

timid basin
#

it will be called interactiveboard I think

#

it will be a premium plugin at first but i hope to make it open source and only some premium version but basic rendering with api will be free in the future

subtle blade
#

I was just going to say, 👏 o 👏 p 👏 e 👏 n 👏 👏 s 👏 o 👏 u 👏 r 👏 c 👏 e 👏

final verge
#

😂😂

timid basin
#

Yeah I'm planning to make it open source

analog swift
#

I mean u can take the road like libsdisguises

timid basin
#

kinda like chromium / chrome

analog swift
#

premium, but open source

#

so ppl need to buy to get support, but developers can complile themselves if they really dont want to pay

final verge
#

I wanna add quests in the future to McRPG and this would be an amazing thing to have, like just a quest board where people can go and accept and turn in quests or something

#

There’s so many cool plugins I wanna support 😂

timid basin
#

yeah you will be totally able to do that

final verge
#

Some guy was showing off his world generator plugin he’s working on and when that drops I wanna support that too

#

Idk I just love all this innovative stuff that’s coming out

analog swift
#

@sharp hollow Seems like orebfuscator actually was updated to 1.15, just had to download from github 🙂

timid basin
#

@final verge there is kind of a problem where gif playback can use too much packet bandwith for people with bad internet

#

and idk what to do for that

sharp hollow
#

@analog swift Only seeing 1.13 releases on that github

final verge
#

Can you lower the resolution if they have bad internet?

timid basin
#

you can make it smaller

#

but you can't make it smaller and upscale

#

since upscaling will be server side anyways

#

idk how minecraft packet compression works maybe if it finds a 2x2 area of same pixels it just compresses it

#

so it might save bandwith

sharp hollow
#

@analog swift Which repo did you download that release from 🤔

#

nvm

timid basin
#

what do you mean?

#

when i started learning about maps

#

i use a simple thread about maps made by stef i think

#

it teaches you the basics

#

but the default implementations are limited to 2 fps

#

but you can't achieve a lot of things if you go bukkit api route

#

i only use bukkit api for scheduling tasks and seeing if a map is in render distance currently

analog swift
timid basin
#

i think she uses the same color converter as me

tiny dagger
#

yo

keen radish
tiny dagger
#

any idea why extending entity wither on 1.12 goes invisible?

#

it happened for armorstands too

#

aparenty not extending it works

#

🤔

quick arch
#

I should use that in my RPG plugin too

zenith siren
#

Hey!!
I've added a small feature in a plugin which lets you use color codes in Anvils. It uses the PrepareAnvilEvent and it works flawlessly. Now I also added a few special item with colored names. What I want is to check if one of those special items has been put in an anvil and then set the cost super high so it will basically be impossible to change those special items. Now I know how to change the cost but I can't seem to find a way to see which item has been put in the anvil. The only thing that I can see is the result item, but I don't need that for this.

quick arch
#

This is for normal items?

#

If so, you could detect if they have a special NBT tag i.e. customItem or something, If they do then disallow the name changing

zenith siren
#

But how do I check the NBT if I can't seem even get the input ItemStack

quick arch
#

ok, embeds aren't available, rip

#

NBT-API has a lot of examples

zenith siren
#

But I can't seem to get the ItemStack

#

That's the whole problem

quick arch
#
NBTItem nbti = new NBTItem(item); // item being an ItemStack
// Setting nbt
nbti.setBoolean("customItem", true);

// Getting nbt
nbti.getBoolean("customItem");

// Turning it back into an itemstack
nbti.getItem();```
zenith siren
#

I can't get the ItemStack XD

#

That's what I keep saying

quick arch
#

nbti.getItem()?

#

oh

zenith siren
#

No

quick arch
#

In the PrepareAnvilEvent event

zenith siren
#

I don't see any method to get the input item

#

Am I blind?

quick arch
#

He's on 1.12.2 iirc

zenith siren
#

Is 0 the input slot with an Anvilinventory?

#

Didn't think about that

#

Thanks

quick arch
#

Spigot's just weird

#

He's on 1.12.2

final verge
#

if spigot dont have what you need, write a pr xD

zenith siren
#

👺
No embeds

#

An internal Error is a fault on the plugins behalf

#

you should contact the developer about the issue

#

Message him on Spigot

#

The forum

#

Then there's not much hope to be honest

green lodge
#

Hey fellas, what's the best way to get a random block? Would I just iterate through the material list

zenith siren
#

Wait, so Inventory#getItem(Integer) doesn't work?

#

I could just wait a tick to get the items

#

._.

#

I'm going to try it, we'll see

subtle blade
#

Hey fellas, what's the best way to get a random block? Would I just iterate through the material list
Get a random Material constant from the values()

#

ensure isLegacy() is false and isBlock() is true

#

Else, re-roll for a random material

quick arch
#

Choco

#

make a pr for prepare anvil event >:)

subtle blade
#

For what?

crimson monolith
#

Hi friends! I have a doubt. I don't want free code, I just want to understand why my code does not work.
The objective is pretty simple, I want a command that can enable or disable the flight for a player.
So this is what I've written so far:

if (sender instanceof Player) {
    if (args.length == 0 || args.length > 1) {
        return false;
    } else {
        if (args[0] != "off" && args[0] != "on") {
            return false;
        } else {
            Player targetPlayer = (Player) sender;
            if (args[0] == "on") {
                targetPlayer.setAllowFlight(true);
                return true;
            } else {
                targetPlayer.setAllowFlight(false);
                return true;
            }
        }
    }
}

First I test to see if the CommandSender is an instance of Player, then I test to see if the player has used too much or too few arguments (given only one is needed), and if he has used the correct amount of args (one). It seems simple for me, but I can't understand why that doesn't work. Thank you for you time tho ^^

quick arch
#

to get the original item that was put in

#

cause you can only get the result 🤔

subtle blade
#

Get the item in the input slot from the inventory?

quick arch
#

The PrepareAnvilEvent events called before the items set in the AnvilInventory. - SystemEncryption

#

I technically don't need it but it would be helpful :p

#

ah, the $1000 fork

subtle blade
#

What's wrong with PrepareAnvilEvent#getResult()?

quick arch
#

uh... that's the result

#

basically want the anvil in the first slot (and possibly 2nd slot)

hasty crag
#

@crimson monolith your method is wrong

subtle blade
#

I'm confused

hasty crag
#

for letting them fly i believe

quick arch
#

I'm foncused by your confusion

hasty crag
#

i could be wrong

subtle blade
#

Why is the item not present in the slot?

#

If you get slot 0, it should get that item

crimson monolith
#

I see, but why is it wrong tho? When I simply do "targetPlayer.setAllowFlight(true);" it works normally

final verge
#

Does getInventory()#getSlot(0) not work?

#

Oh shoot

quick arch
#

😠

subtle blade
#

That doesn't make any sense. The event is called as a result of it being in the inventory

hasty crag
#

oh

final verge
#

Doesn’t spigot deal with events in pre

#

So the events get called before anything is changed

crimson monolith
#

I have made a test to see if it's not catching the arguments or anything, but it seems it is.

final verge
#

So if the ingredients aren’t exposed then getting them from the inventory might not do anything

hasty crag
#

try also do setFlying

#

for the player

subtle blade
#

Prepare event would have to have been initiated by an item in that slot, so if it's not there, it's called too early and someone should PR a fix

quick arch
#

uh.. I suggested you to do it 😏

final verge
#

sighs and adds to list

crimson monolith
#

I will, thank you!

quick arch
#

o

crimson monolith
#

No wait

#

but that doesn't achieve what I want

quick arch
#

guess DiamondDagger has decided do it then 🤔

crimson monolith
#

I don't want the player to simply fly, I want it to be Able to fly if he wants it.

final verge
#

I just have a list of PR’s I wanna do 😂

subtle blade
#

That's what I'd thought

crimson monolith
#

I will make more tests and come back with the answer if I find it out I guess :/

quick arch
#

Choco is just being a lazy person and tryharding in Rocket League

#

😠

final verge
#

Also wait what version of MC is this issue occurring in

zenith siren
#

I never said it didn't work 😳

quick arch
#

pretty sure... as early as 1.8.8? (wasn't added in 1.8.8)

#

or atleast somewhere in 1.12.2

final verge
#

PR’s will only change 1.15.2, I’m not sure if they get sent downstream to 1.14? @subtle blade do you know more on how that works?

subtle blade
#

We don't revert changes to previous versions, no

#

Just latest because latest is all we support

quick arch
#

that's still good

final verge
#

Aight that’s what I thought

#

If you can confirm issue happens on latest spigot then I’ll get to it sometime this week hopefully

quick arch
#

I'll probably do that on the weekends

#

I have homework and other stuff to do....

#

Indeed

final verge
#

Ping me and remind me or dm me once you confirm 😘

quick arch
#

Alright :D

keen radish
#

Can someone help please? 🥺

old heart
#

Also you didn't label the PlayerQuitEvent as @EventHandler

keen radish
#

the [...] are just other command options

#
  • they're empty
crimson monolith
#

Soooo It seems that using args[0] == "off" does evaluate to false even if args[0] is "off";
But args[0].equalsIgnoreCase("off") works.

subtle blade
#

because == is referential equation

crimson monolith
#

Thanks for the explanation!

peak marten
#
    public static Main plugin;
``` is just a no go.

```java
Player player = (Player) sender;
Player p = player.getPlayer();
if(((args[2].isEmpty())) {
``` how can it be empty if you earlier checked for the length?
keen radish
#

@fluid basin im kind of new in making plugins and I really try to figure it out by myself but most of the information I can get are about PEx, LuckPerms.

peak marten
#

About the middle one, you are not checking if your sender is an instance of Player. So it can crash if called from a console or command block

keen radish
#

@peak marten It's in the [...] 😅

peak marten
#

Oh lol

#

Wait ... no it isn't?

elder cradle
#

someone what know a guns plugin (1.14.4)?

peak marten
#

If it is there, it's in the wrong position

green lodge
#

Quick question. is it possible to change a block permanently in the world. As an example: make all dirt blocks into cobblestone

peak marten
#

you are still casting it without checking

keen radish
#

I just paste the most important things that can affect at not saving permissions I gave by command.

quick arch
#

CrackshotPlus is an addon for Crackshot

elder cradle
#

G r a c i a s

green lodge
#

Because me and my friends mess around with plugins and I think it would be interesting to gradually change random blocks.

quick arch
#

Shouldn't recommend to use CrackShot :p

#

~3,000 lines in a single file and there's 2 or 3 of those 🤢