Jump to content

Recommended Posts

Posted

Its obvious, not visible, so make it visible, so make it public.

 

Simply follow Eclipse hints and quick fixes.

  • 4 months later...
Posted

I have problem on compilation this files , a have a Freya L2j Files

[javac] D:\SOURCE\trunk\Core\java\com\l2jserver\gameserver\model\actor\instance\L2CrystalInstance.java:695: error: setReputationScore(int,boolean) has private access in L2Clan
    [javac] 				player.getClan().setReputationScore(player.getClan().getReputationScore() - price, true);   
    [javac] 				                ^
    [javac] D:\SOURCE\trunk\Core\java\com\l2jserver\gameserver\model\actor\instance\L2CrystalInstance.java:702: error: setReputationScore(int,boolean) has private access in L2Clan
    [javac] 				player.getClan().setReputationScore(player.getClan().getReputationScore() - price, true);   
    [javac] 				                ^
    [javac] 2 errors

 

int current = _warningCount;
			_warningCount = current + count;
			player.getClan().setReputationScore(player.getClan().getReputationScore() - price, true);   
			player.sendPacket(new CreatureSay(0, Say2.PARTY, "Crystal", "Successfully purchased " + count + " warnings!"));
		}
		else if (abilitiId == 2)
		{
			int current = _defenceSpawnCount;
			_defenceSpawnCount = current + count;
			player.getClan().setReputationScore(player.getClan().getReputationScore() - price, true);   
			player.sendPacket(new CreatureSay(0, Say2.PARTY, "Crystal", "Successfully purchased " + count + " Defence Abilities!"));

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock