#help-archived

1 messages · Page 7 of 1

narrow crypt
#

java basic question over here:
how do i get all the items from a list except the first one, in python i could do mylist[1:]

old heart
narrow crypt
#

ah thanks, i did but formatted the question wrong google coulnd help

solemn grove
#

Is there a packet for parrot dancing? It's handled on client side I think.

narrow crypt
#

thanks

old heart
#

oh shoot was that what he was after my mistake @narrow crypt

slim hemlock
#

weird, #hasPotionEffect() doesn't seem to be working

narrow crypt
#

?

#

@old heart what do you meean

old heart
#

I thought you wanted to remove everything in the list except the first one

narrow crypt
#

nah keep everything but the first one

old heart
#

But you wanted to remove the first item and keep the others

#

exactly I sent you the wrong so link

narrow crypt
#

haha

solemn grove
#

means I can't do anything with plugin

#

it's fine tho I still have other tricks

#

Will try

mint shell
#

I have a weird situation on my server.

#

We have a problem with 2 observers in a specfic locaction.

#

They stopped checking for updates. Sofar removed them and replaced them, also we have restarted the server

quick arch
#

Block updates

mint shell
#

the block updates. Yes. If you put a block in front of them they dont output a signal

ashen stirrup
#

Anyone wanna help me with a simple kill level plugin?

#

I have that for my plan

#

Not sure how to implement it

cloud sparrow
#

grab their kills?

#

grab what is needed for the level?

ashen stirrup
#

I have that for what's needed for their level

#

No I don't need that

cloud sparrow
#

and grab their kills

#

That would work a lot better than storing kills as Minecraft does it for you

ashen stirrup
#

That's not my issue though

cloud sparrow
#

and you can always reset someone's statistic

#

Alright? Well you asked us for help and we are providing you with help.

ashen stirrup
#

I don't know how I would implement my plan above

cloud sparrow
#

Grab their current level if any else return 0;

#

Grab required kills for level from hashmap for currentLevel + 1 if there's a level above;

#

Check if current kills > requiredKills

#

and so forth

ashen stirrup
#

Example from the config

levels:
  '1':
    kills-needed: 10
  '2':
    kills-needed: 25
dusky herald
#

You could use an algorithm.

#

Or fixed amounts of kills, either way.

#

With an algorithm to count kills needed, you could just make a method that returns the amount of kills needed to complete that level;

cloud sparrow
#

If you are using that config you'll need to use a ConfigurationSection and grab the kills-needed.

dusky herald
#

public int experienceToLevel(int level) { fill in here }

#

I'm on my phone atm though so I cant really give a better example

ashen stirrup
#

I was thinking of looping through the HashMap.
The HashMap is ordered as <Level, KillsNeeded>

dusky herald
#

I think that's an inefficient way of handling it really.

#

And you dont have to loop through HashMaps

cloud sparrow
#
for (String levelStr : section.getKeys(false)) {
  int level = Integer.parseInt(levelStr);
  int killsNeeded = getConfig().getInt("levels." + levelStr + ".kills-needed");
  availableLevels.put(level, killsNeeded);
}
grim sapphire
#

Just find a key in the hashmap ? Lol

ashen stirrup
#

Yeah I have that in the main class

#

The method I have, you pass their kills. With the HashMap the key is the Level

dusky herald
#

Dont forget to try and catch the NumberFormatException

cloud sparrow
#
if (availableLevels.containsKey(level)) {
  int requiredKills = availableLevels.get(level);
}
tacit aurora
#

Hi ... Ist es möglich bei einem Bungeecord Netzwerk gleich alle run.bat dateien mit einer Datei auszuführen und damit alle Server mit einem Klick zu starten?

