#Help with placeholder expansion

1 messages ยท Page 1 of 1 (latest)

errant matrix
#
        at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$6(LocalExpansionManager.java:383) ~[?:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source) ~[?:1.8.0_261]
        at java.util.concurrent.CompletableFuture$AsyncSupply.exec(Unknown Source) ~[?:1.8.0_261]
        at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) ~[?:1.8.0_261]
        at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source) ~[?:1.8.0_261]
        at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) ~[?:1.8.0_261]
        at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) ~[?:1.8.0_261]
Caused by: java.lang.SecurityException: sealing violation: package org.bukkit is sealed
        at java.net.URLClassLoader.getAndVerifyPackage(Unknown Source) ~[?:1.8.0_261]
        at java.net.URLClassLoader.definePackageInternal(Unknown Source) ~[?:1.8.0_261]
        at java.net.URLClassLoader.defineClass(Unknown Source) ~[?:1.8.0_261]
        at java.net.URLClassLoader.access$100(Unknown Source) ~[?:1.8.0_261]
        at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_261]
        at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_261]
        at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_261]
        at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_261]
        at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_261]
        at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_261]
        at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:62) ~[?:?]
        at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$6(LocalExpansionManager.java:359) ~[?:?]
        ... 6 more```
timber cradle
#

Uh

#

You might want to ask the placeholder devs about this

errant matrix
#

I've tried there... not super responsive...

#

I was getting support from somebody else tho

#

they said that my Jar wasn't compiling correctly

#

but didn't know how to fox the problem

#

this is the jar here

#

Any ideas of how to fix this?

exotic tartan
#

Have you encrypted your jar?

errant matrix
#

umm

#

i think so

#

I made an artifact

#

and used that to build the jar

exotic tartan
#

ok your issue is you included the PlaceholderAPI jar inside your jar

#

and Spigot

errant matrix
#

ok

exotic tartan
#

actually you shaded everything and included the jars too

errant matrix
#

don't know what that mean sorry XD im super new to this

#

I assume thats bad tho aha

#

how do i fix?

exotic tartan
#

you have to build your jar using only your source, no external libraries

#

don;t include anything else

errant matrix
#

ok

exotic tartan
#

you don;t have a plugin.yml either. The one in yoru jar is from PalceholderAPI

errant matrix
#

its not meant to be a plugin

#

just an expansion

#

i recntly moved from eclpise

exotic tartan
#

all your jar shoudl contain is the com folder

errant matrix
#

to intillij

#

and I copied all the code over from ecplise

#

it was working with eclipse but stopped when i used intellij

exotic tartan
#

I can;t help you with InteliJ I use Eclipse

errant matrix
#

ah dang ok

crude dust
errant matrix
#

I didn't need a plugin.yml for when I was using eclipse but I need one now?

crude dust
#

plugin.yml must be located in the resources directory

errant matrix
#

1.16

crude dust
#

Download Minecraft Development plugin into IntelliJ

errant matrix
#

ok

errant matrix
crude dust
#

Create new project

#

With Minecraft plugin

errant matrix
#

sweet

#

do i need to change any of these settings

#

also, I had to select paper, spigot, bukkit etc. anyway I can make it work for multiple of those things? @crude dust

crude dust
#

If you edited message and pinged me

#

I don't have ping

crude dust
errant matrix
#

cool

crude dust
#

Connect Placeholder API with pom.xml

#

Or if you using gradle, with gradle file

errant matrix
#

in that screenshot

#

instead of maven i selected gradle

crude dust
#

Ok, and btw why

errant matrix
#

cause someone else who was helping suggested i use it

crude dust
#

๐Ÿ‘

errant matrix
#

i dont really know what it is

#

but it rings more a bell than maven aha

#

sorry so how do i include placeholderapi?

crude dust
#

Check papi wiki

errant matrix
#

it just says add it as a dependancy

#

witch last time i included it the same way i did with spigot api

#

thru modules

#

however that didn't seem to work @crude dust

crude dust
#

@errant matrix

Put this into your Gradle.build.

repositories {
    maven {
        url = 'https://repo.extendedclip.com/content/repositories/placeholderapi/'
    }
}

dependencies {
    compileOnly 'me.clip:placeholderapi:2.10.10'

in plugin.yml:

If your plugin requires PlaceholderAPI, to work, use this.

name: ExamplePlugin
version: 1.0
author: author
main: your.main.path.here

depend: [ PlaceholderAPI ] 

This is used, if your plugin works without PlaceholderAPI.

name: ExamplePlugin
version: 1.0
author: author
main: your.main.path.here

softdepend: [ PlaceholderAPI ]
crude dust