Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug_不跟踪玩家视线 #2

Open
sky-3311 opened this issue Jan 14, 2025 · 4 comments
Open

bug_不跟踪玩家视线 #2

sky-3311 opened this issue Jan 14, 2025 · 4 comments

Comments

@sky-3311
Copy link

plugin-version: 1.2.3

############################

Plugin general setting

############################
plugin:

If set to true, will check for update on plugin startup.

check-update: true

Preview modes:

1. Image will move with player, like ray tracing.

2. Image will stay in-place, but will rotate towards player.

3. Image will stay in-place.

4. Image will stay in-place, but will rotate towards player. (Only yaw)

preview-mode: 2

How often the image preview will update its location in milliseconds.

location-update-interval: 50

The distance between the player and the image.

image-distance-to-player: 1.0

How long can one image preview survive in ticks.

image-preview-lifetime: 432000
image-cache:
# Whether to cache converted image data.
enabled: true
# The maximum size of the cache.
cache-maximum-size: 500
# If set to true, will preload images sent in chat.
preload-images-in-chat: true
# The time in minutes that the cache will expire.
cache-expire-time: 5
gif:
# If set to false, will process gifs as single image.
process-multi-frame-gif: true
# The delay between each frame in milliseconds.
gif-frame-delay: 100
# If set to true, will use adaptive frame delay.
gif-adaptive-frame-delay: true

The regex that will be used to match the URL.

url-match-regex: (https?://.*?.(?:png|bmp|jpg|jpeg|gif|webp))
history:
# Maximum url history size.
url-history-size: 10

Whether to broadcast message on url matched

broadcast-on-match: false

If set to true, will use invisible item frame to display image.

use-invisible-item-frame: true

If set to true, will use glowing item frame to display image.

use-glowing-item-frame: false

#############

Message

#############

############################

Floodgate form message

############################
message:
form:
# The title of the form.
title: '&e&lImage Previewer'
history-form:
# The content of the history form.
content: Previous image urls in chat
# The button text of the history form.
button: '%time% %sender%: %url%'

The message that will be sent to the player when the plugin is reloaded.

reload-success: '&aImagePreviewer reloaded successfully!'

The message that will be sent to the player when the image preview is loading.

preview-loading: '&aLoading image preview...'

The message that will be sent to the player when they do not have permission to do something.

no-permission: '&cYou do not have permission to do that.'

The message that will be sent to the player when they enter an invalid URL.

invalid-url: '&cInvalid URL!'

The message that will be sent when try to use a command that can only be used by players.

command-player-only: '&cThis command can only be used by players.'

The message that will be sent to the player when they enter an unknown command.

unknown-command: '&cUnknown command. Type /preview help for help.'

The message that will be sent to the player when they enter invalid arguments.

args-error: '&cInvalid arguments. Type /preview help for help.'

The message that will be sent to the player when they are already on previewing.

already-on-previewing: '&cYou are already on previewing!'

The message that will be sent to the player when the image preview is still loading.

preview-still-loading: '&cPreview is still loading...'

The message that will be sent to the player when the URL is matched.

url-matched: '%player% just sent an image url!'

The hover event that will be sent to the player when they hover over the image.

hover-event: Click to preview image
command:
history:
# The message that will be sent to the player when they enter the history command.
header: '&eImagePreviewer History &b(Click link to preview)'
# The message that will be sent to the player when they enter the history command.
entry: '%time% %sender%: %url%'
# The message that will be sent to the player when they enter the history command and there is no history to show.
no-history: '&cNo history to show.'
help:
help-info: |-
&b&l&nImage Previewer
&a/imagepreviewer reload &7- Reload the plugin
&a/imagepreviewer help &7- Show this message
&a/imagepreviewer preview [time-ticks] &7- Preview an image from given url
&a/imagepreviewer cancel &7- Cancel running preview
&a/imagepreviewer history [size-limit] &7- Show previous url history
cancel:
# The message that will be sent to the player when they cancel the image preview.
cancel-success: '&aCancelled image preview.'
# The message that will be sent to the player when they are not on previewing.
nothing-to-cancel: '&cYou are not on previewing.'

#################

redpandacompress_QQ2025114-224632-HD.mp4

Plugin hook

#################
hook:
floodgate: true

@HaHaWTH
Copy link
Owner

HaHaWTH commented Jan 14, 2025

@HaHaWTH
Copy link
Owner

HaHaWTH commented Jan 14, 2025

已在Paper 1.21.4 客户端fabric 1.21.1上测试过没问题,试着降低客户端版本或者移除模组看看
packetevents 2.7.1-SNAPSHOT
ImagePreviewer 1.2.3

@sky-3311
Copy link
Author

是最新actions构建吗 https://github.com/HaHaWTH/ImagePreviewer/actions/runs/12751145184

@sky-3311
Copy link
Author

已在Paper 1.21.4 客户端fabric 1.21.1上测试过没问题,试着降低客户端版本或者移除模组看看 packetevents 2.7.1-SNAPSHOT ImagePreviewer 1.2.3
[23:28:00 INFO]: This server is running Paper version 1.21.3-82-ver/1.21.3@5a60ffb (2024-12-23T19:10:30Z) (Implementing API version 1.21.3-R0.1-SNAPSHOT)
You are running the latest version
Previous version: 1.21.3-26-34c0042 (MC: 1.21.3)
freewind.mcjpg.org:32222你可以来测试一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@HaHaWTH @sky-3311 and others