diff --git a/src/config/paper-global.yml b/src/config/paper-global.yml index a254b52..364bab0 100644 --- a/src/config/paper-global.yml +++ b/src/config/paper-global.yml @@ -95,7 +95,7 @@ proxies: online-mode: true proxy-protocol: false velocity: - enabled: true + enabled: false online-mode: false secret: _PROXY_SECRET_ scoreboards: diff --git a/src/map-color-cache.dat b/src/map-color-cache.dat new file mode 100644 index 0000000..190e62b Binary files /dev/null and b/src/map-color-cache.dat differ diff --git a/src/plugins/ImageFrame/config.yml b/src/plugins/ImageFrame/config.yml new file mode 100644 index 0000000..fcb2876 --- /dev/null +++ b/src/plugins/ImageFrame/config.yml @@ -0,0 +1,190 @@ +Messages: + Reloaded: '&eImageFrame has been reloaded!' + ImageMapProcessing: '&eImageMap is being processed, please wait!' + # Leave this empty ("") to disable action bar message + ImageMapProcessingActionBar: '&eImageMap &a{Name} &eis being processed{Dots}' + # Leave this empty ("") to disable action bar message + ImageMapQueuedActionBar: '&7ImageMap &a{Name} &eis currently queued ({Position} Remaining)' + ImageMapCreated: '&aImageMap has been created!' + ImageMapRefreshed: '&aImageMap has been refreshed!' + ImageMapDeleted: '&eImageMap had been deleted!' + ImageMapRenamed: '&aImageMap had been renamed!' + ImageMapTogglePaused: '&aToggled ImageMap playback pause!' + ImageMapPlaybackJumpTo: '&aJumped to position at {Seconds} seconds!' + ImageMapPlayerPurge: '&ePurged {Amount} ImageMaps owned by {CreatorName} ({CreatorUUID}) - [{ImageMapNames}]' + SetCreator: '&aImageMap creator of id {ImageID} set to {CreatorName} ({CreatorUUID})' + InvalidOverlayMap: '&cOverlay only works on Vanilla Minecraft maps and without duplicates in selection!' + ImageMapAlreadyQueued: '&cYou already have another ImageMap queued and processing, please wait!' + UnableToLoadMap: '&cImageMap cannot be loaded, there is a problem while reading the image. Contact server administrators to check the server console for more info.' + UnableToChangeImageType: '&cChanging the image type is currently not supported. Please create a new image map instead.' + UnknownError: '&cAn unknown error had occurred.' + ImageOverMaxFileSize: '&cImageMap cannot be loaded as it is over the max file size allowed. ({Size} bytes)' + NotAnImageMap: '&cThat is not an ImageMap' + UploadLink: '&aOpen {URL} on your browser to upload an image, it is valid for 5 minutes.' + UploadExpired: '&cImage upload link had expired, please create a new one.' + URLImageMapInfo: + - '&bImageID: {ImageID}' + - '&aName: {Name}' + - '&eMap Size: {Width} x {Height}' + - '&6Dithering: {DitheringType}' + - '&dCreator: {CreatorName} ({CreatorUUID})' + - '&fAccess: {Access}' + - '&aTime Created: {TimeCreated}' + - '&bMarkers: {Markers}' + - '&eURL: {URL}' + NoPermission: '&cYou do not have permission to do that!' + NoConsole: '&cThis command can only be ran by players!' + PlayerNotFound: '&cThis player cannot be found!' + InvalidUsage: '&cInvalid Usage!' + NotEnoughMaps: '&cYou do not have {Amount} maps!' + Oversize: '&cThat is too big! Max size for a map is {MaxSize}' + URLRestricted: '&cThat URL is restricted and cannot be used to create image maps.' + PlayerCreationLimitReached: '&cYou can only create {Limit} maps at once! Delete some to create new ones' + DuplicateMapName: '&cYou''ve already created an image map with that name!' + MapLookup: '&bList of image maps by {CreatorName} ({CreatorUUID}):' + ItemFrameOccupied: '&cFailed to place or remove some maps on selected ItemFrame, they are either destroyed, replaced, occupied or protected.' + NotEnoughSpace: '&cUnable to place Combined ImageMap as there is not enough room.' + InvalidImageMap: '&cThis image map had likely already been deleted.' + GivenInvisibleFrame: '&aGiven {Amount} invisible item frames to {Player}.' + AccessPermission: + Updated: '&aUpdated access for {PlayerName} ({PlayerUUID}), they now have {Permission} permission.' + Types: + NONE: NONE + GET: GET + MARKER: MARKER + EDIT: EDIT + EDIT_CLONE: EDIT WITH CLONE + ALL: ALL + Selection: + Begin: '&bRight click an Item Frame to select corner 1 and 2' + Clear: '&eLeaving selection mode' + Corner1: '&aSelected Item Frame corner 1' + Corner2: '&aSelected Item Frame corner 2' + Invalid: '&cInvalid selection!' + Oversize: '&cOversize selection! Max size for a map is {MaxSize}' + Success: '&aSelected {Width} x {Height} Item Frames! &eIf any of them are removed/replaced, you will need to select them again.' + NoSelection: '&cYou don''t have a valid selection yet.' + IncorrectSize: '&cYour selection''s size does not match, {Width} x {Height} required.' + Markers: + AddBegin: '&aRight click on an Item Frame containing the map "{Name}" to place marker! &bRun "/imageframe marker cancel" to cancel placement' + AddConfirm: '&aMarker placed!' + Remove: '&eMarker removed!' + Clear: '&eMarkers cleared!' + Cancel: '&eMarker placement cancelled!' + DuplicateName: '&cThere is already a marker with that name!' + NotAMarker: '&cThat is not a valid marker' + NotRenderOnFrameWarning: '&eWarning: This marker type does not render on Item Frames!' + LimitReached: '&cYou can only create {Limit} markers on one map!' + # Date format used where a time based variable is displayed + DateFormat: dd/MM/yyyy HH:mm:ss zzz + Preferences: + Keys: + VIEW_ANIMATED_MAPS: View Animated Maps + Values: + 'TRUE': '&aEnabled' + 'FALSE': '&cDisabled' + UNSET: '&7Unset' + UpdateMessage: '&ePlayer Preference {Preference}&e has been updated to {Value}&e!' + +Settings: + MapItemFormat: '&f{Name} &7({X}, {Y})' + # Whether empty maps are required to create image maps when not in creative + RequireEmptyMaps: true + # Max size of an image map + MaxSize: 100 + # When enabled, Only websites from the list below is allowed to be shown through in-game maps + RestrictImageUrl: + Enabled: false + Whitelist: + - https://i.imgur.com + - http://i.imgur.com + - https://storage.googleapis.com + - http://storage.googleapis.com + - https://cdn.discordapp.com + - http://cdn.discordapp.com + - https://media.discordapp.net + - http://media.discordapp.net + - https://textures.minecraft.net + - http://textures.minecraft.net + # If the image is larger than the defined size, it won't be downloaded for preview + # (In Bytes) + MaxImageFileSize: 52428800 + # If an image takes more than this time to load, it will be rejected + # (In Seconds) + MaxProcessingTime: 60 + # How many images should be processed in parallel + # Updating this option requires a server restart + ParallelProcessingLimit: 1 + # Max amount of image maps a player in the following groups can create + # Setting -1 means unlimited + # To add a player to a group, give the permission "imageframe.createlimit." + # For example "imageframe.createlimit.vip" + # Players with no groups will be treated as "default" unless they have "imageframe.createlimit.unlimited" + PlayerCreationLimit: + default: 10 + vip: 15 + moderator: 20 + # Max amount of markers on an individual map + MapMarkerLimit: 20 + CombinedMapItem: + Name: '&bImageMap &f- &f{Name} &7({Width} x {Height})' + Lore: + - '&aRight Click on Item Frames of size {Width} x {Height} to place ImageMap' + - '' + - '&7ImageID: {ImageID}' + - '&7Creator: {CreatorName} ({CreatorUUID})' + - '&7Time Created: {TimeCreated}' + # How many map packets can be sent to a player in 1/20 of a second + # You can turn this down if you are facing network issues + # However maps might take longer to show to a player + # To disable the rate limit, set to -1 + MapPacketSendingRateLimit: -1 + # Exempt certain map ids from deletion if their ImageFrame map is deleted + # Values can be map ids (For example: "13") or ranges (inclusive) of map ids (For example: "10-13") + ExemptMapIdsFromDeletion: + - '-1' + # This option should only be useful to developers and people who knew what they are doing + MapRenderersContextual: false + # Changing this option requires a restart + HandleAnimatedMapsOnMainThread: false + SendAnimatedMapsOnMainThread: false + # Valid modes are "DYNAMIC" and "MANUAL_PERSISTENT" + # DYNAMIC: load and unload image cache depending on whether a player is viewing + # May use more CPU and image might appear with a slight delay + # MANUAL_PERSISTENT: image cache stay loaded from server start + # May use more memory + # Changing this setting requires a restart + CacheControlMode: MANUAL_PERSISTENT + # Set this to true if you have corrupted 0 size map data in the world folder (not the ImageFrame plugin folder) + # Set this to false if your system's file IO is slow + TryDeleteBlankMapFiles: false +# ImageFrame's convenient upload system where you can upload directly through an embedded web server +UploadService: + # Changing this value requires a restart + Enabled: true + # This is only used for displaying to the end user + DisplayURL: http://change.this.to.your.server.ip.in.the.config + WebServer: + # Address in which the webserver binds to, defaults to 0.0.0.0 + # Use 127.0.0.1 to limit to local access + # Changing this value requires a restart + Host: 0.0.0.0 + # Port in which the webserver is hosted, make sure it is not blocked by your firewall + # Changing this value requires a restart + Port: 8517 +# ImageFrame's built in survival friendly way of making invisible item frames +InvisibleFrame: + # Survival friendly way to get invisible item frames by splashing dropped items with invisibility potions + # Set to -1 for unlimited + # Set to 0 to disable + MaxConversionsPerSplash: 8 + # Should empty invisible item frames glow + # Existing frames are not updated until they are interacted with + GlowEmptyFrames: true + +Hooks: + ViaVersion: + # Enable this if your players below 1.13 is having network issues + DisableSmoothAnimationForLegacyPlayers: false +# Enable update notifications for admins +Updater: true diff --git a/src/plugins/ImageFrame/data/deletedMaps.bin b/src/plugins/ImageFrame/data/deletedMaps.bin new file mode 100644 index 0000000..e69de29 diff --git a/src/plugins/ImageFrame/players/40427344-abb4-359c-9e1c-4a5d67f3a3a2.json b/src/plugins/ImageFrame/players/40427344-abb4-359c-9e1c-4a5d67f3a3a2.json new file mode 100644 index 0000000..f190944 --- /dev/null +++ b/src/plugins/ImageFrame/players/40427344-abb4-359c-9e1c-4a5d67f3a3a2.json @@ -0,0 +1,6 @@ +{ + "uuid": "40427344-abb4-359c-9e1c-4a5d67f3a3a2", + "preferences": { + "viewAnimatedMaps": "unset" + } +} diff --git a/src/plugins/ImageFrame/upload/web/background.webp b/src/plugins/ImageFrame/upload/web/background.webp new file mode 100644 index 0000000..f712c7e Binary files /dev/null and b/src/plugins/ImageFrame/upload/web/background.webp differ diff --git a/src/plugins/ImageFrame/upload/web/imageframe.png b/src/plugins/ImageFrame/upload/web/imageframe.png new file mode 100644 index 0000000..0904755 Binary files /dev/null and b/src/plugins/ImageFrame/upload/web/imageframe.png differ diff --git a/src/plugins/ImageFrame/upload/web/index.html b/src/plugins/ImageFrame/upload/web/index.html new file mode 100644 index 0000000..11f282b --- /dev/null +++ b/src/plugins/ImageFrame/upload/web/index.html @@ -0,0 +1,262 @@ + + + + + + + + ImageFrame Upload + + + + + +

