#help-archived

1 messages · Page 34 of 1

haughty stag
#

So if you don't want something, just delete it.

#

Wasn't even thinking about that @radiant pollen. Dang.

frigid ember
#

@frigid ember You create an itemstack, and then you set the item into the inventory slot. This is how that works. The first slot is 0, everything in code starts at 0.
@haughty stag if i deleteit, the item i added just moved in slot 0, and how i move to slot 1

radiant pollen
#

That's why I'm saying don't use addItem()

#

addItem() adds it to the next empty slot.

#

Use setItem() and give it the slot you want it to go into. Slots start at 0.

#

so the grass in the picture you gave us is in slot 1.

haughty stag
#

You want to set the specific slot of the inventory. From top left, in reading order, it is 0 to whatever. In your case 0-8.

frigid ember
#

That's why I'm saying don't use addItem()
@radiant pollen the "setItem()" does not spam in console ?

radiant pollen
#

no? wtf?

#

Why would it?

frigid ember
#

hm ok

haughty stag
#

No API methods should spam in console unless that spam was an error

#

if it was an error you need to share it to resolve it

#

Error spam isn't just there to ignore.

velvet veldt
#

I'm trying to create something similar to a lobby item, to lock an item in place on the player's hotbar. I've managed to prevent the player from dragging or dropping the item, but they are still able to move the items with a number key. Is there a way to prevent this without disabling number keys in its entirety?

haughty stag
#

PlayerInteractInventoryEvent (or something like that)

#

nvm just InventoryInteractEvent

velvet veldt
ocean hamlet
#

how do u create an item so that when you right click it it triggers a command

wanton delta
#

PlayerInteractEvent

ocean hamlet
#

plugin?

wanton delta
#

oh

#

i wouldnt know

ocean hamlet
#

wat

haughty stag
#

Sorry @velvet veldt, are you using InventoryClickEvent?

velvet veldt
#

thats what im currently using

haughty stag
#

And that isn't working?

velvet veldt
#

it doesnt prevent number keys from moving items

haughty stag
#

It should. Make sure its working right.

velvet veldt
#

its working but, when you hover your cursor over a slot and press the number key that the item is on, it moves the item from the hotbar to the slot your cursor is on

#

getCurrentItem returns the item your hovering over and getCursor returns air

#

getSlot() returns the slot number of the slot your hovering over

#

I cant find a way to check for either the item on the hotbar thats being moved or check the number key the player pressed

#

wait a sec

#

i just found the getHotbarButton

#

.-.

haughty stag
#

I've been talking about a specific GUI but I just realized your talking about is inside their inventory.

velvet veldt
#

thanks I just didnt see the method i was looking for

haughty stag
#

glad you found it

rapid yacht
#

You guys got any good banking plugins for 1.12.2?

#

like /bank deposit (amount) and stuff

stable escarp
#

hey

#

I'm having an issue on my server, where the server ram steadily goes up until the server crashes, I have view distance at 6, 54 plugins, 1 world, and only around 6-10 players on my server

#

That is what pops up when I type /memory

#

any help?

wanton delta
#

use /timings paste

#

its a memory leak

#

a plugin is causing it most likely

rapid yacht
#

@stable escarp LuckPerms huh?

#

I like it 💯

thorny ledge
#

Java question!

wanton delta
#

java answer

thorny ledge
#

So question has to do with abstract classes

#

methods*

wanton delta
#

answer has to do with abstract classes

#

methods*

thorny ledge
#

lol

wanton delta
#

:)

golden vault
#

lol

thorny ledge
#

So I've got an abstract class that is a superclass of these child classes

stable escarp
#

what does /timings paste do?

thorny ledge
#

There is an abstract method I'm calling from another class, but I'm looking to pass different parameters in for the same method depending on the subclass, if that makes sense.

Should I pass unnecessary parameters for compatibiilty across all sub classes or build another abstract method ?

stable escarp
#

there it is

wanton delta
#

it shows us your tps, the memory distribution between your plugins

thorny ledge
#

If you need context, I'll happily show some code

rapid yacht
#

how many plugins do you recommend for a 2gb ram, 35 player cap server?

thorny ledge
#

2gb not enough for 35 peeps lol

rapid yacht
#

how much would u say

wanton delta
#

well its not jus ram

#

also cores

#

what kind of cores

#

processor

thorny ledge
#

i'm not an expert I just know 35 players needs more than 2 gb of ram lol. Also u want a decent cpu

wanton delta
#

processor speed

rapid yacht
#

one se

wanton delta
#

if its a vps or vcores skip it

thorny ledge
#

xD

#

I assume just create another abstract method btw?

rapid yacht
stable escarp
#

so,

#

whats the memory leak?

rapid yacht
#

that good?

stable escarp
#

I did /timings on and /timings paste

rapid yacht
#

for the processor?

stable escarp
#

thats the link that showed

rapid yacht
#

@wanton delta

wanton delta
#

not enough info

#

how many cores?

#

wht kind of cores?

#

server hosts love to brag about their processor

stable escarp
#

talking to me? ;o

wanton delta
#

no

stable escarp
#

oh

#

How do i figure out this "memory leak"?

wanton delta
#

@stable escarp you need to take the timings when the server is at max memory

#

or when things slow down

#

this paste is from when the server is doing fine

stable escarp
#

whenever i restart the server

#

it goes back to like 2.5 gb

#

and than it slowly rises up

wanton delta
#

mhm

stable escarp
#

until the server crashes

wanton delta
#

thats a memory leak

stable escarp
#

hmm

wanton delta
#

what im asking of you is to keep track of the memory

stable escarp
#

how can i locate this memory leak with the timing pastes?

wanton delta
#

once it gets to its max memory, use the timings paste command

#

you will see in the website a breakdown of percentages

#

there will (most likely) be a plugin that is taking up a large Pct Tick or Pct Total

stable escarp
#

it's essentials X?

wanton delta
#

if you need help finding what plugin that is, you can show us the timings

stable escarp
#

it says essentials X

#

48%

wanton delta
#

nope

stable escarp
#

and leaderheads revamped 93%

wanton delta
#

looks like this plugin is your problem

#

try to remove it and see if the problem persists

#

if not, paste new timings

stable escarp
#

okay

#

hmm

#

damn I paid for that plugin rip

wanton delta
#

you should contact the author

#

tell them whats up

#

you suspect a memory leak

