#help-archived

1 messages · Page 200 of 1

grim halo
#

And in most cases its not even needed.

high mantle
#

i'll just have to sleep on this, im so ded rn

tiny dagger
#

another solution would be to remove the handle of the world when unloaded from the craftworld

#

at least the plugins would fail with a tangible error

high mantle
#

i swear

copper star
#

saveResource("messages.yml", false);
I am making a custom config and want it to be loaded from the jar file but, I get a warning saying it already exists if it has already generated, how could I fix this and remove the warning in console.

high mantle
#

if i have to make my own schematics class for the thing

#

im going to cry

grim halo
#

@copper star Check if the File exists before you save the resource?

#

But if you set replace to false like you did then the error should not appear in my opinion

copper star
#
if(!file.exists()){
}```
grim halo
#

yes

copper star
#

I would need to put a value for "file"

grim halo
#

and File would be new File(plugin.getDataFolder(), "messages.yml");

lilac gorge
#

Anyone know a flag or plugin that disables certain armor types, and items with enchants ?

frigid ember
#

anyone know

#

how to disable armor stand being wiped on griefprotection

buoyant path
#

gotta love IntelliJ

#

shit doesnt update libraries for artifacts

#

so you just waste time

#

trying to fix it

#

lol

frigid ember
#

how to enable armor stand in grief protetcion

copper star
#
for (String key : fileManager.getConfig("messages.yml").get().getConfigurationSection("ReviewsMessage").getKeys(false)) {
  // code
}
``` This for generates an exception
grim halo
#

What exception?

vernal spruce
#

Maybe showin that exception would be usefull

copper star
#

NullPointerException

grim halo
#

There is probably something null in there fileManager.getConfig("messages.yml").get().getConfigurationSection("ReviewsMessage").getKeys(false)

vernal spruce
#

is fileManager properly initialized

#

?

copper star
#
ReviewsMessage:
- '&6Server rating: &a%averagestars%'
- '&6Total Ratings: &a%totalratings%'
- '&65 Stars: &a%5starcount%'
- '&64 Stars: &a%4starcount%'
- '&63 Stars: &a%3starcount%'
- '&62 Stars: &a%2starcount%'
- '&61 Stars: &a%1starcount%'
#

This is config

frigid ember
#

ANYONE KNOW HOW

grim halo
#

Thats why you dont do that. Everything that could be null should be checked before

limber forge
#

Positive ratings are 5 star ratings on ressources right?

vernal spruce
#

Also that fileManager get() is kinda sketchy

grim halo
#

@limber forge Yes 5 = good 1 = bad

limber forge
#

okay thx

hollow rune
#

Yo just thought even known this isn’t as much plugin help that someone could perhaps help me with this. From 1.13 numeric ids ofc don’t work but this plugin doesn’t support things like wheat:7 as it breaks the plugin but the source code is available and the dev doesn’t tend to respond. Does anyone know how to convert it so it actually works? Plugin:
https://www.spigotmc.org/resources/1-6-1-13-customdrops-pending-recode.36777/

limber forge
#

if i have everything for premium, will i get premium on spigot instant or what should i do?

grim halo
#

@hollow rune For what version do you need the drops?

vernal spruce
#

What you mean premium? Posting a premium resource? If yes that resource will be checked to meet a certain standard

wraith thicket
#

@copper star The "ReviewMessage" path does not define a section but a list of strings. Use #getStringList intead

hollow rune
#

I need 1.16 but everything else works and the part thag doesn’t work is a 1.13 issue as well. It’s all of the 1.13- items that I’d need to use with the codes such as wheat:7 so no updating will be needed only changing to allow for those type of ids to work @grim halo

copper star
#

ok

vernal spruce
#

what?

wheat mirage
#

Chunk loading / unloading is absolutely horrible in 1.16+, does anyone know anything that can be done to help fix this issue? Spigot wants everyone to run latest but how can servers be asked to run 1.16 if the server is just too badly optimised

grim halo
#

Is it worse than in 1.15?

trail hare
#

Not sure if this is the place to check, but does anyone know of a plugin that either prevents players from breaking the bottom piece of bamboo/kelp or something that allows a similar form of non-destructive harvesting on a cooldown?

#

I have an adventure-esque world that I'd like to allow players to harvest natural resources in, but not by depleting them.

wheat mirage
#

Anything to be done @frigid ember

grim halo
#

Interesting idea. So only you onyl want the second bamboo/sugar block to be broken?
And whats with the harvest of protected crops?

wheat mirage
#

Simply weird we support nothing other than 1.16 here

#

And yet it's almost completely unviable for big servers

trail hare
#

I just want people to be able to harvest without destroying a node entirely.

wheat mirage
#

I hear paper does some multi threaded stuff wit hchunks?

grim halo
#

Only in worldguard protected regions? With a hand or only with a hoe?

#

Yes paper can load all chunks async...

trail hare
#

Optional tool would be nice, but I was just going to make it global for a given world.

#

maybe exception regions

grim halo
#

Ill write something like this. Sounds interesting.

trail hare
#

o.o

#

If I send you 5 bucks will you comment all your code? I know SOME java, so this seems like something I could probably maintain myself if you drop it later.

#

I haven't written anything for MC since canary >.>

tough kraken
#

is it possible with a spigot plugin, to check if another Bungee-Server is online? Just want to show an Online/Offline-Status in an ItemMeta

grim halo
#

Ill write it without dependencies so it should run for all upcomming mc versions... Not going to comment the code for now ^^

trail hare
tough kraken
#

wow, paying for commenting code? i would be rich tbh

trail hare
#

Whenever someone is doing me a big favor on a whim (writing the entire plugin in this case), it seems like a good idea to bump it from "doing it just because" to "sweet, beermoney for an extra 5 minutes of effort"

tough kraken
#

and how to get the ip, if its all on a localhost? its probably the same ip for all servers

#

oh im dumb

#

nvm thanks xd

#

uhm

#

what?

#

the servers are all on a rented vServer...

nova badge
#

HiddenStringUtils not working in 1.16?

tough kraken
#

so i have to do what? lol

#

ok nice

#

Not sure if this is the place to check, but does anyone know of a plugin that either prevents players from breaking the bottom piece of bamboo/kelp or something that allows a similar form of non-destructive harvesting on a cooldown?
@trail hare so you just want to prevent players from breaking the lowest bamboo blocks?

#

and kelp/sugarcane etc

trail hare
#

Ideally it would would have the modern auto-replant function on normal crops, but that's outside the original scope. I was thinking something like

if block = kelp,bamboo,sugarcane & block underneath is a structure block, cancel break.
if block = crops, reset to first stage of grown and drop as if harvested.
tough kraken
#

i think i dont get it fully

trail hare
#

In my world, players can't break stuff, it's an adventure type setup. So I want to allow them to harvest food without destroying the scenery in the process.

#

So if they have to leave the bottom block it'll regenerate naturally, and if crops replant themselves it's the same. I already have an automatic regrowing thing for mushrooms.

tough kraken
#

so they break the block, it doesnt breaks, but it dropps the item?

trail hare
#

for crops it would reset to a stage that wouldn't have any drops (too young) for cane it would cut all but the last piece.

#

Floristics (sort of) handles this by automatically growing flora to regenerate areas, but it follows normal worldgen density instead of actual locationm

tough kraken
#

which version do you use?

#

i could try to make a plugin

trail hare
#

I'm an idiot. I just found out OreRegenerator can do basically this.