ashen stirrup
#
public int getLevel(int kills, int level){
  if(availableLevels.containsKey(level+1){
    if(kills >= availableLevels.get(level+1){
      return level+1;
    } else{
      return level;
    }
  }
}
#

I'll try that

tacit aurora
#

Hi is it possible to start every run.bat file of a network witch one file?

dusky herald
#

Wouldnt it be better to name it to hasExperienceToLevel and return a boolean?

#

Then make another method to addLevel(int i)

quick arch
#

The kills don't reset?

#

Why not just use an inverse equation to find the level from the kill amount (if your using an equation, which is better suited for this)

dusky herald
#

Then resetKills() method?

cloud sparrow
#

Could have custom requirements KingAlterIV.

tacit aurora
#

w

Hi is it possible to start every run.bat file of a network witch one file?
@tacit aurora ?

quick arch
#

🤔

#

Looks like player kills or something

coarse shoal
#

Are Spigot snapshots ever released?

cloud sparrow
#

Not as jars.

coarse shoal
#

But developers can access snapshots?

cloud sparrow
#

Unless you are someone like md_5 who gets them but is only for him

dusky herald
#

Pretty sure it's against the EULA for them to release jars

cloud sparrow
#

No @coarse shoal who said they could.

#

Only specific people have access to the snapshot jars

#

such as md_5 who's a moderator of bugs for Mojang from what I have seen publicly.

coarse shoal
#

Huh?

#

I'm talking about how Spigot is developed against the latest Minecraft Snapshots?

#

Are those snapshot versions of Spigot available

ashen stirrup
#

Jheez thanks 😅

coarse shoal
#

Also @cloud sparrow i'm not sure what you're referring to about snapshot jars only being access by certain people

shadow pendant
#

hi

#

how can i surf the plugin

#

or how can i talk to some one if they are willing to make a plugin ?

#

or work on my server if they want

dusky herald
manic raptor
#

Hi all, quick question - should packets sent via PlayerConnection#sendPacket() be on a different thread? Following a tutorial that doesn't mention much about this, but would it be wise for the following code to be run on a different thread?

public void addNPCPacket(EntityPlayer npc, Player player) {
    PlayerConnection connection = ((CraftPlayer)player).getHandle().playerConnection;
    connection.sendPacket(new PacketPlayOutPlayerInfo(PacketPlayOutPlayerInfo.EnumPlayerInfoAction.ADD_PLAYER, npc));
    connection.sendPacket(new PacketPlayOutNamedEntitySpawn(npc));
    connection.sendPacket(new PacketPlayOutEntityHeadRotation(npc, (byte) (npc.yaw * 256 / 360)));
}
ashen stirrup
#

is PlaceholderExpansion not a thing anymore?

manic raptor
#

@frigid ember Thanks for the reply, but a little confused - it's fine to not use the main thread?
Would you recommend a different thread or the main thread for sending packets?

random lark
#

Can someone tell me a plugin that shows kills beside a players name when they kill someone?

#

Player (#ofKills) killed Player2 (#ofkills) with diamond axe

frigid ember
#

What is the difference between server worker and server thread?

dusky herald
#

@frigid ember what's your preferred library to use for MySQL?

subtle blade
#

Are Spigot snapshots ever released?
@coarse shoal No. Never.

#

Pre-releases, occasionally

#

The snapshot builds are only for the test server. Too unstable for public release

dusky herald
#

Ah, I have my own too. Never mind then.

#

Lmao.

coarse shoal
#

But what about for the purpose of developers, or forks of Spigot?

subtle blade
#

Developers shouldn't be writing against a volatile, ever-changing API, and forks are on their own

#

They're forks for a reason

#

They have their own update processes

#

RE: PlayerConnection#sendPacket(). It be called asynchronously but why would you do it intentionally? If you're on the main thread, call it on the main thread. Don't throw it on a separate thread just because you can

#

That's why methods like Player/World#spawnParticle() or Player#sendMessage() or Player#sendTitle() are all async-friendly

#

They hold no state on the server. It's just queueing a packet

shadow pendant
#

how can i surf the plugin that is all ready made

subtle blade
#

Actually should not be deprecated anymore. It's no longer draft API. md can probably remove it

#

?resources @shadow pendant

worldly heathBOT
shadow pendant
#

ty

subtle blade
#

o/

celest current
#

Also I dont know how to read javadocs

subtle blade
#

You should learn. Not super difficult.

#

1.15.2?

celest current
#

yessir

subtle blade
#

Not sure why that’s yelling at you. It should be fine

#

Why’s that

frigid ember
#

Ok just curious because I'm still learning

subtle blade
#

I am you

frigid ember
celest current
#

Not sure why that’s yelling at you. It should be fine
@subtle blade Is that meant for me?

subtle blade
#

Yes

celest current
#

niiice

subtle blade
#

I’d give your IDE a restart or something because that definitely looks right to me

#

Make sure you’ve imported that class too though

celest current
#

which one? i have not import suggestions so im assuming I have it

subtle blade
#

Ctrl+Shift+O to organize your imports in Eclipse

celest current
#

what do i need imported?

#

I have RecipeChoice

subtle blade
#

The exact choice, though you should import everything you’re using

#

Yea RecipeChoice import should be what you need

soft iron
#

Hey guys? My server just crashed and gave me a bunch of Spigot.Watchdog text. Any ideas why or what I should be searching for?

subtle blade
#

Oh you’re missing a closing bracket

celest current
#

curly bracket? it doesnt say so anywhere

frigid ember
#

How do I change the hotbar position from the player to the fifth position?

soft iron
#

Ah its NCP doing it

subtle blade
#

There should be a setSelectedSlot method or something in playerinventory

frigid ember
#

setHeldItemSlot ?

subtle blade
#

That’s the one

celest current
#

What does this mean: The method setIngredient(char, MaterialData) in the type ShapedRecipe is not applicable for the arguments (char, RecipeChoice.ExactChoice)

subtle blade
#

Which is why I'm confused it's telling you that

celest current
#

What does the error mean? Can we just suppress it like a warning?

cloud sparrow
#

It wants a MaterialData you are giving it something else.

#

a RecipeChoice and none of it's parents are extended by MaterialData

subtle blade
#

There's a method override to accept a RecipeChoice

#

Which, again, is why I'm confused

frigid ember
#

hello If i donate to spigot will i be able to change my nickname?

subtle blade
#

Yes

#

?paste your code please, Xubels

worldly heathBOT
subtle blade
#

I'm still convinced you're missing a closing brace

frigid ember
#

@subtle blade whats the minimum amount to donate for a nick change?

subtle blade
#

$10 but you get all the perks as a result

frigid ember
#

Where do i find these perks?

subtle blade
#

Donation forums, auto-reply for DMs, etc.

#

They're listed somewhere I think

frigid ember
#

ok thank you

subtle blade
#

ye

#

beat me to it lol

frigid ember
#

What does legacy mean? Does that mean deprecated?

subtle blade
#

Legacy means old and should not be used. Was replaced by something more modern

cloud sparrow
#

Is the Benefactor a monthly donation?

#

or one-time.

subtle blade
#

Just one time

#

All badges are just one time

cloud sparrow
#

Might work on getting to the Patron badge.

#

The Cake badge is special for the fact that it is only used in combination with other badges. SpigotMC does not accept under $10 donations, so a Cake badge might be used with a Redstone badge to symbolize $15.

subtle blade
#

Right, it's a bit of a medium

#

I believe I have the cake and lapis for $25

celest current
subtle blade
#

Ah, you're not missing a closing brace. Just some strange indentation lol

celest current
#

lol I gotchu

cloud sparrow
#

Choco do the medals reset as it says after a specific goal does that mean you'd lose them at some point?

subtle blade
#

No you keep your medals afaik

#

Xubels I copy/pasted your code into my IDE (though I added some returns to get rid of nullability errors, should not change anything) and it works just fine for me
https://i.imgur.com/hsrvmsz.png

#

So I honestly have no idea

cloud sparrow
#

Ah was just confused due to this sentence:

#
Once a rank has been earned, the user's badges will "reset" back to $0, and the badges are reapplied as each milestone is reached
subtle blade
#

Oh? Maybe that is the case then

cloud sparrow
#

Seems like it goes lower as you donate higher as they gave a example.

subtle blade
#

Well, you can. Though by "badges" it means things like "benefactor"

cloud sparrow
#
For example, a user who has contributed $125 in total will not get the Nether Star badge, but instead the Supporter rank and Lapis Lazuli + Cake badges.
subtle blade
#

Right

tiny dagger
#

what was the protocol site?

celest current
#

Xubels I copy/pasted your code into my IDE (though I added some returns to get rid of nullability errors, should not change anything) and it works just fine for me
https://i.imgur.com/hsrvmsz.png
@subtle blade can u gimme that code in a hastebin?

subtle blade
cloud sparrow
#

Ah that actually makes sense nvm

tiny dagger
#

thank you

subtle blade
#

@fleet crane might as well mention you while you're in #general, but RecipeChoice.ExactChoice is still deprecated. It's had to have been at least half a year if not longer since it's been around

celest current
#

Yeah I still got the same issue.

fleet crane
#

only works for shaped recipes

cloud sparrow
#

Isn't that what is mentioned above?

subtle blade
#

Yea but the entire class is deprecated and states draft API

#

(it's actually been 1 year & 4 months since it's been added lol)

wise forge
odd silo
#

@fleet crane next update on Bungeecord do me a favor and store the ServerBoostrap as a variable

#

It would make it a lot easier to directly manipulate with the IO handlers via plugins

#

Thanks;)

frigid ember
#

how do i make the lines display in configure.yml

#

the lines for a scoreboard

frigid ember
#

Very quick question.
When I open a local server which uses a version of Spigot 1.15.2, a second console appears on screen.
It looks similar to the original vanilla console for servers.
Any way to disable it, or it's cmd variant, so only one stays on screen?
(It's not from BuildTools)

#

No particular issue or rush, I just prefer to keep the screen tidier. + I can alt tab way easier to multi task while the server is running.

subtle blade
#

nogui on startup to disable that

#

(as in, when running the jar)

#

java -jar spigot.jar nogui

vast fog
#

asking again, is there something like player.isHit or player.isAttacked?

frigid ember
#

Thanks, Choco.

subtle blade
#

It might be --nogui. I don't remember lol

frigid ember
#

I will check.

#

For anyone else wondering in the future, it's without the 2 dashes.

vast fog
#

im making a speed check. So if the player is hit then disable toggling speed check for blank milliseconds

frigid ember
#

Couldn't you check if the player takes damage? Or is it not possible in your scenario?

vast fog
#

if it was in a event like the player has weakness, it would toggle the speed check

frigid ember
#

Oh.

#

I don't have any ideas then.

#

Logically it should be something like that.

#

If not it's an oversight in my opinion.

vast fog
#

how do i use it as player.the entity event?

frigid ember
#

Is this plugin.yml correct

subtle blade
#

Looks fine to me. Why not try it?

cloud sparrow
#

seems like a weird main class name though to me but that may only be me.

frigid ember
#

I was going to do Queue but it was tricky to spell so I just left it as JoinMain

cloud sparrow
#

seems good

frigid ember
#

Alright thanks

wind dock
#

oh ok thanks

velvet halo
#

What connection pool is recommended to use with hibernate?

ashen stirrup
#

Anyone know how to fix
org.bukkit.craftbukkit.v1_8_R3.block.CraftBlockState incompatible with org.bukkit.block.Skull ??

Location location = map.getValue();
            int position = map.getKey();
            World world = Bukkit.getWorld(String.valueOf(KitLevelling.leaderboard.getConfig().get("locations." + String.valueOf(position) + ".world")));
            Block block = world.getBlockAt(location);
            block.setType(Material.SKULL_ITEM);

            UUID player = KitLevelling.topPlayers.get(position-1);

            // Setting the block to the skull
            Skull skull = (Skull) block.getState();
            skull.setOwner(String.valueOf(Bukkit.getOfflinePlayer(KitLevelling.topPlayers.get(position-1))));
            skull.update(true);
#

The error is on
Skull skull = (Skull) block.getState();

#

It should be a skull
block.setType(Material.SKULL_ITEM);

#

I'll add a check though

wanton delta
#

use Material.PLAYER_SKULL

#

or yea for 1.8

#

use that

#

yea i know

#

i didnt see 1.8 originally

ashen stirrup
#

Alright, I'll try SKULL

wanton delta
#

so i've registered a command

#

using CommandMap#register

#

but now i need to set its tab completer, similar to what PluginCommand#setTabCompleter offers

#

however Bukkit#getCommand doesn't return a command that is registered with CommandMap

ashen stirrup
#

Cheers, it worked

#

Wait

#

How do you store doubles?

#

Surely they'd mess up the config

subtle blade
#

How so?

ashen stirrup
#

21.43

subtle blade
#

Yea?

ashen stirrup
#
21:
  43:
#

Wouldn't that happen

subtle blade
#

'21.43'

#

If you're setting it as a value, key: 1.00. If you're setting it as a key, '1.00': "some value"

ashen stirrup
#

Ohhhh

#

cheers 😅

harsh anvil
#

Allo

#

this is the police

#

hands up

vast fog
#
Could not pass event EntityDamageByEntityEvent to AntiSkills v1.0
org.bukkit.event.EventException
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-db6de12-18fbb24]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-db6de12-18fbb24]```
final verge
#

?

vast fog
#

do i sent it as msg.txt?

vocal wraith
#

ItemStack item = new ItemStack(Material.SKULL_ITEM, 1, (short) 3); why is it mad at me for this?

#

red underline

#

"SKULL_ITEM can not be resolved or is not a field"

vast fog
#
@EventHandler
    public void DamageEventSpeed(EntityDamageByEntityEvent e) {
        if (e.getEntity() instanceof Player & e.getDamager() instanceof Player) {
            Player p = (Player) e.getEntity();
            if (!Z.cheat.contains(p)) {
                Z.addcheat(p);
                Bukkit.getScheduler().scheduleSyncDelayedTask(Main.getMain(), new Runnable() {
                    public void run() {
                        Z.removecheat(p);
                    }
                }, 5);
            } else {
                Z.removecheat(p);
                Z.addcheat(p);
                Bukkit.getScheduler().scheduleSyncDelayedTask(Main.getMain(), new Runnable() {
                    public void run() {
                        Z.removecheat(p);
                    }
                }, 5);
            }
        }
    }```
#

since hastebin says something went wrong

vocal wraith
#

@frigid ember ty

vast fog
#

Bukkit.getScheduler().scheduleSyncDelayedTask(Main.getMain(), new Runnable() {

#

is it the Main class problem?

wanton delta
#

OK

#

SOMEONE

#

EXPLAIN TO ME

#

it returned?!?!?!

#

why did it do that!??!

#

OH MY GOD

#

its >

#

not <

#

🤦

vast fog
#

its still happening

#

the registerEvents for the main file is giving me an error for StrafeForwardCheck

#

ty!

frigid ember
wind dock
#

hey guys so i tried

#

to open my server

#

and no one but me can join

#

port open chcekers also report my server as closed

#

how do I fix this?

ashen stirrup
#

When I get a location it seems to be the corner of a block
So to get the center would you just

x = location.getX() + 0.25;
z = location.getZ() + 0.25;
#

or

#

0.50

grim sapphire
#

Hey if two plugins are interfering with each other with commands, how can I change one of the commands?

sudden elk
#

If you want your command to override, use the command event, check what the command sent is and if its the one you want cancel the event. Then after that run whatever code you want

#

@grim sapphire ^

grim sapphire
#

Im not the developer of either of these plugins

#

Just trying to troubleshoot with a user in my support channel

#

Can you modify plugin.yml without having to compile OS code?

sudden elk
#

No idea sorry

gloomy shuttle
#

how to add code in discord?

#

xd

wanton delta
#

uh

#

three `

#

or one ` for single line

frigid ember
smoky tundra
#

well what have you tried

whole night
#

I am using 1.8.9 server (1.8.8) Can I use a muli verse rated for 1.8.1

soft iron
#
06.04 21:25:52 [Server] Server thread/WARN Task #29366 for GAListener v1.3.2 generated an exception
06.04 21:25:52 [Server] INFO java.lang.NoSuchMethodError: org.bukkit.Server._INVALID_getOnlinePlayers()[Lorg/bukkit/entity/Player;
06.04 21:25:52 [Server] INFO at com.swifteh.GAL.GAL$6.run(GAL.java:409) ~[?:?]
06.04 21:25:52 [Server] INFO at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftTask.run(CraftTask.java:81) ~[spigot-1.15.2.jar:git-Spigot-800b93f-8160e29]
06.04 21:25:52 [Server] INFO at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:394) [spigot-1.15.2.jar:git-Spigot-800b93f-8160e29]
06.04 21:25:52 [Server] INFO at net.minecraft.server.v1_15_R1.MinecraftServer.b(MinecraftServer.java:1036) [spigot-1.15.2.jar:git-Spigot-800b93f-8160e29]
06.04 21:25:52 [Server] INFO at net.minecraft.server.v1_15_R1.DedicatedServer.b(DedicatedServer.java:399) [spigot-1.15.2.jar:git-Spigot-800b93f-8160e29]
06.04 21:25:52 [Server] INFO at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:984) [spigot-1.15.2.jar:git-Spigot-800b93f-8160e29]
06.04 21:25:52 [Server] INFO at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:824) [spigot-1.15.2.jar:git-Spigot-800b93f-8160e29]
06.04 21:25:52 [Server] INFO at java.lang.Thread.run(Thread.java:745) [?:1.8.0_121]```

GAListener...Any ideas guys?
#

Oh god that's, a lot of text...sorry.

subtle blade
#

Old version of GAListener on a new server

soft iron
#

Shoot, so doesn't support 1.15.2, bah

#

Any other listeners that work with Crates and Votifier you'd recommend perhaps?

grim sapphire
#

Quick question; any ability to set priority command aliases in commands.yml?

subtle blade
#

I think SuperbVote is practically the successor, Shark

vocal wraith
#

Hey guys, there's a plugin I really like, but it only works for 1.13. Can an experienced member please help me make it work for 1.15? I have the source code

soft iron
#

Okay, so with that being said...just install this in the Plugin directory itself? I've seen some say to put it in Votifier's "Listener" directory and that seemed...odd.

wanton delta
#

is giving me a CraftCommandMap instead of SimpleCommandMap?

#

here are better screenshots

smoky tundra
#

i would assume CraftCommandMap is the server's actual implementation of SimpleCommandMap

ashen ember
#

Hey if two plugins are interfering with each other with commands, how can I change one of the commands?
@grim sapphire You can use the plugin name before the command to run a command from a specific plugin e.g. if you wanted to run fly from essentials but it was covered you could do /essentials:fly
if you don't have a way to run them any other way there's a plugin I seen called UltraCommand, it lets you make alias commands from anything with top priority

grim sapphire
#

Sorry, I figured out I can do a priority/override command in Commands.yml

wanton delta
#

@smoky tundra i don't really know what exactly that means, but i get the gist. How do i get around it? I need a way to get every single command and set it's permissions.

smoky tundra
#

well you should be fine with what you're doing right now, but setting the permission of a command might be difficult because some people may have hard coded the commands permission with the actual logic of the command

wanton delta
#

i'm not worried about that, this is a all-in-one plugin not running with anything else

#

because the knownCommands field is NOT in CraftCommandMap

smoky tundra
#

hmm assuming that assuming CraftCommandMap simply extends the SimpleCommandMap here, maybe try using getSuperclass() and then calling getDeclaredFields() to get the fields of SimpleCommandMap instead

wanton delta
#

you are right about CraftCommandMap extending SimpleCommandMap i will try that

#

getSuperClass() isnt a method

#

in CraftCommandMap

dusky herald
#

you cant do super()?

#

nvm

wanton delta
#

OH

#

im sorry

#

getSuperClass() comes after getClass()

smoky tundra
#

the line where you have highlighted where you're printing out the fields of commandMap, commandMap.getClass().getDeclaredFields() should becommandMap.getClass().getSuperclass().getDeclaredFields()

wanton delta
#

my bad

smoky tundra
#

yeah

wanton delta
#

sorry, i am inexperienced in reflection :P

#

fantastic! That worked!!!!

dusky herald
#

What's a good dedicated server host?

wanton delta
#

ive heard good thinks about Kimsufi which is a child company under OVH

gloomy shuttle
#

Hi! any can help me with Bungeecord?, for security

snow pawn
#

Hey is it possible to omit resource updates from search results?

fleet crane
#

pretty sure theres a tickbox for that

#

search titles only or something

snow pawn
#

I think "search only descriptions" did the trick

fleet crane
#
  • descriptions
snow pawn
#

cheers

rose pasture
#

This is probably really early to ask, and I haven't really seen too much, but do we have any idea how compatible plugins will be going in to 1.16? Sorry for probably a stupid question

quick arch
#

Plugins that use Attributes will have to change some stuff for sure

gloomy shuttle
#

pretty sure theres a tickbox for that
@fleet crane Hey bro, can you help me pls

wanton delta
#

so my method of adding a permission to every single command

#

seemed to

#

not work

#

or at least isnt doing what i wanted

subtle blade
#

Always best to ask your question out the gate so anybody can answer

#

RE: Francisco

wanton delta
#

i can still see all these commands

#

when i tab complete

#

and i thought adding permissions to them would prevent them from showing up? but that didnt work

subtle blade
#

Why are you adding permissions to all commands? What is it you're trying to hide exactly?

#

If they don't have permission for the command, they won't have it autocomplete

wanton delta
#

them showing up on the tab complete

#

yea i dont have permissions for them... but for some reason they still show up

fleet crane
#

if the commands still show, its that plugins fault for not using the API

wanton delta
#

not opped or anything

fleet crane
#

you can see stuff like bukkit:reload doesn't show because that does it correctly

subtle blade
#

and a lot of those look like Essentials commands

wanton delta
#

nope i only have 3 plugins running

subtle blade
#

Actually not even. Just misc plugins

wanton delta
#

ProtocolLib, LibsDisguises, and my own plugin

#

LibsDisguises ALSO appears in the tab list, for some reason

fleet crane
#

well did you define permissions for the commands in plugin.yml

subtle blade
#

^ there's a permission option for commands

wanton delta
#

no, i used Command#setPermission

fleet crane
#

wonders why that method exists

wanton delta
#

when i used it on the commands from my plugin it works

fleet crane
#

that should still probably work, but idk its not the normal method

wanton delta
#

however using it on others commands, did not

subtle blade
#

Yea, there are setters for a lot of fields that shouldn't really be set at runtime by a plugin

wanton delta
#

actually

#

my bad, it did work for all the commands i specified

#

the knownCommands map didnt grab everything i wanted to, for some reason

#

which is perfectly reasonable because i'm fully aware this is very unconventional

fleet crane
#

yay reflection causing trouble

wanton delta
#

yea it doesnt grab the commands from other plugins, could be startup order... not sure

#

putting the startup on POSTWORLD made it work the way i intended however doesnt sound like the right thing to do 😳

smoky tundra
#

are you doing all that reflection stuff as soon as your plugin is started?

wanton delta
#

yes

smoky tundra
#

you could just make it wait until the server has fully started

#

i'm fairly certain "POSTWORLD" is the default option for the startup field anyway

fleet crane
#

it is

#

you shouldnt use STARTUP outside of world generators

wanton delta
#

yea, this plugin wasnt writted by me, im just updating it

#

thats good info, because it was on startup

sinful locust
#

I have a problem when I die in minecraft in the lava or in the water it tells me that I cannot send messages and that I check the chat options but I already checked it and this is fine and it is happening to 5 people on the server

#

spanish?

wanton delta
#

from personal experience, i dont know if this applies to you, but i had that problem when a plugin used Entity#remove on a player

#

is it just lava or water? does it fix when they respawn?

sinful locust
#

no, no se arregla cuando reaparecen

#

they told me that they died in lava or water

smoky tundra
#

that tends to happen when a plugin/server removes a player, or if a player tries to chat when dead

#

if it's the former, then you'll have to isolate which plugin is doing this

sinful locust
#

what I am saying is that it does not allow you to log in when putting / login does not allow it to send the message, is there any way to deactivate it for a moment?

#

I also don't know the commands it has

smoky tundra
#

well the player needs to be alive for them to issue commands/send messages

#

have they actually respawned

wanton delta
#

i meant does it fix when they relog 😄

sinful locust
#

yes, but they appear dead and I don't know how to do it since I tried to teleport them and put them in creative

#

martoph And how do I get them to become a cash register?

smoky tundra
#

well there's two problems i can think of:

  1. they havent clicked respawn
  2. their spawn is being cancelled by a plugin
sinful locust
#

is there any command to disable it momentarily?

#

or some way to make them resend or something? since the plugins the creator of the server does not believe that they can be

grim sapphire
#

Why would ItemStack#clone be useful instead of just setting an ItemStack object to another ItemStack

#

Like

ItemStack newStack = oldStack.clone();
#vs
ItemStack newStack = oldStack;
final verge
#

@grim sapphire are you familiar with the difference between == and .equals?

grim sapphire
#

uhhh kinda

#

not thoroughly

final verge
#

== checks if two objects have the same pointer, .equals checks for contents

#
newStack.equals(oldStack) -> true
newStack == oldStack -> false
#vs
ItemStack newStack = oldStack;
newStack.equals(oldStack) -> true
newStack == oldStack -> true```
#

because all you are doing is setting newStack to point to the same data that oldStack is

#

but the first method makes newStack a new object with the exact same data

grim sapphire
#

.clone() creates a new object of it?

subtle blade
#

Why would ItemStack#clone be useful instead of just setting an ItemStack object to another ItemStack
Same pointers. Making changes to newStack would affect oldStack as well

#

Yes

grim sapphire
#

or "pointer"

#

I see

subtle blade
#

ItemStack is mutable so you would need to clone it if you don't want to modify the old one

#

Same thing with Location and Vector

grim sapphire
#

is it beneficial to return a cloned newStack?

#
public ItemStack getNewStack() {
  return oldStack.clone();

Any pros to this?

#

You can't modify the getNewStack in a way it affects oldStack

subtle blade
#

Encapsulation

sage sedge
unreal drift
#

Hello

#

I have a Magma server, compatible with plugins and mods, but something quite strange happens to me and it seems to be related to the Essentials, since if I delete it it doesn't happen.
The thing is that when I go to sleep, it stays as if another player is missing and the night does not pass, nor does the spawn keep me in bed, I have tried sleeping alone and with other people, but they just do not sleep!
It seems like eternal night xd
Does anyone know what could be due?

quick arch
#

There's two more problems, Magma =\= Spigot and Mods and Plugins don't go well together.

elfin scroll
#

if we have already installed Spigot, and want to change to Paper can we switch the two without issues?

grim sapphire
#

You should be able to switch without any major issues. Not sure about smaller more obscure ones though

late sky
#

I have never had an issue

misty kettle
#

@fleet crane

Guys.. i'm begging you! How long do i have to wait for a response to my Forum-Ban-Appeal?
I did not uploaded anything malicious. I uploaded nothing.
I'm not the guy who uploads shitty stuff... I'm the guy reporting shitty Stuff!

So why i'm banned?

I'm running a free to play survival server since 7 years and paid for a bunch of ressources for which i can't get updates for anymore...
I donated to SpigotMC also and i support everyone how i can help with my knowledge because i'm a helpful Person.

I wrote this E-Mail 4 days ago (https://paste.craft-together.de/jucuzesora)
And it seems like no one feels responsive to answer me.

I'm very disappointed.

fleet crane
#

and you were replied to yesterday

misty kettle
#

where?

fleet crane
#

by email....

misty kettle
#

I'm sorry but i get no email from you.. i've checked the spam-folder also

#

Whops.. There is it way back in the spam folder.. 🙈
Okay.. I'm sorry again.

I see the screenshot now.. but i'm cant explain to me what i see there..
Is this an uploaded ressource? Then i guess my Account was stolen.
Don't even know what a "Discord Voice Server Attack Gateway" should be 😮

#

Is it possible to confirm this? Maybe by checking the history of logged IP's?

#

I can't change my password while i'm banned.

shut isle
#

Does anyone know how much you need to donate to change your name?

#

🙂

#

ty

iron furnace
#

I lost my account on the site, someone changed my password, then my email, I've got emails as proof.

fleet crane
#

send an email to support

mint shell
#

Any suggestions why this is not longer working in those spots? It worked before

shadow condor
#

I was getting this error before:

*** Error, this build is outdated ***
*** Please download a new build as per instructions from https://www.spigotmc.org/go/outdated-spigot ***
*** Server will start in 20 seconds ***```
So i ran my update tool. The server is still 1.15.2, and I am still getting that message.
#

I believe so.

#

Is there a command I can run to check my build number?

sour dock
#

/version

shadow condor
#

it says:
This server is running CraftBukkit version git-Spigot-56f8471-7554e08 (MC: 1.14.4) (Implementing API version 1.14.4-R0.1-SNAPSHOT) Which is wild because its definitely not running 1.14.4

sour dock
#

it is

#

/version doesn't lie

stone rampart
#

yo wtf

#

why does buildtools think I only have 247 mb of ram

shadow condor
#

i have bees though I'll reboot my entire server pc and see whats going on from there

stone rampart
#

16 gb in my pc and task manager shows there's like 15 gb unallocated

sour dock
#

set max heap size using -Xmx2G

stone rampart
#

yeah I have done that

#

and it's working now

#

just pretty strange don't you think

sour dock
#

it's java

stone rampart
#

yeah but like

#

surely it can ask for lil bit of that juicy ram

normal swift
#

Sometimes people have 32bit java and wonder why they cant set Ram above 2GB

sour dock
#

but yeah you should be running 64 bit java lol

stone rampart
#

I just haven't been bothered

sour dock
#

takes just a couple of minutes

stone rampart
#

I reset my computer regularly

#

and only just installed my software dev stuff today

#

after league of legends consuming my life for the past 2 months

normal swift
#

i just installed lol yesterday

#

and already i want uninstall it

stone rampart
#

😛

sour dock
#

or if on linux just compile a apt/snap/flatpak install list

normal swift
#

this is amazing program, but sometimes apps are out of date

stone rampart
#

yup

#

I once used ninite

#

felt unnecessary

sour dock
#

it saved so much time for me when I used windows

stone rampart
#

linux user bet

#

I could never see myself using linux

sour dock
#

I didn't either a couple years ago

normal swift
#

i have the ideal program but i forgot how was it called

#

gimme a min

sour dock
#

I certainly wouldn't recommend it to everyone still, but linux for desktop keeps getting better

stone rampart
#

what do you use your computer for?

normal swift
#

Acronis is the best program ive used

#

saves so much time

sour dock
#

programming and playing minecraft basically

#

and some sysadmin work

stone rampart
#

yeah you see

#

all the tech kind of stuff like IDEs and the likes

normal swift
#

its just like installing fresh os but with preinstalled chosen apps and configuration files

stone rampart
#

are all supportive of linux because that's the kind of industry y'know

sour dock
#

in my opinion right now it's either for people who do a lot of development work or people who know nothing about computers

#

for example I could install linux on my parent's computer and they basically would not notice

stone rampart
#

people who know nothing about computers

sour dock
#

they only need a web browser and email client

stone rampart
#

I agree with the former

#

but eh

sour dock
#

the only downside is no microsoft office

normal swift
#

office can be used in web

#

they have online version

sour dock
#

only if you pay a subscription right?

stone rampart
#

I think mac fits into the "knows nothing about computers" category

normal swift
#

noo

stone rampart
#

beteter

normal swift
#

free to use but requires microsoft account

sour dock
#

hm

#

interesting

normal swift
#

ive used this recently a year ago

sour dock
#

might use it myself then, I get headaches from libreoffice sometimes

normal swift
#

me too xD

sour dock
#

I'm probably not going to convert them though, I can't even convince them to store their important files on a NAS with automatic snapshots and offsite backups instead of on their 10 year old usb 2.0 external hard drive that is probably dying

stone rampart
#

is there a problem with google's office

sour dock
#

yes

#

google docs is nowhere as advanced as microsoft office in my opinion

stone rampart
#

no it is not at all

#

but it's a fair tradeoff

sour dock
#

yeah for most people it's enough

stone rampart
#

to have cloud based stuff

normal swift
#

i have small storage server made of RaspberryPi+ 500GB drive and hamachi for LAN Network emulation

sour dock
#

raspberry pis are awesome

#

I wonder if you can run ZFS on them

#

probably not enough memory

normal swift
#

yeah i bought arduino too a week ago

#

trying to learn electronics and etc

stone rampart
#

arduino is pretty cool

normal swift
#

yeah sure it is

stone rampart
#

the whole open sourced thing is really epic

sour dock
#

buy some esp8266 modules

#

open source compatible but with WiFi

#

all for the low price of $3

normal swift
#

make Wifi jammer

#

xD

sour dock
#

no, make awesome wifi based home automation gadgets :)

stone rampart
#

I

#

I've always wanted to

#

but it's like I already have google smart home stuff so it'd be weird to have 2 interfaces

normal swift
#

Wifi lights and leds connected to sound sensor

#

Clap Clap

sour dock
#

use HomeAssistant, it's an awesome open source smart home hub

normal swift
#

I heard about it

#

but never used it

sour dock
#

install docker on your raspberry pi and run homeassistant/homeassistant

#

:D

normal swift
#

yeah i heard about docker too

#

is it hard to learn>?

frigid ember
#

what's taking more ram? Pex or LP?

normal swift
#

Dont know

#

But LP comes with web interface for easy configuration

#

Pex has more complicated commands

frigid ember
#

okay ill use lp

normal swift
#

/lp editor

frigid ember
#

i know

acoustic tangle
#

Anyone willing to help me? I'm having some troubles with my plugins and tnt...

sour dock
#

@normal swift it's not, once you start using docker with docker-compose you'll never want to go back

normal swift
#

i brb

narrow crypt
#

https://paste.gg/p/anonymous/88f3dd3dbccc41478ae774630d73bbbd
why does it send me the default no-permission message(im sorry but you dont have acces....) to me
It has to do something with the sudo.overwrite permission since if i remove that if/else statement it works fine
i gave myself all the permissions from the plugin

swift obsidian
#

Getting oversized chunk error in console after filling the world with world guard any suggestions?

normal swift
#

@narrow crypt you put sudo overwrite permission in sudo.exempt permission

narrow crypt
#

yea isnt that possible?

normal swift
#

sudo.exempt.overwrite

#

try it

narrow crypt
#

AHH

#

YES

#

still the same @normal swift

#
if (target.hasPermission("sudo.exempt")) {
                                if (player.hasPermission("sudo.exempt.overwrite")) {
normal swift
#

no

#

if (target.hasPermission("sudo.exempt.overwrite")) {

#

only

#

its just like in essentials plugin

#

essentials.tp.bypass and essentials.tp.bypasscooldown

#

or essentials.tp.*

#

for everything

narrow crypt
#

but IF the target has sudo.exempt and the PLayer has sudo.exempt.overwrite

#

2 different people

proven elbow
normal swift
#

its simple

sour dock
#

update spigot

normal swift
#

or

proven elbow
#

Okay lemme see if the new version works

normal swift
#

use this

#

java -DIReallyKnowWhatIAmDoingISwear -jar spigot-1.15.2.jar nogui

worldly heathBOT
proven elbow
#

Okay thanks

sour dock
#

or use paper which conveniently patches the jar at runtime so you don't need builtools :-)

proven elbow
#

I usually use paper for servers but I tried a long time ago to use it for a library but it didn't work so I'll retry that as well

normal swift
#

@narrow crypt let me compile your code and i will try to fix it

narrow crypt
#

thanks :D

proven elbow
#

Latest version? I can use it as a library and a server, works fine?

normal swift
#

you can send me plugin.yml on pm nad information about plugin so i can copy settings

narrow crypt
#

@normal swift never mind

#

im so stupid

#

im litterly so stupid

#

....

#

lmao

normal swift
#

what happened

proven elbow
#

Also do I have to put api version in the plugin.yml?

normal swift
#

yes

proven elbow
#

1.15?

normal swift
#

13

#

1.13

narrow crypt
#

i forgot the purpose of the plugin: let others perform commands,
the error came from that the sudo'ed person didnt have permission to the command i gave

proven elbow
#

Ok ty

normal swift
#

for 1.13+

narrow crypt
#

like i did /sudo player say hi

#

i tested it on myself

#

I only had sudo permission, no permission to do /say

#

haha

normal swift
#

Every day we're learning something xD

narrow crypt
#

yea

#

thanks for the effort

normal swift
#

no problem

#

you can implement c:Message just like essentials did for 1:1 say message with prefix included and other stuff

narrow crypt
#

but why should i use sudo.exempt.overwrite instead of sudo.exemptoverwrite

proven elbow
#

I'm confused, am I able to use the paper server jar as a library?

narrow crypt
#

no

normal swift
#

i thougth that one person need to have these both permissions

narrow crypt
#

you need the dev builds

#

ah oke thanks @normal swift

proven elbow
#

Ah

normal swift
#

sudo as root .exempt as child and .overwrite as child to a child you know

narrow crypt
normal swift
#

just like a tree

narrow crypt
#

yea to keep it nice ordered

normal swift
#

yes

narrow crypt
#

great thanks

#

i made the overwrite so the admin can still sudo the sudo.exempt guys

#

if you have moderators with sudo.exempt

#

so they can't sudo each other

proven elbow
#

I'm hella confused now

narrow crypt
#

@proven elbow what do you need

normal swift
#

your plugin will only have sudo command?

narrow crypt
#

the external jar to make plugins?

#

probably yea

proven elbow
#

So I am doing plugin development, I need to get the library to do it?

narrow crypt
#

i like to make small plugins

proven elbow
#

I have a paper server but I don't know if I can use that library

normal swift
#

can you send me jour jar? i want to test it 🙂

narrow crypt
#

yea sure 1 second

#

i sent the wrong one im sorry

proven elbow
#

Okay

#

So I can use this as a library and server?

normal swift
#

yes

#

you can use maven for better dependencies managing

#

or gradle

proven elbow
#

I don't know what that is

normal swift
#

ah

velvet halo
#

I have a question. So I am decent at java and have done it for around 3 years now. I am finally starting to get into databases now and moving away from json storage. I have successfully setup hibernate with data but I am running into one issue. I am not able to update and add a new column to a table. I have done some research and it seems like that hibernate will not handle updating tables to add new columns. So how do I approach this. I really just want a simple solution that automatically lets me update my data from my server. Do I use another solution such as MongoDB or do I stick with hibernate and continue to find a way to automatically update tables? I want the process to be as simple as possible. Sorry for the long question 😦

normal swift
#

@proven elbow your using eclipse or Intelij Idea

#

ALTER TABLE?

proven elbow
#

IntelliJ

dusky herald
#

Just use Update MySQL statement

#

Or Insert

velvet halo
#

Could you give me an example?

normal swift
#

@proven elbow install Minecraft Development Plugin for automatic project creation

#

and Start Watching SourceCode on Youtube

#

he helped me sometimes

dusky herald
#

@velvet halo you have to send a query to the server, like when you want to add a Player to the players table, you would use a query like " INSERT INTO players (uuid) VALUES (p.getUniqueId().toString());"

velvet halo
#

I don't think you are understanding my question.

#

I am using an ORM to make it easier for myself to not really have to create sql queries

#

Inserting data is easy todo

#

However I want to know how I can add a column to an existing table that exists automatically

dusky herald
#

Like

#

An entry that exists already?

#

Using Update

velvet halo
#

Have you used Hibernate ORM before?

dusky herald
#

Does Hibernate not have an alter table method or class available?

#

Because you would use the Alter Table SQL query to add a column to an existing table. I havent used Hibernate; so I dont see why it wouldnt have that in there? Or is it only for building databases?

proven elbow
#

@normal swift This plugin is nice, does it matter what server library I pick?

velvet halo
#

Yeah that is what I am doing but it doesn't seem to let me 😭

dusky herald
#

@velvet halo I dont see why it wouldnt work. Did you look over the final query it sends to the server and make sure its correct?

velvet halo
#

Yeah

proven elbow
#

Oh I figured it out

#

Thanks

velvet halo
#
[00:25:16] [Server thread/INFO]: Hibernate: alter table User_UserLocation add constraint FKgyrufx3oevwlqku9pi5wh6cwc foreign key (User_uuid) references User (uuid)
[00:25:16] [Server thread/INFO]: Hibernate: alter table UserLocation add constraint FK1w5eri4xn1065dy8pla8p3gcb foreign key (user_uuid) references User (uuid)
``` So here I create a relation between User and Location to create a one to many (user to man locactions) relation. It creates tables correctly so I know my queries are working
#

and altering tables works.

#

Ok nevermind...

#

It does work

#

but not when I add an enum to the entity

#

That is really strange

#

[00:29:15] [Server thread/INFO]: Hibernate: alter table User add column username varchar(255)

#

I can add a string

proven elbow
#

I'm struggling, I'm giving up now

dusky herald
#

@iHusker can you add your enum as a string? Enum.toString()?

#

And that's because you have the column set as a varchar, it only takes strings

velvet halo
#

That is true

#

I could take that approach

#

LOL

#

I know why it is erroring

#

So I am setting the column name to group

#

however that is also syntax for an sql statement

#

So it thinks I am trying to group something by something lol

#

UGH

#

lol

#

Solution

@Enumerated(EnumType.STRING)
@Column(name = "user_group", columnDefinition = "VARCHAR(16)")
private Group group;
#

Do not use group as a column name lol

#

🤣 🤦‍♂️

dusky herald
#

Lmao

smoky spire
#

I can't update my resource ..

normal swift
#

what happens

smoky spire
#

nothing ..

normal swift
#

completly nothing?

smoky spire
#

just the message of "update"

normal swift
#

whats with that message

#

i dont exacly know what you mean

smoky spire
tiny dagger
#

well fix it

#

you must know the issue right?

smoky spire
#

when i try to upload the new resource

#

it does not work

#

that's why i can't "update it "

normal swift
#

try "post update resource"

smoky spire
#

i know

#

but don't work

normal swift
#

link to resource?

#

maybe you have issue with cache

#

i meant link to spigot

smoky spire
#

nope :x

normal swift
#

i think that your resource is updating successfully but your browser display that is not

#

try to clear cache in your browser

#

i think i know the issue

#

you should put in tag your skript version not minecraft version

smoky spire
#

wait what

#

k ok

#

its ok

normal swift
#

to which version you trying to update

smoky spire
#

❤️

#

I love uuuuuuuuuuuuuuuuuu

normal swift
#

Glad it worked

proud ferry
#

joined this server in search of answers, recently got GWarp plugin and im trying to allow nonOP players to use it. The website said i could do this in the "PLugin-Config" file but all i downloaded was the jar file

#

where can i find the config file

light fern
#

Searching for a top 10 kills leaderboard for a 1.13.2 server. Can someone help?

  • Customizable
ashen stirrup
#

I'm having some issues with PlaceholderAPI.
I register the expansion and all that with
PlaceholderAPI.registerExpansion(new Placeholder());

But whenever I load I get the following error:

Could not load 'plugins\KitLeveling-VERSION-1.0.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: me/clip/placeholderapi/expansion/PlaceholderExpansion
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:135) ~[server.jar:git-Spigot-db6de12-18fbb24]
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[server.jar:git-Spigot-db6de12-18fbb24]
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [server.jar:git-Spigot-db6de12-18fbb24]
        at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugins(CraftServer.java:292) [server.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:198) [server.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:525) [server.jar:git-Spigot-db6de12-18fbb24]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_241]
#
Caused by: java.lang.NoClassDefFoundError: me/clip/placeholderapi/expansion/PlaceholderExpansion
        at java.lang.Class.forName0(Native Method) ~[?:1.8.0_241]
        at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_241]
        at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:64) ~[server.jar:git-Spigot-db6de12-18fbb24]
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[server.jar:git-Spigot-db6de12-18fbb24]
        ... 6 more
