#help-archived

1 messages · Page 139 of 1

shut quest
#

I want them

#

but not those chunks

#

when noone there

mellow wave
#

Talking about spawn chunks

#

Not the whole dimension

shut quest
#

I am in multiverse config but I dont see any option

mellow wave
#

Yes keepSpawnInMemory

shut quest
#

adjustSpawn: 'true'?

#

keepSpawnInMemory: 'true'?

mellow wave
#

Set it to false

#

... what happened to my other message

lone fog
#

./mvm set memory false

#

Also works

mellow wave
#

Not sure if that's the right syntax but you can try

placid cargo
#

umm I have a slight problem

#

about the anti bot thing

shut quest
#

nice

placid cargo
#

my friend who named himself "memereview2019" for his username can't join hypixel which I think uses spigot

shut quest
#

seems like it works

lone fog
#

Hypixel has it's own name filter

shut quest
#

thanks @lone fog and @mellow wave

placid cargo
#

ahhh

#

thanks

lone fog
#

Contact their support team

placid cargo
#

k

shut quest
#

😄

fleet crane
#

highpickle just hates memes

lone fog
#

Or 2019

placid cargo
#

lol

shut quest
#

also does this option with keepspawn do something important?

#

or just longer wait time when tp

lone fog
#

Mostly that

mellow wave
#

Longer time and no random tick I belive

lone fog
#

It's where people would set up command blocks in ye old days

#

And yes that area won't tick if no one is there

shut quest
#

Thats fine

fleet crane
#

tbh must (all?) random ticks are now dependent on players nearby

#

so I'm not actually quite sure why spawn still needs to load

lone fog
#

What about tickingarea

#

Does that just simulate a player being nearby

boreal hedge
#

I can't login to the server now, which snapshot is it using atm?

fleet crane
#

spigotcraft? rc1 still

shut quest
#

I have here one more issue... I have view-distance: 4 but when I join this empty world it loads 166 chunks... Also in main world with view-distance: 8 I am getting like 8k chunks per 32 players 😄

lone fog
#

Speaking of which, did Mojang end up making changes from RC 1 to 1.16

fleet crane
#

view distance is squared

#

so small changes can be big increase

shut quest
#

yes that means 8x8 = 64

mellow wave
#

^

shut quest
#

per player

lone fog
#

9x9

shut quest
#

~

fleet crane
#

@lone fog no but they did make changes from 1.16 to 1.16

#

?flip

shut quest
#

9x9x32 is still not 8k

worldly heathBOT
#

(╯°□°)╯︵ ┻━┻

rough canyon
#

bot is being slow so it will be a bit

shut quest
#

and 5x5 is not 166 😄

lone fog
#

Any chunk loaders? or hoppers keeping things loaded (Does that still happen?)

shut quest
#

surely not on empty world with 0 chunks loaded. then I join this world and 166 😄

#

also no chunk loaders...

#

and I think hoppers not keeping chunks loaded.. At least on paper

#

not sure on Spigot

#

276 chunks now 😄 just staying there 😄

#

🤬

boreal hedge
#

It does not allow one to install rc1 now, only latest

lone fog
#

Yes it does

shut quest
#

btw there is rc1 spigot? or its spigotcraft exclusive?

lone fog
#

Exclusive

frigid ember
#

check with md5, he has a onlyfans page

fervent mango
#

guys help me pls

#

my server is generate lag

lone fog
#

Dang that shop plugin load

stone hatch
#

So is there no 1.16 spigot release yet? not even a beta?

rough canyon
#

well I see your running slimefun so that could be an issue

stone hatch
#

damn

#

i got jebaited

#

lmao

rough canyon
#

@fervent mango I would use paper and what is your view distance set to

fervent mango
#

my timings

rough canyon
#

did you read the first line in red

fervent mango
#

world - tickEntities

#

what is?

#

eu desativei o salvamento e estou executando comandos pelo painel ptero

#

I've disabled the rescue and I'm running commands from the ptero panel
every 5 minutes he will execute command

#

/save-all

rough canyon
#

well that could be why

#

your saving a lot of data every 5 minutes

frigid ember
#

Hey

vapid kindle
#

@fervent mango your server is lagging due to a large number of hoppers in a configuration that causes a lot of lag

fervent mango
#

you know how I handle that?

#

my server have wildstacker

vapid kindle
#

look for hoppers that are trying to pull from/push into full inventories that are not full (i.e. at least one stack is not at max number)

fervent mango
#

wildstacker - mobs, spawners, itens

#

the server was reset on the 20th

vapid kindle
#

also, disable hopper functionality in plugins that don't need them (e.g. WorldGuard or Shop plugins. Keep in mind, you might actually need them)

#

the reason for the lag is a design flaw in CraftBukkit, so to properly fix it you have to pray that it will get fixed in a future update (or use a fork that does have a fix for it)

frigid ember
#

How can I access a dev version of spigot 1.16?

lone fog
#

You can’t

frigid ember
#

Oh

fervent mango
#

😦

rough canyon
fervent mango
#

@vapid kindle ?

#

do you know how I deactivate the spigot rescue?

#

save world

#

?

#

spigot.yml

#

?

vapid kindle
#

let's hope a fix for the hopper issue is included in Spigot 1.16. I've submitted a Pull Request for it a while ago, but it hasn't been merged you (probably for backwards compatibility concerns)

#

the what?

fervent mango
#

how I get the world saved on spigot.yml

vapid kindle
#

why would you want to disable world saving?

fervent mango
#

removed

harsh anvil
#

wtf are you even saying

fervent mango
#

for me to execute the command manually

stone hatch
#

fr tho

vapid kindle
#

bukkit.yml -> ticks-per.autosave to -1

#

but why would you want to do it manually as opposed to automatic?

fervent mango
#

me is 6000000000

lone fog
#

World is automatically saved already

#

I think the save-all command is just a full save

fervent mango
#

before this was generating lag so I moved to the ptero panel to execute the save-all command

raw hound
#

oof

#

generally don't tag md

fervent mango
#

now the problem is the entities before was just the world saving

lone fog
#

You just delayed our update by tagging md

#

Smh

magic sun
subtle blade
#

Especially if you're making a fork because if you don't understand how to do that, it's likely you shouldn't be making a fork to begin with

languid pewter
#

Hi, I'm getting the warning handleDisconnection() called twice and net.minecraft.server.v1_15_R1.CancelledPacketHandleException: null while using player.kickPlayer("Disconnected"); any ideas why is this happening? (I'm executing this from InventoryClickEvent)

lone fog
#

That happens a lot when players get kicked for me

#

No idea why

harsh anvil
#

you can safely ignore it

subtle blade
#

So again I say,

if you don't understand how to do that, it's likely you shouldn't be making a fork to begin with

#

Use your IDE to decipher how that may be done

#

Use the tools available to you to reverse engineer what is sent to the client

harsh anvil
#

check how bungeecord changes it

#

or any of its forks

subtle blade
#

because if you can't navigate bungeecord, you won't be able to navigate your fork

#

and you won't be able to maintain it reliably

languid pewter
#

Hi, I'm getting the warning handleDisconnection() called twice and net.minecraft.server.v1_15_R1.CancelledPacketHandleException: null while using player.kickPlayer("Disconnected"); any ideas why is this happening? (I'm executing this from InventoryClickEvent)
I'm working on a public plugin, I don't want to ignore that, I want to make it disappear

frigid ember
#

catch the exception @languid pewter ?

lone fog
#

Even non plugins send that error with /setidletimeout

#

So I assume it’s not on your end

languid pewter
#

@frigid ember that doesn't work, I'm still getting handleDisconnection() called twice

raw hound
#

i get that all the time, no harm

frigid ember
#

yea, it might be out your reach then idk

languid pewter
#

Well, thanks anyway

#

