Giter Club home page Giter Club logo

plugin-portal's People

Contributors

dawsson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

plugin-portal's Issues

Update self

Problem Description

Update self

Solution Description

Update self

Alternatives

No response

Additional Info

No response

Check if plugin is supported for current version

Problem Description

Check if plugin is supported for current version

Solution Description

Check if plugin is supported for current version

Alternatives

No response

Additional Info

No response

Plugin Portal: Final API Design

Problem Description

The API has always had issues. Whether its a lack of data, too much data, incorrect data, and even data outdated by nearly a year. This entire approach has been "bad" imo. So, I've decided to change the approach. Plugin Portal will now rely more on other apis instead of caching everything in our database.

Solution Description

We will store only the name, id, logo, server type, etc. This will be used for displaying content about the plugin. We will store multiple plugins under a single ID when ever they are detected to be the same.

Options:

  1. Fetch the plugin data on the server side, cache that response, and respond using that data to the client.
  2. Fetch the plugin data from our server, then get more in depth info directly from the source.

I prefer option 2 due to rate limiting, less issues on our side, etc

Alternatives

No response

Additional Info

Please share feedback if possible, this will be made in 1-3 months. This is planned to be the final version of the API.

Stack: Golang, Gin, Mongo, dedicated server hosting

Custom log file

Problem Description

see where files are downloaded

Solution Description

custonm log file

Alternatives

No response

Additional Info

No response

command to scan for malware

Problem Description

command to scan for malware

Solution Description

command to scan for malware

Alternatives

No response

Additional Info

No response

Custom Plugin Support

It would be cool, if it was possible to add custom Plugins that are released privately on github.
Maybe this would be possible via a github token

delete plugin folder after deleting plugin

Problem Description

delete plugin folder after deleting plugin

Solution Description

delete plugin folder after deleting plugin

toggleable with config setting

Alternatives

No response

Additional Info

No response

No Malware detection

You mentioned, "Malware Detection: When installing a plugin, you don't need to be afraid if it has malware! We'll handle this for you instead." I noticed that there is no malware detection in place. So please correct your plugin pages!

Best regards,
c4vxl

Plugin doesn't work properly

/viaversion dump Output

https://dump.viaversion.com/941d52de173c3e172eb22580b72de4f27d28673f60d65ad3a84cd10c501916ba

Console Error

[20:17:53 INFO]: [PluginPortal] Enabling PluginPortal v1.5.0
[20:17:56 ERROR]: Error occurred while enabling PluginPortal v1.5.0 (Is it up to date?)
java.lang.NoSuchMethodError: 'com.google.gson.JsonElement com.google.gson.JsonParser.parseString(java.lang.String)'
at link.portalbox.pplib.util.HTTPKt.getJSONFromURL(HTTP.kt:21) ~[?:?]
at link.portalbox.pplib.util.APIKt.getPPVersions(API.kt:49) ~[?:?]
at link.portalbox.pplib.util.APIKt.getLatestPPVersion(API.kt:24) ~[?:?]
at link.portalbox.pplib.util.APIKt.getLatestVersion(API.kt:28) ~[?:?]
at link.portalbox.pluginportal.type.Data.init(Data.kt:54) ~[?:?]
at link.portalbox.pluginportal.PluginPortal.onEnable(PluginPortal.kt:24) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[patched_1.12.2.jar:git-Paper-1620]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:316) ~[patched_1.12.2.jar:git-Paper-1620]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) ~[patched_1.12.2.jar:git-Paper-1620]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin(CraftServer.java:395) ~[patched_1.12.2.jar:git-Paper-1620]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins(CraftServer.java:344) ~[patched_1.12.2.jar:git-Paper-1620]
at net.minecraft.server.v1_12_R1.MinecraftServer.t(MinecraftServer.java:442) ~[patched_1.12.2.jar:git-Paper-1620]
at net.minecraft.server.v1_12_R1.MinecraftServer.l(MinecraftServer.java:403) ~[patched_1.12.2.jar:git-Paper-1620]
at net.minecraft.server.v1_12_R1.MinecraftServer.a(MinecraftServer.java:341) ~[patched_1.12.2.jar:git-Paper-1620]
at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:289) ~[patched_1.12.2.jar:git-Paper-1620]
at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:616) ~[patched_1.12.2.jar:git-Paper-1620]
at java.lang.Thread.run(Thread.java:833) [?:?]
[20:17:56 INFO]: [PluginPortal] Disabling PluginPortal v1.5.0