tough kraken
#

then just use this, if it works lol

trail hare
#

You can set a block type to be replaced on a timer, and the filler block can be set to air.

tough kraken
#

but idk if it works like with the youngest stage

trail hare
#

It would cause some weirdness with cane/cactus/etc though, since unless they cut the bottom the other pieces would regenerate at weird times.

#

All independent timers >.>

sturdy oar
#

Can someone help me with spigot forums, I am somehow unable to embed a video

wise flame
#

Why am I getting an NPE there?

rare prairie
#

Why am I getting an NPE there?
Did you enabled Assertions to print out if the world is null?

sturdy oar
#

use Objects.requireNotNull()

rare prairie
#

should be requireNonNull

#

notnull is not exists

sturdy oar
#

yeah whatever

#

Can someone help me with spigot forums, I am somehow unable to embed a video
@sturdy oar Someone?

#

I really don't see why my video URL can't be embedded

rare prairie
#

From where you inserted the video url? youtube?

sturdy oar
#

wait so it must be from youtube?

rare prairie
sturdy oar
#

oh i thought those were just examples, not the only ones allowed

random terrace
#

how do i download?

sturdy oar
#

download what

random terrace
#

the mod loader thing

sturdy oar
#

???

random terrace
#

for servers

rare prairie
#

use spongeforge

random terrace
#

is it 1.16

sturdy oar
#

Spigot doesn't have forge mods

random terrace
#

its a plugin thin

rare prairie
#

wat

rare prairie
#

yes, build the spigot 1.16 jar with buildtools and download the bungeecord

random terrace
#

how do i download it tho

#

..

#

how do i get the plugins folder

sturdy oar
#

wut

#

do you need Spigot or what

rare prairie
#

learn how to use your pc first

paper basin
#

hello!
does anyone know a way to get all available block datas for a given Material?

sturdy oar
#

block data? isn't that deprecated

paper basin
#

like if I give Material.STONE_SLAB it returns "type", "waterlogged"

#

@frigid ember I want available values for this method

sturdy oar
#

I think it's this?

#

this is the deprecated one

#

use the thing that ILikeToCode linked

paper basin
#

this does not answer my question

sturdy oar
#

I don't really know what data you're looking for

paper basin
#

I want to get all the strings that can be parsed through the method that ILikeToCode linked

#

to give you an example, see how WorldEdit do tab-completion when typing //set stone_slab[

#

nope

#

I want to create a block data

sturdy oar
#

are you using slabs?

paper basin
#

it's just an example

sturdy oar
#

WaterLogged extends BlockData

#

I don't know how else do you want to do that

paper basin
#

OK wait I will send you some screenshots

#

for every block, I want a list of available block datas to parse, just like WorldEdit do

sturdy oar
#

they probably have a huge ass switch checking BlockData instance or something

#

just check their implementation?

paper basin
#

I'm trying, but their code is so hard to read with the abstraction for bukkit, sponge, forge and fabric

#

fine, it's via NMS

nova badge
#

I am looking for an event which is fired when a player moves an itemstack from one inventory to another

#

any help?

#

would work with chest right?

#

Thank you so much! 🙂

grim halo
#

@frigid ember This is currently only fired by hoppers.

#

This will not suit you @nova badge

nova badge
#

oh is it

grim halo
#

You need to listen for the InventoryClickEvent and determine yourself if the action would result in item movement

sturdy oar
#

you probably have to use inventory View

grim halo
#

Also dont forget the ItemDragEvent

#

That is still not sufficient.

#

If he clicks an item so it gets on his cursor and then simply clicks with the cursor in the other inventory the Action will not be MOVE_TO_OTHER_INVENTORY

nova badge
#

yes, that's what I was wondering ^

#

it would be a normal left click

#

or swap

grim halo
#

There are many edge cases and you have to check them all.

#

double clicks to gather all items to curser, shift clicks, drags etc

nova badge
#

yeah, thank you for the the tips though, both of you. I believe I can proceed further. 🙂

rare prairie
#

Probably because hopper items are moved by "physical" and not by humanentity

chrome lark
#

pretty much ^^, not to mention, all those actions are basically behind the inventory click stuff

crimson sandal
#

I'm guessing it might be to do with all the casts? 🤷‍♂️

inland oxide
#

line 6 could just use location

crimson sandal
#

Oh yeah I know, that's just left over code I forgot to remove

#

It uses the viewers instead of the boolean now

#

so > 1 viewer is open etc

inland oxide
#

also your stop time should be captured before your bukkit call, just to be safe

#

if storage doesn't change over the forEach, why are you getInventory over and over?

crimson sandal
#

getIventory is just this public Inventory getInventory() { return inventory; }

subtle blade
#

setTileEnt(world, position, new CustomTileEntityChest(), inventory.getViewers());
The game lets you do that? lol

crimson sandal
#

getLocations can just be 1 and it'll cause 1% of a tick to be used. and then say 5 locations will use 3%

inland oxide
#

so it's some class you defined?

subtle blade
#

I mean I guess technically it's still an instanceof TileEntityChest

crimson sandal
#

Yeah 😄 I can stop the chest from ticking completely so it doesn't interfere with my custom playBlockAction calls 😄

subtle blade
#

isn't the ticking what dictates the state of the chest's lid animation?

#

or am I misremembering here?

crimson sandal
#

The tick basically just checks if there are viewers of the chests inventory, and then closes if there isn't. But I open a custom inventory when the chest is opened, so I just use the inventory viewers from that

inland oxide
#

should it even be overridden?

subtle blade
#

If he wants to stop that check from happening, yes

#

The only purpose of tick in a chest is to check its opened state

crimson sandal
#

Yeah, since I don't need any of the tick behaviour since I'm just manually playing the animation and chest sounds. This is why I made the PR cause all this NMS is painful 😄

subtle blade
#

It's there

inland oxide
#

location != null in containerCloseAnimation is probably redundant and the Utils check would make better sense if you put with the location != null test in closeStorageInventory. No sense in calling the method if it's not loaded in the first place

subtle blade
#

The whole tick method is that, 😛

crimson sandal
#

Yeah it modifies the viewingCount of the chest each tick based on the inventory viewers

subtle blade
#

viewCount is what determines to the client whether or not the chest is open

#

If it's > 1, it's open

frigid ember
#

why red?

subtle blade
#

this.a is the animation progress

#

You don't need Bukkit, kolia

#

You can delete that dependency

crimson sandal
#

Yeah that's why when you join a server and someone is already looking in a chest, it appears closed for the new player

subtle blade
#

Reason it's red is because it's no longer deployed to the Nexus. spigot-api should cover your needs

inland oxide
#

also why are you delay on the scheduler to close 1 tick later?

soft fable
#

How can i make an boolean for a player and not for everyone?

subtle blade
#

The block action is what's opening and closing it

#

That's the packet

#

Correct

crimson sandal
#

Yeah because that's what you're passing through in onOpen()

tough kraken
#

How can i make an boolean for a player and not for everyone?
@soft fable use a list probably. and instead of checking for the boolean, check if the player is in there

subtle blade
#

That block action is sent when the state changes, which is done in the tick method

#

If you send a block action telling it the chest is open, next tick it will send one telling the client it's not

soft fable
#

but like I am making an Bank. I them want to create a bank for the player but first I have to check if the player has a bank

crimson sandal
#

Actually, the onOpen() isn't sent in the tick. It's called when startOpen() or closeContainer() is called

#

But the tick is what keeps updating viewerCount

