大富翁登陆 Bukkit!!
大富翁是一款著名的游戏(我 并不拥有其版权,详见下文),我认为它可能会在 Minecraft 服务器中成为一款有趣的游玩内容。
功能特性
- 如果管理员发现玩家在一个回合内花费时间过长或有其他认为合适的理由,可以将玩家踢出游戏。
- 地块名称可自定义!
- 卡片内容可自定义!
- 实体棋盘!
- 实体监狱牢房!
- 玩家即为棋子!掷骰子后会被传送至相应的地块。
- 当一名玩家输掉比赛时,其持有的房产会作为未拥有状态重新放回棋盘上,其资金也会放入奖池。
- 自动结束回合!
- 游戏存档!
- 会话管理!
- 游戏结束后,玩家将被传送回最后的位置,其游戏模式也会恢复原状。
- 封禁/解封玩家!
- 1.5 版本新增 - 菜单!(类似于 CreateYourOwnMenus 中的菜单)
- 1.5 版本新增 - 代表房屋/酒店的方块!
- 1.5 版本新增 - 交易功能!
资源文件
游戏与插件的区别
已移除拍卖环节。我本人从未使用过此规则,且在我看来这算是一个相当令人烦恼的规则。
已移除抵押功能。
- 如果有大量需求希望添加或更改这些规则,我可能会考虑实施
权限节点
- Mineopoly.general.chat (允许玩家查看游戏中的动态)
- Mineopoly.general.game (允许玩家进入游戏,若玩家正在游戏中则覆盖其他权限)
- Mineopoly.general.stats (允许不在游戏中的玩家查看游戏统计数据,如玩家或房产信息)
- Mineopoly.admin.end (允许玩家结束当前游戏)
- Mineopoly.admin.force-add (允许玩家将玩家添加到正在运行的游戏中)
- Mineopoly.admin.queue (允许玩家查看游戏队列中的人员)
- Mineopoly.admin.kick (允许玩家将某人踢出游戏)
- Mineopoly.admin.reload (允许玩家重载配置文件)
- Mineopoly.admin.set-paste-location (允许玩家设置棋盘的放置位置)
- Mineopoly.admin.start (允许玩家手动开始游戏)
权限提示
仅当安装了 TacoAPI 2.3.3 或更高版本时有效
赋予玩家所有“一般”权限:
赋予玩家所有“管理员”权限:
赋予玩家 Mineopoly 所需的所有权限:
命令
地契/房产命令
/property, /mpolyproperty, /mpolyprop, /mpolyp, /mproperty, /mprop, /prop, /mp, 和 /p 均可使用
- /property add-house [property] - 向某处房产添加一座房屋
- /property add-hotel [property] - 向某处房产添加一家酒店
- /property buy - 购买你所在的地块
- /property info [name] - 查看某处房产的信息
- /property remove-house [property] - 从某处房产移除一座房屋
- /property remove-hotel [property] - 从某处房产移除一家酒店
- /property sell [property] <player> <price> - 提议将某处房产出售给某玩家
- /property trade [your-property] <player> <their-property> - 提议与另一名玩家交换房产
监狱命令(适用于玩家被关押时)
/jail, /mpolyjail, /mpolyj, /mjail, /mj, 和 /j 均可使用
- /jail card - 使用“自由通行证”卡片
- /jail bail - 缴纳保释金
- /jail roll - 掷骰子以尝试出狱
玩家命令
/mineopoly, /mgame, /mpoly, /mg, 和 /m 均可使用
- /mineopoly deeds [player] - 查看某玩家的持有地契
- /mineopoly et - 结束你的回合
- /mineopoly game-info - 查看游戏信息
- /mineopoly join - 加入排队等待加入游戏的队列
- /mineopoly join channel - 加入 MineopolyChannel(你将能够看到插件输出的消息,以及玩家的消息)
- /mineopoly menu - 打开游戏菜单
- /mineopoly monopolies [player] - 查看某玩家的垄断产业
- /mineopoly quit - 放弃比赛
- /mineopoly roll - 掷骰子,仅限在你的回合或你掷出了双数时
- /mineopoly stats [player] - 查看玩家统计信息
管理员命令
- /mineopoly add <player> - 强制添加一名玩家(如果 mineopoly.game.add-even-when-banned 设置为 false 则无效)
- /mineopoly ban <player> - 禁止某玩家玩 Mineopoly
- /mineopoly kick <player> - 将某玩家移出游戏
- /mineopoly end - 结束当前游戏
- /mineopoly queue - 查看游戏队列中的玩家
- /mineopoly resume <save-name> - 恢复指定的游戏
- /mineopoly save <save-name> - 将当前游戏保存为 <save-name>
- /mineopoly set-paste-locatioon/spl - 设置棋盘的位置
- /mineopoly start - 手动开始游戏
- /mineopoly unban <player> - 允许某玩家再次玩 Mineopoly
交易命令
/mpolytrade, /mpolyt, /mtrade, /mt, /t 均可使用
- /trade accept <player> - 接受来自某玩家的交易请求
- /trade cancel <player> - 取消与玩家的交易请求
- /trade decline <player> - 拒绝来自玩家的交易请求
投票指令
/mpolyvote、/mpolyv、/mvote、/mv 和 /v 均可使用
- /vote continue - 投票继续游戏
- /vote end - 投票结束游戏
房规
房规是 1.5 版本中的新功能。它允许你调整游戏体验。
- house-sycronization - 如果设置为 true,只有当某一颜色地块的所有房产在改进前或改进后的房屋数量相同时,玩家才能对该地块进行升级。默认值:false
- land-on-go-bonus - 正好停在“起点”(Go)时的奖励金额。默认值:0
- money-cap - 如果任何玩家达到此金额,则自动获胜。该数值必须高于起始资金。默认值:0(无上限)
- purchase-after-go-passes - 玩家必须经过“起点”这么多次后,才能购买地产。默认值:0
- starting-money - 玩家在游戏中的初始资金。默认值:1500
- time-limit-minutes - 如果游戏运行时间过长,将自动结束。默认值:0(无时间限制)
- traveling-railroads - 请参阅此处
- bail-price - 玩家出狱所需支付的金额。默认值:50
- collect-while-jailed - 玩家在被关押期间可以收取租金。默认值:false
- improvement-requires-location - 玩家只有在站在相应地产上时,才能在该地产上添加房屋或酒店。默认值:false
- improvement-requires-monopoly - 玩家只有在拥有该地产所属颜色的完整垄断时,才能在该地产上添加房屋或酒店。默认值:true
- improve-while-jailed - 玩家在被关押期间仍可为自己的地产添加房屋和酒店。默认值:false
- trade-anytime - 即使不是当前玩家的回合,也可以发起交易。默认值:false
- trade-while-jailed - 玩家在被关押期间可以发起或参与交易。默认值:false
会话管理
会话系统是 1.4 版本引入的新机制,允许玩家在被踢出游戏之前短暂离开(登出)。默认的离开时长为 1 分钟。
当玩家登出时,他们不会立即被踢出游戏。如果在一定时间内(mineopoly.sessions.session-timeout-minutes)没有重新登录,则该玩家将被踢出。
游戏存档
游戏存档是 1.4 版本引入的新系统。它允许你保存当前游戏,并在稍后恢复。
- 要保存游戏,请使用 /mineopoly save <save-name>
- 要恢复游戏,请使用 /mineopoly resume <save-name>
创建卡牌
Mineopoly 允许自定义“机会”(Chance)和“公共基金”(Community Chest)卡牌。卡牌本质上是一个 YAML 文件,包含描述和操作两部分。
这些文件的名称可以任意设置,只要放在正确的文件夹中即可。
操作类型
卡牌的操作决定了当卡牌被“抽出”时会发生什么。
- give # - 给予玩家金钱
- jail - 将玩家关入监狱
- move # - 使玩家前进(如果数字为负数,则后退)
- movenearest [railroad/utility] - 将玩家移动到最近的铁路或公用设施
- moveto # - 使玩家移动到具有特定 ID 的地块
- payall # - 使玩家向其他每位玩家支付一定金额的金钱
- payplayer - 使所有其他玩家向抽出此卡牌的玩家支付金钱(与 payall 相反)
- paypot # - 使玩家将一定金额的金钱放入奖池
- repairs # # - 使玩家为其拥有的每栋房屋(第一个数字)和每座酒店(第二个数字)支付相应金额的维修费
- take # - 从玩家处扣除金钱
变量
变量是 1.4 版本新增的功能。它们允许你在卡牌描述中添加各种字符串。
- %<id> - 将被替换为给定 ID 的地块名称
- %randomDev - 将被随机替换为 jeb_、notch、Dinnerbone 或 EvilSeph 之一
- %randomPlayer - 将被替换为正在玩 Mineopoly 的随机玩家名称(但不是抽出此卡牌的人)
- %randomSpace - 将被替换为棋盘上的随机地块名称。
依赖项
安装
解压文件,将 jar 包放入 plugins 文件夹。.schematic 文件和 cards 文件夹应放入位于 plugins 文件夹内的 Mineopoly 文件夹中(如果不存在,请创建该文件夹)。
设置
启动服务器以生成配置文件。在允许任何人加入队列之前,请寻找一个适合放置棋盘的位置(世界类型为 SUPERFLAT 时更容易)。记录下坐标并根据需要编辑配置文件(如有必要,也更改世界名称,默认为 'world'),或者使用 /mineopoly spl。然后重启/重载服务器。
致谢
- KILL3RTACO - 棋盘建造者、程序员
- TChand - 棋盘建造者
如果您有任何功能建议,欢迎随时私信我。如果某些内容已经涉及《大富翁》(Monopoly)中的既有机制,例如社区基金或机会卡牌等,您仍然可以提出建议,但我可能会忽略该建议,或告知您该内容应当已经实现或正在开发中。
Monopoly ® 和 Parker Brothers ® 是 Hasbro Inc. 的注册商标。© Hasbro Inc. 拥有该游戏的所有概念及游戏本身的版权。本资源仅用于在 Minecraft 服务器中提供游玩此游戏的方式。
源码
可通过 GitHub 获取
Monopoly comes to Bukkit!!
Monopoly is a well-known game (that I do not own, see below) that I thought might be fun to play inside a minecraft server.
Features
- Admins can kick players out of the game if they see they are taking too long for their turn or any other reason they see fit.
- Names of spaces are customizable!
- Cards are customizable!
- Physical board!
- Physical jail cell!
- Players are the pieces! They are teleported to the appropriate space when they roll.
- When a player loses, their property is put back on the board as unowned and their money is put in the pot.
- Automatic Turn Ending!
- Game Saving!
- Sessions!
- Players are teleported back to their last location after the game is over. Their game mode is also put back.
- Banning/Unbanning!
- New in 1.5 - Menus! (Similar to those in CreateYourOwnMenus)
- New in 1.5 - Blocks representing houses/hotels!
- New in 1.5 - Trading!
Assests
Differences between the game and the plugin
Auctions have been removed. I have never played with this rule anyway, and in my personal opinion is kind of an annoying rule.
Mortgages have been removed.
- If there is significant need/want for the rules to be added or change, I may do so
Permissions
- Mineopoly.general.chat (allows a player to see what's going on in the game)
- Mineopoly.general.game (allows a player to enter the game, overrides other permissions if they are playing)
- Mineopoly.general.stats (allows a player not in game to see game stats, such as player or property information)
- Mineopoly.admin.end (allows a player to end the current game)
- Mineopoly.admin.force-add (allows a player to add players to the currently running game)
- Mineopoly.admin.queue (allows a player to see who is in the game queue)
- Mineopoly.admin.kick (allows a player to kick someone from the game)
- Mineopoly.admin.reload (allows a player to reload the config)
- Mineopoly.admin.set-paste-location (allows a player to set the location where the board is pasted)
- Mineopoly.admin.start (allows a player to manually start the game)
Permission Tips
This only works if TacoAPI version 2.3.3 or later is installed
To give a player all 'general' permissions:
To give a player all 'admin' permissions:
To give a player all permissions that Mineopoly requires:
Commands
Title Deed/Property Commands
/property, /mpolyproperty, /mpolyprop, /mpolyp, /mproperty, /mprop, /prop, /mp, and /p are acceptable
- /property add-house [property] - Add a house to a property
- /property add-hotel [property] - Add a hotel to a property
- /property buy - Buy the property you're standing on
- /property info [name] - see information on a property
- /property remove-house [property] - Remove a house from a property
- /property remove-hotel [property] - Remove a hotel from a property
- /property sell [property] <player> <price> - Offer to sell a property to a player
- /property trade [your-property] <player> <their-property> - Offer to trade a property with another player
Jail Commands (for when a player is jailed)
/jail, /mpolyjail, /mpolyj, /mjail, /mj, and /j are acceptable
- /jail card - use a Get Out of Jail Free card
- /jail bail - pay bail
- /jail roll - roll the dice to try to get out of jail
Player Commands
/mineopoly, /mgame, /mpoly, /mg, and /m are acceptable
- /mineopoly deeds [player] - see a player's title deeds
- /mineopoly et - end your turn
- /mineopoly game-info - View game info
- /mineopoly join - enter the queue to join a game
- /mineopoly join channel - join the MineopolyChannel (you will be able to see messages output by the plugin, as well as see messages by players
- /mineopoly menu - Open the game menu
- /mineopoly monopolies [player] - see a player's monopolies
- /mineopoly quit - forfeit from the game
- /mineopoly roll - roll the die, if your turn or you rolled doubles
- /mineopoly stats [player] - see player stats
Admin Commands
- /mineopoly add <player> - forcefully add a player (will not work if mineopoly.game.add-even-when-banned is set to false)
- /mineopoly ban <player> - prevent a player from playing Mineopoly
- /mineopoly kick <player> - remove a player from the game
- /mineopoly end - end the current game
- /mineopoly queue - see the players in the game queue
- /mineopoly resume <save-name> - resume the specified game
- /mineopoly save <save-name> - save the current game as <save-name>
- /mineopoly set-paste-locatioon/spl - Set the location of the board
- /mineopoly start - manually start the game
- /mineopoly unban <player> - allow a player to play Mineopoly again
Trading Commands
/mpolytrade, /mpolyt, /mtrade, /mt, /t are acceptable
- /trade accept <player> - Accept a trade request from a player
- /trade cancel <player> - Cancel a trade request with a player
- /trade decline <player> - Decline a trade request from a player
Voting Commands
/mpolyvote, /mpolyv, /mvote, /mv, and /v are acceptable
- /vote continue - Vote to continue the game
- /vote end - Vote to end the game
House Rules
House rules are a new feature in 1.5. It allows you to adjust the gameplay experience.
- house-sycronization - If set to true, players can only improve on a property if the houses for each property in a color are the same before or after the improvement were to be done. Default: false
- land-on-go-bonus - A bonus for landing excactly on go. Default: 0
- money-cap - If any player reaches this amount of money, they automatically win. Must be higher than starting-money. Default: 0 (no cap)
- purchase-after-go-passes - Players have to pass go this many times in order to buy property. Default: 0
- starting-money - The amount of money players start with in the game. Default: 1500
- time-limit-minutes - The game will end if it runs too long. Default: 0 (no time-limit)
- traveling-railroads - See here
- bail-price - The amount a player has to pay to get out of jail Default: 50
- collect-while-jailed - Players can collect rent while in jail. Default: false
- improvement-requires-location - Players can only add houses or hotels to a property if they are standing on it. Default - false
- improvement-requires-monopoly - Players can only add houses or hotels to a property if they have a monopoly for that property's color. Default: true
- improve-while-jailed - Players can add houses and hotels to their properties while in jail. Default: false
- trade-anytime - Players can start a trade even if it is not thier turn. Default: false
- trade-while-jailed - Players can start or participate in trade while in jail. Default: false
Sessions
Sessions are a new system in 1.4 that allow players to leave (log out) for a short amount of time before being kicked form the game. The default amount of time is 1 minute.
When a player logs off, they are not automatically kicked from the game. If they have not logged in within a certain amount of time (mineopoly.sessions.session-timeout-minutes), then the player will be kicked.
Game Saves
Game saves are a new system in 1.4. It allows you to save the current game, and then resume it later.
- To save a game, use /mineopoly save <save-name>
- To resume the game, use /mineopoly resume <save-name>
Creating Cards
Mineopoly allows the customization of the Chance and Community Chest cards. A card is basically a YAML file that consists of a description and action.
These files can be named whatever you want, as long as they are in the right folder.
Actions
The action of the card determines what the card does when it is 'drawn'
- give # - gives the player money
- jail - jails the player
- move # - makes the player move forward (or backward if the number is negative)
- movenearest [railroad/utility] - moves the player to the nearest railroad or utility
- moveto # - makes the player move the section that has that specific id
- payall # - makes the player pay every other player an amount of money
- payplayer - makes all other players pay the player that drew the card (opposite of payall)
- paypot # - makes the player put money in the pot
- repairs # # - makes the player put an amount of money for every house (first number) and every hotel (second number) they own
- take # - takes money from the player
Variables
Variables are new in 1.4. They allow you to add various strings to the card's description.
- %<id> - Will be replaced with the name of the space with the given id
- %randomDev - Will be replaced with either jeb_, notch, Dinnerbone, or EvilSeph (random)
- %randomPlayer - Will be replaced with the name of a random player playing Mineopoly (but not the person that drew the card)
- %randomSpace - Will be replaced with the name of a random space on the board.
Depenencies
Installation
Unzip the file, put the jar in the plugins folder. The .schematic file and the cards folder goes in the Mineopoly folder located inside the plugins folder (create it if it does not exist)
Setup
Start the server so the config can be generated. Before allowing anyone to join the queue, search for a good spot for the board to go (easier if the world is SUPERFLAT). Write down the coordinates and edit the config file as needed (change the world name if needed too, the default is 'world'), or use /mineopoly spl. Then restart/reload the server.
Credits
- KILL3RTACO - Builder of Board, Programmer
- TChand - Builder of Board
If there are any features you'd like to suggest feel free to pm me. If it something that is already involved with Monopoly, like community chest/chance cards cards for example, you still can but i might ignore it or tell you it should already be implemented/is going to be.
Monopoly ® and Parker Brothers ® are registered trademarks of © Hasbro Inc. I do not own any of the games concept nor do I own the game itself. I am just providing a way to play this game inside a minecraft server.
Source
Available via GitHub
评论 0
登录后参与评分
还没有评论,来抢沙发吧