Use " instead of \ for encoding

This commit is contained in:
Sn0wStorm 2016-05-30 23:13:31 +02:00
parent 753ef559c9
commit a5497054ee
2 changed files with 9 additions and 1 deletions

View File

@ -28,6 +28,7 @@ import java.io.DataOutputStream;
import java.io.IOException;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.UUID;
/**
@ -283,6 +284,13 @@ public class InventoryListener implements Listener {
out.writeLong(Long.MAX_VALUE);*/
out.close();
/*StringBuilder b = new StringBuilder();
for (char c : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!$%&()*+,-./:;<=>?@[]^_`{|}~\"".toCharArray()) {
b.append('§').append(c);
}
List<String> lore = potion.getLore();
lore.add(b.toString());
potion.setLore(lore);*/
item.setItemMeta(potion);
} catch (IOException h) {

View File

@ -137,7 +137,7 @@ public class basE91
public basE91()
{
int i;
String ts = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!$%&()*+,-./:;<=>?@[\\]^_`{|}~";
String ts = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!$%&()*+,-./:;<=>?@[]^_`{|}~\""; // Added '-' removed '#'
enctab = ts.getBytes();
dectab = new byte[256];