tough kraken
#

then probably use a config. save the players uuid in there, with "true" as value.

if he has a bank, its true

if he has not, its false

soft fable
#

I tried that but it didn't work

tough kraken
#

specify "didnt work"

soft fable
#

I didn't get the true or false thing. It didn't do anything and the command didn't reply or anything like that

tough kraken
#

wait

crimson sandal
#

But you can't modify viewingCount because it causes other problems, that I can't remember of the top of my head rn 😄

tough kraken
#
if (config.getBoolean("Player's UUID")) {
            //he has a bank
        } else {
            //he has not a bank
        }

thats probably how it works

#

@soft fable

#

would suggest to create an extra config-file for that

soft fable
#

I can try

tough kraken
#
        config.set("Player`s UUID", true); // giving him a bank
        config.set("Player's UUID", false); // removing its bank

in case, you didnt knew that

strong lantern
#

heyy...

tough kraken
#

hello

strong lantern
#

does any1 have experience using bukkit?

tough kraken
#

whats the issue/question?

#

i think we all use spigot, but its almost the smae

worldly heathBOT
#

If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply.

strong lantern
#

T)
[19:32:55] [Server thread/ERROR]: Could not load 'plugins/testplug.jar' in folder 'plugins'
org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:152) ~[craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-18fbb24]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugins(CraftServer.java:289) [craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.<init>(CraftServer.java:251) [craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerList.<init>(PlayerList.java:69) [craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-18fbb24]
at net.minecraft.server.v1_8_R3.DedicatedPlayerList.<init>(SourceFile:14) [craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-18fbb24]
at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:179) [craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:504) [craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-18fbb24]
at java.base/java.lang.Thread.run(Thread.java:832) [?:?]
Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
... 9 more

#

I tried making a plugin

#

I added the file

tough kraken
#

what ide are you using?

strong lantern
#

somehow it didn't register

#

bukkit 1.8.8

tough kraken
#

ide

#

eclipse, intellij

strong lantern
#

oh

tough kraken
#

netbeans

#

whatever

strong lantern
#

intellj

tough kraken
#

well, its a bit tricky i think

strong lantern
#

eclipse doesn't work on my mac

tough kraken
#

go into your artifacts, you probably have to add it manually

strong lantern
#

oh lemme try

tough kraken
#

did the same mistake at my first time using intellij

#

but intellij is a lot smoother for me, thats why i am using it lol

frigid ember
#

?

strong lantern
#

wait wat

tough kraken
#

wait...

strong lantern
#

Help

tough kraken
#
If you don't want to deal with the hassle of creating a plugin.yml for every project then there is a handy little tool just for you! It's called Plugin Annotations. It is a simple annotation processor that automatically generates a correct plugin.yml for you. No hassle!

does that mean, it exports automatically

subtle blade
#

They're done using annotation processing. It's generated at compile-time

tough kraken
#

oh wow... awesome

strong lantern
#

wait

tough kraken
#

i really suggest to use the marked plugin. its helping pretty much, while creating plugin-projects

strong lantern
#

can some1 walk me through how to manually add the plugin.yml file as a part of the artifacts?

#

pls

fading frost
#

Does anyone have an idea why depend might not work? I have a plugin that has this in its plugin.yml: depend: ["name"] and there is a plugin called name, but it's still loaded after the other plugin which leads to errors.

tough kraken
#

Does anyone have an idea why depend might not work? I have a plugin that has this in its plugin.yml: depend: ["name"] and there is a plugin called name, but it's still loaded after the other plugin which leads to errors.
@fading frost dont use "

subtle blade
#

Shouldn't matter

fading frost
#

yeah that's irrelevant

subtle blade
#

Startup logs would help

tough kraken
#

use the name thats in the yml of the other plugin

fading frost
#

I am

tough kraken
#

then idk

strong lantern
#

wait how do I know if the yml file exists or not in the plugin jar file?

tough kraken
#

can some1 walk me through how to manually add the plugin.yml file as a part of the artifacts?
@strong lantern artifacts/Output Layout/+/file/search for the plugin.yml (most time its in your workspace)/add it/apply/build your plugin

fading frost
#

@subtle blade

#

The error stems from the code in that plugin not being executed before

tough kraken
#

i really suggest to use the marked plugin. its helping pretty much, while creating plugin-projects
@tough kraken really, just use that in future. its making exactly all that automatically

subtle blade
#

not always convenient and often times not obnoxious. Should be used for smaller projects

tough kraken
#

seems like thats his first plugin

subtle blade
#

oh you're making a custom class loader, johnny?

soft fable
#

@tough kraken Can you help me set it? I created an yml file. Main.bank.set("Player`s UUID", true); is not working

tough kraken
#

i think for beginning with developing, eclipse is far better

much more clean

#

need to save it after that

soft fable
#

I know but I don't know how to set it in a yml file

tough kraken
#

with exactly this code

subtle blade
#

If so, what is your test plugin written in? Is it done in Clojure?

fading frost
#

oh you're making a custom class loader, johnny?
@subtle blade No, I'm trying something stupid with Clojure, but in order for the necessary dependencies to be recognised I need to set the server thread context class loader before I do any of it

strong lantern
#

wait

@strong lantern artifacts/Output Layout/+/file/search for the plugin.yml (most time its in your workspace)/add it/apply/build your plugin
@tough kraken
IT WORKED

#

tysm

soft fable
#

?

chrome lark
#

could not load

tough kraken
#

youre welcome

chrome lark
#

load order != enable order

subtle blade
#

right...

chrome lark
#

load occurs before it even tries to resolve dependencies

fading frost
#

oh

tough kraken
#

?paste
paste your class/code-part there, and i'll try to do my best

worldly heathBOT
fading frost
#

that'd explain it

tough kraken
#

@soft fable

fading frost
#

How would you go about something like this?

chrome lark
#

avoid referencing those classes in a way that would need them on enable

fading frost
#

This needs to happen before load time

chrome lark
#

it can't

#

create some bootstrap class in java

#

do the actual clojure stuff in onEnable somewhere

fading frost
#

Well again, not possible. As soon as the class compiled from clojure is loaded this needs to be resolved

chrome lark
#

best you're gonna get is shoving the clojure stuff into the classpath manually

fading frost
#

Seems like my only other option is to make an intermediate "implementation" of JavaPlugin that has the necessaty stuff in a static initialiser

#

And extend that from clojure

chrome lark
#

Well, yea, that's what I said ;P bootstrap in java, call into clojure once stuff is setup and ready

fading frost
#

Well I was trying something like this already. Clojure (my plugin) is a java class that does this

#

But since I can't control when it's loaded, this doesn't get me anywhere

random terrace
#

i put my bukket in the folder and it wont work when i start the server

soft fable
#

@tough kraken is this how I can check it? if(Main.bank.getConfig().contains(p.getUniqueId().toString() + false)){

tough kraken
#

this would work as well...
in this case, it fits if you only save the players

#

but the other way is better

bold anchor
tough kraken
#
if(Main.bank.getConfig().getBoolean(p.getUniqueId())){
//he has a bank
}
#

written from hand lol

#

it was from him :c

#

i think its maybe the singleton or so

#

just a thought

#

i mean, we had a guy called his classes a, b, etc

#

i have seen everything

#

i mean, we had a guy called his classes a, b, etc
@tough kraken !!!

#

there are much harder things than using "static" wrong lol

soft fable
#

didn't work

tough kraken
#

whats in the config?

#

i mean, did it got even saved

soft fable
#

nothing is getting inside the config. Main.bank.getConfig().set(p.getUniqueId().toString(), false);
Main.bank.saveConfig();

tough kraken
#

wait a mom

#

hättest auch einfach auf den 1.14er gehen können...f

#

oops

#

hättest auch einfach auf den 1.14er gehen können...f
@tough kraken that was the wrong chat lol

soft fable
#

It has no save

tough kraken
#

huh`?

#

what do you mean

soft fable
#

I can't save it...

tough kraken
#

you can

#

just use <Class>.Config
in onEnable

#

nvm

#

new RankConfig();

this, just your class name

#

yeah, i am a bit tired... didnt sleep the night

hollow thorn
#

how do i make a block drop naturally

tough kraken
#

world.dropItemNaturally()

#

i think

#

or breakBlockNaturally()

#

btw i dont get it... just want to show the playercount on my gui

#

oh wow

#

cant send pics

#

ah nvm because of caps

sturdy oar
#

putty 🤮

tough kraken
#

f

keen compass
#

whats wrong with putty? o.O

sturdy oar
#

Looks old

#

Termius looks nicer

tough kraken
#

you're too 🙂

#

joke

#

before i get banned

keen compass
#

Just because it looks old doesn't mean it doesn't work. Like saying irc doesn't work XD

tough kraken
#

mc doesnt work!!1!11 its soooo old!1!11

#

it looks so edgy

sturdy oar
#

Just because it looks old doesn't mean it doesn't work. Like saying irc doesn't work XD
@keen compass it misses features

keen compass
#

such as?

sturdy oar
#

Termius can store settings, servers, ssh keys on their database

keen compass
#

so can putty

tough kraken
#

never needed that

frigid ember
#

Do you need to verify to talk?

#

oh you dont

keen compass
#

but putty saves it locally

frigid ember
#

good

sturdy oar
#

Imagine you break your pc. Boom you've lost all servers and ssh keys

#

With termius they're bound to the account

keen compass
#

can always get your ssh key back from the server

tough kraken
#

imagine you forgot your pw and email

#

ouh fuck

#

true tbh

keen compass
#

and I don't lose my servers because I still have access to the panel for my servers

#

second I have domains set for them

blazing burrow
#

Hey guys does anyone know how to check if the player right clicks while holding a compass?

sturdy oar
#

Are you the dude that already asked it on forums

blazing burrow
#

uhhh yeah

sturdy oar
#

I already tried to answer you

grim halo
#

@blazing burrow PlayerInteractEvent -> check player hand for compass

blazing burrow
#

Yeha but it didnt work

#

i replied just now

#

on the forums

tough kraken
#
if (event.getItem().getType() != Material.COMPASS) return;
        if (event.getAction() == Action.RIGHT_CLICK_AIR || event.getAction() == Action.RIGHT_CLICK_BLOCK) {
keen compass
#

so far you haven't stated what features putty is missing o.O

tough kraken
#

thats what i use

blazing burrow
#

okay

tough kraken
#

and it works

sturdy oar
#

so far you haven't stated what features putty is missing o.O
@keen compass nice themes and remote data storage

keen compass
#

remote data storage such as what? o.O

blazing burrow
#

also what ide do u guys use for java?

keen compass
#

I use netbeans

sturdy oar
#

I use blueJ

#

I'm joking don't use that

tough kraken
#

yeah is above that lul, still dont know why i dont check them in one line

blazing burrow
#

ah ok

keen compass
#

not sure why you would need remote data storage from a third party for SSH

sturdy oar
#

also what ide do u guys use for java?
@blazing burrow netbeans \ IntelliJ

tough kraken
#

intellij as well

blazing burrow
#

is eclipse not a good one?

#

ah theres one

tough kraken
#

it is

#

but intellij runs smoother for me than eclipse

blazing burrow
#

ah i see

tough kraken
#

but tbh my computer is trash

celest current
#
@SuppressWarnings("deprecation")
    @EventHandler
    public void onPlayerInteractEvent(PlayerInteractEvent e){
        Player p = e.getPlayer();
        if(p.getItemInHand().getItemMeta().getDisplayName().contains("zoomy")){
            PotionEffect speedI = new PotionEffect(PotionEffectType.SPEED, 100, 1, false);
            p.addPotionEffect(speedI);
        }
    }
keen compass
#

Anyways all your arguments so far point to putty being better, because despite all the features you listed which it has, it is had them for far longer. Exception being themes and not sure what remote data storage you mean.

celest current
#

Why does renaming an item to zoomy in anvil not give speed?

blazing burrow
#

wait @tough kraken what does the return after the first condition do?

grim halo
#

@celest current Dont use deprecated methods such as .getItemInHand()

tough kraken
#

it does nothing, if its not a compass

#

could as well check if its a compass and run the method, but i like my method more

blazing burrow
#

ohhhh yeah my bad id idnt see the ! @tough kraken

#

thanks

tough kraken
#

sure

grim halo
#

@celest current Also: Do you want to constantly have speed when the boots are equiped or only when he clicks them while holding,.

celest current
#

yes

#

@grim halo when held

grim halo
#

First of all you need more null checks.

#

@frigid ember Yes but he uses contains so this doesnt matter

celest current
#

So the issue is getItemInHand()?

grim halo
#

lilmikey0174 Did you make sure the event is getting fired?

#

Is it registered?

celest current
#

...

tough kraken
#

at interactevent, use getItem(), should work

frigid ember
#

I am using mc 1.16.1 Can someone tell me or point me in the right direction on how to get a spigot server running with forge?

celest current
#

so uh @grim halo how do i register it?

grim halo
#

No its not the root of the problem but you should not use deprecated methods.
Also look at what @tough kraken said.

#

Like you always register listener on spigot

tough kraken
#

bru i hate this freaking name

#

god give me money, wanan change my name

#

wanna

grim halo
tough kraken
#

can i unlink my account from spigot? lol

sturdy oar
#

I am using mc 1.16.1 Can someone tell me or point me in the right direction on how to get a spigot server running with forge?
@frigid ember you cannot use forge mods with spigot

#

if that's the case

tough kraken
#

you can

#

with special software

#

i mean it was magma

grim halo
#

There are some special spigot forks. Most of them run on 1.7.10 or 1.12.2

tough kraken
#

but i think magma isnt there for 1.16

sturdy oar
#

I'm not talking about forks

#

You'll need sponge for that, no other options.

tough kraken
#

sponge is bukkit i think

frigid ember
#

so sponge can allow spigot and forge to work together?

sturdy oar
#

Sponge allows the server to load forge mods

#

and make user play with them

tough kraken
#

but just bukkit plugins i think

#

and idk if he uses spigot or bukkit plugins

sturdy oar
#

There's a separate sponge plugins market

grim halo
#

Sponge can allow sponge and forge together

#

but sponge is not spigot

frigid ember
#

o ok, ty for the help

tough kraken
#

you can use bukkit or sponge plugins i assume

grim halo
#

Mohist for example uses spigot and forge

frigid ember
#

I'll go over there tyvm

blazing burrow
#

@tough kraken it still doesnt work xd

tough kraken
#

mohist... never heard

grim halo
#

@blazing burrow You are the one with the compass problem?
Did you register your listener?

sturdy oar
#

I'll go over there tyvm
@frigid ember you can join spigot and sponge servers together in the same network however using BungeeCord

tough kraken
#

@barren runeentHandler?

sturdy oar
#

I had done that several times

tough kraken
#

man i am just tagging people, its so bad

sturdy oar
#

Poor Ev

tough kraken
#

most from me lol

#

if this Ev is even active? xd

blazing burrow
#

should i just send a pic of the code

tough kraken
#

paste it

worldly heathBOT
tough kraken
#

?paste

frigid ember
#

@sturdy oar I'm fairly new to this so let me see if I understand what you're saying. So with BungeeCord, I can have a server running with both forge and spigot running at the same time?

blazing burrow
#

package me.atin.manh;
import org.bukkit.entity.Player;
import org.bukkit.event.player.PlayerInteractEvent;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.event.block.Action;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.inventory.ItemStack;
import me.atin.manh.commands.TargetCommand;

public class First extends JavaPlugin implements Listener{
public ItemStack compass;
public Location loc;
public Player vict;
@Override
public void onEnable() {

new TargetCommand(this);
compass = new ItemStack(Material.COMPASS); // Sets the compass ItemStack as the compass item.

}
public void setVictim(Player victim) {

    vict = victim; // Vict is short for victim.
    
}
@barren runeentHandler
public void onInteract(PlayerInteractEvent event) {
Action action = event.getAction(); // Instance of action
Player player = event.getPlayer(); // Instance of player.
loc = vict.getLocation();
if (event.getItem().getType() != Material.COMPASS) return;
if (event.getAction() == Action.RIGHT_CLICK_AIR || event.getAction() == Action.RIGHT_CLICK_BLOCK)  { // If something is right clicked and theres a value for vict.  
     player.setCompassTarget(loc);
    player.sendMessage("Compass is now pointing towards" + vict.getName() + "!"); // Says that the compass is pointing towards the victim.
}
else if (vict == null) { // If there is no player selected.
    player.sendMessage("Player needs to be set!");
}
}

}

sturdy oar
#

Bruh

blazing burrow
#

oh no i tagged ev

#

theres another class do i send that too

tough kraken
#

poor little ev

grim halo
#

?paste

worldly heathBOT
grim halo
#

Dont paste code here

tough kraken
#

please ev, change your name haha

blazing burrow
#

oh

grim halo
#

Thats how you work with the event api

blazing burrow
#

ok sure thanks

grim halo
#

Also getServer() is obsolete if you are in a JavaPlugin instance anyways. Just use this.getPluginManager()

tough kraken
#

Locked Bungeecord requires offline mode Offline mode is not supported by Bukkit

still love this answers in bukkit forum

blazing burrow
#

okay @grim halo

celest current
#

Can I just put all of my listeners into one class and register that class for all listeners to load?

grim halo
#

Yes

celest current
#

Thats fucking dope

grim halo
#

Just annotate every method that should be registered

celest current
#

When called in onEnable?

grim halo
#

Yes in onEnable you can getPluginManager()
And register your listener instance there

blazing burrow
#

on .registerEvent() the first parameter is the class name and then second is the name of the plugin?

celest current
#

so would the code getServer().getPluginManager().registerEvents(new listeners(), this); register all listeners in the listeners class?

grim halo
#

if you are in your JavaPlugin instance you dont need getServer()

#

just Bukkit.getPluginManager

naive goblet
#

Anonymous listeners 👌

harsh anvil
#

its literally the same

grim halo
#

Makes no difference still...

naive goblet
#

^

grim halo
#

Anonymous listeners... like

#

hell to debug that

naive goblet
#

Hmm yh true

#

Very handy though

harsh anvil
#

how do you remove an itemstack from an inventory without removing all stacks of that type?

bold anchor
#

What's the issue? Pepega

#

Inventory#removeItem

#

What

harsh anvil
#

you dont make an instance tho

bold anchor
#

bukkit is a singleton

#

dafuq

harsh anvil
#

pretty sure it returns the same one

bold anchor
#

Bukkit.getPluginManager probably calls getServer().getPluginManager

#

So it doens't matter what he types

#

getServer.getPluginManager is just fine.

#

Ah

grim halo
#

Sure i had something else in my head

bold anchor
#

Can anyone tell me what his issue is tho?

hoary parcel
#

whenever I tap into here I loose braincells

frigid ember
#
                Entity vehicle = world.spawnEntity(loc, EntityType.BOAT);
                ((CraftEntity) vehicle).getHandle().setInvisible(true);```
is there another way to set an entity invisible
this one doesnt work ;|
cant give potioneffect(invis)/setInvisible(false) since its not a LivingEntity
#

still haven't figured it out ;/

hoary parcel
#

you seem to need it

inner olive
#

Hello, i got issues in my spigot server.
I have a problem with monsters spawning when they spawn with a spawner. They don't seem to have an AI. Same problem with the pigmens on my gold farm opn the nether's roof.
I changed the line "nerf-spawner-mobs" to false in spigot.yml, but it didn't help.
Any idea ?

grim halo
#

@rich quest Use custom item icons. Unify style with oder guis etc

#

@inner olive What version? Thats probably happening because of low TPS or another plugin.

inner olive
#

1.16.1

grim halo
#

@rich quest Sure if its a private plugin you can do that

inner olive
#

i'll get my plugins list wait a min

grim halo
#

Deus are your tps fine?

inner olive
#

how can i see this ?

grim halo
#

/tps

inner olive
#

20.0

#

is that good ?

grim halo
#

Ok so thats good.

sudden juniper
#

hi

inner olive
#

where can i send a screenshot of my plugins ?

sudden juniper
#

I also need a good playtime plugin with mysql support

dreamy glacier
#

hello, how i can check if player click on specific location on my world ?

sudden juniper
#

I need to have time played on each section (accumulated from all other servers)

grim halo
#

Deus you can upload it to imgur or verify your discord account

inner olive
#

ok i'll do it

marsh hawk
#

Anyone know how to get a dynmap map onto a ssl site

rustic socket
#

Reverse proxy it with a TLS cert

marsh hawk
#

What can I proxy it with, Apache?

blazing burrow
#

oh wow i got a warning for tagging 3 people that helped me and thanking them 😔

#

it was me

inner olive
#

Here it is : CoreProtect, LuckPerms, Skript, PlaceholderAPI, CommandHook, LimitPillagers, Multiverse-NetherPortals, Vault, TokenManager, dynmap, Essentials, Scoreboard-revision, NoSpawn, HolographicsDisplays, UltimateShops, Holograms, Citizen, LockettePro, EssentialsChat, EssentialsSpawn, CitizensText, HolographicScoreboard, dtlTraders @grim halo

blazing burrow
#

i was thanking cuz its working

grim halo
#

Nothing in this list seems problematic besides Skript.
No idea what NoSpawn is tho.

blazing burrow
#

Yeah its fine, all worked out in the end

#

hey @grim halo idk if u saw my deleted message but i was just saying thanks a lot cause its working now

grim halo
#

And the problem is that only mobs from spawners wont walk (but still attack)

#

@blazing burrow no prob

inner olive
#

It prevent a specific mob to spawn

#

Well they don't attack

#

When i hit a pigman he has the aggro sound but doesn't moove

grim halo
#

No idea. Probably some plugin that gives you priviliges. Im going to eat cake...

inner olive
#

i'll try someone else then

#

thx for help

celest current
#
    @EventHandler
    public void onPlayerInteract(PlayerInteractEvent event) {
         Player p = event.getPlayer();
        if (!(event.getAction() == Action.RIGHT_CLICK_AIR || event.getAction() == Action.RIGHT_CLICK_BLOCK)) {
            return;
        }
        ItemStack item = event.getItem();
        if (item == null || item.getType() != Material.COMPASS || !item.getItemMeta().getDisplayName().contains("zoomy")) {
              PotionEffect speed = new PotionEffect(PotionEffectType.SPEED, 100, 2, false);
              p.addPotionEffect(speed);
            return;
        }
        if (item == null || item.getType() != Material.COMPASS || !item.getItemMeta().getDisplayName().contains("strok")) {
              PotionEffect strong = new PotionEffect(PotionEffectType.HARM, 100, 2, false);
              p.addPotionEffect(strong);
            return;
        }
        if (item == null || item.getType() != Material.COMPASS || !item.getItemMeta().getDisplayName().contains("bouncy")) {
              PotionEffect bounce = new PotionEffect(PotionEffectType.JUMP, 100, 2, false);
              p.addPotionEffect(bounce);
            return;
        }
    }
}
#

Whenever I right click an item named zoomy bouncy or strok I only get speed. Do I need to make different handlers for each effect or did I mess up with all the ifs?

vernal spruce
#

Paste it here so its easyer to read

#

?paste

worldly heathBOT
sudden juniper
#

hi, I also need a good playtime plugin with mysql support

balmy sentinel
#

Why don't you just check if the item is a compass and if it is check the name? You're making this more complicated then it has to be @celest current

celest current
sudden juniper
#

I found it, but it's not a good plugin

vernal spruce
#

Beside horendous loops you call "return" after the speed effect meaning nothing more will be checked @celest current

sudden juniper
#

for example, here I have connected to the same database 2 servers and I have 2 different times

celest current
#

They already do. They dont get the other effects

vernal spruce
#

If the first condition is meet return kicks in after you apply speed effect

celest current
#

The item can be anything renamed

red bolt
#

hey, does anyone know how i can block the /? + tab thing

#

that shows the plugins

vernal spruce
#

Wait what is that if condition😂

#

I just noticed

celest current
#

@frigid ember It can be anything that has zoomy in it

vernal spruce
#

So why dont you check for that rather than coverig everything else?

grim halo
#

Thats what i preach every week. Early escape.
if item == null -> just return

celest current
#

I just found thius somewhere. someone send me this cuz i dunno how to make listeners or handlers

vernal spruce
#

Now you see why copy pasteing code is bad habit...

celest current
#

true

balmy sentinel
#

so you don't know how to do something so your solution was copying?

celest current
#

works in school lmao

red bolt
#

do a switch statement, looks cleaner

vernal spruce
#

@frigid ember nice itemmeta check Kappa

balmy sentinel
#

yeah a) that is a terrible habit to get into and b) it won't work in coding