#
Caused by: java.lang.ClassNotFoundException: me.clip.placeholderapi.expansion.PlaceholderExpansion
        at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_241]
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[server.jar:git-Spigot-db6de12-18fbb24]
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[server.jar:git-Spigot-db6de12-18fbb24]
        at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_241]
        at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_241]
        at java.lang.Class.forName0(Native Method) ~[?:1.8.0_241]
        at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_241]
        at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:64) ~[server.jar:git-Spigot-db6de12-18fbb24]
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[server.jar:git-Spigot-db6de12-18fbb24]
        ... 6 more
subtle blade
#

In your plugin.yml, you should have softdepend: PlaceholderAPI

bronze marten
#

probably just depend: PlaceholderAPI if it fails like this

ashen stirrup
#

Silly me 😅

light fern
#

Searching for a top 10 kills leaderboard for a 1.13.2 server. Can someone help?

  • Customizable
    @light fern md_5
naive goblet
#

I think papi has some PlaceholderExpansion for that iirc

light fern
#

I can't find it

subtle blade
#

I feel like the plugin.yml should accept both softdepend & softdepends and depend & depends because I can NEVER remember whether or not it's plural

vernal lance
#

it isn't plural

#

if I remember correctly

#

😂

smoky tundra
#

i have something set in intellij which auto-completes it

