Skip to content

Commit 4f0a936

Browse files
committed
Fixed a bug in the PluginRoute.java
1 parent 1a1ba9d commit 4f0a936

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/de/gnmyt/mcdash/panel/routes/plugin/PluginRoute.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ public class PluginRoute extends DefaultHandler {
1515
* @return the plugin or <code>null</code> if the plugin does not exist
1616
*/
1717
private Plugin getPlugin(Request request, ResponseController response) {
18-
if (!isStringInQuery(request, response, "name")) return null;
18+
if (!isStringInBody(request, response, "name")) return null;
1919

20-
String pluginName = getStringFromQuery(request, "name");
20+
String pluginName = getStringFromBody(request, "name");
2121

2222
Plugin plugin = Bukkit.getPluginManager().getPlugin(pluginName);
2323

0 commit comments

Comments
 (0)