HomeJavaModsMorayLottery Plugin
MorayLottery Plugin
ModsJava

MorayLottery Plugin

by Morpe14514 · on Modrinth

MorayLottery 是一个功能丰富的 Minecraft 抽奖插件,支持多种动画效果、经济系统整合和保底机制。/ MorayLottery is a feature-rich Minecraft lottery plugin with multiple animation effects…

⬇ Download on Modrinth

MorayLottery 抽奖插件 / Lottery Plugin

简介 / Introduction

MorayLottery 是一个功能丰富的 Minecraft 抽奖插件,支持多种动画效果、经济系统整合和保底机制。

MorayLottery is a feature-rich Minecraft lottery plugin with multiple animation effects, economy system integration, and guarantee mechanism.

功能特性 / Features

指令 / Commands

指令 / Command 描述 / Description 权限 / Permission
/moraylottery 或 /or /mlottery 打开抽奖主菜单 / Open main menu moraylottery.use
/moraylottery draw [次数/times] 进行抽奖 / Draw lottery moraylottery.use
/moraylottery gui 打开GUI菜单 / Open GUI menu moraylottery.use
/moraylottery stats 查看个人统计 / View statistics moraylottery.use
/moraylottery pool <奖池/pool> 选择奖池 / Select pool moraylottery.use
/moraylottery list 列出所有奖池 / List all pools moraylottery.use
/moraylottery claim 领取待领取物品 / Claim pending items moraylottery.use
/moraylottery help 显示帮助信息 / Show help moraylottery.use
/moraylottery reload 重载配置 / Reload config moraylottery.admin

权限 / Permissions

软依赖 / Soft Dependencies

安装 / Installation

  1. 下载插件并放入服务器的 plugins 文件夹 / Download and put in plugins folder
  2. 安装所需的软依赖(如需要)/ Install required soft dependencies
  3. 启动服务器,插件会自动生成配置文件 / Start server, plugin will generate config files
  4. 根据需要修改 config.yml 和语言文件 / Modify config.yml and language files as needed
  5. 配置奖池文件(位于 plugins/MorayLottery/pools/ 目录)/ Configure pool files in plugins/MorayLottery/pools/

配置文件 / Configuration Files

config.yml

settings:
  language: "zh_CN"  # 语言 / Language: zh_CN, en_US
  
default-pool: "default"  # 默认奖池 / Default pool

database:
  type: "sqlite"  # 数据库类型 / Database type: sqlite, mysql
  host: "localhost"
  port: 3306
  database: "moraylottery"
  username: "root"
  password: ""

cooldown:
  enabled: true
  time: 3  # 冷却时间(秒)/ Cooldown time (seconds)
  
hologram:
  enabled: true
  height: 2.5
  
broadcast:
  enabled: true

奖池配置示例 / Pool Configuration Example (pools/default.yml)

name: "默认奖池 / Default Pool"
display-item: "DIAMOND"
animation: "slot_machine"
particle: "vortex"

cost:
  type: "vault"  # 经济类型 / Economy type: vault, playerpoints
  amount: 100    # 消耗金额 / Cost amount

guarantee:
  enabled: true   # 是否启用保底 / Enable guarantee
  threshold: 90   # 保底阈值 / Guarantee threshold
  super-prizes:   # 超级大奖列表 / Super prize list
    - "legendary_sword"

prizes:
  common_coin:
    name: "&e少量金币 / Small Coins"
    type: "MONEY"
    amount: 50
    weight: 30
    broadcast: false
    
  legendary_sword:
    name: "&6&l传说之剑 / Legendary Sword"
    type: "ITEM"
    material: "DIAMOND_SWORD"
    amount: 1
    weight: 5
    is-super: true      # 是否为超级大奖 / Is super prize
    broadcast: true     # 是否广播 / Broadcast
    enchantments:       # 附魔 / Enchantments
      DAMAGE_ALL: 5     # 锋利 V / Sharpness V
      FIRE_ASPECT: 2    # 火焰附加 II / Fire Aspect II

奖品类型 / Prize Types

可用动画 / Available Animations

作者信息 / Author Information

许可证 / License

本插件仅供个人服务器使用,禁止用于商业用途。 This plugin is for personal server use only, commercial use is prohibited.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more