boreal iron
#

when you set intellij to download documentation of dependencies, it does that

smoky tundra
#

fancy

velvet halo
#

intellij does that on default yeah

smoky tundra
#

i was wondering how it did that for ages

tiny dagger
#

i'm feeling like going soon to intellij

smoky tundra
#

if you're used to eclipse or whatever you use i'd just stick with that

subtle blade
#

Is... is that... an IntelliJ user with common sense!? shock

#

IMPOSSIBLE!

normal swift
#

joined this server in search of answers, recently got GWarp plugin and im trying to allow nonOP players to use it. The website said i could do this in the "PLugin-Config" file but all i downloaded was the jar file
@proud ferry config file is generated on first run. it is in /plugins/(Name of Plugin)

chrome lark
#

that's the minecraft development plugin, btw

#

adds linting for pl0gen.yml among it's other ❤️ features

subtle blade
#

pl0gen ❤️

#

i l0v pl0gen

velvet halo
#

I am using IntelliJ but I am planning on going to eclipse 🤡

normal swift
#

oh no

final verge
#

Wait

#

Wtf

normal swift
#

thats illegal

chrome lark
#

i mean, if you value yourself that little, go for it

velvet halo
#

I don't like the new font I am moving to eclipse

normal swift
#

you can always change intellij look by installing plugins