vernal spruce
#

A item can have no itemmeta

celest current
#

Noted @balmy sentinel

subtle blade
#

Not his point

#

Both getItemMeta() and getDisplayName() are nullable

#

Unless they've joined before, no

grim halo
#

@frigid ember Yes get the OfflinePlayer for example

subtle blade
#

Their names aren't cached if they've yet to join, smile

grim halo
#

No server is a UUID

vernal spruce
#

@frigid ember yeah ive got fkd by that alot of times where itemmeta returns null same to displayname

#

well displayname

#

returns a notnull

subtle blade
#

It doesn't

#

It's nullable

grim halo
#

Doesnt getOfflinePlayer initiate a mojang api call if the player did not play before?

vernal spruce
#

how

#

javadoc lieing

subtle blade
#

That looks to me like an incorrect annotation

vernal spruce
#

i mean it has a warning

#

"check hasdisplayname before"

#

@frigid ember there is a method

#

Bukkit.getOfflinePlayer(UUID)

#

ahh offline uuid

#

its rather impossible as offline servers create a uuid based on name

subtle blade
#

if (component == null) return "";

#

Nevermind

#

Apparently it returns an empty string

grim halo
#

Ok just checked. The OfflinePlayer will have a null name if the player has not played before.

subtle blade
#

Though I've always been under the impression that it's been nullable