Np

#

Well, just search in internet

#

because I don't know what to do specifically

#

I'm starting the bungeecord development

#

try searching only in the spigot site

#

if you add to the search bar site:spigotmc.org you'll see only results from the spigot site

#

maybe that can help

#

Well, I'm working on my own errors, keep searching

#
@EventHandler
    public void onProxyPing(ProxyPingEvent event)
    {
        event.setResponse( new ServerPing( new ServerPing.Protocol( "somename", 47 ), event.getResponse().getPlayers(),
                event.getResponse().getDescription(), event.getResponse().getFaviconObject() ) );
    }
#

@frigid ember what server version are you using?

tulip brook
#

anyone know how long until paper spigot 1.16 is out?

languid pewter
crimson acorn
#

?eta

worldly heathBOT
#

There is no ETA. Having an ETA leads to unrealistic deadlines, false hope, and a bad product. It will be ready when it's ready.

crimson acorn
#

@tulip brook ^

#

Paper needs Spigot to work

languid pewter
#

try using the protocol number for the version that are you using

#

Use the tools available to you to reverse engineer what is sent to the client
Do that

#

Just look into the bungeecord code

short ruin
#

Search the repo

#

There's a file that has all of the protocol numbers for every version in the bungeecord repo

languid pewter
hardy cedar
#

How to get the player damage event

short ruin
#

EntityDamageEvent

sullen harness
#

asd

#

How to get the player damage event
@hardy cedar EntityDamageEvent

#

and EntityDamagedByEntityEvent

hardy cedar
#

Is to set quit message to "" blocks it or it sends a space?

unreal jackal
#

hey quick question about the plugin: PlayerPoints. i got plotsquared aswell
and /p is using playerpoints, anyway for me to make plotsquared cmd's higher priority or change the playerpoints cmd alias's?

flint vine
#

How do I turn off wandering trader

#

From spawning

#

Is there a gamerule or smth?

lone fog
#

In 1.16 there is iirc

flint vine
#

No 1.12.2

languid pewter
#

@languid pewter thanks so much it works
@frigid ember That's great! Np

flint vine
#

Sorry 1.15.2

short ruin
#

yeah in 1.15 there's a gamerule

#

doTraderSpawning I think?

flint vine
#

Ok and last question

#

If I want to despawn lamas completely

hardy cedar
#

One last question why when i cancel a event it doesn't work

#

?

outer moon
#

Hi, i'm having a bit of the issue with the restart command. I'm running a spigot server on a linux screen, and when i run the /restart command the server will restart without an accessible console in the screen. I have confirmed that the server restarts properly as the process exist. Anyone know how to get the server to restart with an accessible server console running in the screen?

flint vine
#

Is there a plugin that removes mobs by any chance?

#

Like spawn lamas false

modest basalt
#

how do i do /disguise it no work

misty jetty
short ruin
#

@flint vine I have used a plugin called MobsManager in the past to disable specific mobs and it was pretty good

flint vine
#

@flint vine I have used a plugin called MobsManager in the past to disable specific mobs and it was pretty good
@short ruin worldguard flag to global solve issue?

short ruin
#

sure, you could do that too

frigid ember
#

got a problem server icon wont work, It show white only :C

vast orchid
#

i saw that too on a bungeecord server with viaversion but when i restarted the client is was normal again

#

could be a client issue

trim gull
#

is there at tutorial somewhere on how to update spigot?

lone fog
#

1.16 isn’t out yet

#

But yes there is a tutorial on the website

trim gull
#

well it says mine is outdated

lone fog
trim gull
#

do i need to reinstall build tools as well or just spigot?

frigid ember
#

wonder how long we will have to wait for

lone fog
#

3

frigid ember
#

3 what

gleaming dirge
#

3

charred flax
#

Question, is wiping just the nether on Spigot as easy as deleting the world_nether folder?

lone fog
#

Yes

charred flax
#

Awesome, thanks!

trim gull
#

okay, upon launching the start.bat file i get the following message: *** Error, this build is outdated ***
*** Please download a new build as per instructions from https://www.spigotmc.org/go/outdated-spigot ***. That link takes me to the buildtools installation guide, implying that i need to update buildtools, is this correct? i want to make sure i know what im doing before i mess up my server or lose data.

winter leaf
#

does anyone use Intellij IDE ?

jaunty night
#

Yup

subtle blade
#

A lot of people do. You could ask if somebody used BlueJ and surely somebody would speak up

#

Ask your question

winter leaf
#

can you tell me how do i export a jar

#

I used to use eclipse ide

jaunty night
#

What are you using as a buildtools, maven, gradle, etc..

winter leaf
#

wdym

#

I started to code bukkit

lone fog
#

I assume they used the built in export button

jaunty night
#

Yeah

winter leaf
#
    return;
}```
jaunty night
#

?

buoyant berry
#

how stable is the 1.16 spigot snapshot? is it worth waiting till stable version drops

jaunty night
#

I would say it is worth waiting yeah

lone fog
#

The snapshot isn’t even public

buoyant berry
#

oh yeah

#

im dumb lol

frigid ember
#

@trim gull you tryna connect to a 1.15 server from 1.16?

gilded compass
#

latest spigot is --rev 2700

#
  • not 1.16 obv
hardy cedar
#

``package me.iiAhmedYT;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.EntityDamageEvent;
import org.bukkit.event.entity.EntityDeathEvent;
import org.bukkit.event.player.PlayerDropItemEvent;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.player.PlayerQuitEvent;
import org.bukkit.event.player.PlayerRespawnEvent;
import org.bukkit.plugin.java.JavaPlugin;
public class Main extends JavaPlugin implements Listener {
@Override
public void onEnable() {
getServer().getConsoleSender().sendMessage("§aEnabled GraveLobbyCore by iiAhmedYT");
new WMCommand(this);
}

@EventHandler
public void onJoin(PlayerJoinEvent event) {
event.setJoinMessage("");
}

@EventHandler
public void onQuit(PlayerQuitEvent e) {
e.setQuitMessage("");
}

@EventHandler
public void onDrop(PlayerDropItemEvent e) {
e.setCancelled(true);
}

@EventHandler
public void onDamage(EntityDamageEvent e) {
e.setCancelled(true);
}

@EventHandler
public void onDeath(EntityDeathEvent e) {
e.getDrops().clear();
}
@EventHandler
public void onRespawn(PlayerRespawnEvent e) {
e.getPlayer().getInventory().clear();
}

}``

#

wtf did i do wrong

#

THERE IS NOTHING

hasty rain
#

dude. Use a pasting site.

hardy cedar
#

done

bold anchor
#

yes

subtle blade
#

```java
code
```

#

Just, for future reference. lol

hardy cedar
#

xd

subtle blade
#

But yes, definitely a paste site for longer snippets

hardy cedar
#

You didn't register it
wdym by that

tacit escarp
#

getServer().getPluginManager().registerEvents(this, this); should do the job, if you have them all in your main class.
I don't think its good practice to do that tho

hardy cedar
#

getServer().getPluginManager().registerEvents(this, this); should do the job, if you have them all in your main class.
I don't think its good practice to do that tho
thx bud

#

Yeah don't put all your shit in the main class
also im just practicing im not making a plugin

#

im new

#

at java

#

u know what im sayin-

dim cape
#

Im getting this error when trying to use Configuration.contains(). (bungeecord)

java.lang.ClassCastException: java.lang.String cannot be cast to net.md_5.bungee.config.Configuration
        at net.md_5.bungee.config.Configuration.getSectionFor(Configuration.java:70) ~[waterfall-1.15.jar:git:Waterfall-Bootstrap:1.16-R0.1-SNAPSHOT:823e465:353]
        at net.md_5.bungee.config.Configuration.get(Configuration.java:83) ~[waterfall-1.15.jar:git:Waterfall-Bootstrap:1.16-R0.1-SNAPSHOT:823e465:353]
        at net.md_5.bungee.config.Configuration.get(Configuration.java:90) ~[waterfall-1.15.jar:git:Waterfall-Bootstrap:1.16-R0.1-SNAPSHOT:823e465:353]
        at net.md_5.bungee.config.Configuration.contains(Configuration.java:103) ~[waterfall-1.15.jar:git:Waterfall-Bootstrap:1.16-R0.1-SNAPSHOT:823e465:353]
... stacks from my plugin```
please ping me if you respond
tacit escarp
#