rapid yacht
#

@wanton delta it does say dual E5-2600 series CPUs

stable escarp
#

Okay I'll try deleting from my server

#

and see if that fixes anything

rapid yacht
#

so i'm assuming those are the cores

wanton delta
#

@rapid yacht can you link me the website?

rapid yacht
#

sure

#

I linked

stable escarp
#

okay

#

is it normal i only have 6 people on my server and it says 2.6 gb ram being used?

#

or just 2 people i mean

#

also

#

essentials ?

golden vault
#

Anybody know why a pdf file in the resources folder goes from 261kb and openable with all the contents correct to 378kb and blank when you build the jar with maven?

lunar rivet
#

Is there a way to compile a specific git version of the CraftBukkit or Spigot jar? I'm tryin to regenerate part of my world, but I need to be on git-Bukkit-fc24934 for it to match..

north hound
#

quick question... using the worldguard ___global___ flag; thats only for a sepcific multiverse?

#

or an entire server

fleet crane
#

@golden vault make sure you don’t have resource filtering enabled

#

@lunar rivet world gen only changes across major versions

golden vault
#

I do, I think i fixed it with <nonFilteredFileExtensions>

#

It didn't work the first time i tried it but did after I ran the previous lifecycles

lunar rivet
#

@fleet crane it was another issue that I found, thanks

golden vault
#

does the dependency-reduced-pom.xml override the pom.xml?

fleet crane
#

No, it’s not used anywhere by default

golden vault
#

what would be part of the previous build that would override changes to the pom? It didn't work when i tried it first but I figure that "clean" is what made it work the second time.

fleet crane
#

You wouldve needed to clean it to remove the broken cached file

haughty stag
#

md_5, could be a good idea to make a coding-help channel to separate from all the other help. Just an idea.

golden vault
#

nah too many channels to watch already

#

(other servers too)

radiant pollen
#

New channels could be good if people actually cared. Everyone just posts their questions in every single channel. :’)

golden vault
#

that too

hot girder
#

and

wanton delta
#

general should be renamed to offtopic imo 🙄

hot girder
#

Pin frequent questins

#

and answers

#

it's helpful

keen moth
#

general should be renamed to offtopic imo 🙄
@wanton delta "general offtopic discussion"

wanton delta
#

“General offtopic discussion”

#

Plus not all ppl read channnel desc

dark shuttle
#

Will player instance still same even the player disconnected and joined again?

hot girder
#

i think no

#

hmmm

subtle blade
#

No, they're invalidated

dusky herald
#

^

#

If its not too bad on resources just save/unload any specific data you need to save for the player when they quit and remove them from your maps then add/update their player when they rejoin as needed.

sturdy inlet
#

Hey does anyone know any 1.15 plugins that will allow 1.8 pvp

#

i have one but it is to op

frigid ember
#

"to op"

#

wat

ivory musk
#

Is a FurnaceBurnEvent supposed to execute multiple times when fuel burns?

subtle blade
#

Should be called just once when the fuel item is consumed

sturdy inlet
#

@frigid ember the damage is a lot more then regular

#

Messages:
Prefix: '§7[§c§3AntiCooldown§7] '
Switch:
WorldEnabled: §ePvP Cooldown is §a§ldisabled §ein this world!
WorldDisabled: §ePvP Cooldown is §c§lnot disabled §ein this world!
Login:
Enabled: §aHey, welcome to the server! §ePvP Cooldown is §a§ldisabled §ein this
world!
Disabled: §aHey, welcome to the server! §ePvP Cooldown is §c§lnot disabled §ein
this world!
Setting:
AddDisabledWorld: §aOK! In the world §e%world% §athe cooldown is now activated.
RemoveDisabledWorld: §aOK! In the world §e%world% §athe cooldown is now deactivated.
Error:
WorldAlreadyDisabled: §cThis world is already §c§ldeactivated§c!
WorldAlreadyEnabled: §cThis world is already §a§lactivated§c!
PlayerNotOnline: §cThe player is not online!
NoPerms: §cNo permissions!
ConfigVersion: 5
Settings:
Messages:
UseLoginMessage: true
UseSwitchWorldMessage: true
Values:
AttackSpeed: 100
Updates:
UseUpdateChecker: true
ConsoleNotify: true
IngameNotify: true
Downgrade:
UseOldDamageValues: false
UseOldOpApple: false
DisabledWorlds:

  • YourWorldName
#

could someone help me configure this to be identical to 1.8 pvp

fleet crane
#

well which part is not like it

sturdy inlet
#

it may be the attacking speed

#

actually thats not the problem

#

im dumb sorry

final verge
#

Isn’t there a plugin called like OldCombatMechanics?

safe mesa
#

ok

#

i need help i strat my server up anf it raqndomly stops

#

it says

#

C:\Users\ayala\OneDrive\Desktop\Plugins>java -Xmx4096M -Xms4096M -jar spigot.jar nogui
*** Error, this build is outdated ***
*** Please download a new build as per instructions from https://www.spigotmc.org/go/outdated-spigot ***
*** Server will start in 20 seconds ***

#

so i feel like it good

#

but it just stops

#

it says this at the end

#

[Server thread/ERROR]: This crash report has been saved to: C:\Users\ayala\OneDrive\Desktop\Plugins.\crash-reports\crash-2020-04-21_23.05.30-server.txt
[23:05:30] [Server thread/INFO]: Stopping server
[23:05:30] [Server thread/INFO]: Saving worlds

C:\Users\ayala\OneDrive\Desktop\Plugins>PAUSE
Press any key to continue . . .

fleet crane
#

bad idea to run your server in onedrive to begin with

safe mesa
#

ok

fleet crane
#

but dont you think the crash report would be helpful

safe mesa
#

it says

#

at the end

#

IS modded: ERROR blah blah blah

fleet crane
#

:\Users\ayala\OneDrive\Desktop\Plugins.\crash-reports\crash-2020-04-21_23.05.30-server.txt

#

upload the whole file

safe mesa
#

WHERE

#

opps

#

srry caps

stable escarp
#

server ram is at 3.7 gb with only 2 players on

fleet crane
#

leave server-ip in server.properties blank unless you know what youre doing

safe mesa
#

yeah

#

its just for me and my friend

#

for custom plugins

fleet crane
#

leave it blank

safe mesa
#

where

fleet crane
#

server.properties

safe mesa
#

can we screenshare?