Bug Description

Plugin doesn't run cause of some kind of gson error

Steps to Reproduce

Plugin doesn't run...

Expected Behavior

Plugin Should Run

Additional Server Info

None

Checklist

  • I have tried the latest build(s) from https://ci.viaversion.com/ and the issue still persists.
  • Via plugins are only running on EITHER the backend servers (e.g. Paper) OR the proxy (e.g. BungeeCord), not on both.
  • I have included a ViaVersion dump.
  • If applicable, I have included a paste (not a screenshot) of the error.

Debug mode

Problem Description

custom debug

Solution Description

config for different debug levels, show certain info

Alternatives

No response

Additional Info

Add a debug mode.
Add logging with configurable log levels.
Both the above could be the same sprint/project - get logging to work then add a flag to dump log to console.

List of enhancements

  • Exclude Spigot searches when 'Hanger' plugins are selected, or vice versa.

  • Enable downloading from both Spigot and Hanger simultaneously.

  • Implement a feature to allow downloads directly from a provided URL, specifically when the search algorithm cannot find the desired plugin.

  • Add an option to download the latest stable, beta or alpha versions of a plugin.

Error when plugin is starting!

/viaversion dump Output

https://dump.viaversion.com/3881b927ab5b5ce584cdca634202edf9fb935c00d4ebd5045e0a3cf3d64287ec

Console Error

(https://hangar.papermc.io/Flyte/PluginPortal)

Bug Description

Starting error.

Steps to Reproduce

Yust start te sherver

Expected Behavior

Start the server

Additional Server Info

Here is the error: [19:25:43 ERROR]: Error occurred while enabling PluginPortal v1.5.0 (Is it up to date?)
com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 8 path $
at com.google.gson.JsonParser.parseReader(JsonParser.java:76) ~[gson-2.10.jar:?]
at com.google.gson.JsonParser.parseString(JsonParser.java:51) ~[gson-2.10.jar:?]
at link.portalbox.pplib.util.HTTPKt.getJSONFromURL(HTTP.kt:21) ~[PluginPortal-1.5.0.jar:?]
at link.portalbox.pplib.util.APIKt.getPPVersions(API.kt:49) ~[PluginPortal-1.5.0.jar:?]
at link.portalbox.pplib.util.APIKt.getLatestPPVersion(API.kt:24) ~[PluginPortal-1.5.0.jar:?]
at link.portalbox.pplib.util.APIKt.getLatestVersion(API.kt:28) ~[PluginPortal-1.5.0.jar:?]
at link.portalbox.pluginportal.type.Data.init(Data.kt:54) ~[PluginPortal-1.5.0.jar:?]
at link.portalbox.pluginportal.PluginPortal.onEnable(PluginPortal.kt:24) ~[PluginPortal-1.5.0.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:281) ~[purpur-api-1.20.1-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:189) ~[purpur-1.20.1.jar:git-Purpur-2014]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:104) ~[purpur-1.20.1.jar:git-Purpur-2014]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:507) ~[purpur-api-1.20.1-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.v1_20_R1.CraftServer.enablePlugin(CraftServer.java:653) ~[purpur-1.20.1.jar:git-Purpur-2014]
at org.bukkit.craftbukkit.v1_20_R1.CraftServer.enablePlugins(CraftServer.java:564) ~[purpur-1.20.1.jar:git-Purpur-2014]
at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:641) ~[purpur-1.20.1.jar:git-Purpur-2014]
at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:440) ~[purpur-1.20.1.jar:git-Purpur-2014]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:345) ~[purpur-1.20.1.jar:git-Purpur-2014]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1117) ~[purpur-1.20.1.jar:git-Purpur-2014]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:323) ~[purpur-1.20.1.jar:git-Purpur-2014]
at java.lang.Thread.run(Thread.java:840) ~[?:?]
Caused by: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 8 path $
at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1657) ~[gson-2.10.jar:?]
at com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1463) ~[gson-2.10.jar:?]
at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:551) ~[gson-2.10.jar:?]
at com.google.gson.stream.JsonReader.peek(JsonReader.java:433) ~[gson-2.10.jar:?]
at com.google.gson.JsonParser.parseReader(JsonParser.java:71) ~[gson-2.10.jar:?]
... 19 more