If your current code is all your plugin is doing, its fine. But if you add more, the main class will become very big and that is just not good.

#

@dim cape There is no need to post the same thing twice tbh. But it would be helpful to post the part of code that produces this error. There is Configuration#contains and it accepts a String, so im not sure whats wrong there

dim cape
#

sorry. Heres that part of the code:java for(String k : d.keySet()) { if(!msgs.contains(k)) { msgs.set(k, d.get(k)); } }

#

the weird thing is that it works perfectly fine most of the time, but with this value of the config it gives that error, even though it seems like that part shouldnt have anything to do with the value

#

its valid yaml

#

aha

#

it looks like if there is a \n in the value, it gives that error

unreal jackal
#

hey quick question about the plugin: PlayerPoints. i got plotsquared aswell
and /p is using playerpoints, anyway for me to make plotsquared cmd's higher priority or change the playerpoints cmd alias's?

raw hound
#

use bukkit's commands.yml

unreal jackal
#

hm

#

what do i fill in for /p (/plot) being a higher priority than /p (playerpoints) ?

dim cape
#

nvm my messages, found the issue. it was an issue with the key after all

#

@rustic socket set the command to something like plotsquared $1-

#

been a while since i messed with commands.yml so that might be wrong

fossil burrow
#

Hello, do you know why this comes out?

#

ServerConnector [test] - encountered exception: net.md_5.bungee.util.QuietException: Unexpected packet received during server login process!

#

I am trying to connect my Vanilla server to My NetWork and when entering I get that error

unreal jackal
#

``command-block-overrides:

  • plotsquared $1-``
#

didnt work

dim cape
#

no

fossil burrow
#

¿?

dim cape
#

@fossil burrow make sure the server is in offline mode

desert heart
#

or whitelist...

fossil burrow
#

It is

dim cape
#

@rustic socket something like this under aliases

p:
  - "plotsquared $1-"```
unreal jackal
#

hm, but what do i use for its alias? i see time uses well.. time

#

ohh

fossil burrow
#

from the server ip if you let me in but from the NetWork No

unreal jackal
#

ty @dim cape it made plotsquared higher priority!

fossil burrow
#

The server is already started and everything in offline mode has the alias set in the bungeCord configuration but I throw that error when trying to enter

hardy cedar
#

@dim cape i have found no one called Proximyst talked Lmao

dim cape
#

?

#

oh lol

#

sorry Proximyst for the ping

#

idk how that happened

#

i meant to ping Buy17000

fossil burrow
#

ServerConnector [test] - encountered exception: net.md_5.bungee.util.QuietException: Unexpected packet received during server login process!
1ac7017b227472616e736c617465223a

fleet crane
#

disable ip forwarding when using vanilla

dim cape
#

is \n not supported in messages in bungeecord?

fossil burrow
#

Doesn't that affect the other servers?

hardy cedar
#

Doesn't that affect the other servers?
are other servers Spigot ?

fossil burrow
#

are other servers Spigot ?

#

In My Network I have 1 Spigot server plus the lobby ...

bold anchor
#

I use the superior p

fossil burrow
#

wath?

frigid ember
#

so with the .getString is it only able to be .getString("") or am i able to put ChatColor.translateAlternateColorCodes with the extra parentheses and the getString with "" inside of it
as in will the .getString recognize the "" part with the string name while having the chatcolortranslate and it being in the chatcolortranslate parentheses

player.sendMessage(getConfig().getString(ChatColor.translateAlternateColorCodes('&', "discordlink_message")));

fossil burrow
#

disable ip forwarding when using vanilla
@fleet crane lost connection: If you wish to use IP forwarding, please enable it in your BungeeCord config as well!

hardy cedar
#

is that the Lobby?

#

or the Vanilla

#

one?

fossil burrow
#

El Lobby

fleet crane
#

theres no way to set ip forwarding per server

#

alternatively look into VanillaCord if it works for 1.16

fossil burrow
#

D:

#

where?

frigid ember
hardy cedar
fossil burrow
#

I still think that is fixed by waiting for Version Spigot 1.16? If so, I'll wait

hardy cedar
#

yes

dim cape
#

is it possible to use \n when sending messages in bungeecord?

#

let me rephrase that

#

if i use \n in a hard-coded string, it works, but when i load a string that has \n from a config file, it doesnt work

misty jetty
feral robin
#

is there an update for 1.16 yet ?

worldly heathBOT
#

Spigot 1.16 is in development with no release date. It'll be out when it's out.

hardy cedar
#

thats why i hate java

#

(:

frigid ember
#

lmao

hardy cedar
#

"Syntax error, insert "}" to complete ClassBody"

bold anchor
#

Yes

icy dragon
#

@hardy cedar not a valid argument against java lol, brackets are love, brackets are life

hardy cedar
#

xd

#

now i changed my code

#

to

#

make it on another class

#

and the main one must enable it

#

but doesnt work

#

fudge

grave iron
#

You didn't just add anoyher bracket?

hardy cedar
#

,_,

#

i fixed that

grave iron
#

It's literally just a syntax error

#

Hmm ok

#

More errors?

hardy cedar
#

yes

#
import org.bukkit.event.Listener;
import org.bukkit.plugin.java.JavaPlugin;
public class Main extends JavaPlugin implements Listener{
    @Override
    public void onEnable(){
        getServer().getConsoleSender().sendMessage("§aEnabled GraveLobbyCore by iiAhmedYT");
        new Basics(this);
        new WMCommand(this);
        getServer().getPluginManager().registerEvents(this, this);
    }
}```
static echo
#

How i get diferent types of Logs? Only have LOG and LOG_2

grave iron
#

Error

#

Not code

#

Error

hardy cedar
#

no console errors

subtle blade
#

(1) update (2) log had 4 data values for the base logs, log_2 had 2 data values for dark oak and acacia

opal bay
#

In the screenshot you showed, you're missing a bracket for the class @hardy cedar

hardy cedar
#

import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.EntityDamageEvent;
import org.bukkit.event.entity.EntityDeathEvent;
import org.bukkit.event.entity.FoodLevelChangeEvent;
import org.bukkit.event.player.PlayerDropItemEvent;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.player.PlayerQuitEvent;
import org.bukkit.event.player.PlayerRespawnEvent;
import org.bukkit.event.weather.WeatherChangeEvent;

public class Basics implements Listener {
public Basics(Main main) {
    }
@EventHandler
public void onJoin(PlayerJoinEvent event) {
  event.setJoinMessage("");
}

@EventHandler
public void onQuit(PlayerQuitEvent e) {
  e.setQuitMessage("");
}

@EventHandler
public void onDrop(PlayerDropItemEvent e) {
       e.setCancelled(true);
   }

   @EventHandler
   public void onDamage(EntityDamageEvent e) {
           e.setCancelled(true);
   }
   
   @EventHandler
   public void onDeath(EntityDeathEvent e) {
           e.getDrops().clear();
   }
   @EventHandler
   public void onRespawn(PlayerRespawnEvent e) {
           e.getPlayer().getInventory().clear();
   }

   @EventHandler
   public void onHunger(FoodLevelChangeEvent e) {
           e.setFoodLevel(20);
   }