fleet crane
#

you changed it

#

dont change things you dont understand

safe mesa
#

server ip right

sturdy inlet
#

dont change anything

fleet crane
#

yes leave it blank like it was

safe mesa
#

ik i was watching a video

fleet crane
#

or just delete server.properties and dont touch it

sturdy inlet
#

lol wait are you gonna port foward the server

safe mesa
#

yes

radiant pollen
#

oh boy

safe mesa
#

did i just delte that for no reason -_-

tiny dagger
#

wait so you want to port forward?

sturdy inlet
#

oh ur gonna need server. thjing

safe mesa
#

can i play with a friend without port fowarding

radiant pollen
#

if you're on the same network, yes

tiny dagger
#

in local yeah

sturdy inlet
#

they have to be on the same internet

safe mesa
#

nvm lol

#

do i put that thing i had back

tiny dagger
#

go in windows cmd

#

type ipconfig /all

radiant pollen
#

no. delete the server.properties and then start the server

safe mesa
#

ok

sturdy inlet
#

it will come back

#

if you start the server

#

and just put your ip in and portfoward thaT ip

#

if you know how to

tiny dagger
#

look at default gateway

stable escarp
#

umm anyone able to help? :d

tiny dagger
#

it's your local router ip

#

put that in server.prop

sturdy inlet
#

what u need

tiny dagger
#

then go in router settings

safe mesa
#

ok its open

stable escarp
#

Server leak I believe

#

memory*

tiny dagger
#

there is a portforward tab

safe mesa
#

can someone help on screenshare

#

lol

#

i messed this up the first time

fleet crane
#

learn to read

#

not everything in life will be in video form

tiny dagger
#

^

safe mesa
#

ok ok

stable escarp
#

3.8 gb ram being used when only me and my friend are on our server? only have around 55 plugins, and this is my timings, I couldn't find a server leak

#

memory*

tiny dagger
#

we can't see leaks from timings

#

the plugin spark is pretty cool for that tho

stable escarp
#

oh

#

spark plugin can show me maybe?

tiny dagger
#

but i can see a nasty world save

safe mesa
#

wait do i kept the server open

stable escarp
#

I was told that timings helped identified memory leaks in certain plugins if the % is high, guess I was fooled

fleet crane
#

why do you think its a leak

stable escarp
#

someone told me on here earlier

#

Cause it slowly increases with time until my server crashes

fleet crane
#

you need a heap dump to identify a leak

stable escarp
#

ahh rip, I have no idea how to do that sort of stuff ;-;

fleet crane
#

is the crash actually an out of memory error though

safe mesa
#

ok put the default gateway on server ip right

stable escarp
#

md_5 yes

#

it gets all the way to max

#

than crashed overnight

fleet crane
#

yes leave it blank like it was
@fleet crane

tiny dagger
#

@safe mesa you are behind a router right go in its control panel

fleet crane
#

please read what people are saying carefully

#

leave server-ip blank

safe mesa
#

i got pictures of router info

#

i port fowarded it but maybe i did it wrong

fleet crane
#

it doesn't do what you think it does and it doesnt need to be changed

#

delete server.properties and dont touch the file

tiny dagger
#

use that gateway ip to port forward your server

safe mesa
#

ok im in my router thingy

tiny dagger
#

screenshot

safe mesa
#

fr33styler what do i put for external ports

stable escarp
#

so in order to track this memory leak, i need to do a heap dump, anyone able to help me out on that?

tiny dagger
#

the portforward tab

safe mesa
#

internal ports?

tiny dagger
#

i just wanna know how are you doing

safe mesa
#

ok i could go live in general

#

do you want me to?

final verge
#

Live isn’t enabled on the server

safe mesa
#

oh lol

#

@tiny dagger

#

im not able to send you a screenshot in your dms or anything

tiny dagger
#

IPv4 Address. . . . . . . . . . . : 192.168.0.100(Preferred)

#

i've just noticed

#

ipv4 is your local address

#

not gateway

safe mesa
#

ok go into dm ima show you what i see

frigid ember
#

Help

#

Lol

tiny dagger
#

well just do what he said to

radiant pollen
#

@frigid ember Open the eula and agree to it.

frigid ember
#

anddddd

restive lava
#

lul

frigid ember
#

where is it

tiny dagger
#

root

#

of the server

#

its just been made

frigid ember
#

cd /

#

?

tiny dagger
#

specially for you to access

#

i suppose

#

i don't know at what location your server root is

frigid ember
#

Its a vps

#

from hetzner

tiny dagger
#

just go in your server root

frigid ember
#

ubuntu 18.04

#

so cant i just do somethinf like nano /eula.txt

#

to edit it

#

I see no eula.txt

#

go to your server directory

tiny dagger
#

^

frigid ember
#

the same place the spigot is

tiny dagger
#

what i meant by server root was minecraft server root

frigid ember
#

See it ty

thorny ledge
#

I got a question

#

Best way to handle subcommands on a plugin? Is abstraction the way to go?

tiny dagger
#

that's what i do

thorny ledge
#

Is that the conventional way to do it?

tiny dagger
#

it's a subcommand

#

it's your way of doing it

thorny ledge
#

I plan to build a map that contains a string key

#

since maps can sort so quickly

#

err you know what i mean

#

find something inside of it lol

tiny dagger
#

i don't like string as key

#

they can clash easily

thorny ledge
#

The key would be the name for the subcommand

frigid ember
#

Is dragon proxy enough to play

tiny dagger
#

if you're sure its the same object then go for it

thorny ledge
#

It would be something like this prepare for sudocode