Checklist

  • Via plugins are only running on EITHER the backend servers (e.g. Paper) OR the proxy (e.g. BungeeCord), not on both.
  • I have included a ViaVersion dump.
  • If applicable, I have included a paste (not a screenshot) of the error.
  • I have tried the latest build(s) from https://ci.viaversion.com/ and the issue still persists.

Install from all providers

Problem Description

PluginPortal seems to display plugins from both SpigotMC and Hangar, so why not add an option to just let you install from both?
It'd make it way easier to be able to download plugins from both places instead of needing to swap between Spigot and Hangar.

Solution Description

Add an option to install from both SpigotMC and Hangar

Alternatives

No response

Additional Info

No response

More platforms

Problem Description

arclight

Solution Description

arclight

Alternatives

No response

Additional Info

No response

PP uses an invalid jarfile name

Minified log

[23:24:24 INFO]: <ME> issued server command: /pluginportal install spigotmc:ImageFrameLoadImagesonMapsItemFramesSupportGIFsMapMarkersSurvivalFriendly
[23:24:28 WARN]: java.io.FileNotFoundException: plugins\ImageFrame | Load Images on Maps & Item Frames! | Support GIFs! | Map Markers! | Survival Friendly-510966 (PP).jar (ファイル名、ディレクトリ名、またはボリューム ラベルの構文が間違っています。)

Full error log