ImageFrame Upload

+

This link expires in ...

+
+
+ Drop image here or click to select + Image Preview +
+ + +
+ + + + diff --git a/src/plugins/Sit/config.yml b/src/plugins/Sit/config.yml new file mode 100644 index 0000000..7a658da --- /dev/null +++ b/src/plugins/Sit/config.yml @@ -0,0 +1,41 @@ +sitables: + stairs: + entity: + type: PIG + saddle: false + offsets: + x: 0.5 + y: -0.4 + z: 0.5 + #BLOCKDATA, BLOCKS + check: BLOCKDATA + list: + - org.bukkit.block.data.type.Stairs + + slabs: + entity: + type: PIG + saddle: false + offsets: + x: 0.5 + y: -0.4 + z: 0.5 + check: BLOCKDATA + list: + - org.bukkit.block.data.type.Slab + fun: + # if require is set to true + # player must have "sit.fun" permission to sit on the block's this layout has + permission: + require: true + # %s is the layout name + name: "sit.%s" + entity: + type: ARMOR_STAND + offsets: + x: 0.5 + y: -1.1 + z: 0.5 + check: BLOCKS + list: + - END_ROD diff --git a/src/plugins/bStats/config.yml b/src/plugins/bStats/config.yml index fc2bb25..27b785b 100644 --- a/src/plugins/bStats/config.yml +++ b/src/plugins/bStats/config.yml @@ -3,6 +3,6 @@ # This has nearly no effect on the server performance! # Check out https://bStats.org/ to learn more :) -enabled: false -serverUuid: f2be1c68-2011-4719-b8af-262f08c427bf +enabled: true +serverUuid: 47164212-d08f-4bca-ae7e-9850b6db5c47 logFailedRequests: false diff --git a/src/server.properties b/src/server.properties index d7a014a..4ca017c 100644 --- a/src/server.properties +++ b/src/server.properties @@ -1,5 +1,5 @@ #Minecraft server properties -#Sun Jun 01 22:12:23 EEST 2025 +#Wed Jul 09 11:25:25 EEST 2025 accepts-transfers=false allow-flight=false allow-nether=true