#

im using material dark lite

smoky tundra
#

i use fira code

velvet halo
#

"theme"

#

I changed a bunch of colors

subtle blade
#

ngl that actually looks good

#

I would use that

velvet halo
#

Yeah it is really nice to program with

subtle blade
#

Is that in Eclipse?

#

Font looks like it

velvet halo
#

Nope lol

subtle blade
#

SHIT

velvet halo
#

I changed the 2020 font to 2019

#

Its IntelliJ

#

Cause 2020 font looks kind of weird

smoky tundra
#

whats the name of the new one

#

i havent updated my intellij since 2018

velvet halo
#

They made their own font called Jetbrains mono

subtle blade
#

I could probably make my own in a similar style. That one is actually one of the few dark themed programming fonts that looks okay

normal swift
subtle blade
#

All the other ones are neon and gross

#

YEA LIKE THAT

#

I HATE THAT

velvet halo
#

This is the Jetbrains Mono font

subtle blade
#

I like clean, minimal pastel colours

velvet halo
#

@normal swift not a huge fan of all the colors

#

its too busy for me

normal swift
#

Ever heard of Source Code Pro?

smoky tundra
#

i havent touched the colours since i installed it, only the font

#

i guess it look somewhat like the jetbrains font

velvet halo
#

Yeah I have

