From b9885402a630cb957e19f7817281c788bc67a211 Mon Sep 17 00:00:00 2001
From: Bukkit/Spigot <noreply+git-bukkit@papermc.io>
Date: Tue, 4 Jan 2011 23:30:44 +0000
Subject: [PATCH] Fix for plugin description file cast error

By: stevenh <steven.hartland@multiplay.co.uk>
---
 .../java/org/bukkit/plugin/PluginDescriptionFile.java  | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/paper-api/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java b/paper-api/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java
index ed1ca0c934..52fd709371 100644
--- a/paper-api/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java
+++ b/paper-api/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java
@@ -35,7 +35,7 @@ public final class PluginDescriptionFile {
     public PluginDescriptionFile(final Reader reader) {
         loadMap((Map<String, Object>)yaml.load(reader));
     }
- 
+
     /**
      * Creates a new PluginDescriptionFile with the given detailed
      *
@@ -65,7 +65,7 @@ public final class PluginDescriptionFile {
     public String getName() {
         return name;
     }
-    
+
     /**
      * Returns the version of a plugin
      *
@@ -85,9 +85,9 @@ public final class PluginDescriptionFile {
     }
 
     private void loadMap(Map<String, Object> map) throws ClassCastException {
-        name = (String)map.get("name");
-        main = (String)map.get("main");
-        version = (String)map.get("version");
+        name = map.get("name").toString();
+        main = map.get("main").toString();
+        version = map.get("version").toString();
     }
 
     private Map<String, Object> saveMap() {