mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-25 01:57:53 +01:00
Add microsoftsql storage type
This commit is contained in:
parent
aec1f0cdb6
commit
53b65ab7e4
@ -1,9 +1,6 @@
|
||||
package org.dynmap;
|
||||
|
||||
import java.io.BufferedInputStream;
|
||||
import java.io.BufferedOutputStream;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.File;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.FileReader;
|
||||
@ -60,6 +57,7 @@ import org.dynmap.storage.MapStorage;
|
||||
import org.dynmap.storage.aws_s3.AWSS3MapStorage;
|
||||
import org.dynmap.storage.filetree.FileTreeMapStorage;
|
||||
import org.dynmap.storage.mysql.MySQLMapStorage;
|
||||
import org.dynmap.storage.mssql.MicrosoftSQLMapStorage;
|
||||
import org.dynmap.storage.mariadb.MariaDBMapStorage;
|
||||
import org.dynmap.storage.sqllte.SQLiteMapStorage;
|
||||
import org.dynmap.storage.postgresql.PostgreSQLMapStorage;
|
||||
@ -447,6 +445,9 @@ public class DynmapCore implements DynmapCommonAPI {
|
||||
else if (storetype.equals("aws_s3")) {
|
||||
defaultStorage = new AWSS3MapStorage();
|
||||
}
|
||||
else if (storetype.equals("microsoftsql")) {
|
||||
defaultStorage = new MicrosoftSQLMapStorage();
|
||||
}
|
||||
else {
|
||||
Log.severe("Invalid storage type for map data: " + storetype);
|
||||
return false;
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -237,7 +237,7 @@ var DynmapTileLayer = L.TileLayer.extend({
|
||||
|
||||
// Some helper functions.
|
||||
zoomprefix: function(amount) {
|
||||
return 'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz'.substr(0, amount);
|
||||
return ' zzzzzzzzzzzzzzzzzzzzzzzzzz'.substr(0, amount);
|
||||
},
|
||||
|
||||
getTileInfo: function(coords) {
|
||||
|
Loading…
Reference in New Issue
Block a user