vernal spruce
#

oh thats rather special

#

yeah me too

#

i always checked if it had a displayname

#

unless they joined at least once

#

nope

grim halo
#

Not impossible. You just need to make a mojang api call

vernal spruce
#

can you even request a offline mode uuid from mojang?

#

i thought its created by server itself

#

you are gonna become like the guy above

balmy sentinel
#

learn some java first...

vernal spruce
#

copy-paste doesnt help

grim halo
#

Java is 90% C#
But if you have never written a plugin then this wont work...

celest current
#

So when java reads return it stops reading the code? Like it wont go any further?

vernal spruce
#

yeah i kinda agree

#

c# is basically java

balmy sentinel
#

No one is going to spoon-feed you. You need to do your own research and your own coding. If you have a problem come here and we'll help.

grim halo
inner olive
#

@grim halo Hey, it's me again, i got something, the line "nerf-mob-spawning" is just reset after each restart. How can i fix it ?

grim halo
#

Stop the server. Change the setting. Start the server agian.

vernal spruce
#

this starts to get confusing

#

wut

#

also just to be sure

#

you will never have both online and offline

#

together

#

just a friendly reminder to not overcomplicate yourself

grim halo
#

I mean... yes. You can just throw in the uuid on this website and get the name...

graceful vigil
#