   @EventHandler
   public void onWeatherChange(WeatherChangeEvent e) {
           e.setCancelled(true);
   }

}```
static echo
#

I use spigot 1.8.8

hardy cedar
#

thats the friken class

#

(:

granite skiff
#

hello

hardy cedar
#

hi

granite skiff
#

someone can help me whit my perms in one server

hardy cedar
#

In the screenshot you showed, you're missing a bracket for the class @hardy cedar
@opal bay i fixed that part (:

opal bay
#

Now whats the error?

granite skiff
#

i dont know how i can put permission of commands to my users

hardy cedar
#

now the new class doesnt work

grave iron
#

@granite skiff what perms plugin are you using

granite skiff
#

are not using xd

static echo
#

@subtle blade can you show me a example for on block break event check the Log type?

granite skiff
#

i dont know how i

grave iron
#

Bruh

granite skiff
#

xd

grave iron
#

EssentialsX

#

Use that

granite skiff
#

okay

grave iron
#

They have documentation

opal bay
#

did you register events? In the main class I can see you registered events for that class but not for the class Basics

hardy cedar
#
import org.bukkit.event.Listener;
import org.bukkit.plugin.java.JavaPlugin;
public class Main extends JavaPlugin implements Listener{
    @Override
    public void onEnable(){
        getServer().getConsoleSender().sendMessage("§aEnabled GraveLobbyCore by iiAhmedYT");
        new Basics(this);
        new WMCommand(this);
        getServer().getPluginManager().registerEvents(this, this);
    }
}```
#

thats the main class

opal bay
#

You didn't register the class basics though

#

Just the main class

granite skiff
#

and other question

#

where i can do free servers

grave iron
#

Nowhere good

granite skiff
#

its a better page than alternos?

#

u.u

grave iron
#

Tbh self-hosting is the next step up

#

That's

#

A whooole nother level of technicality

hardy cedar
#

You didn't register the class basics though
@opal bay like what do i do

#

lol

opal bay
#

getServer().getPluginManager().registerEvents(this, new Basics(this));

#

or opposite way around, not really sure

granite skiff
#

other question

#

you know a good plugin to do minecraft mmo or rpg?

#

u.u

opal bay
#

EliteMobs

#

McMMO

granite skiff
#

thanks

#

elitemobs works in 1.15.2?

opal bay
#

Yes

hardy cedar
#

😦

opal bay
#

whats the error?

hardy cedar
#

The method registerEvents(Listener, Plugin) in the type PluginManager is not applicable for the arguments (Main, Basics)

opal bay
#

Then flip the classes, got them mixed up

#

new Basics(this), this

hardy cedar
#

thx

#

worked

hardy cedar
#

now i have the last question for tonight (its 3:30 am for me )


import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
public class WMCommand implements CommandExecutor {
    
    public Main plugin;

    private boolean warmodeEnabled;
    
    public WMCommand (Main plugin) {
        this.plugin = plugin;
        plugin.getCommand("warmode").setExecutor(this);
        warmodeEnabled = false;
    }

    @Override
    public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
        
        if(!(sender instanceof Player)){
            sender.sendMessage("§cOnly Players can do that command!");
            return true;
        }
        Player p = (Player) sender;
        if(p.hasPermission("gravemc.admin")) {
          if (warmodeEnabled) {
            warmodeEnabled = false;
          } else {
            warmodeEnabled = true;
          }
            p.sendMessage("This command is under development!");
            return true;
        } else {    
            p.sendMessage("§cOnly Admins and higher can run this command");    
        }
        return false;
    }
}```
can i allow specific events on enable and allow specific other events on disable
subtle blade
#

Not sure what that means

icy dragon
#

Oh no, please don't use the constructor to register stuff

#

override the onEnable and onDisable methods of the JavaPlugin class

#

oh sorry misread your code

#

lol

hardy cedar
#
   public void onDamage(EntityDamageEvent e) {
           e.setCancelled(true);
   }``` for example this event
icy dragon
#

3am for me too

hardy cedar
#

can i disable it onEnable?

radiant pollen
#

No

icy dragon
#

what do you mean exactly?

#

are you trying to unregister a listener?

hardy cedar
#

have u heard of hypixel's warmode?

radiant pollen
#

You need to listen to each individual event and cancel it.

#

You can do it in the onEnable with an inner class, but it's still the same thing.

#

You have to listen to each event and cancel it.

hardy cedar
#

for on enable and disable?

#

@quartz heron is here

#

xd

quartz heron
#

get that warmodeEnabled boolean in event and set cancelled accordingly

icy dragon
kind finch
#

Hello! My cratesplus is not working..

icy dragon
#

just to give you an idea, i just tiped the code on paste.lucko.me without validating it lol

#

take it just as "pseudo-code" hahah

kind finch
#

Hello! Can someone please help me with cratesplus.. I can send the config file if needed.. For some reason, im getting an internal error because i messed with the config file.. If anyone could help, this would be amazing!

quartz heron
#

share the error

#

?paste

worldly heathBOT
kind finch
#

there

icy dragon
kind finch
#

thats when I try to do any command

quartz heron
#

sgdc i believe he wants it to be a toggle for the whole server, not per player

#

you didnt share the paste, aura

kind finch
#

An internal error occured while attempting to perform this command

#

it was that thing

#

wait

#

do u want me to send the whole config file?

icy dragon
#

uh, lol, then it's simpler

kind finch
#

@quartz heron

frigid ember
#

Aura, use the website Husky linked you. Paste it in, and then link the paste here.

kind finch
#

ohh

#

there u go :)

#

thank you @frigid ember :)

quartz heron
#

was there an error in console when you typed that aura

kind finch
#

I tried doing /cratesplus on my server

icy dragon
kind finch
#

then it said An internal error occured while attempting to perform this command

quartz heron
#

yes but was there an error in the console when you typed that?

hardy cedar
#

thx @quartz heron @icy dragon ❤️

kind finch
#

no not at all

icy dragon
#

and gg paste.lucko didn't save the changes...

kind finch
#

Is the red bit an error?

quartz heron
#

doesnt have to be red but its big and ugly usually

icy dragon
#

Ok, the paste site is broken

frigid ember
#

If I may poke my nose in again - Aura's config file is valid yaml, according to a parser I checked. So it's not an issue of there being a tab or anything within it.
It would probably be more helpful if you shared a snippet of the console log, when the "internal error" happened.

hardy cedar
#

@icy dragon
plugin.getPluginManager().registerEvents(plugin, this);

#

is broken

icy dragon
#

plugin.getServer().getPluginManager()

#

as I said, it's 4 am here ahaha

hardy cedar
#

yea same

#

man

icy dragon
#

whoops, replace the last !warmodeEnabled with warmodeEnabled 😉

#

ok i'll never again try to code something outside of an ide ahahaha

quartz heron
#

just event.setCancelled(warmodeEnabled); :O?

icy dragon
#

no, that would break other plugins cancelling that event

quartz heron
#

i suppose

icy dragon
#

but in my code I added (ignoreCancelled=true) in the event handler annotation, so it would be fine

#

but it's nicer to never call setCancelled(false)

#

it should never be used in normal operation, a cancelled event should stay cancelled lol

hardy cedar
#

@icy dragon uhh when WarMode is enabled it must made it not cancled and if its enabled must be cancled

#

.,_.

icy dragon
#

whoops, replace the last !warmodeEnabled with warmodeEnabled 😉

hardy cedar
#

ok

#

THX BUD it WORKED

granite skiff
#

Hi

icy dragon
#

you're welcome @hardy cedar

granite skiff
#

How i put permissions in essentials?

icy dragon
#

Do you need to give users permissions? Is that what you mean?

granite skiff
#

Yes

#

I'm new doing a server xd

icy dragon
#

You need a permission management plugin for that, i suggest you LuckPerms or PermissionsEx