#
class CommandHandler {

map<String, someAbstractObject> cmds = new HashMap<>();

onCommand(..., String args[]) {
if(cmds.containsKey(args[0].lwrcse) {
  //logic
}
return true

}
}

#

Pretty much the subcmds would be a subclass of someAbstractObject class

#

You get the drift. Just not sure this is good convention

#

Trying to stay consistent with widely accepted ways to do things for readabillity across projects that are both mine and not mine

frigid ember
#

@tiny dagger

#

Do u know what dragon proxy is?

tiny dagger
#

never heard of it

keen compass
#

you could just do
Map<String, CommandExecutor> cmds;
@thorny ledge doesn't have to be an abstract object class

frigid ember
#

@tiny dagger i dont see the plugins folder

#

Do i need to run the server omce first

thorny ledge
#

True, because it's a subtype of CommandExecutor

#

When extending it^

tiny dagger
#

@frigid ember

#

yeah

frigid ember
#

Ok

keen compass
#

generally you implement CommandExecutor

thorny ledge
#

Yeah, that's what I meant. No idea why i said extends lmao

#

it's an interface so wouldn't make sense to extend it xD

#

Well in this case at least

keen compass
#

its how I usually do my commands, just make a base command, then stick all the rest into a map and just use the map to call which ever one I want

frigid ember
#

i have a question

thorny ledge
#

It'd be nice if the API had a built in way to handle sub commands

keen compass
#

we just might have an answer

frigid ember
#

Optifine makes the game run better by splitting the load between cores yes?

#

or no

thorny ledge
#

Thanks for the feedback btw, Glad to see a general trend for a way to do this

keen compass
#

Well, I am not entirely sure what Optifine does modification wise. But I do know most of it revolves around reducing effects and what not as opposed to modifying the client to be more multi-threaded

bronze marten
#

mojang should integrate and maintain optifine in the vanilla mc version

keen compass
#

Optifine devs declined Mojangs offer

#

was already attempted

bronze marten
#

oof

keen compass
#

Mojang was willing to buy optifine 😉

tiny dagger
#

really?

keen compass
#

but after some debate, the Optifine devs felt it be better that they keep it separate

#

yeah this was like back in 2015? I think

bronze marten
#

bruh

#

they want that cape-money

tiny dagger
#

^ 😂

high root
#

Best way to handle subcommands on a plugin? Is abstraction the way to go?
@thorny ledge I handle commands and arguments with abstraction

frigid ember
#

@tiny dagger why abstract class

#

i'd rather use an interface

radiant pollen
#

^

tiny dagger
#

i want some default logic

#

for example for tab

#

my subcommand is more of a subcommands

#

aka 1 command can have like 3 inputs

frigid ember
#

ok

#

Can someone help me

#

yes

#

sir

#

wait ima check the port

#

why

#

nah

#

you check yourself

#

what if you try getting our ip and some sus shit

#

25565

#

i dont have access to a pc dn

#

Rn

#

what if you try getting our ip and some sus shit
@frigid ember then dont play multiplayer is that what ur saying

#

The only thing i can do with ur ip is geolocate u

#

you

#

test

#

your

#

self

#

ok fine

#

just that ip looks very untrusted

#

u have a subdomain xd

#

your server is up

#

requires a 1.15 client though

#

but it is online

#

Ok good

slate ocean
#

how much ram should I need for a survival server? its one of the gamemodes in my bungee server

#

im replacing it instead of factions since i heard people play more survival and also it would take less ram and allow me to make more hubs and servers for other gamemodes

frigid ember
#

Am i doing this wrong

#

Shouls i make a folder called DragonProxy then run the jar in there?

#

@frigid ember

high root
#

If you put the jar in a folder that is not the plugins folder it will not be runned

#

It says that is a development build and that it may contain bugs so maybe in the future is fixed

#

@frigid ember

frigid ember
#

So what do i put in the plugins foldee

#

And what do i not

high root
#

In the plugins folder you put the .jar files

#

Then the jar files should create their own folders to put their files

frigid ember
#

Well this is what i got from running the jar

#

And the server gave me an error when i started it with the plugins folder like this

#

Oh i think im not done

#

am i supposed to do this in the plugins folder

#

i think im retarded

#

is it not a plugin

#

am i retarded

#

can someone tell me what to do

#

@high root

bronze marten
#

no its not a plugin

high root
#

It doesn't say where to run it so I supose you have to run it in the server folder

bronze marten
#

isnt dragonproxy that compatibility thing with java and bedrock edition?

high root
#

You shuld do this from a pc

knotty karma
#

I believe you're thinking of Geyser @bronze marten

#

dragonproxy may be another, but I have used Geyser

#

Is there a way to place Structure files (from a structure block) in a BlockPopulator?

bronze marten
#

Geyser seems better yeh

vale slate
#

this is a download of the mvn build container

#

they want you to build the jar yourself

knotty karma
#

for structures, is there a way to load and insert a structure block/Minecraft structure, or am I better off exporting as a schematic and just using the WorldEdit API?

knotty karma
#

ah, thanks!

vale slate
#

Nemo, your personal search engine

lyric jungle
#

Hello anyone able to help me please?

vale slate
#

What was your problem?

lyric jungle
#

Can i DM you its way too many errors

high root
#

@vale slate what?

vale slate
#

post them in a pasting website like pastebin or hastebin

lyric jungle
#

okay

vale slate
#

@vale slate what?
@high root It looked like someone asked a question and you are replying with 2 links

high root
#

Yes

#

Whats the problem?

vale slate
#

nothing, I just found it funny

viscid star
#

Quick Question.. shuld Spigot folder be in Root dir on mincraft server folder

high root
#

If you go to the spigot forum and you search the questions, most of the replies are just links to other threads that asked the same question or a https://es.lmgtfy.com link

#

Quick Question.. shuld Spigot folder be in Root dir on mincraft server folder
@viscid star what?

lyric jungle
vale slate
#

are you familiar with reading stacktraces?

lyric jungle
#

no

vale slate
#

so this bunch of errors says nothing to you?

lyric jungle
#

dude i just started getting in java 1-2 weeks ago

#

lol

high root
#

Caused by: java.lang.NullPointerException -> Something is null
at org.evrstnetwork.core.Events.onFirstJoin.spawnTp(onFirstJoin.java:40) ~[?:?] -> Class and line of your error

vale slate
#

I just wanted to know what I need to explain to you

lyric jungle
frigid ember
#

i need MORE HELP

vale slate
#

but Nemos explanation is great

lyric jungle
#

oops one sec

frigid ember
#

how do i op a player

high root
#

Which is the line of the error?

#

/op <player name>

lyric jungle
vale slate
#

I think your location in the config is null

high root
#

@lyric jungle I been looking at your code and I sow this

player.teleport((Location) this.Main.getConfig().get("spawn"));

But Location implements ConfigurationSerializable so you can just use

player.teleport((this.Main.getConfig().getLocation("spawn"));
vale slate
#

^

lyric jungle
high root
#

I think your location in the config is null
@vale slate Probably
@lyric jungle can we see the config file and the paths in your plugin?

lyric jungle
#

ye

thorny ledge
#

This seems redundent

#

don't think you even need it

lyric jungle
#
slowchat:
  int: 0
chat_muted: false
AutoSpawn: true
spawn:
    ==: org.bukkit.Location
    world: world
    x: -555.425291245561
    y: 65.0
    z: -171.62818025829407
    pitch: -1.9609617
    yaw: -2.7291484
vale slate
#

Is it a new trend to capitalize variables

vapid dawn
#

my Votifier is not Working i have GAListener and it says 0.0.0.0

viscid star
#

It seams i have a server ready

vale slate
#

well then have fun

viscid star
#

thx.

#

but i get problems with the server commands.

#

locate mullcom
[10:40:17] [Server thread/INFO]: Incorrect argument for command
[10:40:17] [Server thread/INFO]: locate mullcom<--[HERE]

vale slate
#

this is not a mc structure

viscid star
#

i have CraftBukkit and spigot installd

#

i think :S

vale slate
#

well the locate command is for vanilla mc structures

high root
#

true

vale slate
#

@viscid star

viscid star
#

Syntax
Java Edition
locate <StructureType>

vale slate
#

yes

viscid star
#

i dont follow?

#

its java edition i have.

frigid ember
#

anybody know what geyser is?

vale slate
#

yes but "mullvom" is not a mc structure

viscid star
#

its my user name

high root
#

anybody know what geyser is?
@frigid ember I think is a proxy so java and bedrock players can play in the same server

frigid ember
#

i wanna ask if u can op a bedrock player who connected through it

vale slate
#

its my user name
@viscid star are you a mc structure

high root
#

Syntax
Java Edition
locate <StructureType>
@viscid star This command only works with VANILLA structures, custom structures probably won't work

frigid ember
#

cos then the server shld see the player as just a normal player

viscid star
#

ahaaaa

frigid ember
#

So can u op him

viscid star
#

so how do i find user then?

vale slate
#

rather simple, you can't without plugins

frigid ember
#

tp to the player

#

lol

vale slate
#

from the console

frigid ember
#

then nope

#

now help me

#

my java acc name is dstormm

#

So when i connect thru geyser i shld be able to op dstormm

#

and get op on my phone

#

is this correct?

high root
#

@viscid star probably with some intense execute comands you can find the coordenades of a player

#

Do you have the same names in both acounts?

viscid star
#

thx

#

same name?

high root
#

It was for @frigid ember

frigid ember
#

Nope

#

ViaticalPlot643 on mobile

#

Dstormm on java

viscid star
vale slate
#

ViaticalPlot643 on mobile
@frigid ember you need to op this name

frigid ember
#

But if im not wrong geyser will change my name to Dstormm when i log in

#

^

rain cloud
#

Hi, I'm looking for someone who can do custom command / hide that can only be activated in designated regions (for events)

#

Dm me

frigid ember
#

just get like another world and have ppl connect to rhat

high root
#

Hi, I'm looking for someone who can do custom command / hide that can only be activated in designated regions (for events)
@rain cloud What does the command do?

frigid ember
#

He wants to hide whole areas of land and show them only when events occur

rain cloud
#

@high root Hides all players

frigid ember
#

Pretty sure itd be easier to use a multi world plugin

#

And have the players go to the other world during events

high root
#

@high root Hides all players
@rain cloud Can't you use plugins that do that but only use the comand in events?

frigid ember
#

But if im not wrong geyser will change my name to Dstormm when i log in
@vale slate

rain cloud
#

@high root i dont know how

#

Can you dm me ?

vale slate
#

like I said, Idk how it works in the moment

proper bison
#

how cna i set a lore for an enchantment book ??

vale slate
#

Hi, I'm looking for someone who can do custom command / hide that can only be activated in designated regions (for events)
@rain cloud this should be asked on the forum

high root
#

how cna i set a lore for an enchantment book ??
@proper bison Same as every item

vale slate
#

^

proper bison
#

@high root ive neer done it before

high root
#

I have just been warned for tagging a lot of people wtf

vale slate
#

yes

proper bison
#

nemo ive never had too add a lore before ?

high root
#

@high root ive neer done it before
@proper bison The plugin page is pretty self explanatoy. Use /hideall to hide the players, /showall to show them

#

nemo ive never had too add a lore before ?
@proper bison

List<String> lore = ...
ItemMeta meta = book.getItemMeta();
meta.setLore(lore);
book.setItemMeta(meta);

old barn
#

How do I check if the player's inventory and armor is empty?

rain cloud
#

I have problem with /vote plugin

frigid ember
#

Hey Staff i need some help please! ii bought ShopGUi+, i got -12$ in my paypal but i didnt get the resource

high root
vale slate
#

Hey Staff i need some help please! ii bought ShopGUi+, i got -12$ in my paypal but i didnt get the resource
@frigid ember when did you buy it?

limpid thistle
#
Minecart minecart = (Minecart) world.spawnEntity(spawnLocation, EntityType.MINECART);
frigid ember
#

30 mins ago

vale slate
#

well wait some time

limpid thistle
#

this is supposed to spawn a minecart, right?

vale slate
#

yes

limpid thistle
#

because it does nothing in my case

#

are there any conditions that need to be given?

keen compass
#

depends on how you are using it

#

at the moment you are assigning it to an object, but if that object isn't used then it doesn't do anything

vale slate
#

well it should spawn the entity anyway

#

or am I confusing two methods

keen compass
#

assigning an object reference doesn't always invoke the method you are referencing unless it is in some code to invoke the object.

#

but it all depends how you have it coded too

#

because that can be at the top of the class and it does nothing until you call minecart in some method

limpid thistle
#

even if i just invoke the mothod without assigning the result

#

nothing happens

#

i was able to tp players to the minecart though

#

but it was invisible

vale slate
#

set it to visible?

keen compass
#

well it wasn't invisible, just didn't spawn. Its quite possible you are spawning it in the incorrect world

#

might want to check your world object and ensure you are referencing the correct world you are trying to spawn it in

vale slate
#

one moment I'm trying it out

limpid thistle
#

The world is the right one

#

i tped a player to "spawnLocation"

keen compass
#

instead of using the world object could do
plugin.getServer().getWorld("whatever world it needs to be in").spawnEntity(loc, EntityType.MineCart);

vale slate
#

meh p.getWorld()

#

is better

keen compass
#

or that

limpid thistle
#

is p the player or the plugin?

#

well

#

nvm

vale slate
#

the playe

#

r

keen compass
#

Location can have the world omitted just fyi

#

so it is possible to spawn an entity in another world because the world object is specifying a world other then what the players are in

vale slate
#

the spawn thing works perfectly

keen compass
#

therefore, tping players to the spawn location would take them to the location but not in the same world lol

#

so that is why I said ensure your world object has the correct world reference you are trying to spawn in entities

#

also, other plugins can interfere with spawning in entities

limpid thistle
#

instead of using the world object could do
plugin.getServer().getWorld("whatever world it needs to be in").spawnEntity(loc, EntityType.MineCart);
@keen compass That seemed to work

#

Thank you 😄

vale slate
#

are you reassigning the location after tping

keen compass
#

so I was correct, your world object you are referencing wasn't using the correct world. I would bet you might just find those minecarts in another world 😛

limpid thistle
#

😋

#

now i am curious

keen compass
#

be hilarious if one of your players stumbles upon many empty minecarts somewhere XD

limpid thistle
#

i only have one normal world

#

¯_(ツ)_/¯

keen compass
#

ah then maybe not then, but who knows you could have sent them to the nether or the end unless you don't have those worlds

limpid thistle
#

maybe xd

keen compass
#

at least in the end odds are they vanished because they were spawned over the void lol

naive stratus
#

What event would I need to use to make custom crafting? I assume something about placing items in the pattern view, but I cant really find what Im looking for.

limpid thistle
#

i think you don't need events

#

you can add your own recipes somehow else

naive stratus
#

Oh yeah, you are right. Thank you.

vale slate
keen compass
#
PrepareItemCraftEvent
CraftItemEvent
vale slate
#

don't do with events

keen compass
#

just depends on what exactly you want to happen and how you want it to happen. Easiest way is to just create a custom recipe

naive stratus
#

Can I make custom materials? I see the link you shared, uses materials for the ingredients, but in my case one of the ingredients is custom.

vale slate
#

Material is a enum, so no you can't add custom bukkit materials

#

you need to use NMS for this

limpid thistle
#

You cannot make entirley new items as this is all server side

vale slate
#

since 1.14 you can with resourcepacks attached

keen compass
#

even then its not exactly a new item

limpid thistle
#

oh really?

keen compass
#

resourcepacks just makes use of an existing item that isn't commonly used to create custom items

vale slate
#

It is not a new item but it at least has its own features and design

#

and reg entry

naive stratus
#

^

#

And thats enough for what Im doing

keen compass
#

that is true

vale slate
#

But that is advanced stuff

frigid ember
#

Will the code below work well?

public boolean hasIntersectingRegion(ProtectedRegion region) {

        return region.getIntersectingRegions(regions.getRegions().values()).isEmpty();
    }
naive goblet
#

Why wouldn’t it?

vale slate
#

test it

naive goblet
#

Maybe he asked for the quality side...

vale slate
#

oh

frigid ember
#

What does PaperSpigot do that makes it more optimized than spigot?

vale slate
#

don't open up that jar in here

keen compass
#

lol

frigid ember
#

What does PaperSpigot do that makes it more optimized than spigot?

vernal spruce
#

doesnt care about some restrictions

frigid ember
#

?

#

paperspigot is more optimized than spigot

#

issa fact

vernal spruce
#

and less stable

frigid ember
#

just b ecause we are in spigotmc doesn't mean we should suc spigot's dic

vernal spruce
#

and proned to breaking vanilla mechanics

frigid ember
#

@vernal spruce now be quiet

#

don't try li e to my face

vernal spruce
#

and thats why a friend had to switch from paper because plugins kept dieing

frigid ember
#

then its the plugins

#

and you base your opinion off of a friend?

#

urgh

#

try it yourself before assuming

vernal spruce
#

when he has a succesfull server wich im working for

#

yes

frigid ember
#

So?

#

Try it yourself

#

PaperSpigot lets you modify some settings

#

in the paper.yml

#

that can improve performance

vernal spruce
#

whoopy yey

frigid ember
#

the way entities are spawned

vernal spruce
#

let me make a plugin in 5mins that does the same

frigid ember
#

and stuff

#

u cant start disrespecting it

#

so helpful

#

wow

#

/title command exists

#

i can make that in 1 minute

#

u can't just say "oh i can make same in 5 mins2

#

na

keen compass
#

any fork of spigot could potentially be better then spigot itself, but it all depends on your use case. Eventually once you get a super large server you will need your own custom fork anyways 😉 But it does no use to compare forks to spigot here though. The advantage of spigot is that it is more reliable since it is the upstream of pretty much all forks unless a fork decides to go off and do their own thing.

frigid ember
#

I won't "need" one

ocean prism
#

Hey, I'd like to know how to block crafts on spigot, anybody know how to guide me? 😄

frigid ember
#

reliable

#

yes

#

that is a fact

#

atleast you don't lie to my face

#

unlike the other dude

#

saying it messes everything up

#

and his server dies

#

and breaks mechanics

#

nah

viscid star
keen compass
#

well it is possible that a fork can cause issue with some plugins, just all depends what that fork decides to change is all. Most plugins are built against the bukkit/spigot api and therefore have an expectation in how certain things are done

frigid ember
#

i am talking about paper

#

not a fork

keen compass
#

paper is a fork

frigid ember
#

yes but youc ant generalize

#

not all forks are the same

#

Paper extends and improves the Bukkit and Spigot APIs so that you and your developers have more features and functionality at your fingertips. All the meanwhile, Paper retains compatibility with plugins written for Spigot and Bukkit.

#

FACT

#

Paper contains numerous improvements and optimizations resulting in a significant improvement in performance. Paper also includes the next version of Timings, enabling you to quickly find out what's slowing down your server.

#

FACT

keen compass
#

sometimes not always the case, for instance their async chunk loading caused problems with plugins that didn't expect chunks to be loaded in such a manner

frigid ember
#

ok

#

I mean thats logical

#

what else should they do about it?

#

their async loading is able to be TOGGLE DOFF

#

in their YML

#

SO?

#

all you must do is set it to false

#

and it won't do that

vernal spruce
#

man you like skn papers dck dont ya?

frigid ember
#

?

vernal spruce
#

10mins of cringe fanboy

keen compass
#

I am not entirely sure what exactly you are trying argue here. I am just stating some facts in why it isn't always wise to use a fork of spigot. But it really comes down to your use case. Yes I agree that some forks could be more optimal and others not so much so.

frigid ember
#

I was trying to spread some facts about paper

#

I was saying paper's optimizations

#

and this stellrow says all his plugins die

#

because of paper

#

and it breaks mechanics

#

that is straight up lying

#

That is not ok.

#

You might like spigot more, but keep it factual

obtuse rose
#

@frigid ember
Paper modify some stuff so it no longer work in a manner which some plugin, in the edge case, expected
FACT

frigid ember
#

he said ALL

#

PLUGINS

#

DONT WORK

#

and die

#

omg

#

and he hasn't even tried it, he bases it off of his friends' opinion.

obtuse rose
#

Ah well, I just willy nilly switch from Spigot to paper and nothing really break
FACT

vernal spruce
#

"and thats why a friend had to switch from paper because plugins kept dieing" "all"

keen compass
#

well I don't recall stellow saying all plugins, just the plugins his friend tried

#

which could be 5 plugins, 2 plugins or even 10 plugins

frigid ember
#

doubt

vernal spruce
#

it was 2 in particular wich players loved

frigid ember
#

I doubt all them mess with the async chunk loading

#

or even more than 2

#

ok, if you don't like it is ok

#

But it does not mess with vanilla mechanics, what do you mean

vernal spruce
#

1 in particular being armored elytra,combining chestplate with elytra

frigid ember
#

what errors

#

did he get

keen compass
#

I am not refuting that paper can be more optimal, what I am stating is that it does have the ability of screwing up some plugins due to what they do change though. They can't account for all plugins being compatible just what is most commonly used.

frigid ember
#

I doubt the armored elytra is because of paperspigot

#

Alright

#

But it does not messup the vanilla mechanics

keen compass
#

hard to say really, I mean they have so many changes done that it is hard to go through each change and actually see if there is a vanilla mechanic that has been changed which wouldn't surprise me if there is.

#

I mean some of mojangs code is indeed terrible

frigid ember
#

mojangs code has nothing to do with paper

obtuse rose
#

|| a lot of Mojang's code is terrible||

frigid ember
#

btw, my question was what optimizations does paper do to spigot and make it more optimal, he says they break mechanics

keen compass
#

Well, that question is best asked in the paper discord/irc areas rather here

frigid ember
#

ok

#

say that, rather than lie to me or spread hate

#

not directed to you

ocean prism
#

Hi! Anyone know how to block crafts?

vale slate
#

get the preparecraft event and cancel it

#

mojangs code has nothing to do with paper
@frigid ember that's false

frigid ember
#

they are complaining about paper

#

that mojangs code is bad

#

paper is not responsible for mojang's paper

#

so your statement is false

vale slate
#

oh it's meant that way around, I understand

whole grove
#

guys

#

yesterday my server joined person with ip 22.2.2.2

#

how can i prevent this

vale slate
#

/ipban 22.2.2.2

#

or was it banip

whole grove
#

he will join another ip

#

if i ban ip

vale slate
#

well then ban his username

frigid ember
#

thanks for understanding mfm

#

mfm, do you have an autoclicker?

whole grove
#

he was my username

frigid ember
#

wanna help me test my anti autoclicker

#

i made

#

on my server

vale slate
#

he was my username
@whole grove not possible if your server is in online mode

whole grove
#

it's possible

#

!

vale slate
#

wanna help me test my anti autoclicker
@frigid ember sorry, but I don't have time for that

frigid ember
#

just real quick

#

1 minute

chrome lark
#

Not in online mode

frigid ember
#

you join my server

#

and you'll see it will detect you

chrome lark
#

If you have found a way to bypass mojangs auth, congrats

whole grove
#

when you got

#

bungee

frigid ember
#

i am an anticheat dev

whole grove
#

and jouned with this ip without bungee and lobby

chrome lark
#

That's not online mode..

vale slate
#

bungee
@whole grove then you messed it up if it's possible to join internal servers from the outside

chrome lark
#

The back end servers have their authentication system disabled in that setup, so, no, those are not online mode servers, really

vale slate
#

and jouned with this ip without bungee and lobby
@whole grove you need to block these ports

whole grove
#

100% sure it;s happend

frigid ember
#

mfm still n o?

whole grove
#

electornicboy

#

this happend 2 times

chrome lark
#

Yes, against the offline mode back end servers

whole grove
#

also happend my friend server

chrome lark
#

Not against an online mode server

whole grove
#

when you set up bungee

vale slate
#

well, you messed up your firewall

whole grove
#

only bungees need online mode

#

!

chrome lark
#

You're dense

frigid ember
#

yea

#

contact your host if some random ports are open

vale slate
#

yes, but you need to protect your backend servers with a firewall

whole grove
#

i think it;s firewall

vale slate
#

then you need to block the ports to the outside

#

all ports your spigot servers are running

chrome lark
#

If people can login to your servers behind bungee, thats a security issue because you literally disable the authentication system on those servers

vale slate
#

^

whole grove
#

i got pterodactyl panel

#

and i'm scared if i tych firewall

chrome lark
#

If you can even see the "enable ip forwarding!", Your setup is broken

whole grove
#

i dont know much sys admin

chrome lark
#

If everything is on the same machine, then there is literally 0 risk unless you're stupidly exposing stuff to the external network

vale slate
#

you should know about these things if you are using a proxy like bungeecord

whole grove
#

i got only one dedictaed server

chrome lark
#

If that's a dedi, use the ptero0 interface for all the spigot servers

whole grove
#

eletorni what's that ptero0 interface

chrome lark
#

it's a network interface that ptero creates

#

So you can bind the servers to a network adaptor which is not exposed to the world

whole grove
#

where can i found this?

obtuse rose
#

on iptables

whole grove
#

thx

#

found it

chrome lark
#

you can create standard IP allocations against that the IP address on that interface as you would for any adaptor, e.g. like the one that has your actual IP address on it, meaning that you can just let everything communicate over that

boreal tiger
#

acf can be used in premium plugins right? given that it uses the MIT license it can be used for commercial purposes. Where would I include the license?

vale slate
#

you need to include it visible for the user

frigid ember
#

Guys who knows how to send an animation packet with the left hand, is it possible server side?

#

I am only able to send with right hand

#

what integer value do I need to send with left hand

vale slate
#

I wrote I file in the plugin folder with the credits in, that should be ok

frigid ember
#

I have 0 for right hand, I tried 1 for left hand and the client seems to display the taking damage animation

#

btw I am sending this using the PacketPlayOutAnimation

#

packet

chrome lark
#

that field is an action, not a hand iirc

vale slate
#

^

frigid ember
#

I am modifying the b integer

#

if I set it to 0, it sends the arm animation packet

#

with right hand

#

I wanna send with left hand.

obtuse rose
frigid ember
#

nice homepage

chrome lark
#
  1. Generally not a good idea to link to material which was DMCA'd out of existance
vale slate
#

well read the nms package and think about it and try everything out

frigid ember
#

nice bedrock edition guide

chrome lark
#
  1. wiki.vg is basically the community official protocol documentation
frigid ember
#
  1. idgadamn
chrome lark
#

Best we got outside of running over all the source

frigid ember
#

ok

#

why not look at nms source

#

itself

vale slate
#

You should look at it

hoary parcel
#

Wiki.vg is unofficially validated by mojang too

#

Source is hardly documentation

frigid ember
#

ha!

#

ma boi @hoary parcel

#

got ma back

hoary parcel
#

Especially if you don't look at the client

frigid ember
#

tru

hoary parcel
#

And like, why look at the source of others did and documented it for you?

frigid ember
#

so you can see what spigot did

#

the server yall suk

#

and are in

#

yea

#

what spigot did

vale slate
#

well you still should look into the source for understanding what it does if you want to increase your performance

frigid ember
#

ik its not best to look at spigot's source for packets

#

Ik

#

that is what I did

dusty topaz
#

It's not best to look at 1.8 source

vale slate
#

^

#

yes

frigid ember
#

no 1.8 protesting

#

stfu

#

ignore the version, what version i use should not be relevant in the discussion

dusty topaz
#

Well you said left hand so I assume you're using 1.15?

hoary parcel
#

Especially not using a repo that violates a DMCA.....

frigid ember
#

well, is it mine?

#

no

dusty topaz
#

Protocol has changed between 1.8 and 1.15

frigid ember
#

is it public

#

yes

#

so use it

#

instead of having version protest

#

answer the question!

vale slate
#

you still make yourself culpable in that case

frigid ember
#

instead of saying use this, dont do that, do that dont use that version

#

i just wanted the integer value

dusty topaz
#

We tried to but then this happened 😅

frigid ember
#

such a simple q

vale slate
#

well there is no left arm in Mc 1.8

frigid ember
#

ok

#

i thought there was

#

so its only client side

#

i see

#

weird mojang didnt make it possible

#

for left handies

#

🙂

#

😛

vale slate
#

well it is a 1.9 feature

obtuse rose
#

@frigid ember I don't see the point of asking here if you are going out right refuse suggestion from people who actually experience with protocol stuff.

Hey, here's the nice document you should look at to get started.
"Nah, i'm going to look at obfuscated, uncommented code."

frigid ember
#

That is kinda offensive.

dusty topaz
#

Whaaaat

frigid ember
#

I did not ask for your opinion, I just asked a simple question

#

And you lead me to a whole homepage

#

To "relearn" everything

#

mfm answered it

#

its over

obtuse rose
chrome lark
#

We literally told you to go look at the wiki which has all that info

vale slate
#

could we stop offending eachother

chrome lark
#

The protocol spec is listed on the homepage, as well as a link to the versions page for history if you wanna go take a look at an older version of the proto

frigid ember
#

its over

keen compass
#

it appears someone is in a bad mood today XD

frigid ember
#

yes

#

sir

chrome lark
#

jumps on frostalf

keen compass
#

that reminds me, I need to go feed my kitties 😄

frigid ember
#

ok

viscid star
#

1272, ~, 1144 || what dose this is ~

dusty topaz
#

tilde is current position ~

frigid ember
#

sup man

viscid star
#

ahaa

#

thx

frigid ember
#

np

viscid star
#

a bit strange i did this in server cli

frigid ember
#

ok

ocean prism
dusty topaz
#

INCREASE_DAMAGE

ocean prism
#

Thanks

frigid ember
#

np

little crater
#

heh
@dusty topaz there's all sorts of non descriptive, non professional javadocs all in bukkit api. I just came across the one for fire blockdata the other day and just smfh

frigid ember
#

ok?

dusty topaz
frigid ember
#

then you code your own version

#

if you're so salty about it

#

smfh

#

shakemymotherfuckingonmymomasgiantbigassforhead

little crater
#

Now I remember why I don't talk here... Thanks for reminding me, @frigid ember

dusty topaz
#

This doesn't usually happen 😅

frigid ember
#

np

ocean prism
#

I have another question, how do I ensure recovery when an enchantment is performed via an enchantment table? I'd like to remove the fact that you can get the enchantment Unbreaking

dusty topaz
#

Listen for that and change enchantments

ocean prism
#

Nice 😄

#

This class exists for spigot 1.12.2 ?

dusty topaz
#

er, not sure

ocean prism
#

No okay it work

dusty topaz
#

I believe you could also listen for PrepareItemEnchantEvent and change the offers

ocean prism
#

I think too

dusty topaz
#

Not sure if that only gets the visible enchants though

#

Never messed without myself and doesn't seem to say (I think it will get all though)

#

But using that event is better so then it doesn't show unbreaking at all 🙂

ocean prism
#

Thank you for your answers 😄

zenith siren
#

I got a bungee server with tab_list: GLOBAL_PING but it doesn't show people from other servers...
I got a tablist plugin on the spigot servers but I removed that once and it still didn't work so that's not it

little crater
chrome lark
#

Yea, need a plugin for that

#

Mojang modified how the tab list stuff works a good few years ago which kinda broke that feature in bungee

zenith siren
#

Is it hard to make it in my own already existing plugin?

ocean hamlet
#

what is the command /kit (kitname) in dotted from

#

for example the dotted form of /kill is minecraft.command.kill

wraith thicket
#

You mean the permission. That depends on the specific plugin you're using.

ocean hamlet
#

yes I'm sry I didnt know the name for it

#

it's just the regular essentials plugin

zenith siren
#

Use google, the first result contains this:

You need both of these

- essentials.kit
- essentials.kits.*
You should also have a look at this file, if you wanna see the 'best practice' ;D
https://github.com/essentials/GroupManager/blob/master/src/globalgroups.yml
ocean hamlet
#

well I'll give it a try

#

can you send the link

chrome lark
#

best practice