package com.namelessmc.api.utils;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.UUID;

public class PostString {
	
	public static String getPlayerPostString(UUID uuid) {
		try {
			return "uuid=" + URLEncoder.encode(uuid.toString(), "UTF-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
			return null;
		}
	}
	
	public static String getGroupPostString(String groupName) {
		String string = null;
		try {
			string = "&group_id=" + URLEncoder.encode(groupName, "UTF-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		return string;
	}

}

@@ -104,31 +104,8 @@
 der;
-%0Aimport java.util.UUID;
 %0A%0Apu
@@ -152,16 +152,221 @@
  String 
+urlEncodeString(String string) %7B%0A%09%09try %7B%0A%09%09%09return URLEncoder.encode(string, %22UTF-8%22);%0A%09%09%7D catch (UnsupportedEncodingException e) %7B%0A%09%09%09e.printStackTrace();%0A%09%09%09return null;%0A%09%09%7D%0A%09%7D%0A%09%0A%09/*public static String 
 getPlaye
@@ -554,20 +554,24 @@
 ;%0A%09%09%7D%0A%09%7D
+*/
 %0A%09%0A%09
+/*
 public s
@@ -812,12 +812,14 @@
 ring;%0A%09%7D
+*/
 %0A%0A%7D%0A

Remove get post string methods