Use " instead of \ for encoding

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

View File

@ -44,6 +44,7 @@ import java.io.IOException;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.UUID;
/**
@ -351,6 +352,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];