#

Also the default font for 2019 is consolas

normal swift
#

go with hack font

velvet halo
#

.<

minor spruce
#

Wow I want consolas font

normal swift
#

Arial ( ͡° ͜ʖ ͡°)

glacial plaza
#

Na fam

#

comic sans ftw

velvet halo
#

I will find you

#

and I will deck you

frigid ember
#

oh no

normal swift
#

xD

glacial plaza
#

what about coding with emojis ( ͡° ͜ʖ ͡°)

normal swift
#

( ͡ʘ ͜ʖ ͡ʘ)

subtle blade
#

see

#

you think you're joking

glacial plaza
#

that's exactly my point lmao

normal swift
#

no way

#

seriously?

glacial plaza
#

windows+. spamming intensifies

normal swift
#

Screams in pain

subtle blade
#

🏁 🍇
🍿 🔤Hey!🔤 🔤Hi!🔤 🔤Howdy!🔤 🔤Aloha!🔤 🍆 ➡️ list
😀 🐽list 0❗️❗️
🍉

#

You're God damn right

glacial plaza
#

omh

#

my eyes

subtle blade
#

Is that "Hey" in console I hear? Yes it is

normal swift
#

You could type Hello World

subtle blade
#

🏁 🍇
😀 🔤 Hello world! 🔤
🍉

