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

Update Simplified Chinese #242

Closed
wants to merge 69 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
6dd8aae
Added BlockPalette, BlockQuery, WeightedRandom
inxomnyaa Dec 25, 2020
fb58e74
switch out Block[] with BlockPalette
inxomnyaa Dec 25, 2020
ae3500d
Use regex to reduce server load when parsing commands
inxomnyaa Dec 25, 2020
51be977
Remove unused leftovers
inxomnyaa Dec 25, 2020
7292315
🆗 phpstan, as you wish
inxomnyaa Dec 25, 2020
f5f1392
Add PHP8.0 support
inxomnyaa Feb 13, 2021
ded5dad
Schematics, Structures and exported Clipboards: unified as "Assets"
inxomnyaa Feb 13, 2021
994b127
Fix #222: Changed text colors for readability & consistency
inxomnyaa Feb 13, 2021
5e70a92
Whoopsie, the AssetCommand class slipped
inxomnyaa Feb 13, 2021
cbe446e
Upgrade libstructure
inxomnyaa Feb 13, 2021
b83f45d
Add clipboard to asset & asset settings form
inxomnyaa Feb 20, 2021
8cfdee7
Add asset placement, make scaffolding functional
inxomnyaa Feb 20, 2021
9dfe62f
Kind of fix placement offset
inxomnyaa Feb 20, 2021
6ed426c
Fixed asset placement
inxomnyaa Feb 20, 2021
9425317
Asset::toSchematic, place asset outline
inxomnyaa Mar 9, 2021
63d08bc
Minimal phpstan patches
inxomnyaa Mar 9, 2021
fa1c73a
Fix other phpstan issues
inxomnyaa Mar 9, 2021
7d03a80
pmmp removed hasTag
inxomnyaa Apr 17, 2021
b6b8ff1
Upgrade required libstructure version
inxomnyaa Apr 17, 2021
6e631ae
Change UUID to Ramsey\Uuid, Fix #223
inxomnyaa Apr 23, 2021
fc3a760
Update to PHP8
inxomnyaa Apr 23, 2021
582039b
test
inxomnyaa Apr 23, 2021
d413ae4
phpstan works again
inxomnyaa Apr 23, 2021
a7f90e4
phpstan is rart with array access on Ds\Map
inxomnyaa Apr 23, 2021
bd7de06
save
inxomnyaa Jun 3, 2021
4b1db34
Add missing null check in Scoreboard
inxomnyaa Jun 3, 2021
d6630e2
Merge branch 'assets' into palette-preview
inxomnyaa Jun 3, 2021
7a94dd4
Fix #231, improve getSession code
inxomnyaa Jul 18, 2021
a92278c
Add //togglesidebar, Fix #226
inxomnyaa Jul 18, 2021
79d6fba
[phpstan skip]
larryTheCoder Jul 20, 2021
e218eaf
Include PocketMine-MP.phar
larryTheCoder Jul 20, 2021
23ad659
Fix #232
inxomnyaa Jul 25, 2021
a801063
Add more null checks BlockStatesParser::getStateByBlock()
inxomnyaa Jul 25, 2021
9c1ad76
Move brushes, assets and palettes into collections
inxomnyaa Jul 25, 2021
2db269d
Replace getBlockArrayAt with getBlockFullId
inxomnyaa Jul 25, 2021
8e81784
Fix #228
inxomnyaa Jul 25, 2021
53d1c0f
Implement some PaletteCommand functionality
inxomnyaa Jul 25, 2021
4541909
Fix logic in PaletteCommand
inxomnyaa Jul 25, 2021
49386a6
Implement basic palette items + command functionality
inxomnyaa Jul 26, 2021
26c36d5
Add COMMANDS.MD, add setting for developer commands
inxomnyaa Jul 26, 2021
33dd946
Palette from selection
inxomnyaa Sep 30, 2021
cacedf7
getPos -> getPosition & minor cleanups
inxomnyaa Sep 23, 2021
1af1e6f
Use FormAPI virion
inxomnyaa Sep 30, 2021
31a6abb
Step 1 of migrating to FormAPI
inxomnyaa Oct 1, 2021
ff60f74
Fix //lang
inxomnyaa Oct 1, 2021
0ddf475
Fix palette, brush, asset command
inxomnyaa Oct 1, 2021
13bbaf9
Merge pull request #235 from thebigsmileXD/replace-customui
inxomnyaa Oct 1, 2021
d7fc6ef
Update ScoreFactory, Fix #233
inxomnyaa Oct 1, 2021
086d9ea
Fix brush creation form
inxomnyaa Oct 1, 2021
37cbe28
Fix editing brush extra properties
inxomnyaa Oct 1, 2021
f227351
Add outline test code
inxomnyaa Mar 9, 2021
f2fb87a
Add palette item to inventory after creation
inxomnyaa Oct 1, 2021
8e90792
Add BlockQuery::fromString(), implement palette modify option
inxomnyaa Oct 2, 2021
e651a1a
Update libstructure dependency
inxomnyaa Oct 3, 2021
c2d74a5
Remove redundant PHPDoc in UserSession
inxomnyaa Oct 3, 2021
2d2f2b2
Clear palettes & assets from inventory
inxomnyaa Oct 3, 2021
f7ca1ba
Update scoreboard on UserSession bool option change
inxomnyaa Oct 3, 2021
e89cedc
Outline is now mostly functional
inxomnyaa Oct 3, 2021
16fa1bd
Add ToggleOutlineCommand
inxomnyaa Oct 3, 2021
62351a3
Outline fully functional (#234), Added MWESelectionChangeEvent::TYPE_…
inxomnyaa Oct 3, 2021
ad4b97e
Update COMMANDS.MD
inxomnyaa Oct 4, 2021
b95ae3d
Update and restructure README.md
inxomnyaa Oct 4, 2021
630db9e
Fix #240 (crash on enabling outline without selection)
inxomnyaa Oct 11, 2021
d6a0719
Add Selection isValid check before creating outline
inxomnyaa Oct 11, 2021
f387e1c
API 4.0.0-BETA5
inxomnyaa Oct 11, 2021
576de87
Add API::positiveModulo()
inxomnyaa Oct 11, 2021
c204d05
Resend outline if chunks are out of view
inxomnyaa Oct 11, 2021
ddd0235
Updated Simplified Chinese Translation
dingyifei Oct 24, 2021
b48cabb
Update zho.ini
dingyifei Oct 24, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on: [push, pull_request]

jobs:
phpstan:
if: "!contains(github.event.head_commit.message, '[phpstan skip]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
16 changes: 8 additions & 8 deletions .poggit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@ projects:
phpstan: false
libs:
- src: BlockHorizons/libschematic/libschematic
version: ^2.0.0
- src: thebigsmilexd/customui/customui
version: ^4.0.0
branch: PM4
version: ^2.0.1
- src: WolvesFortress/FormAPI/libFormAPI
version: ^1.3.0
branch: pm4
- src: thebigsmilexd/apibossbar/apibossbar
version: ^0.1.3
version: ^0.1.4
branch: PM4
- src: CortexPE/Commando/Commando
version: ^3.0.0
branch: PM4
- src: muqsit/invmenu/InvMenu
version: ^4.0.1
version: ^4.1.0
branch: "4.0"
- src: thebigsmilexd/libstructure/libstructure
version: ^0.1.1
version: ^0.1.5
branch: mcstructure
- src: buchwasa/ScoreFactory/ScoreFactory
- src: buchwasa/scorefactory/ScoreFactory
version: ^3.0.1
branch: pm4
...
52 changes: 52 additions & 0 deletions COMMANDS.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Commands
This list is automatically generated. If you have noticed an error, please create an issue.

| Command | Description | Usage | Alias |
|---|---|---|---|
| `//pos1` | Set position 1 | `//pos1 ` | `//1` |
| `//pos2` | Set position 2 | `//pos2 ` | `//2` |
| `//hpos1` | Set position 1 to targeted block | `//hpos1 ` | `//h1` |
| `//hpos2` | Set position 2 to targeted block | `//hpos2 ` | `//h2` |
| `//chunk` | Set the selection to your current chunk | `//chunk ` | |
| `//wand` | Gives you the selection wand | `//wand ` | |
| `//togglewand` | Toggle the wand tool on/off | `//togglewand ` | `//toggleeditwand` |
| `//debug` | Gives you the debug stick, which gives information about the clicked block | `//debug ` | |
| `//toggledebug` | Toggle the debug stick on/off | `//toggledebug ` | |
| `//size` | Get information about the selection | `//size ` | |
| `//count` | Counts the number of blocks matching a mask in selection | `//count [blocks:string] [flags:text]` | `//analyze` |
| `//listchunks` | List chunks that your selection includes | `//listchunks ` | |
| `//set` | Fill a selection with the specified blocks | `//set <blocks:string> [flags:text]` | |
| `//replace` | Replace blocks in an area with other blocks | `//replace <findblocks:string> <replaceblocks:string> [flags:text]` | |
| `//cylinder` | Create a cylinder | `//cylinder <blocks:string> <diameter:int> [height:int] [flags:text]` | `//cyl` |
| `//copy` | Copy the selection to the clipboard | `//copy [flags:text]` | |
| `//paste` | Paste the clipboard's contents | `//paste [flags:text]` | |
| `//cut` | Cut the selection to the clipboard | `//cut [flags:text]` | |
| `//cut2` | Cut the selection to the clipboard - the new way | `//cut2 [flags:text]` | |
| `//clearclipboard` | Clear your clipboard | `//clearclipboard ` | |
| `//flip` | Flip the contents of the clipboard across the origin | `//flip <axis:string>` | `//mirror` |
| `//rotate` | Rotate the contents of the clipboard around the origin | `//rotate <angle:int> [aroundOrigin:bool]` | |
| `//undo` | Rolls back the last action | `//undo ` | |
| `//redo` | Applies the last undo action again | `//redo ` | |
| `//clearhistory` | Clear your history | `//clearhistory ` | |
| `//setrange` | Set tool range | `//setrange [range:int]` | `//toolrange` |
| `//limit` | Set the block change limit. Use -1 to disable | `//limit [limit:int]` | |
| `//help` | MagicWE help command | `//help [command:string]` | `//?, //mwe, //wehelp` |
| `//version` | MagicWE version | `//version ` | `//ver` |
| `//info` | Information about MagicWE | `//info ` | |
| `//report` | Report a bug to GitHub | `//report [title:text]` | `//bug, //github` |
| `//donate` | Donate to support development of MagicWE! | `//donate ` | `//support, //paypal` |
| `//language` | Set your language | `//language [language:string]` | `//lang` |
| `//biomelist` | Gets all biomes available | `//biomelist ` | `//biomels` |
| `//biomeinfo` | Get the biome of the targeted block | `//biomeinfo [flags:text]` | |
| `//setbiome` | Sets the biome of your current block or region | `//setbiome <biome:int>` | |
| `//calculate` | Evaluate a mathematical expression | `//calculate <expression:text>` | `//calc, //eval, //evaluate, //solve` |
| `//togglewaila` | Toggle the What Am I Looking At utility | `//togglewaila ` | `//waila, //wyla` |
| `//togglesidebar` | Toggle the sidebar | `//togglesidebar ` | `//sidebar` |
| `//toggleoutline` | Toggle the selection outline | `//toggleoutline ` | `//outline, //showbounds` |
| `//placeallblockstates` | Place all blockstates similar to Java debug worlds | `//placeallblockstates ` | |
| `//testapi` | Internal command for testing API methods | `//testapi ` | |
| `//generatecommandsmd` | Generates the commands.md file | `//generatecommandsmd ` | |
| `//brush` | Opens the brush tool menu | `//brush` | |
| `//brush name` | Get name or rename a brush | `/brush name [name:string]` | |
| `//palette` | Manage block palettes | `//palette ` | |
| `//flood` | Opens the flood fill tool menu | `//flood ` | `//floodfill` |
88 changes: 39 additions & 49 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,71 +1,58 @@
![MagicWE2's awesome wide banner!](https://github.com/thebigsmileXD/MagicWE2/blob/master/resources/magicwe_icon_wide.png)
---
# MagicWE2
Lag free asynchronous world editor for [PMMP](https://github.com/pmmp/PocketMine-MP)

Try the new MagicWE, now way more powerful, with more support, more commands, new tools and more!
# MagicWE2

[![Poggit-CI](https://poggit.pmmp.io/ci.badge/thebigsmileXD/MagicWE2/MagicWE2/master)](https://poggit.pmmp.io/ci/thebigsmileXD/MagicWE2)
<!--[![Poggit-CI](https://poggit.pmmp.io/ci.badge/thebigsmileXD/MagicWE2/MagicWE2/master)](https://poggit.pmmp.io/ci/thebigsmileXD/MagicWE2)
[![](https://poggit.pmmp.io/shield.state/MagicWE2)](https://poggit.pmmp.io/p/MagicWE2)
[![](https://poggit.pmmp.io/shield.api/MagicWE2)](https://poggit.pmmp.io/p/MagicWE2)
![PHPStan](https://github.com/thebigsmileXD/MagicWE2/workflows/PHPStan/badge.svg)
## Why MagicWE2?
_Rainbow sprinkles!_
[![](https://poggit.pmmp.io/shield.api/MagicWE2)](https://poggit.pmmp.io/p/MagicWE2)-->
[![PHPStan](https://github.com/thebigsmileXD/MagicWE2/workflows/PHPStan/badge.svg)](https://github.com/thebigsmileXD/MagicWE2/workflows/PHPStan)
[![Donations Badge](https://raw.githubusercontent.com/k4m4/donations/master/images/badge.svg)](https://paypal.me/xenialdan)

Jokes aside, here is a list of pros:
Lag free asynchronous world editor for [PMMP](https://github.com/pmmp/PocketMine-MP) with focus on mobile usability

## Features

- Simple usage
- Asynchronous world editing
- Strong focus on simplicity
- Translations
- Good performance and great speeds
- Progress bars like on Windows 98!
- Sessions
- Many commands
- Progress bars
- Cached sessions
- Clipboards
- Optimized item / block parsing - you can place any block, by id, name, and item!
- Alot more commands
- Command auto-completion
- Command flags (i.e. -p for relative copying/pasting, -h for hollow objects)
- UI for brush setup and configuration
- Fancy icon and optional startup ASCII art
- Direct bug reporting to GitHub
- Optimized item / block parsing - you can place any block, by id, name, item and even blockstates
- Command auto-completion (broken, [#blameMojang (Jira Issue)](https://bugs.mojang.com/browse/MCPE-138567))
- Command specific flags (i.e. -p for relative copying/pasting, -h for hollow objects)
- UIs for brushes, palettes, assets etc.
- Selection shapes & outline
- Simplified placement of assets
- Previews of selections / structures
- Scoreboard integration
- Feature rich API
- Prefilled bug report issue url using `//report`

<!--
- schematic support
- MyPlot support
-->

## Commands
| Command | Alias | Description | Usage |
| --- | --- | --- | --- |
| `//pos1` | `//1` | `Select first position` | `//pos1` |
| `//pos2` | `//2` | `Select second position` | `//pos2` |
| `//set` | `//fill` | `Fill an area with the specified blocks` | `//set <blocks:string> [flags:text]` |
| `//replace` | | `Replace blocks in an area with other blocks` | `//replace <findblocks:string> <replaceblocks:string> [flags:text]` |
| `//copy` | | `Copy an area into a clipboard` | `//copy [flags:text]` |
| `//paste` | | `Paste your clipboard` | `//paste [flags:text]` |
| `//wand` | | `Gives you the selection wand` | `//wand` |
| `//togglewand` | | `Toggle the wand tool on/off` | `//togglewand` |
| `//undo` | | `Rolls back the last action` | `//undo` |
| `//redo` | | `Applies the last undo action again` | `//redo` |
| `//debug` | | `Gives you the debug stick, which gives information about the clicked block` | `//debug` |
| `//toggledebug` | | `Toggle the debug stick on/off` | `//toggledebug` |
| `//cylinder` | `//cyl` | `Create a cylinder` | `//cylinder <blocks:string> <diameter:int> [height:int] [flags:text]` |
| `//count` | `//analyze` | `Count blocks in selection` | `//count [blocks:string] [flags:text]` |
| `//help` | `//?,//mwe,//wehelp` | `MagicWE help command` | `//help [command:string]` |
| `//version` | `//ver` | `MagicWE version` | `//version` |
| `//info` | | `Information about MagicWE` | `//info` |
| `//report` | `//bug,//github` | `Report a bug to GitHub` | `//report [title:text]` |
| `//donate` | `//support,//paypal` | `Donate to support development of MagicWE!` | `//donate` |
| `//brush` | | `Opens the brush tool menu` | `//brush` |
| `//flood` | | `Opens the flood tool menu` | `//flood` |
<!-- TODO change to master branch -->
You can find a list of commands here: [COMMANDS.MD](https://github.com/thebigsmileXD/MagicWE2/blob/outline/COMMANDS.MD)

## Planned features
- Saved sessions (saved brushes and clipboards)
- More commands, a glimpse at the plugin.yml should give you a good look what is coming up
- Command based flags, since they are currently in a global state
- Schematic and structure block data support

- More saved session data (saved brushes, clipboards, palettes)
- More commands
- Per-command flags, since they are currently in a global state
- Schematic and structure block data support (in progress)
- Clipboard naming, exporting and switching
- ScoreboardAPI integration
- Better and more brushes. For now i suggest using [BlockSniper](https://github.com/BlockHorizons/BlockSniper) for brushes!
- Better and more brushes. For now i suggest using [BlockSniper](https://github.com/BlockHorizons/BlockSniper) for
brushes!
- [MyPlot](https://github.com/jasonwynn10/MyPlot) integration
- UI with edit history

## Fast updates
You have an urgent issue, your server is crashing or players mess with the world and start griefing?
Expand All @@ -77,9 +64,12 @@ Feel free to open issues, feature requests and criticism are welcome!
If you have an urgent issue, tag me on Twitter for faster response time: [@xenialdan](https://twitter.com/xenialdan)

## Quotes
- _"MagicWE2 has a new fresh coating over the plugin, with rainbow colored sprinkle topping!"_ ~ XenialDan, 2017

- _"MagicWE2 has a new fresh coating over the plugin, with rainbow colored sprinkle topping!"_
- _"MWE2 - Not to be confused with MewTwo"_

### Foot notes

License: GNU GENERAL PUBLIC LICENSE

Readme last updated: 4th August 2019
Readme last updated: 4th October 2021
6 changes: 4 additions & 2 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ parameters:
- phar:///pocketmine/PocketMine-MP.phar/vendor/autoload.php
scanDirectories:
- /source/src
- phar:///source/vendor/customui.phar/src
- /source/vendor
- phar:///source/vendor/libFormAPI.phar/src
- phar:///source/vendor/apibossbar.phar/src
- phar:///source/vendor/Commando.phar/src
- phar:///source/vendor/libschematic.phar/src
- phar:///source/vendor/InvMenu.phar/src
- phar:///source/vendor/libstructure.phar/src
- phar:///source/vendor/ScoreFactory.phar/src
- phar:///pocketmine/PocketMine-MP.phar
excludes_analyse:
- source/vendor
- source/vendor
15 changes: 12 additions & 3 deletions plugin.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
name: MagicWE2
main: xenialdan\MagicWE2\Loader
version: 10.1.2
version: 10.1.8
api: ["4.0.0"]
php: "7.4"
php: [ "8.0" ]
softdepend: [ "DEVirion" ]
authors:
- XenialDan
description: Lag free asynchronous world editor for PMMP with plenty of options
Expand All @@ -18,6 +19,10 @@ permissions:
default: op
we.command.donate:
default: true
we.command.asset:
default: op
we.command.palette:
default: op
we.command.language:
default: op
we.command.help:
Expand Down Expand Up @@ -112,6 +117,10 @@ permissions:
default: op
we.command.utility.togglewaila:
default: op
we.command.test:
we.command.utility.togglesidebar:
default: op
we.command.utility.toggleoutline:
default: op
we.command.debug:
default: op
...
5 changes: 4 additions & 1 deletion resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
# Available languages (ISO639-2):
# eng, ara, cat, ces, chi, dan, deu, ell, epo, esp, est, fre, geo, hin, ind, ita, jpn, kor, lit, mar, mas, nld, nor, pol, por, rom, rus, slo, swa, swe, tgl, tha, zho
language: eng
show-startup-icon: false
# Enables special commands for testing API features
developer-commands: false
# Maximum amount of blocks that can be edited at once. Set to -1 to disable
limit: -1
# Maximum raytraced distance for ranged tools. Default 100
tool-range: 100
12 changes: 9 additions & 3 deletions resources/lang/zho.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; Updated time : 3rd 10 2019
; Updated time : 23rd 10 2021
; See: https://www.loc.gov/standards/iso639-2/php/English_list.php
language.name="Simplified Chinese"
; general
Expand All @@ -18,9 +18,9 @@ error.limitexceeded="您正在尝试修改的方块太多了。减少选择的
error.notarget="找不到目标方块。如果需要,使用//setrange增加工具范围"
error.noselection="找不到选中 - 请先选中一个范围"
error.selectioninvalid="选中范围无效!检查是否已设置所有位置!"
error.nosession="为创建会话 - 可能没有使用{%0}的权限"
error.nosession="未创建会话 - 可能没有使用{%0}的权限"
error.noclipboard = "找不到剪贴板 - 请先创建一个剪贴板"
warning.differentworld = "[警告] 您的编辑不处于您目前所在世界!"
warning.differentworld = "[警告] 您目前所在的世界不是您正在编辑的世界!"
; commands
command.info.title="信息"
command.limit.current="目前极限:{%0}"
Expand Down Expand Up @@ -84,6 +84,12 @@ tool.debug.lore.2="例如方块的名称和损耗值"
tool.debug.lore.3="使用//toggledebug切换其功能"
tool.debug.disabled="故障排除工具已禁用。使用//toggledebug来重新启用它"
tool.debug.setenabled = "故障排除工具已{%0}!"
; WAILA tool (What am i looking at)
tool.waila = "Waila"
tool.waila.setenabled = "Waila工具已{%0}!"
; Sidebar
tool.sidebar = "侧边栏"
tool.sidebar.setenabled = "侧边栏已{%0}!"
; flood tool
ui.flood.title="覆盖菜单"
ui.flood.options.limit="最大方块数"
Expand Down
2 changes: 1 addition & 1 deletion resources/parsepoggit.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
$version = $lib["version"] ?? "*";
$branch = $lib["branch"] ?? ":default";

$urls[] = "https://poggit.pmmp.io/v.dl/{$src}/{$version}?branch={$branch}";
$urls[] = "https://poggit.pmmp.io/v.dl/$src/$version?branch=$branch";
}
}

Expand Down
Loading