SergeyDertan / SRegionProtector

Flexible region protection plugin for nukkit
GNU General Public License v3.0
16 stars 8 forks source link

How to set region in code with the API #18

Closed toimuonthunghiem closed 5 years ago

toimuonthunghiem commented 5 years ago

Is there any way to set the region for the player with code?

toimuonthunghiem commented 5 years ago

Also, something wrong with the maven dependency.

Some problems were encountered while building the effective model for me.thanh:myplugin:jar:1.0-SNAPSHOT 'dependencies.dependency.version' for sergeydertan.sregionprotector:SRegionProtector:jar is either LATEST or RELEASE (both of them are being deprecated) @ line 44, column 22 It is highly recommended to fix these problems because they threaten the stability of your build. For this reason, future Maven versions might no longer support building such malformed projects.

SergeyDertan commented 5 years ago

Fixed

SergeyDertan commented 5 years ago
RegionManager regionManager = SRegionProtectorMain.getInstance().getRegionManager();
regionManager.createRegion("name","owner name, no matter",pos1,pos2,level);