normal swift
#

Hell yea

subtle blade
#

Honestly easy af

glacial plaza
#

lol

#

but I wanna know the thinking process that created this

normal swift
#

Coronavirus

#

nah im just joking

glacial plaza
#

seems fair

normal swift
#

Making plugin by using EmojiCode

glacial plaza
#

what a good idea

#

let's make a wrapper now

normal swift
#

Lets make EssentialsEC right now

#

future is now old man

glacial plaza
#

rip help channel

silk bane
#

Is there a standard way to use databases in a plugin at the moment? Seems like the old bukkit database provider was removed.

normal swift
#

wait

#

i used this

cobalt tree
#

Hm, do you think is that possible to cast ItemStack from player inventory into interface that I made and this item is also created by class that extends ItemStack and implements interface that im talking about

#

cuz I can see that hashCode of this object is the same even when player is triggering interact event

silk bane
#

ah that makes sense, mysql and sqlite are still shaded into spigot. nice

minor spruce
#

@cobalt tree if the stack from the player's inventory is an instance of your interface then yes

#

btw are you planning on doing that through a plugin?

subtle blade
#

The SQL driver is still provided by Spigot, yes, you can safely use those

cobalt tree
#

@minor spruce it should be but I can see it's not. It's weird cuz like I said hashCode is the same.