Open
[23:24:24] [Server thread/INFO]: <ME> issued server command: /pluginportal install spigotmc:ImageFrameLoadImagesonMapsItemFramesSupportGIFsMapMarkersSurvivalFriendly
[23:24:28] [Craft Scheduler Thread - 42 - PluginPortal/WARN]: java.io.FileNotFoundException: plugins\ImageFrame | Load Images on Maps & Item Frames! | Support GIFs! | Map Markers! | Survival Friendly-510966 (PP).jar (ファイル名、ディレクトリ名、またはボリューム ラベルの構文が間違っています。)
[23:24:28] [Craft Scheduler Thread - 42 - PluginPortal/WARN]: 	at java.base/java.io.FileOutputStream.open0(Native Method)
[23:24:28] [Craft Scheduler Thread - 42 - PluginPortal/WARN]: 	at java.base/java.io.FileOutputStream.open(FileOutputStream.java:293)
[23:24:28] [Craft Scheduler Thread - 42 - PluginPortal/WARN]: 	at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:235)
[23:24:28] [Craft Scheduler Thread - 42 - PluginPortal/WARN]: 	at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:184)
[23:24:28] [Craft Scheduler Thread - 42 - PluginPortal/WARN]: 	at PluginPortal-1.5.0.jar//link.portalbox.pplib.util.FileKt.download(File.kt:54)
[23:24:28] [Craft Scheduler Thread - 42 - PluginPortal/WARN]: 	at PluginPortal-1.5.0.jar//link.portalbox.pluginportal.util.PluginHandlerKt.install(PluginHandler.kt:42)
[23:24:28] [Craft Scheduler Thread - 42 - PluginPortal/WARN]: 	at PluginPortal-1.5.0.jar//link.portalbox.pluginportal.util.PluginHandlerKt.install(PluginHandler.kt:37)
[23:24:28] [Craft Scheduler Thread - 42 - PluginPortal/WARN]: 	at PluginPortal-1.5.0.jar//link.portalbox.pluginportal.command.sub.InstallSubCommand.execute$lambda$1(InstallSubCommand.kt:67)
[23:24:28] [Craft Scheduler Thread - 42 - PluginPortal/WARN]: 	at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftTask.run(CraftTask.java:101)
[23:24:28] [Craft Scheduler Thread - 42 - PluginPortal/WARN]: 	at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57)
[23:24:28] [Craft Scheduler Thread - 42 - PluginPortal/WARN]: 	at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
[23:24:28] [Craft Scheduler Thread - 42 - PluginPortal/WARN]: 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
[23:24:28] [Craft Scheduler Thread - 42 - PluginPortal/WARN]: 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[23:24:28] [Craft Scheduler Thread - 42 - PluginPortal/WARN]: 	at java.base/java.lang.Thread.run(Thread.java:833)
[23:24:28] [Craft Scheduler Thread - 42 - PluginPortal/WARN]: [PluginPortal] Plugin PluginPortal v1.5.0 generated an exception while executing task 135
java.io.FileNotFoundException: plugins\ImageFrame | Load Images on Maps & Item Frames! | Support GIFs! | Map Markers! | Survival Friendly-510966 (PP).jar (ファイル名、ディレクトリ名、またはボリューム ラベルの構文が間違っています。)
	at java.io.FileInputStream.open0(Native Method) ~[?:?]
	at java.io.FileInputStream.open(FileInputStream.java:216) ~[?:?]
	at java.io.FileInputStream.<init>(FileInputStream.java:157) ~[?:?]
	at link.portalbox.pluginportal.util.ToolKt.getSHA(Tool.kt:21) ~[PluginPortal-1.5.0.jar:?]
	at link.portalbox.pluginportal.util.PluginHandlerKt.install(PluginHandler.kt:54) ~[PluginPortal-1.5.0.jar:?]
	at link.portalbox.pluginportal.util.PluginHandlerKt.install(PluginHandler.kt:37) ~[PluginPortal-1.5.0.jar:?]
	at link.portalbox.pluginportal.command.sub.InstallSubCommand.execute$lambda$1(InstallSubCommand.kt:67) ~[PluginPortal-1.5.0.jar:?]
	at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.20.1.jar:git-Paper-95]
	at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.20.1.jar:git-Paper-95]
	at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.20.1.jar:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
	at java.lang.Thread.run(Thread.java:833) ~[?:?]

Installed server

  • Plugin Portal 1.5.0
  • Paper 1.20.1 (build 95)
  • Windows 11 Home

Installed plugins

Open
  • AntiPopup
  • ArmorStandEditor
  • BlueMap
  • Chunky
  • ChunkyBorder
  • CommandSpy
  • CoreProtect
  • DiscordSRV
  • DrMap
  • GSit
  • InventoryRollbackPlus
  • LuckPerms
  • LunaChat
  • LWC
  • mcMMO
  • NickNames
  • OpenInv
  • Plan
  • PluginPortal
  • ProtocolLib
  • ServerBackup
  • ServerTap
  • Skript
  • spark
  • SuperVanish
  • TabTPS
  • WorldEdit
  • WorldGuard

Can't the plugin task/command be async?

Problem Description

Can't the plugin task/command be async?, i mean, when you preview or download a plugin, the server freezes for seconds even if it's a paid host.

Solution Description

The task to be async and don't interfere with the server's heartbeat

Alternatives

No response

Additional Info

Noup

Folia support

Problem Description

Folia support

Solution Description

Folia support

Alternatives

No response

Additional Info

No response

Alert / download dependencies

Problem Description

Alert / download dependencies

Solution Description

Alert / download dependencies

Alternatives

No response

Additional Info

No response

Add More Providers?

Would be cool if we could get stuff from like modrinth or like the fawe jenkins site

Dynmap doesnt work when installed with pp??

Problem Description

Dynmap doesnt work when installed with pp??

Solution Description

Dynmap doesnt work when installed with pp??

Alternatives

No response

Additional Info

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.