#

Personally i prefer LuckPerms, it has many features and a simple web editor 🙂

granite skiff
#

Essentialsx it's not good? Xd

icy dragon
#

EssentialsX just adds commands and features, it doesn't include a permission manager

#

You need to have both

granite skiff
#

Oh ok

#

I install lucky perms

#

?

hardy cedar
#

luckperms*

#

also use a easy plugin

#

if ur that new

icy dragon
#
  • you probably want to install also Vault, which allows essentials to integrate with permission managers with more features
granite skiff
#

I have it

#

I'm doing a server whit aternos

#

It's only to play whit schoolfriends

icy dragon
#

i think everybody here started in a similar way

#

lol

hardy cedar
#

yes

granite skiff
#

And i'm doing a rpg server xd

flint quartz
#

Does vault improve performance?

hardy cedar
#

no but it just doesnt effect it

granite skiff
#

Whit the plugin hero and lorinthsrpgmobs

icy dragon
#

Ehm no, Vault only adds a way to plugins to comunicate between different permission managers in a simple way

#

it's a sort of "dependency"

granite skiff
#

I have luckperms

flint quartz
#

Oh I only use one manager so not much of a point I guess Thanks

gray crest
#

vault is basically middleware for other permission managers

grizzled remnant
#

lol

granite skiff
#

Hey sgdc3

icy dragon
#

Lol I started with a 1.4.7 server running on a crappy old pc at my home, now I have 3x 128gb ram dedicated servers with overclocked cpus hahaah

granite skiff
#

Now how i put perms un luckperms?

gray crest
#

you should use the webeditor

icy dragon
#

Just google a tutorial

gray crest
#

in the server terminal do /lp editor and paste the link into a web browser

#

also read the wiki

flint quartz
#

/lp editor

icy dragon
#

OVH sells overclocked servers

#

Yep

desert heart
#

.-.

icy dragon
#

Yes i know

#

But MC isn't a common server load

#

usually server applications take advantage of multiple threads

#

MC is a single thread application

#

So you need high clock speeds

#

Not really, the game core is still a single process

#

The famous "TPS" counter depends on the main thread of the server ahhaa

velvet jasper
#

Java can be used has multi cores user but you need to enable some feature with argument

icy dragon
#

No, i've seen paper use 400% sometimes

#

But still, it doesn't take any advantage from 8+ core cpus lol

velvet jasper
#

Still rare server are using more than one core with those 5 y/o cpu

#

I mean thats totaly rare

icy dragon
#

MC is a single threaded application, you can't just tell him "ehy, use more cores"

velvet jasper
#

Only when you start up the server ok its way better but in normal use...

#

Btw current cpu dispatch load arround....

#

Kinda forcing multi cpu usage

icy dragon
#

MC's code is just unable to take advantage of multiple cores for gameplay mechanics, the only offthread tasks that were moved outside of the main thread is chunk loading

#

@gleaming helm yeah you're right, but cpus with < 8 cores are very rare nowadays

velvet jasper
#

Well if we speak rawr fonction and perf with a spigot server the answer is the same

icy dragon
#

i dubt you'll ever run more than 8/10 large mc instances in a single server

#

if you have smaller instances then it makes sense to use a cpu with more cores

velvet jasper
#

Sgdc3 lets tell you ovh offer some good soyoustart server for afordable price and can run with smooth performance

#

Currently using pterodactyl working like a charm

icy dragon
#

I think I never used spigot outside of testing environments in 3 years

velvet jasper
#

When i say spugot i mean paper but yea... For logic reason here im not going to recommand paper if you dont know what you are speaking of

icy dragon
#

@velvet jasper SYS sells old OVH servers, it is a good solution for new servers

velvet jasper
#

For real depend of the component

#

Ru just blind?

#

Its like saying ebay is trash

#

If you plan to do all yourself why not

icy dragon
#

SYS is a good starting point

velvet jasper
#

I never loojed sys can i got link?

icy dragon
#

but i would suggest anybody to upgrade to OVH asap lol

velvet jasper
#

Nvm

#

So you start

icy dragon
#

yep, good arguments @gleaming helm

velvet jasper
#

They are more affordable for what you use

icy dragon
#

but as I said, it's just a temp solution

velvet jasper
#

I mean im using a vps for storage and a sys for main server and network and google cloud for backup

fallen field
#

guys

#

does anyone know

velvet jasper
#

And last one is a server at home behind the network

fallen field
#

what the player placeholder is?

icy dragon
#

@fallen field papi?

fallen field
#

I want to do /give player steak 64 something like that

#

yea

velvet jasper
#

%player%

icy dragon
#

ehm nope

velvet jasper
#

Nvm %p nearest

#

@p*

fallen field
#

it isn't @p

velvet jasper
#

@r prety much the same

fallen field
#

{player} or %player% right?

icy dragon
#

What does invoke the command? @fallen field

velvet jasper
#

What are you speaking of if its not

fallen field
#

I can't get it to work

velvet jasper
#

Whats your usage

fallen field
#

you mean what executes the command?

icy dragon
#

A plugin? A command block?

velvet jasper
#

Fron wich plugins

fallen field
#

a plugin

icy dragon
#

Which one?

velvet jasper
#

Wich one

fallen field
#

wait here

velvet jasper
#

Omg

fallen field
#

CitizensText

#

I'm being stupid

velvet jasper
#

🤦

fallen field
#

I can't recall what I did lol

icy dragon
#

"Compatible with PlaceholderAPI."

velvet jasper
#

You got a Wiki for it

fallen field
#

for the other things

velvet jasper
#

Did you download the placeholder player?

icy dragon
#

%player_name% if it uses PAPI

velvet jasper
#

/papi ecloud download player

#

Can be that too

icy dragon
#

yep remember to download the papi player expansion

#

and remember to reload papi (/papi reload)

fallen field
#

yea I did

velvet jasper
#

Yea but mind about realoading papi can break some display

fallen field
#

it did break

icy dragon
#

Just use /plugman reload PlaceholderAPI

velvet jasper
#

Ok but maybe something is wrong with your citizen text

fallen field
#

good thing i have plugman

icy dragon
#

JOCKING

fallen field
#

I'll test it out again

velvet jasper
#

Use %player%

fallen field
#

might just be me being retarded

#

thanks Dryter97

velvet jasper
#

Im using plugman for debug only

#

When a plugins do crap and im not able to find which one is causing the issus

icy dragon
#

%player% isn't a valid PAPI placeholder, if it works it's a placeholder replaced by CitizensText itself

velvet jasper
#

Just faster than alway restart

#

Internal placehilder...

fallen field
#

is there an input

#

to execute a console command

#

in game?

icy dragon
#

hmm, what do you mean?

velvet jasper
#

man sorry but you are on the wrong place not sure if you ill be correcly answered

fallen field
#

like {console} contraband give %player% test

#

something like that

jaunty night
#

A little showcase of what I've been up to

#

pay close attention to the NMS code in these two screenshots

velvet jasper
icy dragon
#

@jaunty night nms code generation at compile time?

fallen field
#

"Compatible with Placeholder API"

jaunty night
#

@jaunty night nms code generation at compile time?
@icy dragon I used Minidigger's Toothpick to create some obfuscation mappings that allow conversion from mojang -> spigot

velvet jasper
#

Fully placeholders

#

Cause no direct placeholders are supported

jaunty night
#

and I coded a little gradle plugin that converts it at compile time

velvet jasper
#

So you need to use papi for what you want to

fallen field
#

okay thanks Dryter

jaunty night
#

It's all converted locally my friend

icy dragon
#

@jaunty night nice, but isn't it a pain to keep updated?

kind finch
#

CratesPlus is now just not responding. people with /op can use the crates but people who are not op can not use it. Anyone know why please?