I got this:
java.lang.ClassCastException: Cannot cast org.bukkit.craftbukkit.v1_15_R1.inventory.CraftItemStack to org.XXX.item.ItemInterface

So I thought lol its CraftItemStack so I used reflection to get ItemStack instead but I got this:
java.lang.ClassCastException: Cannot cast org.bukkit.inventory.ItemStack to org.XXX.item.ItemInterface

timid basin
#

Hey anyone knows what version of guava spigot 1.8 comes shaded with? I'm getting errors because I seem to be using a newer version of guava as a dependency than spigot provides

minor spruce
#

you'd have to set the item in the player's inventory to an instance of your interface before you can cast

#

idk about 1.15, but in 1.8 CraftItemStack and net.minecraft.server.ItemStack are final so you have to modify the spigot source

subtle blade
#

What is ItemInterface. What are you doing?

#

oh. Yea, you can't (and shouldn't) extend ItemStack. CraftBukkit won't recognize it as an implementation because it converts between ItemStack, CraftItemStack and n.m.s.ItemStack

cobalt tree
#

shit

subtle blade
#

Any ItemStack returned from Bukkit is a Bukkit copy of NMS item stacks

cobalt tree
#

i knew it

#

I made the whole system for custom items that are included in my resource. After that I thought why not to cast it to interface when player is triggering interact event

#

I can see now that's not possible

subtle blade
#

Yea, not exactly how that works unfortunately

tiny dagger
#

extending the itemstack works for setting in inventories or as a builder

subtle blade
#

Sure, only for that instance you've just created. Though if you're fetching it from Bukkit at all, it will never work. It returns copies

tiny dagger
#

oh

#

yeah

#

every get is a copy in the api anyway

subtle blade
#

Though again, Bukkit is not meant to be extended or implemented (with the exception of things like BukkitRunnable)

tiny dagger
#

set final problem solved

#

though i hope not

subtle blade
zealous yoke
#

If I add my project to for example GitHub, should really every file end with an empty line so also README.md or the plugin.yml?

subtle blade
#

Adding newlines to the end of your file is convention. Some automated systems (generally older ones) consider lines to be terminated by a carriage return. If not present, it may ignore the last line of your file and cause failures

#

(especially in Java where the last line of your program is usually a closing brace, which is vital lol)

zealous yoke
#

Alright, thank you. that means I am not only going to add an empty new line to the Java source files, but also to configuration files etc

subtle blade
#

Better safe than sorry, really. It's a good habit to get into

#

I wouldn't worry too much about it for README files or whatever though if you want to, it's fine

#

Generally it's recommended for source files (and configurations, I suppose)

zealous yoke
#

thanks for the help

frigid ember
flint venture
#

plugin?

frigid ember
#

Its mine

flint venture
#

well

#

it's hard to tell with out a code extract

#

but surely e.dissallow, disallows the connection?

wanton delta
#

I dont see PlayerJoinEvent#disallow on the docs...

#

ah

#

you're using PlayerLoginEvent

flint venture
#

Oh

#

Phaze, what did you put in the .disallow(Result

#

whats the result, if you set it to PlayerLoginEvent.KICK_FULL

#

that's why

wanton delta
#

if thats not the case

#

then somewhere is using PlayerLoginEvent#setKickMessage or PlayerLoginEvent#setResult when they are kicked

silk cape
#

Who can help me with one plugin? im not developer

frigid ember
#

what i must do when i see this on chat? (an internal error occurred while attempting to perform this command) im trying to type /tc (this is plugin terraincontrol) (my english is not good i think sorry)

silk cape
#

maybie is not version of plugin same as your version of mc

frigid ember
#

plugin is 1.8.9 and server is 1.8.8 i think this must work

silk cape
#

or plugins have problems

frigid ember
#

has anyone plugin terraincontrol for 1.8.8 mc version ?

cloud sparrow
#

@frigid ember

#

it doesn't support 1.8.8

#

it will not work.

#

Literally says that on the page

frigid ember
#

I trying with lower version and also not working

#

what i must do ?

cloud sparrow
#

get a developer to try to make it support it mate

#

else u can't use it.

#

it's built for 1.9 only.

subtle blade
#

Your biggest issue is running a 4 year old server

#

"bUt mY pLaYeRs WaNt ThIs VeRsIoN" doesn't matter

glad flax
#

theyre not lmao

cloud sparrow
#

u need server booster

frigid ember
#

okay maybe you know how i can make biome/world without ocean village and other ?

#

hardcore server

subtle blade
#

theyre not lmao
@glad flax Mmmmm, I'm gonna have to disagree with you on that one, chief. 1.8.9 was released in December of 2015

#

.8 released in July, even

frigid ember
#

everyone can help me make map for server hardcore?

#

i don't want have ocean and village

#

and mountaints

#

package for my server is complete only i don't can make this biome

#

maybe name other plugin what can do that ?

#

pls help

#

@frigid ember if u not required to have infinite world, you can use WorldPainter

#

this is hard ?

#

No, just search for custom brushes and go make the world

#

this is not hard, but you need a lot time to paint good world

#

okay thank you can you send me link to this ?

green lodge
#

Anyone know why PlayerInteractEvent is firing twice for me

#

here's some code

#
        if (p.getInventory().getItemInMainHand().getType().equals(Material.STICK) && e.getClickedBlock().getType() != Material.AIR) {
            Material block = e.getClickedBlock().getType();
            p.sendMessage("hello :)" + " - Love " + block);
        }
#

It sends a message twice which is strange

orchid garden
#

could I get some help from forum staff? I'd like an account I made to be deleted because i want the email i used on it, but apparently its banned for "alt" so I cant

green lodge
#

oh I thought an interact event was right click, whoops

alpine vector
#

Hello, So i have problem with this code
it doesn't dispawn mobs on chunk generating any idea how to fix it?

@EventHandler
public void onSpawn(CreatureSpawnEvent e) {
e.setCancelled(true);
for (Player p : Bukkit.getOnlinePlayers()) p.sendMessage(e.getEntity().getType().name());
}
bronze marten
#

Isnt that done when chunk is populating?

alpine vector
#

then i get entites from getChunks()?

#

then put them in for loop or something?

bronze marten
#

just clear the entities from ChunkPopulateEvent's chunk

alpine vector
#

ok thanks

serene inlet
#

Hey guys! I don't know how "offtopic" is this but here it goes. I've created a new world using ProjectWorlds and a new portal using ProjectPortals, but unfortunately all the players are getting "You do not have permission to travel". Any hints why...?

alpine vector
#

did you set permissons for players?

crystal steeple
#

I have a map built on 1.12 and when I try to convert it to 1.15.2 (using single player's optimize world) some chunks are lost. Is it because there is too big difference between two versions and I should do it partially (1.12 -> 1.13.2 -> 1.14.4 -> 1.15.2)? And is --forceUpdate something that could solve that issue?

serene inlet
#

did you set permissons for players?
@alpine vector nope, I didn't. how can I do that if you don't mind?

alpine vector
#

@serene inlet you are using spigot right? ProjectWorlds is sponge plugin

serene inlet
#

Oh, sorry, I'm using Sponge

orchid garden
#

yea xd

#

this is the config for the enchant

bronze marten
#

maybe wrap the keys in ""

#

applies to > "applies to" ?

#

or dont try to use spaces when in yaml

alpine vector
#

for(Entity entity : e.getChunk().getEntities()) entity.remove() is this right way of doing it?

bronze marten
#

don't think so

#

cant you set its health to 0?

alpine vector
#

Entity doesn't have setHealth

dusky herald
#

LivingEntity does

bronze marten
#

Check if its a LivingEntity