BowWarfare porting from Bukkit

In this thread I would like to ask you a little bit of information about the port of the plugin.
I would like to avoid opening different threads for different problems that I might meet, and put it all here. In addition, the code is GPL 3. Every one of you can participate!

What I’m doing now is to understand how the events works, I’m writing the various APIs that will put at disposal to other dev.
I would like to make it modular, so it is easier to manage. Dcentralize commands, arenas or even statistics. It is still in development!

Github: https://github.com/hitech95/Bow-Warfare

Bye, hitech95

You say that we can all contribute, but there’s no link to a source page?

3 Likes

Well it’s a good thing I spent the time to find it then :stuck_out_tongue:

@hitech95 You may be interested in some of these links:

Docs - https://docs.spongepowered.org/en/plugin/index.html
JavaDocs - http://spongepowered.github.io/SpongeAPI/

I haven’t put the URL because I’m still working on the enviroment.

@simon816 Yea, I have already read some documentation, but some things have not yet been specified!

I’m writing the API, I would like to know if there is an alternative to object “Block” from Bukkit. I found BlockLoc but does not seem to be in Sponge API 1.0.

Use API 1.1pre :stuck_out_tongue: It’s way more complete.

Um, where can I find it? On the repo I haven’t seen it :stuck_out_tongue:

The top one here. That’s the current 1.1 Snapshot

Nop: My current settings is:

provided "org.spongepowered:spongeapi:1.1-SNAPSHOT"

That’s right…

EDIT: Did you update your roject files? eg. gradlew idea

Ehm… no? How?

My crrent Tasks:

------------------------------------------------------------
All tasks runnable from root project
------------------------------------------------------------
                      
Build tasks                                                           
-----------           
assemble - Assembles the outputs of this project.
build - Assembles and tests this project.
buildDependents - Assembles and tests this project and all projects that depend on it.
buildNeeded - Assembles and tests this project and all projects it depends on.
classes - Assembles classes 'main'.
clean - Deletes the build directory.
jar - Assembles a jar archive containing the main classes.
testClasses - Assembles classes 'test'.
                      
Build Setup tasks     
-----------------     
init - Initializes a new Gradle build. [incubating]
wrapper - Generates Gradle wrapper files. [incubating]
                      
Documentation tasks   
-------------------   
javadoc - Generates Javadoc API documentation for the main source code.
                      
Help tasks            
----------            
components - Displays the components produced by root project 'BowWarfare'. [incubating]
dependencies - Displays all dependencies declared in root project 'BowWarfare'.
dependencyInsight - Displays the insight into a specific dependency in root project 'BowWarfare'.
help - Displays a help message.
projects - Displays the sub-projects of root project 'BowWarfare'.
properties - Displays the properties of root project 'BowWarfare'.
tasks - Displays the tasks runnable from root project 'BowWarfare' (some of the displayed tasks may belong to subprojects).
                      
Verification tasks    
------------------    
check - Runs all checks.
test - Runs the unit tests.
                      
Other tasks           
-----------           
downloadLicenses      
install - Installs the 'archives' artifacts into the local Maven repository.
licenseFormat

Well, then you should probably use the idea gradle plugin to keep your dependencies synchronized. Anyway, check if your project has the right version of the SpongeAPI in its dependencies.

Yes, it has the correct version. The problem is that there is a way to manage a Block :smiley:
I need the position of a block.

Yep, that’s Could you provide a bit more context on what you’re trying to do?

Yup, Line 40:
https://github.com/hitech95/Bow-Warfare/blob/master/sponge-api/src/main/java/it/kytech/bowwarfare/api/game/IArena.java

Location location = whateverlocation;
BlockType type = location.getType();
BlockState state = location.getState();

I think that’s what you’re lookign for.

@TBotV63 Yes, thanks.

I want to know if I should still save the information to a text file.
I would like to save on Sqlite. There is something ready or I have to integrate the driver?

I think @FerusGrim has a DB manager.

1 Like

Indeed, I do. It’s still in development, but it’s a good start.

1 Like

It is a library or a separate plugin?