Several people are typing...

wind dock
#

Anyone know why my friend is getting the bungee error unable to connect to <ip>?

vernal spruce
#

yep..

#

thats fun

grim halo
#

@wind dock Whats the exact error?

vernal spruce
#

why no named air ?

grim halo
#

Yes named air seems like something usefull

wind dock
#

@grim halo I'm pretty sure the error that comes up is "unable to connect to <ip>"

vernal spruce
#

@grim halo the most epic way to kill someone,with a named air

#

c# wanted its own toy to play with and not share javas one

#

so he just mostly changed name and some syntaxs

graceful vigil
#

"mommy I want my own toy!!!"

vernal spruce
#

basically yeah

grim halo
#

@frigid ember There is quite a bit thats different. The VMs are different. C# has Namespaces. C# has unsafe while Java has native...
I think you should google that

vernal spruce
#

more or less i think mods are a bit harder

#

as you dont work with that much documentation

#

also mods testing is a pain

grim halo
#

Mods are fundamentally different. If you know the concepts of OOP from C# you can start with both.

graceful vigil
#

If you have little java experience, it may be a little easier to start with plugins (although you should learn java first anyways)

vernal spruce
#

compared to spigot where we have the hugest database of information its quite a difference

graceful vigil
#

Otherwise just do what you wanna do

grim halo
#

Also forge uses gradle puke

#

Exactly... what even is gradle?

graceful vigil
#

bad

grim halo
#

Gradle is a dependency manager like maven

lone fog
#

I don’t think age matters in which you make

#

Do whichever is more interesting to you

vernal spruce
#

i mean i did start learning to make plugins at 14

grim halo
#

14 is fine 😄 Just learn some java (at least to the fundamentals of oop) and then get started

vernal spruce
#

dem youtube vids did the hard job

grim halo
#

I think writing plugins is way easier.

vernal spruce
#

we have alot of videos/tutorials for it so i can agree

lone fog
#

Depends how in depth you get

tough kraken
#

i did with 16, and today in 2020 there is almost no difference between 2 years lol

lone fog
#

As soon as you leave the API mods are generally easier because functions are mapped

vernal spruce
#

i mean rn i think im abusing oop too much