icy dragon
#

every nms version change will require new mappings to be introduced in your api

jaunty night
#

It's actually not, with the use of Lorenz it's pretty easy to automatically generate mappings

icy dragon
#

does it target a single nms version?

#

what about cross version compatibility?

hardy cedar
#

how can i on join tp to world spawn

#

?

jaunty night
#

Cross version compatibility your giving up when your using NMS

icy dragon
#

@hardy cedar essentialsx has a spawn on join option at the end of the main config

hardy cedar
#

nah i mean in event

icy dragon
#

Not if you use a multi module project

kind finch
#

CratesPlus is now just not responding. people with /op can use the crates but people who are not op can not use it. Anyone know why please?

icy dragon
#

it is very painful to maintain, but it works lol

hardy cedar
#

is it possible to get world spawn through spigot?

jaunty night
#

Yeah, currently this is in a proof of concept stage. To generate the mappings it grabs spigots mappings and mojang mappings and combinds them. This is all done automatically and it works really well.

#

To convert the jar I use a tool called Atlas

#

I still have to iron out a few errors and bugs before I release it but it works pretty well.

icy dragon
#

@hardy cedar no, you have to use a plugin

jaunty night
#

I thought I clicked #general I'm dumb

icy dragon
#

Yeah i was a bit confused ahaha

kind finch
#

CratesPlus is now just not responding. people with /op can use the crates but people who are not op can not use it. Anyone know why please?

royal pumice
#

perms configured correctly?

icy dragon
#

probably you need to give users some permission nodes

kind finch
#

I was thinking it had something to do with the server properties for the spawn

#

but idk how to edit that

#

:(

#

@icy dragon

icy dragon
#

not likely

#

you probably have a permission related issue

grizzled hound
#

how would i detect someone dropping an item by pressing Q on their hotbar

leaden glen
#

So im using Hostinger as a Multicraft host, cant find any help online as to how I can update my server. I've even made a totally different server (whilst saving the world file as backup) and it's like stuck on 1.15. Anyone else use Hostinger?

grizzled hound
#

im using InventoryClickEvent for in the inventory

#

@leaden glen you need a new jarfile. if you're using spigot there's no release for 1.16 yet i believe

leaden glen
#

@grizzled hound Thanks for the response!
I've downloaded the official MC 1.16 jar file and put it in the hosted server's files, making that the 'startup' jar file in the options, however the console still keeps saying "Starting 1.15.2 server".
It's as if im only allowed to run this kind of server because ive literally started a completely new server from them, only to say 1.15.2

grizzled hound
#

honestly idk

#

although its not really spigot-related at that point

#

how would i detect someone dropping an item by pressing Q on their hotbar

ocean anvil
#

Is there a common/recommended way to update yaml files on plugin update with new values (keeping previous values) etc without removing comments from the file?

hallow echo
#

Command Blocks / OP / LuckPerms; is there a way to give people access to command blocks without them getting every damn permission?

#

I was thinking op-permission-level=2 and function-permission-level=4 in server.properties but I am unsure.

leaden glen
#

@grizzled hound I ended up changing the jar directory location to a computer-based.jar location. If using their server it kept replicating a 1.15.2

Yeah sorry it ended up not being spigot related, my bad! But luckily i figured it otu. Thanks!

grizzled hound
#

Sure

raw hound
#

send the error message

#

in pastebin

frigid ember
#

ok one min

hollow hedge
raw hound
#

^ beat me to it

hollow hedge
#

;)

frigid ember
#

thank you all so much

#

is there any configuring i have to do?

raw hound
#

nah

#

just drop it in

frigid ember
#

great thanks

raw hound
#

👍🏼

hallow echo
#

Well realistically @gleaming helm I'd like to be able to OP people at lvl 2 without them gaining permissions to access things protected by LuckPerms/Spigot/Bukkit.

#

I just stated what I was trying to do. Are you blind?

#

I never said that.

#

What? I'm literally saying that's what I want?

#

Er let me rephrase

#

I'm literally saying I do NOT want OP's to receive every permission.

#

That's what I currently do, but I'm looking at possibly changing that, thanks for your input.

#

I basically explained it before. But I guess I can give it a shot again. I'd like to be able to give a player access to command blocks without it giving additional unintended permissions.

dusty topaz
#

How do you get the smelted version of an itermstack

hallow echo
#

Command blocks require op lvl 2.

quiet wadi
#

James my man, just educate yourself please.

hallow echo
#

Hence why I'm asking for assistance?

quiet wadi
#

You are receiving assistance.

opal bay
#

there is no way to regulate what commands go through command blocks iirc

#

like kevin said, a really fucking terrible idea

hallow echo
#

Yeah, but unlike you he didn't explain that aspect.

#

"there is no way to regulate what commands go through command blocks iirc"

#

You're just aggressive and unhelpful.

#

Yeah I'm not sure either.

#

Yeah the user I planned giving it to I trust, but not as much to give them every single permission to every plugin.

#

Yeah, I would have hoped you could prevent OP giving out permissions in bukkit with that function-permission-level in server.properties

#

I was just hoping someone who had done it would know.

#

Oh I understand completely.

#

The fact the vanilla perms are so poor annoys me

opal bay
#

I mean in order to use command blocks one has to be both creative and OP

hallow echo
#

The reason I'm asking the question is because I'm not crazy. I'm being careful before giving out permissions.

#

I tested it first, and will test a few more things before doing anything.

#

Was just hoping someone else knew a solution, which may not be the case.

#

There are workarounds, I am investigating multiple options. What I'll probably end up doing is adding the config to the blocks myself so I can vet what he is doing.

#

I was just hoping I didn't have to do it that way is all.

opal bay
#

so quick question, why do you want people to use the command block at all?

hallow echo
#

Well he's using it for an arena. Players randomly get spawned to locations. They gather powerups / items / etc.

#

The command blocks are useful for the /spreadplayers command, giving the powerups, items, etc.

#

Well that's another avenue, but I prefer less plugins as updating can cause complications.

muted vortex
#

how long does it normally take for spigot to update to the latest version? (ik 1.16 just came out just wondeirng)

#

ik just wondering how long it takes on average if anyone knows from like 1 14 1 15 ish but yeah ig

hallow echo
#

Well, if you look for the 1.15 vanilla release date, and 1.15 spigot release date you may get an idea.

#

Of course, that's why I said an idea.

iron cradle
#

Hello is this channel for plugin support?

hallow echo
#

Not specifically, usually plugins have support info in their description.

iron cradle
#

but I'm trying to code my own plugin as a newbie

hallow echo
#

Ahh that kind of support. I guess maybe?

iron cradle
#

Ok

drifting lichen
#

do i need to pick a role to get pinged for updates?

#

doesnt seem like thats a thing

iron cradle
#

ohh wait, can't paste picture here?

frigid ember
#

I'm pretty sure you can post pictures

sick nexus
#

hello, anyone selling their rpgitems items files ?

#

@everyone

iron cradle
#

I'm trying to create a GUI with spigot API, when player clicked the menu inventory the event will be cancelled

frigid ember
#

?

iron cradle
#

but when I move the item from the GUI inventory to my own inventory quickly it sometimes work

frigid ember
#

@iron cradle it's easy to do that what part do you need help with?

iron cradle
#

so players can copy item from the GUI

#

is there any solution?

#

I don't know sorry, I am new to plugin development

drifting lichen
#

I'm trying to create a GUI with spigot API, when player clicked the menu inventory the event will be cancelled
if youre trying to create gui menus for yourself

frigid ember
#

What method are you doing?

drifting lichen
#

i'd recommend just using existing plugins

iron cradle
#