#

i have the habit of creating a object for almost every small shit lol

grim halo
#

I wrote a energy transformer for ThermalExpansion back in the day and i can remember that it was a huge pain.

vernal spruce
#

hmm does RF have its own api with docs?

#

or you have to guess it

lone fog
#

Forge has built in energy API now

grim halo
#

It has a nice api

#

but IC2 was in a horrible state then

subtle blade
#

Based on RF too which is nice

vernal spruce
#

man i still remember imerssive engineering such a god mod

#

i need to play sevtech again

lone fog
#

Also mods have mixins

lone fog
#

Because mojang is only a suggestion

vernal spruce
#

he has more playlists

#

this will help you make ur first baby plugin

#

for java google is your best friend..

grim halo
#

I also learned spigot on his channel

vernal spruce
#

as its different for everyone,maybe you like learning java by videos or by text

#

hmm w3school had a nice short one

tough kraken
#

just hit for the spigot forum. there isnt so much bullshit i think

grim halo
#

LOL

#

Spigot forum

tough kraken
#

the most stuff helped me there lol

vernal spruce
#

if you want to get bombarded with get your basic java in check first

#

sure

grim halo
#

is filled to the rim with garbage

vernal spruce
#

while its true

tough kraken
#

yeah if you learn lava thats true

vernal spruce
#

we also have the hugest database ever

#

like every possible question was answered at least in 3 different posts

#

dont think there is a question i can think of that wasnt answered

tough kraken
#

safe there is

#

probably in nms stuff lol

vernal spruce
#

we have that covered mostly

tough kraken
#

for real? lol

vernal spruce
#

you can see posts about npcs/packets/nms

#

the most common ones we have

inner olive
#

@grim halo hi again, i did it two times but it still reset the line on restart :/

grim halo
#

Do you have a dedicated server?

#

or vm

#

Or is it managed by a host

inner olive
#

hem, i'm with OMGserv

#

so a host

grim halo
#

Some hosts dont let you edit every config line...

lone fog
#

If it's the world name you usually need to do it from the console

tough kraken
#

pay for stuff you cant edit... lmao

vernal spruce
#

it depends..

#

some have theyr own config editor in a separate tab

#

so you cant edit directly from files

grim halo
#

I mean if you pay for 5 slots then you get 5 slots. Cant just edit it up. Makes sense

vernal spruce
#

Are there host wich go by numbers lol?

#

i thought they were extinct

bronze acorn
#

😎 remove the kicked bc of too many players

#

ez

lone fog
#

Mine just gives 200

tough kraken
#

yeah so stuff like 5 slots...okay... but i had a host, who didnt let me edit the whole server.properties. really had to stick without command blocks

lone fog
#

As if I can fill that without the server dying

inner olive
#

The server offer is the best one, so it's strange that they dont allow me to do it. I'll contact em

vernal spruce
#

Usually they dont even bother placing a player limit

#

the server its still gonna die with more than 5 on 1gb ram..

bronze acorn
#

as long as you dont got mcpro 🤢

vernal spruce
#

from couple years i only used vps sofar

tough kraken
#

got tubeHosting, idk if it gives english support/etc, but really good imo.

well, but its a virtual server host... so no gameservers

#

tbh gameservers are way too expensive

bronze acorn
#

depending on your budget.. if you want a server thats like 6-7 gigs and you're willing to pay $12/mo just get a ovh vps

vernal spruce
#

yeah

#

vps seem to have the best offer mostly due to accesibility

tough kraken
#

got a 24gb 6core with 3,8ghz, for 20€ (idk how much $)

vernal spruce
#

you can switch games w/e you want

bronze acorn
#

im not saying 8gig bc its not rlly recommended to use all the ram on the system lol

#

6 should be fine 7 if u wanna be risky and live life on the edge

#

😎

vernal spruce
#

say that to my modded minecraft vps

#

poor thing

bronze acorn
#

lmaoo

#

people who get soyoustart 😔

tough kraken
#

modded mc with <10 gb... traaaash

bronze acorn
#

had horrible experience w soyoustart

vernal spruce
#

its actually a good number

#

as even the modpack creator warns you dont give more than X gb

bronze acorn
#

literally would crash at 70 players and the ram wasnt an issue

#

i mean depends which ones you get

vernal spruce
#

its same to vanilla

#

give too much ram and the gc will make ur life hell

bronze acorn
#

the game servers are about 6 year old hardware

#

yeah ig

#

we switched to pnap and still have basically everything we had on our soyoustart dedis (not the hardware)

#

and it runs smooth

tough kraken
#

i would rate everyone rather getting a linux machine instead of a gameserver

but only makes sense if you wanna have multiple server for example

bronze acorn
#

raspberry pi 3 host ?!?!?!?!?

vernal spruce
#

i mean there are games wich are newly released

#

gl having them on a gameserver

tough kraken
#

really want to make my cubeworld server on my machine, but it has a .exe to start it... soooo bad

vernal spruce
#

also they usually increase the price due to the platform

#

they pay for license to give you that gameserver menu

#

@tough kraken you have the equivalent for linux

#

terraria server is only .exe so you run a compatibility

grim halo
#

i mean a pi4 works pretty nice.
I got a cooler on my 8gig pi4. Overclocked to 2.1Ghz and it runs spigot just fine.

tough kraken
#

you ever had a mc-server on a windows server? lmao

#

would have to put my mc servers as well there

bronze acorn
#

i just prefer linux no hate to windows

#

lol

tough kraken
#

made only bad experiences lol

bronze acorn
#

its just a preference

vernal spruce
#

i mean its not that different

bronze acorn
#

my pc is windows 10 i just think linux servers are easier to use

vernal spruce
#

windows i think uses a bit more resources by default

bronze acorn
#

yeah hosting on like for example ubuntu servers are way easier

tough kraken
#

yep

bronze acorn
#

freakin dont gotta hunt down every software

#

just go ahead and do apt install

#

just know the software name

vernal spruce
#

agree

bronze acorn
#

never tried it so i wouldnt know xD

tough kraken
#

tbh

how much ram do i acutally "need" for about 7 gameservers (+bungee) and about 20 players at same time

bronze acorn
#

just prefer linux still (ubuntu :))

tough kraken
#

maybe 24gb really are too much but idk

bronze acorn
#

i dont understand how many gameservers tho use

#

multicraft

#

i see no problem w it just the design is like

#

and how slow it is

tough kraken
#

yeah i know, but just to know

bronze acorn
#

not gameservers i mean hosting companies

#

i prefer ptero over mcpro anyday

#

😌

grim halo
#

for 7 instances of a server i would at least get a 64 gig machine. You also need a CPU with at least 8 physical cores

bronze acorn
#

havent experienced any

limber summit
bronze acorn
#

just havent had a good time w multicraft ever lol

#

its on its 2nd to latest version

#

the latest one is a dev release and its not good to use in a work environment

grim halo
#

@limber summit Cant you just send us the timings

tough kraken
hollow thorn
#

?paste

worldly heathBOT
tough kraken
#

6 cores, 20gb ram 80gb ssd

bronze acorn
#

what cpu is it lol

#

6 cores isnt enough info

#

yeah imagine paying $2.5/mo for that

#

again i really hope to see companies switch to ptero

hollow thorn
bronze acorn
#

in the future

#

not now but like in the future

tough kraken
#

that you asking me...

#

ehh

#

lemme look

grim halo
#

@frigid ember thread sleep is probably from the spigot server to await the next tick

#

@limber summit Pls send us the timings.

tough kraken
#

Intel Xeon E5-2699v3

idk if thats good lol

bronze acorn
#

oh

#

what the heck

#

i didnt know there was more to that license

sturdy oar
#

Is someone able to make me understand better a little things about the Bukkti Events API?

bronze acorn
#

yes there is

#

theres a null multicraft? lol

sturdy oar
#

Is someone able to make me understand better a little things about the Bukkti Events API?
@sturdy oar Basically, let's suppose i instantiate my event (which implements Cancellable) and I call it. Will checking if it is cancelled after having called it make me able to know if anyone using my API has cancelled the event?

bronze acorn
#

it has a port?

inner olive
#

Well it fixed the spawners AI but my pigmens still dont moove 😶

bronze acorn
#

it should just be localhost/phpmyadmin

#

thats the default

#

you have to install phpmyadmin

#

mysql doesnt come with it

#

you can either do that or use a mysql compass

#

learn mysql's basics i'd suggest before trying to implement it

grim halo
#

I get my servers from a industrial server host. Machines from old clients that are not needed anymore.

#

25/month

#

1000Gbit up + download

bronze acorn
#

all i'd recommend learning for now is how to create tables, insert, update, select, and thats it i think?

#

wow smile

#

want to link me this for future reference LOL

inner olive
#

@grim halo well i figured out, the config is ok and my mobs now got AI on spawners. But it didnt help with pigmens, they still dont moove, that's the main issue

bronze acorn
#

🤷🏽‍♂️

grim halo
#

Id rather not. I have done this in the past and the prices went up.
The servers are up for 48 hours and then they get cheaper. And now ppl buy servers like this one for 30/month

bronze acorn
#

someone taught me the basics

#

o okay smile its okay lmaoo

#

im broke anyways ☹️

grim halo
#

^^

bronze acorn
#

high school broke gang wya

normal steppe
#

hey can some staff help me setup lucky perms?

#

i added it to my mcpro server and cant use op now i need to setup a thing for it but im not sure how

#

could we hop in a cole and i couild screenshare and you could guidbe through it?

#

call*

worldly heathBOT
sinful spire
#

does lp have config.yml?

normal steppe
#

how do i do that im kinda new to this

hollow thorn
#

halp

bronze acorn
#

@normal steppe

#

do lp user <user> permission set *

#

to give yourself all permissions

hollow thorn
#

oh okay

#

?paste

worldly heathBOT
normal steppe
#

do i do that in console @bronze acorn

bronze acorn
#

yes

hollow thorn
limber summit
#

How much ram for my bungee with ~600 players guys?

normal steppe
#

ok

hollow thorn
#

i am the author

#

i think elytra is causing the other plugins to have spasms

#

?paste

worldly heathBOT
hollow thorn
#

@hollow thorn Send the Elytra plugin and we'll find out.
@frigid ember as in teh hole thing

bronze acorn
#

euan

#

what's line 652 in

#

can you send your playerinteractevent

hollow thorn
#

isnt that long

bronze acorn
#

StaffWeaponUse:652

hollow thorn
#

and i just sent it

bronze acorn
#

that's where the null is happening

#
Caused by: java.lang.NullPointerException
        at com.javaminecraft.StaffWeaponUse.onOpen(StaffWeaponUse.java:652) ~[?:?]
        at sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source) ~[?:?]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_241]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_241]
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:315) ~[spigot.jar:git-Spigot-0509002-7c03d25]
        ... 21 more```
hollow thorn
#

it happens in all 3

bronze acorn
#

am i looking at a different error

#

lol

hollow thorn
bronze acorn
#

oh

normal steppe
#

@bronze acorn can you watch my scrren rq?

bronze acorn
#

holy why do you have all of your code in one clas

#

lol

hollow thorn
#

for that one i was lazy

bronze acorn
#

yeah that's not

hollow thorn
#

for space i have 5 classes but inly use 2

bronze acorn
#

we need

#

staffweapon

#

wait

#

oh

#

wait am i

#

hold on

hollow thorn
#

theres the code

bronze acorn
#

wait im confused code

#

which error are you looking at

hollow thorn
#

thats one of the errors i sned

#

sent

#

its the jar i use

#

it only runs once

celest current
#

can I only use this.getConfig() in the Main.java?

harsh anvil
celest current
#

@frigid ember then how do i get info from a config file into another class?

bronze acorn
#

lilmikey, you'd od

#

do

#

at the top of your class

tough kraken
#

well i still dont get it

i want to have a config, that just contains players with boolean.

if i use config#set, does it add a new Player or replaces the old?

bronze acorn
#
private static <insetclassname> plugin;


@Override
public void onEnable() //this can be onload or onenable
{
  plugin = this;
}```
#

and then at the bottom

#
public static <pluginclassname> getPlugin()
{
    return plugin;
}```
#

that's how i do mines 🤷🏽‍♂️

#

or you can be weird and do <classname> plugin = <classname>.getPlugin(<classname>.class);

tough kraken
#

public static <pluginclassname> getPlugin()
{

am i the only one who hates it to see the brackets at the next line? lol

bronze acorn
#

lmao

#

mines auto do it to be right next to it

#

it depends if im lazy or not i'll just move it to the next line

#

🤷🏽‍♂️

tough kraken
#

idk i am kinda confused if i see that

celest current
#

So either way will let me call config info in a different class?

bronze acorn
#

it do be static strngs

#

i think

#

idk

#

yes lilmikey those 2 ways will do it

sinful spire
#

dont you need to import like the main class or something

grim halo
#

You need a instance of your main class

bronze acorn
#

that'll work too

wide cargo
#

anyone know why i might be able to see invisible mobs ?
for example when i apply an invisibility potion effect to a mob in mythicmobs, i can see the potion particle effect on them, but they are not invisible. i can see any entity that turns invisible on my server.
(i talked to some people on the mm server, and i'm not entirely sure this is a mm-specific issue)

hollow thorn
#

@hollow thorn No it doesn't. It repeats every 20 ticks.
@frigid ember oh your talking about that one

celest current
#

@frigid ember So I have an instance defined but not used. How would it connect to getConfig?

#

ahh yes. it would be instance not this. big brain move

#

if my config file is divided into categories how could I get a string from an item inside a category? I dont know what its called so google doesnt know what to show me

#
effects:
  speed: zoom
  strength: stronk
  jump-boost: bounci
  regen: healmeh
#

whats that called ^

tiny dagger
#

getconfigurationkeys

#

get each category

#

then do whatever with each

#

ie get the item

#

tbh

#

you shouldn't use the configs as permanent storage

#

i would still move them in a less generic place

celest current
#

okay so I can get a key when its sectioned off

tiny dagger
#

yes

celest current
#

the data in the keys is what people can rename items to in anvils for the effects to work. I want to be able to change the string from config rather than the java

#

thats what I had written down but i am looking for what to put in there now

tiny dagger
#

what do you mean?

#

oh by storage

#

i mean using from storage

#

move it to memory

celest current
#

visible confusion

tiny dagger
#

it is but it's slower

#

because of the operations it needs to be done in order to obtain the values

#

the keys have to be split and searched in hashmaps

agile girder
#

can someone help me with some port forwarding thing, i cant join my server

celest current
#

cant you just use localhost?

agile girder
#

It's a localhost server, but thats the point, im trying to make it public

tiny dagger
#

go in router

#

and enable it

agile girder
#

I already port forwarded it