public void inventoryClick(InventoryClickEvent e){
if(e.getView().getTitle().equals("menu")){
e.setCancelled(true);

sick nexus
#

hello respond mee ???

iron cradle
#

@drifting lichen I just want to learn XD

drifting lichen
#

ahh okay 😄

#

good luck then haha

frigid ember
#

What click method bypasses it?

iron cradle
#

You mean how do I move it? I use left click to take the item then move to my own inventory, sometimes it worked

#

but sometimes the event was cancelled

frigid ember
#

That is just a visual glitch most likely

iron cradle
#

It's in my own inventory afterwards?

frigid ember
#

Click the item again if it disappears then it is just a visual glitch

iron cradle
#

oh I tried, after I click the item in my inventory it takes the action I coded in my plugin

#

oh another time it just moves in my inventory following my cursor...

#

the item taken from the GUI is a pearl , it works perfectly that it should not be a visual glitch...

slate ocean
#

can someone turn my source file into a jar

hot scroll
#

Hey, im am currently using a Bukkit task timer, and trying to cancel the task,

 final BukkitTask time;
        time = Bukkit.getScheduler().runTaskTimer(plugin, () -> {

But i cant cancel it due to the variable time not being initialized, or i make the time final and it still hasnt been initialized... To cancel it i was using time.cancel(); But of course that didnt work due to the reasons i just posted... Any help would be appreciated!! Thanks!

fleet crane
#

Look into BukkitRunnable instead

slate ocean
#

??

#

????????

hot scroll
#

@fleet crane Ive done this before, but i feel like spigot should have a way to do this... Btw great to finally talk to you! Ive always wanted to know some of the people behind Spigot!

slate ocean
#

can someone turn my source file into a jar

#

?????

worn vale
#

What IDE are you using to write the source file?

fleet crane
#

you can use thje lamba method that takes a Consumer

slate ocean
#

well the thing is i found a src but theres no download for the jar

#

so i have to export to jar

fleet crane
#

Bukkit.getScheduler().runTaskTimer(plugin, (time) -> {

slate ocean
#

??????

hot scroll
#

@fleet crane Ive done that, but how would i then cancel it?

worn vale
#

@slate ocean Yes, you have to take the source file, then compile it into a JAR

slate ocean
#

so how do i do that

fleet crane
#

time.cancel ?

hot scroll
#

Hey, im am currently using a Bukkit task timer, and trying to cancel the task,

 final BukkitTask time;
        time = Bukkit.getScheduler().runTaskTimer(plugin, () -> {

But i cant cancel it due to the variable time not being initialized, or i make the time final and it still hasnt been initialized... To cancel it i was using time.cancel(); But of course that didnt work due to the reasons i just posted... Any help would be appreciated!! Thanks!
@hot scroll

slate ocean
#

??????????????????????????

hot scroll
#

Ive tried that

worn vale
#

What dev tools do you have @slate ocean ?

fleet crane
#

Bukkit.getScheduler().runTaskTimer(plugin, (time) -> {

slate ocean
#

nothing thats why im asking if someone can do it for me lmfao

fleet crane
#

I added a time to the lambda

slate ocean
#

nitrogen

#

correct

hot scroll
#

@fleet crane Ah, alright Thanks! Ill try that out!

slate ocean
#

?????

#

o

worn vale
#

Chestly and md_5 are in a separate conversation fyi

slate ocean
#

is it a bungee or spigot jar

worn vale
#

Looks like Spigot from the pom.xml

hot scroll
#

@fleet crane Great thanks so much! Never thought of that!

#

@fleet crane Any chance you could send me where its documentation? Its not clear that the lambda passes BukkitTask

worn vale
#

Also if I may suggest next time you are confused, try saying what you're confused about rather than putting a bunch of question marks, it helps the other person trying to help you @slate ocean

hot scroll
#

@fleet crane Where does it say that (Bukkit.getScheduler().runTaskTimer(plugin, (time) -> {) the bukkit task is passed back?

fleet crane
#

its put in the consumer

#

unfortunately the method doesnt also return it

#

your alternative is BukkitRunnable

hot scroll
#

Sorry, miswording, meant to say Its not clear that the lambda passes BukkitTask

#

But thanks!

#

Really love Spigot, Btw are you still an active Dev in it?

frigid ember
#

1.15.2 spigot wasnt out to january

#

shortly after buzzy bees

tiny dagger
#

o/

#

maybe the scoreboard plugin doesn't support user specific placeholders

solemn grove
#

why should we use waterfall instead of bungeecord

is there any overwhelming reason to use waterfall?

opal bay
#

prettier name

tiny dagger
#

waterfall still exists?

#

or was it lilypad or something

opal bay
#

lilypad

#

poor omega realms still uses that to this day

tiny dagger
#

let's be honest lilypad is way more complicated to set

#

it even requires per server plugins

opal bay
#

that's

solemn grove
#

I checked waterfall repo it's still updating

tiny dagger
#

can be played in private or sumthing?

void owl
#

is there a script that can allow access for commandblocks for players in survival?

tiny dagger
#

probabily i dunno

timber sedge
#

Commandblockpermission plugin can help you mb

void owl
#

I run 1.12

timber sedge
#

Oh sorry i don't know

frigid ember
#

bungeecord

opal bay
#

no

opaque swan
#

1.16 server jar?

ebon snow
#

no?

opal bay
#

?1.16

worldly heathBOT
#

Spigot 1.16 is in development with no release date. It'll be out when it's out.

opaque swan
#

Ok thank you

frigid ember
#

Is there any good config file management for Bungeecord?

#

I mean. Only providing the config file when its not there isnt good.

#

Because how should i make config upgrades?

abstract grove
#

I'm having an issue with ItemStack creation and storage. I have an ItemStack wrapper with a bit more information -- class GUIItem -- that takes in information about an item and creates/stores an ItemStack per the description. https://hastebin.com/ajoliwukor.cs

I have a GUIItem created in another class using the declaration protected static final GUIItem BLANK_ITEM = new GUIItem(Material.BLACK_STAINED_GLASS_PANE, "blankitem", " ");

When accessing BLANK_ITEM.getItem() -- which should return an ItemStack -- this instead returns null. Any help I can get here?

#

I've tried to use IntelliJ's remote debugging feature to look for any culprit, and I haven't found any rogue instances of the itemstack being modified or set to null

alpine lion
#

Where/when is BLANK_ITEM accessed?

abstract grove
#

BLANK_ITEM is accessed whenever a specific command is ran. I create a GUI and add items into that GUI - when I don't have an item to put into a specific slot, BLANK_ITEM is put in that slot instead.

protected void addItems(Inventory inv){
        for(int i = 0; i < items.length; i++){
            GUIItem item = items[i];
            if(item==null) {
                if(useBlankItem) {
                    inv.setItem(i, BLANK_ITEM.getItem());
                }
            }
            else{
                inv.setItem(i, item.getItem());
            }
        }
    }```
#

Not to mention debugging showing the item is null

alpine lion
#

Is there ever a point where you can debug and not get a null result?

abstract grove
#

Not at all

#

I even just commented out all the parts related to editing item meta to no avail

#

I've tried re-creating the item whenever GUIItem#getItem() is called and the item is null - this results in what I think would be an infinite loop (this bugs out, eventually everything in the class turns null for no apparent reason, and the stack trace just shows question marks instead of line numbers)

#

I haven't been able to get a working item (I also have 4 other items being set up and used as I've seen - these are also null.)

alpine lion
#

That's really odd. Only thing I might suggest would be to create the ItemStack prior and pass it in. It honestly should have no effect on how it operates, but that's all I'm thinking of at the moment

abstract grove
#

I'll try that real quick

#

Did you re-build your plugin, put the new jar in your server plugins folder, then restart your server

#

Try adding a print statement to the start of your plugin and see if that new statement is displayed so you ensure your new code is actually being used

#

Sure, onEnable

sick nexus
#

masha allah

abstract grove
#

Where is that code located

lone fog
#

You need to have the API command defined in your plugin.yml

abstract grove
#

Yeah that too

#

you need a plugin.yml

frigid ember
#

BLANK_ITEM is accessed whenever a specific command is ran. I create a GUI and add items into that GUI - when I don't have an item to put into a specific slot, BLANK_ITEM is put in that slot instead.

protected void addItems(Inventory inv){
        for(int i = 0; i < items.length; i++){
            GUIItem item = items[i];
            if(item==null) {
                if(useBlankItem) {
                    inv.setItem(i, BLANK_ITEM.getItem());
                }
            }
            else{
                inv.setItem(i, item.getItem());
            }
        }
    }```

@abstract grove material.air?

abstract grove
#

It's not AIR

#

It's Material.BLACK_STAINED_GLASS_PANE

lone fog
#

If it’s a command from another plugin you should be using an instant if that plugin

#

Rather than this

frigid ember
#

never heard of BLANK_ITEM

abstract grove
#

What exactly do you mean @frigid ember

frigid ember
#

What is BLANK_ITEM?

abstract grove
#

BLANK_ITEM is the name of a GUIItem

#

There's GUIItem

#

And here's BLANK_ITEM protected static final GUIItem BLANK_ITEM = new GUIItem(Material.BLACK_STAINED_GLASS_PANE, "blankitem", " ");

#

Holy shit, @alpine lion, update - what you said has worked for whatever reason, making the ItemStacks in a different class

#

I'm dumbfounded honestly

#

All I did was move it to another class and reword the code :/

frigid ember
#

Lol

abstract grove
#

OH

#

i'm so fucking-

#

wait no

#

hmm.

golden valley
#

?HELP

#

oh no i have been warned

abstract grove
#

for what

golden valley
#

spam D:

abstract grove
#

okay

#

what do you need

golden valley
#

nothing, bored, thanks tho

lone fog
#

InstanceOfOtherPlugin.getCommand("api").setExecutor(Whatever);

#

Executor is whatever class you wrote the code to handle the command

alpine lion
#

You should have a class that extends CommandExecutor

#

The onCommand method is overridden in the CommandExecutor

#

That's what handles the command itself

#

In the class declaration public class Exec {

#

Add extends CommandExecutor before the curly brace

#

Yup

fossil shoal
#

How can a class extend an interface @alpine lion ?

lone fog
#

Should be an implements

alpine lion
#

He was talking to robert

#

Keep the extends

#

The onCommand is added and that is what you use to run the command

#

So put your cursor on it and do Alt+Enter and see what it pulls up

#

Lol. I guess it is implements then 😂

#

The executor should honestly have its own class

#

@fossil shoal you should use implements to implement the interface.

fossil shoal
#

Yeah I know that

alpine lion
#

When you register the executor, that tells Spigot that when x command is run, use this class and run the onCommand method

#

So whatever you want to do with the command should be in the onCommand inside the executor class

#

What do you need help with then @fossil shoal

sick nexus
#

MASHAALLAH

#

ALLAHAKBAR

alpine lion
#

What's the error?

fossil shoal
#

I don't need help, I just saw that you told someone else to add extends CommandExecutor, and I mentioned the mistake in a form of a question

alpine lion
#

Oh lol

#

If it's throwing an error on a curly bracket, then your compiled code does not match your written code. Are you sure that it's building successfully?

worn vale
#

did you do the getCommand(..).setExecutor() and stuff and made sure that the command is in plugin.yml

sick nexus
#

wdym

wicked basalt
#

?1.16

worldly heathBOT
#

Spigot 1.16 is in development with no release date. It'll be out when it's out.

wicked basalt
#

?eta

worldly heathBOT
#

There is no ETA. Having an ETA leads to unrealistic deadlines, false hope, and a bad product. It will be ready when it's ready.

#

Spigot 1.16 is in development with no release date. It'll be out when it's out.

sick nexus
#

is there any nhentai plugin?

opal heron
dawn iron
#

is there a way i can cannot from my server to something like hypixel

torn grotto
#

Hey, I've been running a vanilla server for me and my friends, we are normally 3~ people playing at once. It's a rather cheap server (1GB) and we get a bit of lag. I was wondering if Spigot will help since it says its more optimized? The server generally runs perfectly fine until someone starts exploring and rendering new chunks. Render distance is set to 6, autosave is every 10 minutes, and server restarts once a day.
Also, we have a few datapacks but not anything too crazy. Stuff like portal coords and coordinate HUD

dawn iron
#

it will help but i think paper would be a beter option for you since paper is very lightweight

torn grotto
#

I'll look into that, thanks. Does that also support plugins?

stiff aurora
#

yes

torn grotto
#

Not sure if I will add any, I just want better performance

dawn iron
#

yes (its a fork of spigot)

torn grotto
#

Ok, cool

#

Idk if I can find Paper on my server manager so I might have to add the jar manually?

dawn iron
#

maybe whats you server manager?

torn grotto
#

"PaperMC/PaperSpigot" Is that it? I'm using Shockbyte

dawn iron
#

probaly so

stiff aurora
#

yes

torn grotto
#

Awesome ty

stiff aurora
#

some server managers have "custom"

#

and you put the jar and rename it "custom.jar"

torn grotto
#

I'm not sure how good Shockbyte is, I saw some good comments about it on Reddit. I used to use MCProHosting but they changed their plans and its incredibly overpriced now.

#

Thank you!

#

Shockbyte has been good so far except for the website being extremely slow to load, but idk if that's my fault or theirs

#

Shockbyte is cheaper

#

Their 6GB is 15$/mo

#

Here is why MCProHosting sucks now: Their cheapest Minecraft plan is 7.50$/month and only gives you 1GB. On Shockbyte their 7.50$ plan gives you 3GB. Such bullcrap lol

#

I was so mad when I saw they changed it cause they have a really good mobile app to manage the server, I was so disappointed

#

but yea ty, I will try Paper when it releases for 1.16 🙂

#

Where can I watch for the update?

worldly heathBOT
#

Spigot 1.16 is in development with no release date. It'll be out when it's out.

torn grotto
#

I'm just asking where I can follow to see when its announced

fleet crane
#

?kick @frigid ember

worldly heathBOT
#

👢 Kicked abhi255#4492

torn grotto
#

What just happened

frigid ember
#

why?

crimson bronze
frigid ember
#

md

#

md_5 is fast like flash

pastel condor
#

Lmao

#

Welcome back

frigid ember
#

does spigot have api i mean forums

torn grotto
#

Ty, I was asking though because it said Paper was an unofficial Spigot branch so I assume they have their own place for announcements

spice snow
#

just check paper commits if you need updates

quartz trench
#

they have a discord

#

its not hard to find

oblique drift
#

hey guys, if i drop an item and then i apply velocity to it, how can i make it "fly" for evever, without stopping?

tiny dagger
#

you need to constantly apply a velocity

#

preferabily a small one too

#

like 0.01

oblique drift
#

oh

tiny dagger
#

or even 0 tho i'm pretty sure it glitches stuff

#

orr no

oblique drift
#

i think that doing this by an infinite loop is a bad idea

tiny dagger
#

you need to substract the location then extract to vector

#
  • normalize
#

to be able to correct itself at that point

#

no

#

loops are bad

#

use a schelduer

abstract cradle
#

stop flooding-

rotund hemlock
#

Can someone help me with a plugin ?

tidal mica
#

Hi guys, i have a small question: In 1.8.8, is there a glowing effect for players llike in 1.12.2 or something like this?

rotund hemlock
#

Can someone help me with a plugin ?

tidal mica
#

what do you need?

rotund hemlock
#

i want to make a shaped potion recipe

tidal mica
rotund hemlock
#

no this is custom crafting recipe

tidal mica
#

so a custom potion?